@hatiolab/things-scene 10.0.0-beta.80 → 10.0.0-beta.82
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.
- package/dist-types/animation/animations/waypoint.d.ts +45 -4
- package/dist-types/animation/animations/waypoint.d.ts.map +1 -1
- package/dist-types/components/index.d.ts +1 -0
- package/dist-types/components/index.d.ts.map +1 -1
- package/dist-types/components/mixins/gltf-component.d.ts +271 -0
- package/dist-types/components/mixins/gltf-component.d.ts.map +1 -0
- package/dist-types/threed/factories/backdrop.d.ts +525 -0
- package/dist-types/threed/factories/backdrop.d.ts.map +1 -0
- package/dist-types/threed/factories/gltf-object.d.ts +252 -46
- package/dist-types/threed/factories/gltf-object.d.ts.map +1 -1
- package/dist-types/threed/index.d.ts +1 -0
- package/dist-types/threed/index.d.ts.map +1 -1
- package/dist-types/threed/real-object.d.ts +1 -1
- package/dist-types/threed/real-object.d.ts.map +1 -1
- package/dist-types/threed/texture/fillstyle-texture.d.ts +5 -1
- package/dist-types/threed/texture/fillstyle-texture.d.ts.map +1 -1
- package/package.json +1 -1
- package/things-scene-min.js +10 -10
- package/things-scene-min.js.map +1 -1
- package/things-scene.mjs +3 -3
- package/things-scene.mjs.map +1 -1
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
import type { ComponentNature } from '../../interfaces/types.js';
|
|
2
|
+
import type { IRealObject } from '../../interfaces/real-object.js';
|
|
3
|
+
import Shape from '../../components/shape.js';
|
|
4
|
+
import { RealObjectGroup } from '../real-object-group.js';
|
|
5
|
+
export declare class Backdrop3D extends RealObjectGroup {
|
|
6
|
+
/**
|
|
7
|
+
* Pin the envelope's PLAN position (x, z) to world origin when
|
|
8
|
+
* fitToBoard is active, regardless of state.left/top — this puts the
|
|
9
|
+
* box's center at the board's center horizontally. The Y axis is
|
|
10
|
+
* preserved from `super.position` so the scene-level placement
|
|
11
|
+
* (`floor` → +depth/2, `space` → 0, `inverted` → -depth/2 via the
|
|
12
|
+
* base class's `geometricOffsetY`) decides whether the envelope
|
|
13
|
+
* sits ON the floor (bottom at zPos), CENTERED in space, or HANGS
|
|
14
|
+
* from the ceiling (top at zPos).
|
|
15
|
+
*
|
|
16
|
+
* Forcing y=0 here would collapse all three placement modes into
|
|
17
|
+
* "centered" — that's wrong for `floor` and `inverted`.
|
|
18
|
+
*/
|
|
19
|
+
get position(): {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
z: number;
|
|
23
|
+
};
|
|
24
|
+
build(): void;
|
|
25
|
+
private _resolveFace;
|
|
26
|
+
updateDimension(): void;
|
|
27
|
+
onchange(after: Record<string, unknown>, before: Record<string, unknown>): void;
|
|
28
|
+
updateAlpha(): void;
|
|
29
|
+
}
|
|
30
|
+
declare const Backdrop_base: {
|
|
31
|
+
new (...args: any[]): {
|
|
32
|
+
is3dish(): boolean;
|
|
33
|
+
get hasTextProperty(): boolean;
|
|
34
|
+
get capturable(): boolean;
|
|
35
|
+
render(_ctx: CanvasRenderingContext2D): void;
|
|
36
|
+
_app: any;
|
|
37
|
+
_model: any;
|
|
38
|
+
_state: any;
|
|
39
|
+
_delta: any;
|
|
40
|
+
_animation: any;
|
|
41
|
+
_animate: any;
|
|
42
|
+
_parent: any;
|
|
43
|
+
_disposed: any;
|
|
44
|
+
_textHidden: any;
|
|
45
|
+
_text_substitutor: any;
|
|
46
|
+
_value_substitutor: any;
|
|
47
|
+
_mappings: any;
|
|
48
|
+
_realObject: IRealObject | undefined;
|
|
49
|
+
_cachedState: any;
|
|
50
|
+
updatedAt: any;
|
|
51
|
+
fontSize: any;
|
|
52
|
+
__cache__: any;
|
|
53
|
+
created(): void;
|
|
54
|
+
added(parent: any): void;
|
|
55
|
+
removed(parent: any): void;
|
|
56
|
+
ready(): Promise<void>;
|
|
57
|
+
touch(): void;
|
|
58
|
+
clearCache(...attrs: any[]): void;
|
|
59
|
+
removeSelf(completely: any): void;
|
|
60
|
+
resetAnimation(): void;
|
|
61
|
+
dispose(): void;
|
|
62
|
+
get nature(): ComponentNature;
|
|
63
|
+
get disposed(): boolean;
|
|
64
|
+
isLayer(): boolean;
|
|
65
|
+
isGroup(): boolean;
|
|
66
|
+
isContainer(): this is import("../../types/component.js").Container;
|
|
67
|
+
isLine(): boolean;
|
|
68
|
+
isRoot(): boolean;
|
|
69
|
+
isRootModel(): boolean;
|
|
70
|
+
get is3dMode(): boolean;
|
|
71
|
+
isIn3DSpace(): boolean;
|
|
72
|
+
isTemplate(): boolean;
|
|
73
|
+
isHTMLElement(): boolean;
|
|
74
|
+
isConnectable(): boolean;
|
|
75
|
+
isIdentifiable(): boolean;
|
|
76
|
+
isPositionable(): boolean;
|
|
77
|
+
replaceRefids(replaceMap: any): void;
|
|
78
|
+
get(property: any): any;
|
|
79
|
+
set(props: any, propval?: any): any;
|
|
80
|
+
getState(property: any): any;
|
|
81
|
+
setState(props: any, propval?: any): any;
|
|
82
|
+
get model(): any;
|
|
83
|
+
get state(): any;
|
|
84
|
+
get hierarchy(): any;
|
|
85
|
+
get volatile(): never[];
|
|
86
|
+
_applyProps(target: any, props: any, options: any): /*elided*/ any;
|
|
87
|
+
contains(x: number, y: number): boolean;
|
|
88
|
+
move(offset: {
|
|
89
|
+
x: number;
|
|
90
|
+
y: number;
|
|
91
|
+
}, ...args: boolean[]): void;
|
|
92
|
+
symmetryX(x?: number): void;
|
|
93
|
+
symmetryY(y: number): void;
|
|
94
|
+
adjustResize(bounds: import("../../index.js").BOUNDS, origin_bounds: import("../../index.js").BOUNDS, diagonal: boolean): {
|
|
95
|
+
left: any;
|
|
96
|
+
top: any;
|
|
97
|
+
width: any;
|
|
98
|
+
height: any;
|
|
99
|
+
};
|
|
100
|
+
adjustRotation(rotation: number, step: boolean): number;
|
|
101
|
+
outline(progress: number): any;
|
|
102
|
+
get bounds(): import("../../index.js").BOUNDS;
|
|
103
|
+
set bounds(b: import("../../index.js").BOUNDS);
|
|
104
|
+
get center(): import("../../index.js").POINT;
|
|
105
|
+
set center(p: import("../../index.js").POINT);
|
|
106
|
+
get location(): import("../../index.js").POINT;
|
|
107
|
+
set location(l: import("../../index.js").POINT);
|
|
108
|
+
get rotate(): import("../../index.js").POINT;
|
|
109
|
+
set rotate(r: import("../../index.js").POINT);
|
|
110
|
+
get dimension(): import("../../index.js").DIMENSION;
|
|
111
|
+
set dimension(d: import("../../index.js").DIMENSION);
|
|
112
|
+
get path(): import("../../index.js").POINT[];
|
|
113
|
+
set path(p: import("../../index.js").POINT[]);
|
|
114
|
+
get drawPath(): import("../../index.js").POINT[];
|
|
115
|
+
get rotatePoint(): import("../../index.js").POINT;
|
|
116
|
+
get mutable(): boolean;
|
|
117
|
+
get resizable(): boolean;
|
|
118
|
+
get rotatable(): boolean;
|
|
119
|
+
buildRealObject(): IRealObject | undefined;
|
|
120
|
+
get realObject(): IRealObject | undefined;
|
|
121
|
+
draw(context?: import("../../index.js").SceneRenderContext): void;
|
|
122
|
+
prerender(context: import("../../index.js").SceneRenderContext): void;
|
|
123
|
+
postrender(context: import("../../index.js").SceneRenderContext): void;
|
|
124
|
+
prepare(resolve: (component: import("../../index.js").Component) => void, reject: (reason: any) => void): void;
|
|
125
|
+
prepareIf(condition: boolean): void;
|
|
126
|
+
drawText(context: import("../../index.js").SceneRenderContext): void;
|
|
127
|
+
drawStroke(context: import("../../index.js").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
128
|
+
drawFill(context: import("../../index.js").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
129
|
+
get strokeStyle(): any;
|
|
130
|
+
set strokeStyle(v: any);
|
|
131
|
+
get fillStyle(): any;
|
|
132
|
+
set fillStyle(v: any);
|
|
133
|
+
get fontColor(): string;
|
|
134
|
+
set fontColor(v: string);
|
|
135
|
+
get rotation(): number;
|
|
136
|
+
set rotation(v: number);
|
|
137
|
+
get decorators(): string[];
|
|
138
|
+
get decotag(): string;
|
|
139
|
+
get hidden(): boolean;
|
|
140
|
+
set hidden(v: boolean);
|
|
141
|
+
get tag(): string;
|
|
142
|
+
set tag(v: string);
|
|
143
|
+
get appendum(): any;
|
|
144
|
+
set appendum(v: any);
|
|
145
|
+
defaultTextSubstitutor(): string;
|
|
146
|
+
textLines(context?: import("../../index.js").SceneRenderContext): any[][];
|
|
147
|
+
get font(): string;
|
|
148
|
+
get lineHeight(): number;
|
|
149
|
+
get textSubstitutor(): () => string;
|
|
150
|
+
get text(): string;
|
|
151
|
+
set text(v: string);
|
|
152
|
+
get textBounds(): import("../../index.js").BOUNDS;
|
|
153
|
+
get textRotation(): number;
|
|
154
|
+
get textHidden(): boolean;
|
|
155
|
+
set textHidden(v: boolean);
|
|
156
|
+
animate(opts: import("../../index.js").AnimationConfig): any;
|
|
157
|
+
effect(context: import("../../index.js").SceneRenderContext, model: any): void;
|
|
158
|
+
serialize(...others: any[]): string;
|
|
159
|
+
trim(): void;
|
|
160
|
+
closeScene(data: any): void;
|
|
161
|
+
delta(attr?: string | object, value?: any): any;
|
|
162
|
+
invalidate(): void;
|
|
163
|
+
get value(): any;
|
|
164
|
+
set value(v: any);
|
|
165
|
+
get data(): any;
|
|
166
|
+
set data(v: any);
|
|
167
|
+
set tap(v: any);
|
|
168
|
+
get mappings(): any[];
|
|
169
|
+
get retention(): number;
|
|
170
|
+
get animation(): import("../../index.js").AnimationController | undefined;
|
|
171
|
+
get started(): boolean;
|
|
172
|
+
set started(v: boolean);
|
|
173
|
+
get controls(): import("../../index.js").Control[] | undefined;
|
|
174
|
+
findFirst(finder: string | ((c: import("../../index.js").Component) => boolean), ...others: any[]): import("../../index.js").Component | undefined;
|
|
175
|
+
findAll(s: string | ((c: import("../../index.js").Component) => boolean), ...others: any[]): any[] | undefined;
|
|
176
|
+
capture(x: number, y: number, except?: (c: import("../../index.js").Component) => boolean): any;
|
|
177
|
+
findAnchor(name: string): any;
|
|
178
|
+
isDescendible(container: import("../../index.js").Component): boolean;
|
|
179
|
+
getContext(component?: unknown): any;
|
|
180
|
+
get root(): import("../../index.js").Component;
|
|
181
|
+
get rootModel(): import("../../index.js").Component;
|
|
182
|
+
get parent(): import("../../index.js").Component;
|
|
183
|
+
set parent(v: import("../../index.js").Component);
|
|
184
|
+
get anchors(): import("../../index.js").Anchor[];
|
|
185
|
+
get scalable(): boolean;
|
|
186
|
+
get stuck(): boolean;
|
|
187
|
+
get position(): string;
|
|
188
|
+
get origin(): string;
|
|
189
|
+
get offset(): import("../../index.js").POINT;
|
|
190
|
+
get app(): import("../../index.js").ApplicationContext;
|
|
191
|
+
drawEffect(context: import("../../index.js").SceneRenderContext): void;
|
|
192
|
+
prepareFill(resolve: Function, reject: Function): void;
|
|
193
|
+
prepareFillIf(condition: boolean): void;
|
|
194
|
+
onchangeFill(after: Record<string, any>, before: Record<string, any>): void;
|
|
195
|
+
drawImage(context: import("../../index.js").SceneRenderContext, image: HTMLImageElement, left: number, top: number, width: number, height: number): void;
|
|
196
|
+
mutateBounds(logic: ((bounds: import("../../index.js").BOUNDS) => import("../../index.js").BOUNDS | void) | null, context?: any): void;
|
|
197
|
+
mutatePath(beforeLogic: ((path: import("../../index.js").POINT[]) => import("../../index.js").POINT[] | void) | null, afterLogic: ((path: import("../../index.js").POINT[]) => import("../../index.js").POINT[] | void) | null, context?: any): void;
|
|
198
|
+
access(accessor: string): any;
|
|
199
|
+
substitute(template: string, data: any): string | undefined;
|
|
200
|
+
onchangeMappings(after: Record<string, any>, before: Record<string, any>): void;
|
|
201
|
+
onchangeData(after: Record<string, any>, before: Record<string, any>): void;
|
|
202
|
+
buildMappings(): void;
|
|
203
|
+
executeMappings(force?: boolean): void;
|
|
204
|
+
disposeMappings(): void;
|
|
205
|
+
ondropfile(transfered: FileList, files: string[]): void;
|
|
206
|
+
transcoordS2P(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
207
|
+
transcoordP2S(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
208
|
+
transcoordS2T(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
209
|
+
transcoordT2P(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
210
|
+
transcoordT2S(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
211
|
+
transcoordS2TR(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
212
|
+
transcoordS2O(x: number, y: number, target: import("../../index.js").Component): import("../../index.js").POINT;
|
|
213
|
+
transcoordC2S(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
214
|
+
transcoordS2C(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
215
|
+
toParent(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
216
|
+
fromParent(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
217
|
+
toScene(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
218
|
+
fromScene(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
219
|
+
toLocal(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
220
|
+
toGlobal(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
221
|
+
toOther(x: number, y: number, target: import("../../index.js").Component): import("../../index.js").POINT;
|
|
222
|
+
on(name: string | object, callback: Function, context?: any): /*elided*/ any;
|
|
223
|
+
off(name?: string | object, callback?: Function, context?: any): /*elided*/ any;
|
|
224
|
+
once(name: string | object, callback: Function, context?: any): /*elided*/ any;
|
|
225
|
+
trigger(name: string, ...args: any[]): /*elided*/ any;
|
|
226
|
+
delegate_on(delegator: any): /*elided*/ any;
|
|
227
|
+
delegate_off(delegator: any): /*elided*/ any;
|
|
228
|
+
onchange(after: Record<string, any>, before: Record<string, any>): void;
|
|
229
|
+
calculateBounds?(): void;
|
|
230
|
+
oncreate_element?(element: HTMLElement): void;
|
|
231
|
+
removeComponent(component: import("../../index.js").Component, ghost?: boolean): void;
|
|
232
|
+
addComponent(component: import("../../index.js").Component, ghost?: boolean): void;
|
|
233
|
+
insertComponentAt(component: import("../../index.js").Component, index: number, ghost?: boolean): void;
|
|
234
|
+
getOverlay(component: import("../../index.js").Component): HTMLElement | undefined;
|
|
235
|
+
findById(id: string): import("../../index.js").Component | undefined;
|
|
236
|
+
findByRefid(ref: string | number): import("../../index.js").Component | undefined;
|
|
237
|
+
findAllById(id: string): import("../../index.js").Component[];
|
|
238
|
+
resize(): void;
|
|
239
|
+
fit(type?: string): void;
|
|
240
|
+
get components(): import("../../index.js").Component[] | undefined;
|
|
241
|
+
get layout(): any;
|
|
242
|
+
get auxOverlay(): HTMLElement | undefined;
|
|
243
|
+
get isReady(): boolean;
|
|
244
|
+
get unitScale(): number;
|
|
245
|
+
get selected(): import("../../index.js").Component[];
|
|
246
|
+
set selected(_v: import("../../index.js").Component[]);
|
|
247
|
+
get focused(): import("../../index.js").Component | null;
|
|
248
|
+
set focused(_v: import("../../index.js").Component | null);
|
|
249
|
+
get hasSameParentForAllSelected(): boolean;
|
|
250
|
+
set hasSameParentForAllSelected(_v: boolean);
|
|
251
|
+
get fitMode(): string | undefined;
|
|
252
|
+
set fitMode(_v: string | undefined);
|
|
253
|
+
get element(): HTMLElement | null;
|
|
254
|
+
set element(_v: HTMLElement | null);
|
|
255
|
+
};
|
|
256
|
+
raycastTargetDefault: boolean;
|
|
257
|
+
} & {
|
|
258
|
+
new (...args: any[]): {
|
|
259
|
+
contains(x: number, y: number): boolean;
|
|
260
|
+
get path(): {
|
|
261
|
+
x: any;
|
|
262
|
+
y: any;
|
|
263
|
+
}[];
|
|
264
|
+
set path(path: {
|
|
265
|
+
x: any;
|
|
266
|
+
y: any;
|
|
267
|
+
}[]);
|
|
268
|
+
get anchors(): {
|
|
269
|
+
name: string;
|
|
270
|
+
position: {
|
|
271
|
+
x: any;
|
|
272
|
+
y: any;
|
|
273
|
+
};
|
|
274
|
+
}[];
|
|
275
|
+
get bounds(): any;
|
|
276
|
+
set bounds(bounds: any);
|
|
277
|
+
render(ctx: CanvasRenderingContext2D): void;
|
|
278
|
+
_app: any;
|
|
279
|
+
_model: any;
|
|
280
|
+
_state: any;
|
|
281
|
+
_delta: any;
|
|
282
|
+
_animation: any;
|
|
283
|
+
_animate: any;
|
|
284
|
+
_parent: any;
|
|
285
|
+
_disposed: any;
|
|
286
|
+
_textHidden: any;
|
|
287
|
+
_text_substitutor: any;
|
|
288
|
+
_value_substitutor: any;
|
|
289
|
+
_mappings: any;
|
|
290
|
+
_realObject: IRealObject | undefined;
|
|
291
|
+
_cachedState: any;
|
|
292
|
+
updatedAt: any;
|
|
293
|
+
fontSize: any;
|
|
294
|
+
__cache__: any;
|
|
295
|
+
created(): void;
|
|
296
|
+
added(parent: any): void;
|
|
297
|
+
removed(parent: any): void;
|
|
298
|
+
ready(): Promise<void>;
|
|
299
|
+
touch(): void;
|
|
300
|
+
clearCache(...attrs: any[]): void;
|
|
301
|
+
removeSelf(completely: any): void;
|
|
302
|
+
resetAnimation(): void;
|
|
303
|
+
dispose(): void;
|
|
304
|
+
get nature(): ComponentNature;
|
|
305
|
+
get disposed(): boolean;
|
|
306
|
+
isLayer(): boolean;
|
|
307
|
+
isGroup(): boolean;
|
|
308
|
+
isContainer(): this is import("../../types/component.js").Container;
|
|
309
|
+
isLine(): boolean;
|
|
310
|
+
isRoot(): boolean;
|
|
311
|
+
isRootModel(): boolean;
|
|
312
|
+
is3dish(): boolean;
|
|
313
|
+
get is3dMode(): boolean;
|
|
314
|
+
isIn3DSpace(): boolean;
|
|
315
|
+
isTemplate(): boolean;
|
|
316
|
+
isHTMLElement(): boolean;
|
|
317
|
+
isConnectable(): boolean;
|
|
318
|
+
isIdentifiable(): boolean;
|
|
319
|
+
isPositionable(): boolean;
|
|
320
|
+
replaceRefids(replaceMap: any): void;
|
|
321
|
+
get(property: any): any;
|
|
322
|
+
set(props: any, propval?: any): any;
|
|
323
|
+
getState(property: any): any;
|
|
324
|
+
setState(props: any, propval?: any): any;
|
|
325
|
+
get model(): any;
|
|
326
|
+
get state(): any;
|
|
327
|
+
get hierarchy(): any;
|
|
328
|
+
get volatile(): never[];
|
|
329
|
+
_applyProps(target: any, props: any, options: any): /*elided*/ any;
|
|
330
|
+
move(offset: {
|
|
331
|
+
x: number;
|
|
332
|
+
y: number;
|
|
333
|
+
}, ...args: boolean[]): void;
|
|
334
|
+
symmetryX(x?: number): void;
|
|
335
|
+
symmetryY(y: number): void;
|
|
336
|
+
adjustResize(bounds: import("../../index.js").BOUNDS, origin_bounds: import("../../index.js").BOUNDS, diagonal: boolean): {
|
|
337
|
+
left: any;
|
|
338
|
+
top: any;
|
|
339
|
+
width: any;
|
|
340
|
+
height: any;
|
|
341
|
+
};
|
|
342
|
+
adjustRotation(rotation: number, step: boolean): number;
|
|
343
|
+
outline(progress: number): any;
|
|
344
|
+
get center(): import("../../index.js").POINT;
|
|
345
|
+
set center(p: import("../../index.js").POINT);
|
|
346
|
+
get location(): import("../../index.js").POINT;
|
|
347
|
+
set location(l: import("../../index.js").POINT);
|
|
348
|
+
get rotate(): import("../../index.js").POINT;
|
|
349
|
+
set rotate(r: import("../../index.js").POINT);
|
|
350
|
+
get dimension(): import("../../index.js").DIMENSION;
|
|
351
|
+
set dimension(d: import("../../index.js").DIMENSION);
|
|
352
|
+
get drawPath(): import("../../index.js").POINT[];
|
|
353
|
+
get rotatePoint(): import("../../index.js").POINT;
|
|
354
|
+
get mutable(): boolean;
|
|
355
|
+
get resizable(): boolean;
|
|
356
|
+
get rotatable(): boolean;
|
|
357
|
+
buildRealObject(): IRealObject | undefined;
|
|
358
|
+
get realObject(): IRealObject | undefined;
|
|
359
|
+
draw(context?: import("../../index.js").SceneRenderContext): void;
|
|
360
|
+
prerender(context: import("../../index.js").SceneRenderContext): void;
|
|
361
|
+
postrender(context: import("../../index.js").SceneRenderContext): void;
|
|
362
|
+
prepare(resolve: (component: import("../../index.js").Component) => void, reject: (reason: any) => void): void;
|
|
363
|
+
prepareIf(condition: boolean): void;
|
|
364
|
+
drawText(context: import("../../index.js").SceneRenderContext): void;
|
|
365
|
+
drawStroke(context: import("../../index.js").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
366
|
+
drawFill(context: import("../../index.js").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
367
|
+
get strokeStyle(): any;
|
|
368
|
+
set strokeStyle(v: any);
|
|
369
|
+
get fillStyle(): any;
|
|
370
|
+
set fillStyle(v: any);
|
|
371
|
+
get fontColor(): string;
|
|
372
|
+
set fontColor(v: string);
|
|
373
|
+
get rotation(): number;
|
|
374
|
+
set rotation(v: number);
|
|
375
|
+
get decorators(): string[];
|
|
376
|
+
get decotag(): string;
|
|
377
|
+
get hidden(): boolean;
|
|
378
|
+
set hidden(v: boolean);
|
|
379
|
+
get tag(): string;
|
|
380
|
+
set tag(v: string);
|
|
381
|
+
get appendum(): any;
|
|
382
|
+
set appendum(v: any);
|
|
383
|
+
defaultTextSubstitutor(): string;
|
|
384
|
+
textLines(context?: import("../../index.js").SceneRenderContext): any[][];
|
|
385
|
+
get font(): string;
|
|
386
|
+
get lineHeight(): number;
|
|
387
|
+
get textSubstitutor(): () => string;
|
|
388
|
+
get text(): string;
|
|
389
|
+
set text(v: string);
|
|
390
|
+
get textBounds(): import("../../index.js").BOUNDS;
|
|
391
|
+
get textRotation(): number;
|
|
392
|
+
get textHidden(): boolean;
|
|
393
|
+
set textHidden(v: boolean);
|
|
394
|
+
get hasTextProperty(): boolean;
|
|
395
|
+
animate(opts: import("../../index.js").AnimationConfig): any;
|
|
396
|
+
effect(context: import("../../index.js").SceneRenderContext, model: any): void;
|
|
397
|
+
serialize(...others: any[]): string;
|
|
398
|
+
trim(): void;
|
|
399
|
+
closeScene(data: any): void;
|
|
400
|
+
delta(attr?: string | object, value?: any): any;
|
|
401
|
+
invalidate(): void;
|
|
402
|
+
get value(): any;
|
|
403
|
+
set value(v: any);
|
|
404
|
+
get data(): any;
|
|
405
|
+
set data(v: any);
|
|
406
|
+
set tap(v: any);
|
|
407
|
+
get mappings(): any[];
|
|
408
|
+
get retention(): number;
|
|
409
|
+
get animation(): import("../../index.js").AnimationController | undefined;
|
|
410
|
+
get started(): boolean;
|
|
411
|
+
set started(v: boolean);
|
|
412
|
+
get controls(): import("../../index.js").Control[] | undefined;
|
|
413
|
+
findFirst(finder: string | ((c: import("../../index.js").Component) => boolean), ...others: any[]): import("../../index.js").Component | undefined;
|
|
414
|
+
findAll(s: string | ((c: import("../../index.js").Component) => boolean), ...others: any[]): any[] | undefined;
|
|
415
|
+
capture(x: number, y: number, except?: (c: import("../../index.js").Component) => boolean): any;
|
|
416
|
+
findAnchor(name: string): any;
|
|
417
|
+
isDescendible(container: import("../../index.js").Component): boolean;
|
|
418
|
+
getContext(component?: unknown): any;
|
|
419
|
+
get root(): import("../../index.js").Component;
|
|
420
|
+
get rootModel(): import("../../index.js").Component;
|
|
421
|
+
get parent(): import("../../index.js").Component;
|
|
422
|
+
set parent(v: import("../../index.js").Component);
|
|
423
|
+
get scalable(): boolean;
|
|
424
|
+
get stuck(): boolean;
|
|
425
|
+
get capturable(): boolean;
|
|
426
|
+
get position(): string;
|
|
427
|
+
get origin(): string;
|
|
428
|
+
get offset(): import("../../index.js").POINT;
|
|
429
|
+
get app(): import("../../index.js").ApplicationContext;
|
|
430
|
+
drawEffect(context: import("../../index.js").SceneRenderContext): void;
|
|
431
|
+
prepareFill(resolve: Function, reject: Function): void;
|
|
432
|
+
prepareFillIf(condition: boolean): void;
|
|
433
|
+
onchangeFill(after: Record<string, any>, before: Record<string, any>): void;
|
|
434
|
+
drawImage(context: import("../../index.js").SceneRenderContext, image: HTMLImageElement, left: number, top: number, width: number, height: number): void;
|
|
435
|
+
mutateBounds(logic: ((bounds: import("../../index.js").BOUNDS) => import("../../index.js").BOUNDS | void) | null, context?: any): void;
|
|
436
|
+
mutatePath(beforeLogic: ((path: import("../../index.js").POINT[]) => import("../../index.js").POINT[] | void) | null, afterLogic: ((path: import("../../index.js").POINT[]) => import("../../index.js").POINT[] | void) | null, context?: any): void;
|
|
437
|
+
access(accessor: string): any;
|
|
438
|
+
substitute(template: string, data: any): string | undefined;
|
|
439
|
+
onchangeMappings(after: Record<string, any>, before: Record<string, any>): void;
|
|
440
|
+
onchangeData(after: Record<string, any>, before: Record<string, any>): void;
|
|
441
|
+
buildMappings(): void;
|
|
442
|
+
executeMappings(force?: boolean): void;
|
|
443
|
+
disposeMappings(): void;
|
|
444
|
+
ondropfile(transfered: FileList, files: string[]): void;
|
|
445
|
+
transcoordS2P(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
446
|
+
transcoordP2S(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
447
|
+
transcoordS2T(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
448
|
+
transcoordT2P(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
449
|
+
transcoordT2S(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
450
|
+
transcoordS2TR(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
451
|
+
transcoordS2O(x: number, y: number, target: import("../../index.js").Component): import("../../index.js").POINT;
|
|
452
|
+
transcoordC2S(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
453
|
+
transcoordS2C(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
454
|
+
toParent(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
455
|
+
fromParent(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
456
|
+
toScene(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
457
|
+
fromScene(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
458
|
+
toLocal(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
459
|
+
toGlobal(x: number, y: number, top?: import("../../index.js").Component): import("../../index.js").POINT;
|
|
460
|
+
toOther(x: number, y: number, target: import("../../index.js").Component): import("../../index.js").POINT;
|
|
461
|
+
on(name: string | object, callback: Function, context?: any): /*elided*/ any;
|
|
462
|
+
off(name?: string | object, callback?: Function, context?: any): /*elided*/ any;
|
|
463
|
+
once(name: string | object, callback: Function, context?: any): /*elided*/ any;
|
|
464
|
+
trigger(name: string, ...args: any[]): /*elided*/ any;
|
|
465
|
+
delegate_on(delegator: any): /*elided*/ any;
|
|
466
|
+
delegate_off(delegator: any): /*elided*/ any;
|
|
467
|
+
onchange(after: Record<string, any>, before: Record<string, any>): void;
|
|
468
|
+
calculateBounds?(): void;
|
|
469
|
+
oncreate_element?(element: HTMLElement): void;
|
|
470
|
+
removeComponent(component: import("../../index.js").Component, ghost?: boolean): void;
|
|
471
|
+
addComponent(component: import("../../index.js").Component, ghost?: boolean): void;
|
|
472
|
+
insertComponentAt(component: import("../../index.js").Component, index: number, ghost?: boolean): void;
|
|
473
|
+
getOverlay(component: import("../../index.js").Component): HTMLElement | undefined;
|
|
474
|
+
findById(id: string): import("../../index.js").Component | undefined;
|
|
475
|
+
findByRefid(ref: string | number): import("../../index.js").Component | undefined;
|
|
476
|
+
findAllById(id: string): import("../../index.js").Component[];
|
|
477
|
+
resize(): void;
|
|
478
|
+
fit(type?: string): void;
|
|
479
|
+
get components(): import("../../index.js").Component[] | undefined;
|
|
480
|
+
get layout(): any;
|
|
481
|
+
get auxOverlay(): HTMLElement | undefined;
|
|
482
|
+
get isReady(): boolean;
|
|
483
|
+
get unitScale(): number;
|
|
484
|
+
get selected(): import("../../index.js").Component[];
|
|
485
|
+
set selected(_v: import("../../index.js").Component[]);
|
|
486
|
+
get focused(): import("../../index.js").Component | null;
|
|
487
|
+
set focused(_v: import("../../index.js").Component | null);
|
|
488
|
+
get hasSameParentForAllSelected(): boolean;
|
|
489
|
+
set hasSameParentForAllSelected(_v: boolean);
|
|
490
|
+
get fitMode(): string | undefined;
|
|
491
|
+
set fitMode(_v: string | undefined);
|
|
492
|
+
get element(): HTMLElement | null;
|
|
493
|
+
set element(_v: HTMLElement | null);
|
|
494
|
+
};
|
|
495
|
+
} & typeof Shape;
|
|
496
|
+
export declare class Backdrop extends Backdrop_base {
|
|
497
|
+
/** Bound listener for root model state changes (only attached when
|
|
498
|
+
* state.fitToBoard is true). Rebuilds the 3D mesh on board resize. */
|
|
499
|
+
private _onRootChange?;
|
|
500
|
+
buildRealObject(): IRealObject | undefined;
|
|
501
|
+
get nature(): ComponentNature;
|
|
502
|
+
added(parent: any): void;
|
|
503
|
+
ready(): Promise<void>;
|
|
504
|
+
removed(parent: any): void;
|
|
505
|
+
dispose(): void;
|
|
506
|
+
onchange(after: Record<string, unknown>, before: Record<string, unknown>): void;
|
|
507
|
+
/**
|
|
508
|
+
* Copy the root model's plan geometry (left, top, width, height) onto
|
|
509
|
+
* this backdrop.
|
|
510
|
+
*
|
|
511
|
+
* `seedDepth`:
|
|
512
|
+
* - `true` (creation / fitToBoard OFF→ON) — also set depth =
|
|
513
|
+
* min(width, height) as a sensible initial vertical extent.
|
|
514
|
+
* - `false` (board resize) — leave depth alone. The user's manual
|
|
515
|
+
* depth edits via the property panel must stick; routine resize
|
|
516
|
+
* syncs shouldn't trample them.
|
|
517
|
+
*
|
|
518
|
+
* Skips fields that already match to avoid empty onchange round-trips.
|
|
519
|
+
*/
|
|
520
|
+
private _syncFromRoot;
|
|
521
|
+
private _attachRootListener;
|
|
522
|
+
private _detachRootListener;
|
|
523
|
+
}
|
|
524
|
+
export {};
|
|
525
|
+
//# sourceMappingURL=backdrop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backdrop.d.ts","sourceRoot":"","sources":["../../../src/threed/factories/backdrop.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,KAAK,MAAM,2BAA2B,CAAA;AAK7C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAgHzD,qBAAa,UAAW,SAAQ,eAAe;IAC7C;;;;;;;;;;;;OAYG;IACH,IAAa,QAAQ;;;;MAMpB;IAQD,KAAK;IAoFL,OAAO,CAAC,YAAY;IAqBpB,eAAe;IAEf,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IASxE,WAAW;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcD,qBACa,QAAS,SAAQ,aAA2B;IACvD;2EACuE;IACvE,OAAO,CAAC,aAAa,CAAC,CAAsC;IAE5D,eAAe,IAAI,WAAW,GAAG,SAAS;IAI1C,IAAI,MAAM,IAAI,eAAe,CAE5B;IAED,KAAK,CAAC,MAAM,EAAE,GAAG;IAgBX,KAAK;IAOX,OAAO,CAAC,MAAM,EAAE,GAAG;IAKnB,OAAO;IAKP,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAYxE;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,aAAa;IAqBrB,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,mBAAmB;CAM5B"}
|