@operato/scene-progressbar 9.1.1 → 10.0.0-beta.14

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,8 +1,471 @@
1
- import { ComponentNature, Shape } from '@hatiolab/things-scene';
1
+ import { Component, ComponentNature, Shape } from '@hatiolab/things-scene';
2
2
  declare const ProgressHorizontal_base: (new (...args: any[]) => {
3
- value: number;
4
- animValue: number;
5
- animOnValueChange(value: number, animFromBase: boolean, base: number): void;
3
+ _lastValue: number;
4
+ _anim_alpha: number;
5
+ _value_substitutor: any;
6
+ animOnValueChange(value: any, animFromBase: boolean | undefined, base: any): void;
7
+ dispose(): void;
8
+ onchange(after: any, before: any): void;
9
+ get animAlpha(): number;
10
+ get animValue(): number;
11
+ defaultValueSubstitutor(): any;
12
+ get valueSubstitutor(): any;
13
+ get value(): number;
14
+ set value(value: number): any;
15
+ _app: any;
16
+ _model: any;
17
+ _state: any;
18
+ _delta: any;
19
+ _animation: any;
20
+ _animate: any;
21
+ _parent: any;
22
+ _disposed: any;
23
+ _textHidden: any;
24
+ _text_substitutor: any;
25
+ _mappings: any;
26
+ _realObject: import("@hatiolab/things-scene").IRealObject | undefined;
27
+ _cachedState: any;
28
+ updatedAt: any;
29
+ fontSize: any;
30
+ __cache__: any;
31
+ created(): void;
32
+ added(parent: any): void;
33
+ removed(parent: any): void;
34
+ ready(): Promise<void>;
35
+ touch(): void;
36
+ clearCache(...attrs: any[]): void;
37
+ removeSelf(completely: any): void;
38
+ resetAnimation(): void;
39
+ get nature(): import("@hatiolab/things-scene").ComponentNature;
40
+ get disposed(): boolean;
41
+ isLayer(): boolean;
42
+ isGroup(): boolean;
43
+ isContainer(): this is import("@hatiolab/things-scene/dist-types/types/component").Container;
44
+ isLine(): boolean;
45
+ isRoot(): boolean;
46
+ isRootModel(): boolean;
47
+ is3dish(): boolean;
48
+ get is3dMode(): boolean;
49
+ isIn3DSpace(): boolean;
50
+ isTemplate(): boolean;
51
+ isHTMLElement(): boolean;
52
+ isConnectable(): boolean;
53
+ isIdentifiable(): boolean;
54
+ isPositionable(): boolean;
55
+ replaceRefids(replaceMap: any): void;
56
+ get(property: any): any;
57
+ set(props: any, propval?: any): any;
58
+ getState(property: any): any;
59
+ setState(props: any, propval?: any): any;
60
+ get model(): any;
61
+ get state(): any;
62
+ get hierarchy(): any;
63
+ get volatile(): never[];
64
+ _applyProps(target: any, props: any, options: any): any;
65
+ contains(x: number, y: number): boolean;
66
+ move(offset: {
67
+ x: number;
68
+ y: number;
69
+ }, ...args: boolean[]): void;
70
+ symmetryX(x?: number): void;
71
+ symmetryY(y: number): void;
72
+ adjustResize(bounds: import("@hatiolab/things-scene").BOUNDS, origin_bounds: import("@hatiolab/things-scene").BOUNDS, diagonal: boolean): {
73
+ left: any;
74
+ top: any;
75
+ width: any;
76
+ height: any;
77
+ };
78
+ adjustRotation(rotation: number, step: boolean): number;
79
+ outline(progress: number): any;
80
+ get bounds(): import("@hatiolab/things-scene").BOUNDS;
81
+ set bounds(b: import("@hatiolab/things-scene").BOUNDS): any;
82
+ get center(): import("@hatiolab/things-scene").POINT;
83
+ set center(p: import("@hatiolab/things-scene").POINT): any;
84
+ get location(): import("@hatiolab/things-scene").POINT;
85
+ set location(l: import("@hatiolab/things-scene").POINT): any;
86
+ get rotate(): import("@hatiolab/things-scene").POINT;
87
+ set rotate(r: import("@hatiolab/things-scene").POINT): any;
88
+ get dimension(): import("@hatiolab/things-scene").DIMENSION;
89
+ set dimension(d: import("@hatiolab/things-scene").DIMENSION): any;
90
+ get path(): import("@hatiolab/things-scene").POINT[];
91
+ set path(p: import("@hatiolab/things-scene").POINT[]): any;
92
+ get drawPath(): import("@hatiolab/things-scene").POINT[];
93
+ get rotatePoint(): import("@hatiolab/things-scene").POINT;
94
+ get mutable(): boolean;
95
+ get resizable(): boolean;
96
+ get rotatable(): boolean;
97
+ buildRealObject(): import("@hatiolab/things-scene").IRealObject | undefined;
98
+ get realObject(): import("@hatiolab/things-scene").IRealObject | undefined;
99
+ draw(context?: import("@hatiolab/things-scene").SceneRenderContext): void;
100
+ prerender(context: import("@hatiolab/things-scene").SceneRenderContext): void;
101
+ render(context: import("@hatiolab/things-scene").SceneRenderContext): void;
102
+ postrender(context: import("@hatiolab/things-scene").SceneRenderContext): void;
103
+ prepare(resolve: (component: Component) => void, reject: (reason: any) => void): void;
104
+ prepareIf(condition: boolean): void;
105
+ drawText(context: import("@hatiolab/things-scene").SceneRenderContext): void;
106
+ drawStroke(context: import("@hatiolab/things-scene").SceneRenderContext, override?: Record<string, unknown>): void;
107
+ drawFill(context: import("@hatiolab/things-scene").SceneRenderContext, override?: Record<string, unknown>): void;
108
+ get strokeStyle(): any;
109
+ set strokeStyle(v: any): any;
110
+ get fillStyle(): any;
111
+ set fillStyle(v: any): any;
112
+ get fontColor(): string;
113
+ set fontColor(v: string): any;
114
+ get rotation(): number;
115
+ set rotation(v: number): any;
116
+ get decorators(): string[];
117
+ get decotag(): string;
118
+ get hidden(): boolean;
119
+ set hidden(v: boolean): any;
120
+ get tag(): string;
121
+ set tag(v: string): any;
122
+ get appendum(): any;
123
+ set appendum(v: any): any;
124
+ defaultTextSubstitutor(): string;
125
+ textLines(context?: import("@hatiolab/things-scene").SceneRenderContext): any[][];
126
+ get font(): string;
127
+ get lineHeight(): number;
128
+ get textSubstitutor(): () => string;
129
+ get text(): string;
130
+ set text(v: string): any;
131
+ get textBounds(): import("@hatiolab/things-scene").BOUNDS;
132
+ get textRotation(): number;
133
+ get textHidden(): boolean;
134
+ set textHidden(v: boolean): any;
135
+ get hasTextProperty(): boolean;
136
+ animate(opts: import("@hatiolab/things-scene").AnimationConfig): any;
137
+ effect(context: import("@hatiolab/things-scene").SceneRenderContext, model: any): void;
138
+ serialize(...others: any[]): string;
139
+ trim(): void;
140
+ closeScene(data: any): void;
141
+ delta(attr?: string | object, value?: any): any;
142
+ invalidate(): void;
143
+ get data(): any;
144
+ set data(v: any): any;
145
+ set tap(v: any): any;
146
+ get mappings(): any[];
147
+ get retention(): number;
148
+ get animation(): import("@hatiolab/things-scene").AnimationController | undefined;
149
+ get started(): boolean;
150
+ set started(v: boolean): any;
151
+ get controls(): import("@hatiolab/things-scene").Control[] | undefined;
152
+ findFirst(finder: string | ((c: Component) => boolean), ...others: any[]): Component | undefined;
153
+ findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
154
+ capture(x: number, y: number, except?: (c: Component) => boolean): any;
155
+ findAnchor(name: string): any;
156
+ isDescendible(container: Component): boolean;
157
+ getContext(component?: unknown): any;
158
+ get root(): Component;
159
+ get rootModel(): Component;
160
+ get parent(): Component;
161
+ set parent(v: Component): any;
162
+ get anchors(): import("@hatiolab/things-scene").Anchor[];
163
+ get scalable(): boolean;
164
+ get stuck(): boolean;
165
+ get capturable(): boolean;
166
+ get position(): string;
167
+ get origin(): string;
168
+ get offset(): import("@hatiolab/things-scene").POINT;
169
+ get app(): import("@hatiolab/things-scene").ApplicationContext;
170
+ drawEffect(context: import("@hatiolab/things-scene").SceneRenderContext): void;
171
+ prepareFill(resolve: Function, reject: Function): void;
172
+ prepareFillIf(condition: boolean): void;
173
+ onchangeFill(after: Record<string, any>, before: Record<string, any>): void;
174
+ drawImage(context: import("@hatiolab/things-scene").SceneRenderContext, image: HTMLImageElement, left: number, top: number, width: number, height: number): void;
175
+ mutateBounds(logic: ((bounds: import("@hatiolab/things-scene").BOUNDS) => import("@hatiolab/things-scene").BOUNDS | void) | null, context?: any): void;
176
+ mutatePath(beforeLogic: ((path: import("@hatiolab/things-scene").POINT[]) => import("@hatiolab/things-scene").POINT[] | void) | null, afterLogic: ((path: import("@hatiolab/things-scene").POINT[]) => import("@hatiolab/things-scene").POINT[] | void) | null, context?: any): void;
177
+ access(accessor: string): any;
178
+ substitute(template: string, data: any): string | undefined;
179
+ onchangeMappings(after: Record<string, any>, before: Record<string, any>): void;
180
+ onchangeData(after: Record<string, any>, before: Record<string, any>): void;
181
+ buildMappings(): void;
182
+ executeMappings(force?: boolean): void;
183
+ disposeMappings(): void;
184
+ ondropfile(transfered: FileList, files: string[]): void;
185
+ transcoordS2P(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
186
+ transcoordP2S(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
187
+ transcoordS2T(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
188
+ transcoordT2P(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
189
+ transcoordT2S(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
190
+ transcoordS2TR(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
191
+ transcoordS2O(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
192
+ transcoordC2S(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
193
+ transcoordS2C(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
194
+ toParent(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
195
+ fromParent(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
196
+ toScene(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
197
+ fromScene(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
198
+ toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
199
+ toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
200
+ toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
201
+ on(name: string | object, callback: Function, context?: any): any;
202
+ off(name?: string | object, callback?: Function, context?: any): any;
203
+ once(name: string | object, callback: Function, context?: any): any;
204
+ trigger(name: string, ...args: any[]): any;
205
+ delegate_on(delegator: any): any;
206
+ delegate_off(delegator: any): any;
207
+ calculateBounds?(): void;
208
+ oncreate_element?(element: HTMLElement): void;
209
+ removeComponent(component: Component, ghost?: boolean): void;
210
+ addComponent(component: Component, ghost?: boolean): void;
211
+ insertComponentAt(component: Component, index: number, ghost?: boolean): void;
212
+ getOverlay(component: Component): HTMLElement | undefined;
213
+ findById(id: string): Component | undefined;
214
+ findByRefid(ref: string | number): Component | undefined;
215
+ findAllById(id: string): Component[];
216
+ resize(): void;
217
+ fit(type?: string): void;
218
+ get components(): Component[] | undefined;
219
+ get layout(): any;
220
+ get auxOverlay(): HTMLElement | undefined;
221
+ get isReady(): boolean;
222
+ get unitScale(): number;
223
+ get selected(): Component[];
224
+ set selected(_v: Component[]): any;
225
+ get focused(): Component | null;
226
+ set focused(_v: Component | null): any;
227
+ get hasSameParentForAllSelected(): boolean;
228
+ set hasSameParentForAllSelected(_v: boolean): any;
229
+ get fitMode(): string | undefined;
230
+ set fitMode(_v: string | undefined): any;
231
+ get element(): HTMLElement | null;
232
+ set element(_v: HTMLElement | null): any;
233
+ }) & (new (...args: any[]) => {
234
+ contains(x: number, y: number): boolean;
235
+ get path(): {
236
+ x: any;
237
+ y: any;
238
+ }[];
239
+ set path(path: {
240
+ x: any;
241
+ y: any;
242
+ }[]): any;
243
+ get anchors(): {
244
+ name: string;
245
+ position: {
246
+ x: any;
247
+ y: any;
248
+ };
249
+ }[];
250
+ get bounds(): any;
251
+ set bounds(bounds: any): any;
252
+ render(ctx: CanvasRenderingContext2D): void;
253
+ _app: any;
254
+ _model: any;
255
+ _state: any;
256
+ _delta: any;
257
+ _animation: any;
258
+ _animate: any;
259
+ _parent: any;
260
+ _disposed: any;
261
+ _textHidden: any;
262
+ _text_substitutor: any;
263
+ _value_substitutor: any;
264
+ _mappings: any;
265
+ _realObject: import("@hatiolab/things-scene").IRealObject | undefined;
266
+ _cachedState: any;
267
+ updatedAt: any;
268
+ fontSize: any;
269
+ __cache__: any;
270
+ created(): void;
271
+ added(parent: any): void;
272
+ removed(parent: any): void;
273
+ ready(): Promise<void>;
274
+ touch(): void;
275
+ clearCache(...attrs: any[]): void;
276
+ removeSelf(completely: any): void;
277
+ resetAnimation(): void;
278
+ dispose(): void;
279
+ get nature(): import("@hatiolab/things-scene").ComponentNature;
280
+ get disposed(): boolean;
281
+ isLayer(): boolean;
282
+ isGroup(): boolean;
283
+ isContainer(): this is import("@hatiolab/things-scene/dist-types/types/component").Container;
284
+ isLine(): boolean;
285
+ isRoot(): boolean;
286
+ isRootModel(): boolean;
287
+ is3dish(): boolean;
288
+ get is3dMode(): boolean;
289
+ isIn3DSpace(): boolean;
290
+ isTemplate(): boolean;
291
+ isHTMLElement(): boolean;
292
+ isConnectable(): boolean;
293
+ isIdentifiable(): boolean;
294
+ isPositionable(): boolean;
295
+ replaceRefids(replaceMap: any): void;
296
+ get(property: any): any;
297
+ set(props: any, propval?: any): any;
298
+ getState(property: any): any;
299
+ setState(props: any, propval?: any): any;
300
+ get model(): any;
301
+ get state(): any;
302
+ get hierarchy(): any;
303
+ get volatile(): never[];
304
+ _applyProps(target: any, props: any, options: any): any;
305
+ move(offset: {
306
+ x: number;
307
+ y: number;
308
+ }, ...args: boolean[]): void;
309
+ symmetryX(x?: number): void;
310
+ symmetryY(y: number): void;
311
+ adjustResize(bounds: import("@hatiolab/things-scene").BOUNDS, origin_bounds: import("@hatiolab/things-scene").BOUNDS, diagonal: boolean): {
312
+ left: any;
313
+ top: any;
314
+ width: any;
315
+ height: any;
316
+ };
317
+ adjustRotation(rotation: number, step: boolean): number;
318
+ outline(progress: number): any;
319
+ get center(): import("@hatiolab/things-scene").POINT;
320
+ set center(p: import("@hatiolab/things-scene").POINT): any;
321
+ get location(): import("@hatiolab/things-scene").POINT;
322
+ set location(l: import("@hatiolab/things-scene").POINT): any;
323
+ get rotate(): import("@hatiolab/things-scene").POINT;
324
+ set rotate(r: import("@hatiolab/things-scene").POINT): any;
325
+ get dimension(): import("@hatiolab/things-scene").DIMENSION;
326
+ set dimension(d: import("@hatiolab/things-scene").DIMENSION): any;
327
+ get drawPath(): import("@hatiolab/things-scene").POINT[];
328
+ get rotatePoint(): import("@hatiolab/things-scene").POINT;
329
+ get mutable(): boolean;
330
+ get resizable(): boolean;
331
+ get rotatable(): boolean;
332
+ buildRealObject(): import("@hatiolab/things-scene").IRealObject | undefined;
333
+ get realObject(): import("@hatiolab/things-scene").IRealObject | undefined;
334
+ draw(context?: import("@hatiolab/things-scene").SceneRenderContext): void;
335
+ prerender(context: import("@hatiolab/things-scene").SceneRenderContext): void;
336
+ postrender(context: import("@hatiolab/things-scene").SceneRenderContext): void;
337
+ prepare(resolve: (component: Component) => void, reject: (reason: any) => void): void;
338
+ prepareIf(condition: boolean): void;
339
+ drawText(context: import("@hatiolab/things-scene").SceneRenderContext): void;
340
+ drawStroke(context: import("@hatiolab/things-scene").SceneRenderContext, override?: Record<string, unknown>): void;
341
+ drawFill(context: import("@hatiolab/things-scene").SceneRenderContext, override?: Record<string, unknown>): void;
342
+ get strokeStyle(): any;
343
+ set strokeStyle(v: any): any;
344
+ get fillStyle(): any;
345
+ set fillStyle(v: any): any;
346
+ get fontColor(): string;
347
+ set fontColor(v: string): any;
348
+ get rotation(): number;
349
+ set rotation(v: number): any;
350
+ get decorators(): string[];
351
+ get decotag(): string;
352
+ get hidden(): boolean;
353
+ set hidden(v: boolean): any;
354
+ get tag(): string;
355
+ set tag(v: string): any;
356
+ get appendum(): any;
357
+ set appendum(v: any): any;
358
+ defaultTextSubstitutor(): string;
359
+ textLines(context?: import("@hatiolab/things-scene").SceneRenderContext): any[][];
360
+ get font(): string;
361
+ get lineHeight(): number;
362
+ get textSubstitutor(): () => string;
363
+ get text(): string;
364
+ set text(v: string): any;
365
+ get textBounds(): import("@hatiolab/things-scene").BOUNDS;
366
+ get textRotation(): number;
367
+ get textHidden(): boolean;
368
+ set textHidden(v: boolean): any;
369
+ get hasTextProperty(): boolean;
370
+ animate(opts: import("@hatiolab/things-scene").AnimationConfig): any;
371
+ effect(context: import("@hatiolab/things-scene").SceneRenderContext, model: any): void;
372
+ serialize(...others: any[]): string;
373
+ trim(): void;
374
+ closeScene(data: any): void;
375
+ delta(attr?: string | object, value?: any): any;
376
+ invalidate(): void;
377
+ get value(): any;
378
+ set value(v: any): any;
379
+ get data(): any;
380
+ set data(v: any): any;
381
+ set tap(v: any): any;
382
+ get mappings(): any[];
383
+ get retention(): number;
384
+ get animation(): import("@hatiolab/things-scene").AnimationController | undefined;
385
+ get started(): boolean;
386
+ set started(v: boolean): any;
387
+ get controls(): import("@hatiolab/things-scene").Control[] | undefined;
388
+ findFirst(finder: string | ((c: Component) => boolean), ...others: any[]): Component | undefined;
389
+ findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
390
+ capture(x: number, y: number, except?: (c: Component) => boolean): any;
391
+ findAnchor(name: string): any;
392
+ isDescendible(container: Component): boolean;
393
+ getContext(component?: unknown): any;
394
+ get root(): Component;
395
+ get rootModel(): Component;
396
+ get parent(): Component;
397
+ set parent(v: Component): any;
398
+ get scalable(): boolean;
399
+ get stuck(): boolean;
400
+ get capturable(): boolean;
401
+ get position(): string;
402
+ get origin(): string;
403
+ get offset(): import("@hatiolab/things-scene").POINT;
404
+ get app(): import("@hatiolab/things-scene").ApplicationContext;
405
+ drawEffect(context: import("@hatiolab/things-scene").SceneRenderContext): void;
406
+ prepareFill(resolve: Function, reject: Function): void;
407
+ prepareFillIf(condition: boolean): void;
408
+ onchangeFill(after: Record<string, any>, before: Record<string, any>): void;
409
+ drawImage(context: import("@hatiolab/things-scene").SceneRenderContext, image: HTMLImageElement, left: number, top: number, width: number, height: number): void;
410
+ mutateBounds(logic: ((bounds: import("@hatiolab/things-scene").BOUNDS) => import("@hatiolab/things-scene").BOUNDS | void) | null, context?: any): void;
411
+ mutatePath(beforeLogic: ((path: import("@hatiolab/things-scene").POINT[]) => import("@hatiolab/things-scene").POINT[] | void) | null, afterLogic: ((path: import("@hatiolab/things-scene").POINT[]) => import("@hatiolab/things-scene").POINT[] | void) | null, context?: any): void;
412
+ access(accessor: string): any;
413
+ substitute(template: string, data: any): string | undefined;
414
+ onchangeMappings(after: Record<string, any>, before: Record<string, any>): void;
415
+ onchangeData(after: Record<string, any>, before: Record<string, any>): void;
416
+ buildMappings(): void;
417
+ executeMappings(force?: boolean): void;
418
+ disposeMappings(): void;
419
+ ondropfile(transfered: FileList, files: string[]): void;
420
+ transcoordS2P(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
421
+ transcoordP2S(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
422
+ transcoordS2T(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
423
+ transcoordT2P(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
424
+ transcoordT2S(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
425
+ transcoordS2TR(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
426
+ transcoordS2O(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
427
+ transcoordC2S(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
428
+ transcoordS2C(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
429
+ toParent(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
430
+ fromParent(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
431
+ toScene(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
432
+ fromScene(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
433
+ toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
434
+ toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
435
+ toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
436
+ on(name: string | object, callback: Function, context?: any): any;
437
+ off(name?: string | object, callback?: Function, context?: any): any;
438
+ once(name: string | object, callback: Function, context?: any): any;
439
+ trigger(name: string, ...args: any[]): any;
440
+ delegate_on(delegator: any): any;
441
+ delegate_off(delegator: any): any;
442
+ onchange(after: Record<string, any>, before: Record<string, any>): void;
443
+ calculateBounds?(): void;
444
+ oncreate_element?(element: HTMLElement): void;
445
+ removeComponent(component: Component, ghost?: boolean): void;
446
+ addComponent(component: Component, ghost?: boolean): void;
447
+ insertComponentAt(component: Component, index: number, ghost?: boolean): void;
448
+ getOverlay(component: Component): HTMLElement | undefined;
449
+ findById(id: string): Component | undefined;
450
+ findByRefid(ref: string | number): Component | undefined;
451
+ findAllById(id: string): Component[];
452
+ resize(): void;
453
+ fit(type?: string): void;
454
+ get components(): Component[] | undefined;
455
+ get layout(): any;
456
+ get auxOverlay(): HTMLElement | undefined;
457
+ get isReady(): boolean;
458
+ get unitScale(): number;
459
+ get selected(): Component[];
460
+ set selected(_v: Component[]): any;
461
+ get focused(): Component | null;
462
+ set focused(_v: Component | null): any;
463
+ get hasSameParentForAllSelected(): boolean;
464
+ set hasSameParentForAllSelected(_v: boolean): any;
465
+ get fitMode(): string | undefined;
466
+ set fitMode(_v: string | undefined): any;
467
+ get element(): HTMLElement | null;
468
+ set element(_v: HTMLElement | null): any;
6
469
  }) & typeof Shape;
7
470
  export default class ProgressHorizontal extends ProgressHorizontal_base {
8
471
  render(context: CanvasRenderingContext2D): void;
@@ -1 +1 @@
1
- {"version":3,"file":"progress-horizontal.js","sourceRoot":"","sources":["../src/progress-horizontal.ts"],"names":[],"mappings":";AAAA,OAAO,EAA8B,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEjH,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,OAAO;SAClB;QACD;YACE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,iBAAiB;YACvB,QAAQ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E,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,SAAS,EAAE,MAAM,CAAC,CAAA;;YAC1D,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,SAAS,EAAE,GAAG,EAAE,KAAK,GAAG,SAAS,EAAE,MAAM,CAAC,CAAA;QAEnE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;QAEtB,OAAO,CAAC,SAAS,EAAE,CAAA;QAEnB,OAAO,CAAC,SAAS,EAAE,CAAA;QAEnB,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IACxC,CAAC;IAED,UAAU,CAAC,OAAiC;QAC1C,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;QACxB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;IACxB,CAAC;IAED,oBAAoB;IAEpB,IAAI,MAAM;QACR,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAA;AA1CoB,kBAAkB;IADtC,cAAc,CAAC,qBAAqB,CAAC;GACjB,kBAAkB,CA0CtC;eA1CoB,kBAAkB","sourcesContent":["import { Component, ComponentNature, RectPath, Shape, ValueHolder, sceneComponent } from '@hatiolab/things-scene'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'string',\n label: 'value',\n name: 'value',\n property: 'value'\n },\n {\n type: 'color',\n label: 'background-color',\n name: 'backgroundColor',\n property: 'backgroundColor'\n },\n {\n type: 'checkbox',\n label: 'reverse',\n name: 'reverse',\n property: 'reverse'\n },\n {\n type: 'checkbox',\n label: 'anim-from-base',\n name: 'animFromBase'\n }\n ],\n help: 'scene/component/progress-horizontal'\n}\n\n@sceneComponent('progress-horizontal')\nexport default class ProgressHorizontal extends ValueHolder(RectPath(Shape)) {\n render(context: CanvasRenderingContext2D) {\n var { top, left, height, width, backgroundColor = 'transparent', reverse, animFromBase = false } = this.state\n\n this.animOnValueChange(this.value, animFromBase, 0)\n\n // background의 색상\n context.beginPath()\n context.rect(left, top, width, height)\n\n context.fillStyle = backgroundColor\n context.fill()\n\n // value의 색상\n context.beginPath()\n\n var drawValue = width - (width * Math.max(Math.min(this.animValue, 100), 0)) / 100\n drawValue = Math.max(Math.min(drawValue, width), 0) // DrawValue도 높이보다 작거나 커지지 말아야 한다.\n\n // 그리는 값의 방향을 지정\n if (reverse) context.rect(left, top, width - drawValue, height)\n else context.rect(left + drawValue, top, width - drawValue, height)\n\n this.drawFill(context)\n\n context.closePath()\n\n context.beginPath()\n\n context.rect(left, top, width, height)\n }\n\n postrender(context: CanvasRenderingContext2D) {\n this.drawStroke(context)\n this.drawText(context)\n }\n\n // get controls() {}\n\n get nature() {\n return NATURE\n }\n}\n"]}
1
+ {"version":3,"file":"progress-horizontal.js","sourceRoot":"","sources":["../src/progress-horizontal.ts"],"names":[],"mappings":";AAAA,OAAO,EAA8B,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEjH,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,OAAO;SAClB;QACD;YACE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE,iBAAiB;SAC5B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS;SACpB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,cAAc;SACrB;KACF;IACD,IAAI,EAAE,qCAAqC;CAC5C,C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;QAEtB,OAAO,CAAC,SAAS,EAAE,CAAA;QAEnB,OAAO,CAAC,SAAS,EAAE,CAAA;QAEnB,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IACxC,CAAC;IAED,UAAU,CAAC,OAAiC;QAC1C,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;QACxB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;IACxB,CAAC;IAED,oBAAoB;IACpB,IAAI,MAAM;QACR,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAA;AAzCoB,kBAAkB;IADtC,cAAc,CAAC,qBAAqB,CAAC;GACjB,kBAAkB,CAyCtC;eAzCoB,kBAAkB","sourcesContent":["import { Component, ComponentNature, RectPath, Shape, ValueHolder, sceneComponent } from '@hatiolab/things-scene'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'string',\n label: 'value',\n name: 'value',\n property: 'value'\n },\n {\n type: 'color',\n label: 'background-color',\n name: 'backgroundColor',\n property: 'backgroundColor'\n },\n {\n type: 'checkbox',\n label: 'reverse',\n name: 'reverse',\n property: 'reverse'\n },\n {\n type: 'checkbox',\n label: 'anim-from-base',\n name: 'animFromBase'\n }\n ],\n help: 'scene/component/progress-horizontal'\n}\n\n@sceneComponent('progress-horizontal')\nexport default class ProgressHorizontal extends ValueHolder(RectPath(Shape)) {\n render(context: CanvasRenderingContext2D) {\n var { top, left, height, width, backgroundColor = 'transparent', reverse, animFromBase = false } = this.state\n\n this.animOnValueChange(this.value, animFromBase, 0)\n\n // background의 색상\n context.beginPath()\n context.rect(left, top, width, height)\n\n context.fillStyle = backgroundColor\n context.fill()\n\n // value의 색상\n context.beginPath()\n\n var drawValue = width - (width * Math.max(Math.min(this.animValue, 100), 0)) / 100\n drawValue = Math.max(Math.min(drawValue, width), 0) // DrawValue도 높이보다 작거나 커지지 말아야 한다.\n\n // 그리는 값의 방향을 지정\n if (reverse) context.rect(left, top, width - drawValue, height)\n else context.rect(left + drawValue, top, width - drawValue, height)\n\n this.drawFill(context)\n\n context.closePath()\n\n context.beginPath()\n\n context.rect(left, top, width, height)\n }\n\n postrender(context: CanvasRenderingContext2D) {\n this.drawStroke(context)\n this.drawText(context)\n }\n\n // get controls() {}\n get nature() {\n return NATURE\n }\n}\n"]}