glyphcss 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,269 +0,0 @@
1
- import { Vec3, Vec2, RenderMode } from '@glyphcss/core';
2
-
3
- /**
4
- * createGlyphcssPerspectiveCamera / createGlyphcssOrthographicCamera /
5
- * createGlyphcssFirstPersonCamera — vanilla camera factories for glyphcss.
6
- *
7
- * These mirror the asciss camera factories and provide a `GlyphcssCamera`
8
- * handle with a `project()` method that maps world-space vertices to
9
- * [col, row, depth] in character-cell grid space.
10
- *
11
- * Public names are Glyphcss-prefixed to mirror polycss's naming convention.
12
- * The internal camera algorithms are byte-identical to asciss's createCamera.ts.
13
- */
14
-
15
- interface GlyphcssCamera {
16
- readonly kind: "perspective" | "orthographic" | "firstPerson";
17
- rotX: number;
18
- rotY: number;
19
- /** Distance from origin along the view axis. Only meaningful for perspective cameras. */
20
- distance: number;
21
- /** Mesh size in the viewport (fraction of `min(cols, rows)`). */
22
- scale: number;
23
- /** Extra horizontal stretch on top of `cellAspect`. */
24
- stretch: number;
25
- /**
26
- * Camera target offset in world space — shifts the point the camera orbits around.
27
- * Subtracted from world coords before projection so the mesh appears to pan without re-baking.
28
- */
29
- target: Vec3;
30
- /** Project a world-space vector to `[col, row, depth]`. Same projection used by the renderer and the hit layer. */
31
- project(v: Vec3, cols: number, rows: number, cellAspect: number): [number, number, number];
32
- }
33
- interface GlyphcssPerspectiveCameraOptions {
34
- /** Y rotation (radians). The "spin" axis. Default 0. */
35
- rotY?: number;
36
- /** X rotation (radians). The "tilt" axis. Default 0. */
37
- rotX?: number;
38
- /**
39
- * Perspective distance. Larger = flatter (less foreshortening); smaller =
40
- * more dramatic. Default 3.
41
- */
42
- distance?: number;
43
- /** Size of the mesh in the viewport (fraction of `min(cols, rows)`). Default 0.4. */
44
- scale?: number;
45
- /**
46
- * Extra horizontal scale on top of `cellAspect`. Use to counteract
47
- * over-stretching when monospace cells are taller than wide. Default 1.0.
48
- */
49
- stretch?: number;
50
- /** Center of projection in normalized grid coords. Default `[0.5, 0.5]`. */
51
- center?: [number, number];
52
- }
53
- interface GlyphcssOrthographicCameraOptions {
54
- rotY?: number;
55
- rotX?: number;
56
- zoom?: number;
57
- center?: [number, number];
58
- }
59
- interface GlyphcssFirstPersonCameraOptions {
60
- rotY?: number;
61
- rotX?: number;
62
- /** Focal length in world units. Smaller = wider FOV. */
63
- focal?: number;
64
- /** Eye position in world space. Used as the projection origin. */
65
- origin?: Vec3;
66
- center?: [number, number];
67
- }
68
- /** Handle alias — same surface as `GlyphcssCamera`, names matched to polycss. */
69
- type GlyphcssPerspectiveCameraHandle = GlyphcssCamera;
70
- /** Handle alias — same surface as `GlyphcssCamera`, names matched to polycss. */
71
- type GlyphcssOrthographicCameraHandle = GlyphcssCamera;
72
- /** Handle alias — same surface as `GlyphcssCamera`, names matched to polycss. */
73
- type GlyphcssFirstPersonCameraHandle = GlyphcssCamera;
74
- declare function createGlyphcssPerspectiveCamera(opts?: GlyphcssPerspectiveCameraOptions): GlyphcssPerspectiveCameraHandle;
75
- declare function createGlyphcssOrthographicCamera(opts?: GlyphcssOrthographicCameraOptions): GlyphcssOrthographicCameraHandle;
76
- /**
77
- * First-person camera. Projection origin = eye (`target`). Vertices
78
- * behind the eye (`r[2] >= 0`) are NaN-culled.
79
- */
80
- declare function createGlyphcssFirstPersonCamera(opts?: GlyphcssFirstPersonCameraOptions): GlyphcssFirstPersonCameraHandle;
81
-
82
- /**
83
- * Triangle type for the glyphcss rasterizer. Unlike polycss-core's TextureTriangle,
84
- * `uvs` is optional — the ASCII rasterizer never samples UV texture coordinates.
85
- */
86
- interface GlyphcssTriangle {
87
- vertices: [Vec3, Vec3, Vec3];
88
- uvs?: [Vec2, Vec2, Vec2];
89
- color?: string;
90
- }
91
- /** Directional light — single distant source for the ASCII rasterizer. */
92
- interface GlyphcssDirectionalLight {
93
- direction: Vec3;
94
- intensity?: number;
95
- /** Hex color (#rrggbb). Tints the lit-side per-cell output. Default white. */
96
- color?: string;
97
- }
98
- /** Ambient light — uniform fill regardless of orientation. */
99
- interface GlyphcssAmbientLight {
100
- intensity?: number;
101
- /** Hex color (#rrggbb). Tints the unlit-side fill. Default white. */
102
- color?: string;
103
- }
104
- interface GlyphcssMeshTransform {
105
- position?: Vec3;
106
- scale?: number | Vec3;
107
- rotation?: Vec3;
108
- }
109
-
110
- /**
111
- * createGlyphcssScene — imperative scene API. The vanilla counterpart to
112
- * `<glyphcss-scene>` custom element.
113
- *
114
- * Mirrors polycss's `createPolyScene` architecturally:
115
- * - Takes a host element + scene options, returns a `GlyphcssSceneHandle`.
116
- * - `handle.add(triangles, transform?)` registers a mesh and returns a
117
- * removable `GlyphcssMeshHandle`.
118
- *
119
- * DOM: injects `<div class="glyphcss-scene">` containing one `<pre>` (text
120
- * output) and one `<div class="glyphcss-hotspot-layer">` (positioned overlay
121
- * for hotspot dots).
122
- *
123
- * Paint backend: on each render, walks all registered meshes, applies each
124
- * mesh's transform to its triangles in memory, builds a `RasterizeContext`,
125
- * calls `rasterize`, and sets `<pre>.innerHTML` (or `.textContent` when
126
- * `useColors` is false).
127
- *
128
- * Camera changes trigger a re-rasterize; scene-root transform is NOT a CSS
129
- * matrix3d — the ASCII output bakes the camera rotation into the projected
130
- * text every render.
131
- */
132
-
133
- interface GlyphcssSceneOptions {
134
- /** Render mode: "wireframe" | "solid". Default "solid". */
135
- mode?: RenderMode;
136
- /** Named glyph palette. Defaults to "default". */
137
- glyphPalette?: string;
138
- /** Whether to emit color spans. Default true. */
139
- useColors?: boolean;
140
- /** Grid columns. Default 80. */
141
- cols?: number;
142
- /** Grid rows. Default 24. */
143
- rows?: number;
144
- /** Character cell aspect ratio (height/width). Default 2.0. */
145
- cellAspect?: number;
146
- directionalLight?: GlyphcssDirectionalLight;
147
- ambientLight?: GlyphcssAmbientLight;
148
- camera?: GlyphcssCamera;
149
- }
150
- interface GlyphcssHotspotOptions {
151
- id: string;
152
- at: Vec3;
153
- size?: [number, number];
154
- }
155
- interface GlyphcssHotspotHandle {
156
- remove(): void;
157
- }
158
- interface GlyphcssMeshHandle {
159
- readonly id: number;
160
- /** The raw triangles registered with this mesh. */
161
- readonly triangles: GlyphcssTriangle[];
162
- setTransform(transform: GlyphcssMeshTransform): void;
163
- dispose(): void;
164
- }
165
- interface GlyphcssSceneHandle {
166
- /** The host element passed to `createGlyphcssScene`. */
167
- readonly host: HTMLElement;
168
- /** The `<pre>` element for reading rendered text output. */
169
- readonly output: HTMLPreElement;
170
- /** The camera attached to this scene (mutate then call `rerender()`). */
171
- readonly camera: GlyphcssCamera;
172
- /**
173
- * Register a triangle list as a mesh. Optionally supply a transform.
174
- * Returns a handle to update or dispose the mesh.
175
- */
176
- add(triangles: GlyphcssTriangle[], transform?: GlyphcssMeshTransform): GlyphcssMeshHandle;
177
- addHotspot(opts: GlyphcssHotspotOptions, onClick?: () => void): GlyphcssHotspotHandle;
178
- /** Force an immediate re-rasterize. Normally called automatically on add/remove/setOptions. */
179
- rerender(): void;
180
- setOptions(opts: Partial<GlyphcssSceneOptions>): void;
181
- getOptions(): GlyphcssSceneOptions;
182
- destroy(): void;
183
- }
184
- declare function createGlyphcssScene(host: HTMLElement, opts?: GlyphcssSceneOptions): GlyphcssSceneHandle;
185
-
186
- /**
187
- * `<glyphcss-scene>` custom element. Vanilla counterpart to React's future GlyphcssScene.
188
- *
189
- * On `connectedCallback`, instantiates `createGlyphcssScene(this, options)`.
190
- * Children (`<glyphcss-mesh>`) walk up the tree to find this element and call
191
- * `getScene()` to register themselves.
192
- *
193
- * Attribute parsing mirrors `<poly-scene>` conventions.
194
- */
195
-
196
- declare const ELEMENT_BASE$6: typeof HTMLElement;
197
- declare class GlyphcssSceneElement extends ELEMENT_BASE$6 {
198
- static get observedAttributes(): string[];
199
- private _scene;
200
- getScene(): GlyphcssSceneHandle | null;
201
- private _readOptions;
202
- connectedCallback(): void;
203
- disconnectedCallback(): void;
204
- attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
205
- }
206
-
207
- declare const ELEMENT_BASE$5: typeof HTMLElement;
208
- declare class GlyphcssMeshElement extends ELEMENT_BASE$5 {
209
- static get observedAttributes(): string[];
210
- private _handle;
211
- private _loadToken;
212
- getMeshHandle(): GlyphcssMeshHandle | null;
213
- connectedCallback(): void;
214
- disconnectedCallback(): void;
215
- attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
216
- private _readTransform;
217
- private _tearDown;
218
- private _maybeLoad;
219
- }
220
-
221
- declare const ELEMENT_BASE$4: typeof HTMLElement;
222
- declare class GlyphcssHotspotElement extends ELEMENT_BASE$4 {
223
- static get observedAttributes(): string[];
224
- private _handle;
225
- connectedCallback(): void;
226
- disconnectedCallback(): void;
227
- attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
228
- private _register;
229
- }
230
-
231
- declare const ELEMENT_BASE$3: typeof HTMLElement;
232
- declare class GlyphcssPerspectiveCameraElement extends ELEMENT_BASE$3 {
233
- static get observedAttributes(): string[];
234
- connectedCallback(): void;
235
- attributeChangedCallback(_name: string, old: string | null, next: string | null): void;
236
- private _apply;
237
- }
238
-
239
- declare const ELEMENT_BASE$2: typeof HTMLElement;
240
- declare class GlyphcssOrthographicCameraElement extends ELEMENT_BASE$2 {
241
- static get observedAttributes(): string[];
242
- connectedCallback(): void;
243
- attributeChangedCallback(_name: string, old: string | null, next: string | null): void;
244
- private _apply;
245
- }
246
-
247
- declare const ELEMENT_BASE$1: typeof HTMLElement;
248
- declare class GlyphcssOrbitControlsElement extends ELEMENT_BASE$1 {
249
- static get observedAttributes(): string[];
250
- private _controls;
251
- connectedCallback(): void;
252
- disconnectedCallback(): void;
253
- attributeChangedCallback(_name: string, old: string | null, next: string | null): void;
254
- private _readOptions;
255
- private _attach;
256
- }
257
-
258
- declare const ELEMENT_BASE: typeof HTMLElement;
259
- declare class GlyphcssMapControlsElement extends ELEMENT_BASE {
260
- static get observedAttributes(): string[];
261
- private _controls;
262
- connectedCallback(): void;
263
- disconnectedCallback(): void;
264
- attributeChangedCallback(_name: string, old: string | null, next: string | null): void;
265
- private _readOptions;
266
- private _attach;
267
- }
268
-
269
- export { type GlyphcssSceneHandle as G, type GlyphcssCamera as a, type GlyphcssTriangle as b, type GlyphcssDirectionalLight as c, type GlyphcssAmbientLight as d, type GlyphcssFirstPersonCameraHandle as e, type GlyphcssFirstPersonCameraOptions as f, GlyphcssHotspotElement as g, type GlyphcssHotspotHandle as h, type GlyphcssHotspotOptions as i, GlyphcssMapControlsElement as j, GlyphcssMeshElement as k, type GlyphcssMeshHandle as l, type GlyphcssMeshTransform as m, GlyphcssOrbitControlsElement as n, GlyphcssOrthographicCameraElement as o, type GlyphcssOrthographicCameraHandle as p, type GlyphcssOrthographicCameraOptions as q, GlyphcssPerspectiveCameraElement as r, type GlyphcssPerspectiveCameraHandle as s, type GlyphcssPerspectiveCameraOptions as t, GlyphcssSceneElement as u, type GlyphcssSceneOptions as v, createGlyphcssFirstPersonCamera as w, createGlyphcssOrthographicCamera as x, createGlyphcssPerspectiveCamera as y, createGlyphcssScene as z };
@@ -1,269 +0,0 @@
1
- import { Vec3, Vec2, RenderMode } from '@glyphcss/core';
2
-
3
- /**
4
- * createGlyphcssPerspectiveCamera / createGlyphcssOrthographicCamera /
5
- * createGlyphcssFirstPersonCamera — vanilla camera factories for glyphcss.
6
- *
7
- * These mirror the asciss camera factories and provide a `GlyphcssCamera`
8
- * handle with a `project()` method that maps world-space vertices to
9
- * [col, row, depth] in character-cell grid space.
10
- *
11
- * Public names are Glyphcss-prefixed to mirror polycss's naming convention.
12
- * The internal camera algorithms are byte-identical to asciss's createCamera.ts.
13
- */
14
-
15
- interface GlyphcssCamera {
16
- readonly kind: "perspective" | "orthographic" | "firstPerson";
17
- rotX: number;
18
- rotY: number;
19
- /** Distance from origin along the view axis. Only meaningful for perspective cameras. */
20
- distance: number;
21
- /** Mesh size in the viewport (fraction of `min(cols, rows)`). */
22
- scale: number;
23
- /** Extra horizontal stretch on top of `cellAspect`. */
24
- stretch: number;
25
- /**
26
- * Camera target offset in world space — shifts the point the camera orbits around.
27
- * Subtracted from world coords before projection so the mesh appears to pan without re-baking.
28
- */
29
- target: Vec3;
30
- /** Project a world-space vector to `[col, row, depth]`. Same projection used by the renderer and the hit layer. */
31
- project(v: Vec3, cols: number, rows: number, cellAspect: number): [number, number, number];
32
- }
33
- interface GlyphcssPerspectiveCameraOptions {
34
- /** Y rotation (radians). The "spin" axis. Default 0. */
35
- rotY?: number;
36
- /** X rotation (radians). The "tilt" axis. Default 0. */
37
- rotX?: number;
38
- /**
39
- * Perspective distance. Larger = flatter (less foreshortening); smaller =
40
- * more dramatic. Default 3.
41
- */
42
- distance?: number;
43
- /** Size of the mesh in the viewport (fraction of `min(cols, rows)`). Default 0.4. */
44
- scale?: number;
45
- /**
46
- * Extra horizontal scale on top of `cellAspect`. Use to counteract
47
- * over-stretching when monospace cells are taller than wide. Default 1.0.
48
- */
49
- stretch?: number;
50
- /** Center of projection in normalized grid coords. Default `[0.5, 0.5]`. */
51
- center?: [number, number];
52
- }
53
- interface GlyphcssOrthographicCameraOptions {
54
- rotY?: number;
55
- rotX?: number;
56
- zoom?: number;
57
- center?: [number, number];
58
- }
59
- interface GlyphcssFirstPersonCameraOptions {
60
- rotY?: number;
61
- rotX?: number;
62
- /** Focal length in world units. Smaller = wider FOV. */
63
- focal?: number;
64
- /** Eye position in world space. Used as the projection origin. */
65
- origin?: Vec3;
66
- center?: [number, number];
67
- }
68
- /** Handle alias — same surface as `GlyphcssCamera`, names matched to polycss. */
69
- type GlyphcssPerspectiveCameraHandle = GlyphcssCamera;
70
- /** Handle alias — same surface as `GlyphcssCamera`, names matched to polycss. */
71
- type GlyphcssOrthographicCameraHandle = GlyphcssCamera;
72
- /** Handle alias — same surface as `GlyphcssCamera`, names matched to polycss. */
73
- type GlyphcssFirstPersonCameraHandle = GlyphcssCamera;
74
- declare function createGlyphcssPerspectiveCamera(opts?: GlyphcssPerspectiveCameraOptions): GlyphcssPerspectiveCameraHandle;
75
- declare function createGlyphcssOrthographicCamera(opts?: GlyphcssOrthographicCameraOptions): GlyphcssOrthographicCameraHandle;
76
- /**
77
- * First-person camera. Projection origin = eye (`target`). Vertices
78
- * behind the eye (`r[2] >= 0`) are NaN-culled.
79
- */
80
- declare function createGlyphcssFirstPersonCamera(opts?: GlyphcssFirstPersonCameraOptions): GlyphcssFirstPersonCameraHandle;
81
-
82
- /**
83
- * Triangle type for the glyphcss rasterizer. Unlike polycss-core's TextureTriangle,
84
- * `uvs` is optional — the ASCII rasterizer never samples UV texture coordinates.
85
- */
86
- interface GlyphcssTriangle {
87
- vertices: [Vec3, Vec3, Vec3];
88
- uvs?: [Vec2, Vec2, Vec2];
89
- color?: string;
90
- }
91
- /** Directional light — single distant source for the ASCII rasterizer. */
92
- interface GlyphcssDirectionalLight {
93
- direction: Vec3;
94
- intensity?: number;
95
- /** Hex color (#rrggbb). Tints the lit-side per-cell output. Default white. */
96
- color?: string;
97
- }
98
- /** Ambient light — uniform fill regardless of orientation. */
99
- interface GlyphcssAmbientLight {
100
- intensity?: number;
101
- /** Hex color (#rrggbb). Tints the unlit-side fill. Default white. */
102
- color?: string;
103
- }
104
- interface GlyphcssMeshTransform {
105
- position?: Vec3;
106
- scale?: number | Vec3;
107
- rotation?: Vec3;
108
- }
109
-
110
- /**
111
- * createGlyphcssScene — imperative scene API. The vanilla counterpart to
112
- * `<glyphcss-scene>` custom element.
113
- *
114
- * Mirrors polycss's `createPolyScene` architecturally:
115
- * - Takes a host element + scene options, returns a `GlyphcssSceneHandle`.
116
- * - `handle.add(triangles, transform?)` registers a mesh and returns a
117
- * removable `GlyphcssMeshHandle`.
118
- *
119
- * DOM: injects `<div class="glyphcss-scene">` containing one `<pre>` (text
120
- * output) and one `<div class="glyphcss-hotspot-layer">` (positioned overlay
121
- * for hotspot dots).
122
- *
123
- * Paint backend: on each render, walks all registered meshes, applies each
124
- * mesh's transform to its triangles in memory, builds a `RasterizeContext`,
125
- * calls `rasterize`, and sets `<pre>.innerHTML` (or `.textContent` when
126
- * `useColors` is false).
127
- *
128
- * Camera changes trigger a re-rasterize; scene-root transform is NOT a CSS
129
- * matrix3d — the ASCII output bakes the camera rotation into the projected
130
- * text every render.
131
- */
132
-
133
- interface GlyphcssSceneOptions {
134
- /** Render mode: "wireframe" | "solid". Default "solid". */
135
- mode?: RenderMode;
136
- /** Named glyph palette. Defaults to "default". */
137
- glyphPalette?: string;
138
- /** Whether to emit color spans. Default true. */
139
- useColors?: boolean;
140
- /** Grid columns. Default 80. */
141
- cols?: number;
142
- /** Grid rows. Default 24. */
143
- rows?: number;
144
- /** Character cell aspect ratio (height/width). Default 2.0. */
145
- cellAspect?: number;
146
- directionalLight?: GlyphcssDirectionalLight;
147
- ambientLight?: GlyphcssAmbientLight;
148
- camera?: GlyphcssCamera;
149
- }
150
- interface GlyphcssHotspotOptions {
151
- id: string;
152
- at: Vec3;
153
- size?: [number, number];
154
- }
155
- interface GlyphcssHotspotHandle {
156
- remove(): void;
157
- }
158
- interface GlyphcssMeshHandle {
159
- readonly id: number;
160
- /** The raw triangles registered with this mesh. */
161
- readonly triangles: GlyphcssTriangle[];
162
- setTransform(transform: GlyphcssMeshTransform): void;
163
- dispose(): void;
164
- }
165
- interface GlyphcssSceneHandle {
166
- /** The host element passed to `createGlyphcssScene`. */
167
- readonly host: HTMLElement;
168
- /** The `<pre>` element for reading rendered text output. */
169
- readonly output: HTMLPreElement;
170
- /** The camera attached to this scene (mutate then call `rerender()`). */
171
- readonly camera: GlyphcssCamera;
172
- /**
173
- * Register a triangle list as a mesh. Optionally supply a transform.
174
- * Returns a handle to update or dispose the mesh.
175
- */
176
- add(triangles: GlyphcssTriangle[], transform?: GlyphcssMeshTransform): GlyphcssMeshHandle;
177
- addHotspot(opts: GlyphcssHotspotOptions, onClick?: () => void): GlyphcssHotspotHandle;
178
- /** Force an immediate re-rasterize. Normally called automatically on add/remove/setOptions. */
179
- rerender(): void;
180
- setOptions(opts: Partial<GlyphcssSceneOptions>): void;
181
- getOptions(): GlyphcssSceneOptions;
182
- destroy(): void;
183
- }
184
- declare function createGlyphcssScene(host: HTMLElement, opts?: GlyphcssSceneOptions): GlyphcssSceneHandle;
185
-
186
- /**
187
- * `<glyphcss-scene>` custom element. Vanilla counterpart to React's future GlyphcssScene.
188
- *
189
- * On `connectedCallback`, instantiates `createGlyphcssScene(this, options)`.
190
- * Children (`<glyphcss-mesh>`) walk up the tree to find this element and call
191
- * `getScene()` to register themselves.
192
- *
193
- * Attribute parsing mirrors `<poly-scene>` conventions.
194
- */
195
-
196
- declare const ELEMENT_BASE$6: typeof HTMLElement;
197
- declare class GlyphcssSceneElement extends ELEMENT_BASE$6 {
198
- static get observedAttributes(): string[];
199
- private _scene;
200
- getScene(): GlyphcssSceneHandle | null;
201
- private _readOptions;
202
- connectedCallback(): void;
203
- disconnectedCallback(): void;
204
- attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
205
- }
206
-
207
- declare const ELEMENT_BASE$5: typeof HTMLElement;
208
- declare class GlyphcssMeshElement extends ELEMENT_BASE$5 {
209
- static get observedAttributes(): string[];
210
- private _handle;
211
- private _loadToken;
212
- getMeshHandle(): GlyphcssMeshHandle | null;
213
- connectedCallback(): void;
214
- disconnectedCallback(): void;
215
- attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
216
- private _readTransform;
217
- private _tearDown;
218
- private _maybeLoad;
219
- }
220
-
221
- declare const ELEMENT_BASE$4: typeof HTMLElement;
222
- declare class GlyphcssHotspotElement extends ELEMENT_BASE$4 {
223
- static get observedAttributes(): string[];
224
- private _handle;
225
- connectedCallback(): void;
226
- disconnectedCallback(): void;
227
- attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
228
- private _register;
229
- }
230
-
231
- declare const ELEMENT_BASE$3: typeof HTMLElement;
232
- declare class GlyphcssPerspectiveCameraElement extends ELEMENT_BASE$3 {
233
- static get observedAttributes(): string[];
234
- connectedCallback(): void;
235
- attributeChangedCallback(_name: string, old: string | null, next: string | null): void;
236
- private _apply;
237
- }
238
-
239
- declare const ELEMENT_BASE$2: typeof HTMLElement;
240
- declare class GlyphcssOrthographicCameraElement extends ELEMENT_BASE$2 {
241
- static get observedAttributes(): string[];
242
- connectedCallback(): void;
243
- attributeChangedCallback(_name: string, old: string | null, next: string | null): void;
244
- private _apply;
245
- }
246
-
247
- declare const ELEMENT_BASE$1: typeof HTMLElement;
248
- declare class GlyphcssOrbitControlsElement extends ELEMENT_BASE$1 {
249
- static get observedAttributes(): string[];
250
- private _controls;
251
- connectedCallback(): void;
252
- disconnectedCallback(): void;
253
- attributeChangedCallback(_name: string, old: string | null, next: string | null): void;
254
- private _readOptions;
255
- private _attach;
256
- }
257
-
258
- declare const ELEMENT_BASE: typeof HTMLElement;
259
- declare class GlyphcssMapControlsElement extends ELEMENT_BASE {
260
- static get observedAttributes(): string[];
261
- private _controls;
262
- connectedCallback(): void;
263
- disconnectedCallback(): void;
264
- attributeChangedCallback(_name: string, old: string | null, next: string | null): void;
265
- private _readOptions;
266
- private _attach;
267
- }
268
-
269
- export { type GlyphcssSceneHandle as G, type GlyphcssCamera as a, type GlyphcssTriangle as b, type GlyphcssDirectionalLight as c, type GlyphcssAmbientLight as d, type GlyphcssFirstPersonCameraHandle as e, type GlyphcssFirstPersonCameraOptions as f, GlyphcssHotspotElement as g, type GlyphcssHotspotHandle as h, type GlyphcssHotspotOptions as i, GlyphcssMapControlsElement as j, GlyphcssMeshElement as k, type GlyphcssMeshHandle as l, type GlyphcssMeshTransform as m, GlyphcssOrbitControlsElement as n, GlyphcssOrthographicCameraElement as o, type GlyphcssOrthographicCameraHandle as p, type GlyphcssOrthographicCameraOptions as q, GlyphcssPerspectiveCameraElement as r, type GlyphcssPerspectiveCameraHandle as s, type GlyphcssPerspectiveCameraOptions as t, GlyphcssSceneElement as u, type GlyphcssSceneOptions as v, createGlyphcssFirstPersonCamera as w, createGlyphcssOrthographicCamera as x, createGlyphcssPerspectiveCamera as y, createGlyphcssScene as z };