11import { CUSTOM_ELEMENTS_SCHEMA , Component , Input } from '@angular/core' ;
22import { NgtArgs , injectNgtRef } from 'angular-three' ;
3- import { NgtsHtml , NgtsHtmlContent } from 'angular-three-soba/misc' ;
3+ import { NgtsHtml , NgtsSobaContent } from 'angular-three-soba/misc' ;
44import { Mesh } from 'three' ;
55import { makeDecorators , makeStoryFunction , makeStoryObject , turn } from '../setup-canvas' ;
66
@@ -22,31 +22,31 @@ class HtmlContent {
2222 <ngt-icosahedron-geometry *args="[2, 2]" />
2323 <ngt-mesh-basic-material [color]="color" [wireframe]="true" />
2424 <ngts-html [distanceFactor]="distanceFactor" [renderedDivClass]="className" [transform]="transform">
25- <div *ngtsHtmlContent ><html-content text="First" /></div>
25+ <div *ngtsSobaContent ><html-content text="First" /></div>
2626 </ngts-html>
2727 </ngt-mesh>
2828
2929 <ngt-mesh [position]="[10, 0, 10]">
3030 <ngt-icosahedron-geometry *args="[2, 2]" />
3131 <ngt-mesh-basic-material [color]="color" [wireframe]="true" />
3232 <ngts-html [distanceFactor]="distanceFactor" [renderedDivClass]="className" [transform]="transform">
33- <div *ngtsHtmlContent ><html-content text="Second" /></div>
33+ <div *ngtsSobaContent ><html-content text="Second" /></div>
3434 </ngts-html>
3535 </ngt-mesh>
3636
3737 <ngt-mesh [position]="[-20, 0, -20]">
3838 <ngt-icosahedron-geometry *args="[2, 2]" />
3939 <ngt-mesh-basic-material [color]="color" [wireframe]="true" />
4040 <ngts-html [distanceFactor]="distanceFactor" [renderedDivClass]="className" [transform]="transform">
41- <div *ngtsHtmlContent ><html-content text="Third" /></div>
41+ <div *ngtsSobaContent ><html-content text="Third" /></div>
4242 </ngts-html>
4343 </ngt-mesh>
4444
4545 <ng-content />
4646 </ngt-group>
4747 ` ,
4848 // NOTE: I think createComponent might work better than createEmbeddedView
49- imports : [ NgtsHtml , NgtsHtmlContent , NgtArgs , HtmlContent ] ,
49+ imports : [ NgtsHtml , NgtsSobaContent , NgtArgs , HtmlContent ] ,
5050 schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
5151} )
5252class DefaultHtmlStory {
@@ -74,11 +74,11 @@ class DefaultHtmlStory {
7474 [position]="[5, 15, 0]"
7575 [style]="{ background: 'palegreen', fontSize: '50px', padding: '10px 18px', border: '2px solid black' }"
7676 >
77- <html-content *ngtsHtmlContent text="Transform mode" />
77+ <html-content *ngtsSobaContent text="Transform mode" />
7878 </ngts-html>
7979 </default-html-story>
8080 ` ,
81- imports : [ DefaultHtmlStory , NgtsHtml , NgtsHtmlContent , HtmlContent ] ,
81+ imports : [ DefaultHtmlStory , NgtsHtml , NgtsSobaContent , HtmlContent ] ,
8282 schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
8383} )
8484class TransformHtmlStory { }
@@ -91,7 +91,7 @@ class TransformHtmlStory {}
9191 <ngt-icosahedron-geometry *args="[5, 5]" />
9292 <ngt-mesh-basic-material color="hotpink" />
9393 <ngts-html [position]="[0, 0, -6]" renderedDivClass="html-story-label" occlude="blending">
94- <span *ngtsHtmlContent >Blending</span>
94+ <span *ngtsSobaContent >Blending</span>
9595 </ngts-html>
9696 </ngt-mesh>
9797
@@ -104,7 +104,7 @@ class TransformHtmlStory {}
104104 renderedDivClass="html-story-label html-story-label-B"
105105 occlude="blending"
106106 >
107- <span *ngtsHtmlContent >Blending w/ transform</span>
107+ <span *ngtsSobaContent >Blending w/ transform</span>
108108 </ngts-html>
109109 </ngt-mesh>
110110
@@ -117,14 +117,14 @@ class TransformHtmlStory {}
117117 renderedDivClass="html-story-label"
118118 [occlude]="[occluderRef]"
119119 >
120- <span *ngtsHtmlContent >Raycast occlusion</span>
120+ <span *ngtsSobaContent >Raycast occlusion</span>
121121 </ngts-html>
122122 </ngt-mesh>
123123 </ngt-group>
124124 <ngt-ambient-light [intensity]="0.8" />
125125 <ngt-point-light [intensity]="1" [position]="[0, 6, 0]" />
126126 ` ,
127- imports : [ NgtArgs , NgtsHtml , NgtsHtmlContent ] ,
127+ imports : [ NgtArgs , NgtsHtml , NgtsSobaContent ] ,
128128 schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
129129} )
130130class OccludeHtmlStory {
0 commit comments