@operato/scene-progressbar 9.0.1 → 10.0.0-beta.1

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,235 @@
1
- import { ComponentNature, Ellipse } from '@hatiolab/things-scene';
1
+ import { Component, ComponentNature, Ellipse } from '@hatiolab/things-scene';
2
2
  declare const ProgressCircle_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;
6
233
  }) & typeof Ellipse;
7
234
  export default class ProgressCircle extends ProgressCircle_base {
8
235
  render(context: CanvasRenderingContext2D): void;
@@ -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,8 +1,471 @@
1
- import { ComponentNature, Shape } from '@hatiolab/things-scene';
1
+ import { Component, ComponentNature, Shape } from '@hatiolab/things-scene';
2
2
  declare const ProgressVertical_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 ProgressVertical extends ProgressVertical_base {
8
471
  render(context: CanvasRenderingContext2D): void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/scene-progressbar",
3
3
  "description": "Progressbar component for things-scene",
4
4
  "author": "heartyoh",
5
- "version": "9.0.1",
5
+ "version": "10.0.0-beta.1",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
@@ -10,7 +10,7 @@
10
10
  "things-scene": true,
11
11
  "publishConfig": {
12
12
  "access": "public",
13
- "@oprato:registry": "https://registry.npmjs.org"
13
+ "@operato:registry": "https://registry.npmjs.org"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -22,27 +22,27 @@
22
22
  "serve:dev": "npm run serve",
23
23
  "start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
24
24
  "build": "tsc",
25
- "prepublish": "tsc",
26
- "lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
27
- "format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
25
+ "prepublishOnly": "tsc",
26
+ "lint": "eslint src/ && prettier \"src/**/*.ts\" --check",
27
+ "format": "eslint src/ --fix && prettier \"src/**/*.ts\" --write",
28
28
  "migration": "things-factory-migration"
29
29
  },
30
30
  "dependencies": {
31
- "@hatiolab/things-scene": "^9.0.0"
31
+ "@hatiolab/things-scene": "^10.0.0-beta.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@hatiolab/prettier-config": "^1.0.0",
35
- "@things-factory/builder": "^9.0.0",
36
- "@things-factory/operato-board": "^9.0.0",
37
- "@typescript-eslint/eslint-plugin": "^4.33.0",
38
- "@typescript-eslint/parser": "^4.33.0",
35
+ "@things-factory/builder": "^10.0.0-beta.1",
36
+ "@things-factory/operato-board": "^10.0.0-beta.1",
37
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
38
+ "@typescript-eslint/parser": "^8.0.0",
39
39
  "@web/dev-server": "^0.1.28",
40
40
  "concurrently": "^8.0.1",
41
41
  "eslint": "^9.18.0",
42
42
  "eslint-config-prettier": "^10.0.1",
43
43
  "husky": "^8.0.3",
44
- "lint-staged": "^13.2.2",
45
- "prettier": "^2.4.1",
44
+ "lint-staged": "^15.2.2",
45
+ "prettier": "^3.2.5",
46
46
  "tslib": "^2.3.1",
47
47
  "typescript": "^5.0.4"
48
48
  },
@@ -58,5 +58,5 @@
58
58
  "prettier --write"
59
59
  ]
60
60
  },
61
- "gitHead": "5c1850ff48a7c9b6aa133426e817b22032326143"
61
+ "gitHead": "bb127dd516b9e962fb2d0a24bc2d8c5e108f06fb"
62
62
  }