Skip to content

Commit ce1d543

Browse files
committed
fix(soba): rename directive selectors to camel case instead of kebab
1 parent 610d56f commit ce1d543

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

libs/soba/controls/src/lib/scroll-controls.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export class NgtsScrollControls {
279279
}
280280
}
281281

282-
@Directive({ selector: 'ngt-group[ngts-scroll-canvas]', standalone: true })
282+
@Directive({ selector: 'ngt-group[ngtsScrollCanvas]', standalone: true })
283283
export class NgtsScrollCanvas {
284284
private host = inject<ElementRef<Group>>(ElementRef);
285285
private scrollControls = inject(NgtsScrollControls);
@@ -301,7 +301,7 @@ export class NgtsScrollCanvas {
301301
}
302302

303303
@Directive({
304-
selector: 'div[ngts-scroll-html]',
304+
selector: 'div[ngtsScrollHTML]',
305305
standalone: true,
306306
host: { style: 'position: absolute; top: 0; left: 0; will-change: transform;' },
307307
providers: [provideHTMLDomElement([NgtsScrollControls], (scrollControls) => scrollControls.fixed)],

libs/soba/misc/src/lib/html/html-content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const defaultHtmlContentOptions: NgtsHTMLContentOptions = {
7171
};
7272

7373
@Component({
74-
selector: '[ngts-html-content]',
74+
selector: '[ngtsHTMLContent]',
7575
standalone: true,
7676
template: `
7777
@if (html.transform()) {
@@ -114,7 +114,7 @@ const defaultHtmlContentOptions: NgtsHTMLContentOptions = {
114114
export class NgtsHTMLContent extends NgtHTML {
115115
options = input(defaultHtmlContentOptions, {
116116
transform: mergeInputs(defaultHtmlContentOptions),
117-
alias: 'ngts-html-content',
117+
alias: 'ngtsHTMLContent',
118118
});
119119
occluded = output<boolean>();
120120

libs/soba/src/controls/scroll-controls.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ class HtmlContent extends NgtHTML {
202202
standalone: true,
203203
template: `
204204
<ngts-scroll-controls [(progress)]="progress" [options]="options()">
205-
<ngt-group ngts-scroll-canvas>
205+
<ngt-group ngtsScrollCanvas>
206206
<scroll-suzanne [scale]="2" />
207207
<scroll-suzanne [position]="[-viewport().width / 8, -viewport().height, 0]" [scale]="3" />
208208
<scroll-suzanne [position]="[viewport().width / 4, -viewport().height * 2, 0]" [scale]="1.5" />
209209
</ngt-group>
210210
211-
<div ngts-scroll-html style="width: 100%; color: #ec2d2d">
211+
<div ngtsScrollHTML style="width: 100%; color: #ec2d2d">
212212
<scroll-html-content />
213213
</div>
214214
</ngts-scroll-controls>

libs/soba/src/misc/html.stories.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { makeDecorators, makeStoryObject, Turnable } from '../setup-canvas';
1515
<ngt-mesh-basic-material [color]="color()" [wireframe]="true" />
1616
1717
<ngts-html [options]="{ transform: transform() }">
18-
<div [ngts-html-content]="{ distanceFactor: 30 }" style="color: white;">
18+
<div [ngtsHTMLContent]="{ distanceFactor: 30 }" style="color: white;">
1919
<h1>First</h1>
2020
</div>
2121
</ngts-html>
@@ -26,7 +26,7 @@ import { makeDecorators, makeStoryObject, Turnable } from '../setup-canvas';
2626
<ngt-mesh-basic-material [color]="color()" [wireframe]="true" />
2727
2828
<ngts-html [options]="{ transform: transform() }">
29-
<div [ngts-html-content]="{ distanceFactor: 30 }" style="color: white;">
29+
<div [ngtsHTMLContent]="{ distanceFactor: 30 }" style="color: white;">
3030
<h1>Second</h1>
3131
</div>
3232
</ngts-html>
@@ -37,7 +37,7 @@ import { makeDecorators, makeStoryObject, Turnable } from '../setup-canvas';
3737
<ngt-mesh-basic-material [color]="color()" [wireframe]="true" />
3838
3939
<ngts-html [options]="{ transform: transform() }">
40-
<div [ngts-html-content]="{ distanceFactor: 30 }" style="color: white;">
40+
<div [ngtsHTMLContent]="{ distanceFactor: 30 }" style="color: white;">
4141
<h1>Third</h1>
4242
</div>
4343
</ngts-html>
@@ -60,7 +60,7 @@ class HtmlScene {
6060
template: `
6161
<html-scene color="palegreen" [transform]="true">
6262
<ngts-html [options]="htmlOptions()">
63-
<div [ngts-html-content]="htmlContentOptions()">Transform mode</div>
63+
<div [ngtsHTMLContent]="htmlContentOptions()">Transform mode</div>
6464
</ngts-html>
6565
</html-scene>
6666
`,

libs/soba/src/staging/bb-anchor.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class BBAnchorWrapper {
5555
template: `
5656
<bb-anchor-wrapper [options]="options()" [drawBoundingBox]="drawBoundingBox()">
5757
<ngts-html>
58-
<div [ngts-html-content]="{ center: true, containerStyle: { color: 'white', whiteSpace: 'nowrap' } }">
58+
<div [ngtsHTMLContent]="{ center: true, containerStyle: { color: 'white', whiteSpace: 'nowrap' } }">
5959
HTML content
6060
</div>
6161
</ngts-html>

0 commit comments

Comments
 (0)