@hatiolab/things-scene 3.1.2 → 3.1.4
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/db.sqlite +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +10 -0
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +10 -0
- package/logs/application-2022-11-14-00.log +6 -0
- package/logs/application-2022-11-14-14.log +6 -0
- package/logs/application-2022-11-14-16.log +6 -0
- package/logs/connections-2022-11-14-00.log +35 -0
- package/logs/connections-2022-11-14-14.log +35 -0
- package/logs/connections-2022-11-14-16.log +35 -0
- package/package.json +1 -1
- package/things-scene-ie.js +1 -1
- package/things-scene-min.js +1 -1
- package/things-scene.d.ts +4 -0
- package/things-scene.mjs +1 -1
package/things-scene.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
6
6
|
type Properties = { [key: string]: any }
|
|
7
7
|
type State = Properties
|
|
8
8
|
type Style = Properties
|
|
9
|
+
type Decorator = (component: Component, context: CanvasRenderingContext2D) => boolean
|
|
9
10
|
|
|
10
11
|
type ChangeFunction = (selector: string, value: any, self: any) => Component[]
|
|
11
12
|
|
|
@@ -276,6 +277,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
276
277
|
customObjToVal?: (obj: any) => any
|
|
277
278
|
): () => string | undefined
|
|
278
279
|
static reposition(component: Component): void
|
|
280
|
+
static registerDecorator(name: string, decorator: Decorator): void
|
|
279
281
|
|
|
280
282
|
state: Properties
|
|
281
283
|
bounds: BOUNDS
|
|
@@ -313,6 +315,8 @@ declare module '@hatiolab/things-scene' {
|
|
|
313
315
|
get hasTextProperty(): boolean
|
|
314
316
|
get textSubstitutor(): () => string
|
|
315
317
|
|
|
318
|
+
get decorators(): Array<string | Decorator>
|
|
319
|
+
|
|
316
320
|
isRootModel(): boolean
|
|
317
321
|
isContainer(): boolean
|
|
318
322
|
isLine(): boolean
|