@hatiolab/things-scene 3.0.31 → 3.0.33
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 -10
- package/logs/application-2022-10-03-13.log +6 -0
- package/logs/application-2022-10-03-18.log +6 -0
- package/logs/connections-2022-10-03-13.log +35 -0
- package/logs/connections-2022-10-03-18.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 +21 -12
- package/things-scene.mjs +1 -1
- package/logs/connections-2022-09-18-22.log +0 -35
- package/logs/connections-2022-09-19-17.log +0 -70
package/things-scene.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { property } from 'lodash'
|
|
2
|
+
|
|
1
3
|
declare module '@hatiolab/things-scene' {
|
|
2
4
|
type Constructor<T = {}> = new (...args: any[]) => T
|
|
3
5
|
type Class = { new (...args: any[]): any }
|
|
@@ -155,24 +157,31 @@ declare module '@hatiolab/things-scene' {
|
|
|
155
157
|
static load(scripts: string | Array<string>, styles?: string | Array<string>): Promise<void>
|
|
156
158
|
}
|
|
157
159
|
|
|
158
|
-
|
|
159
|
-
constructor({ component, anchor, position }: { component: Component; anchor: string; position: POSITION })
|
|
160
|
-
|
|
161
|
-
component?: Component
|
|
160
|
+
type Anchor = {
|
|
162
161
|
name: string
|
|
163
162
|
position: POSITION
|
|
164
163
|
bounds?: BOUNDS
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
inout?: 'in' | 'out' | 'inout'
|
|
165
|
+
type?: string
|
|
166
|
+
multiplicity?: number
|
|
167
|
+
draw?: (this: Anchor, context: CanvasRenderingContext2D, component: Component) => void
|
|
168
|
+
filter?: (this: Anchor, linkEnd?: LinkEnd) => boolean
|
|
169
|
+
template?: any
|
|
170
|
+
[prop: string]: any
|
|
168
171
|
}
|
|
169
172
|
|
|
170
|
-
|
|
173
|
+
type LinkEndConfig = {
|
|
171
174
|
component: string /** end component refid */
|
|
172
175
|
anchor: string /** end anchor name of end component */
|
|
173
176
|
position: POSITION /** position of the link end */
|
|
174
177
|
}
|
|
175
178
|
|
|
179
|
+
class LinkEnd {
|
|
180
|
+
component: Component
|
|
181
|
+
anchor: Anchor
|
|
182
|
+
position: POSITION
|
|
183
|
+
}
|
|
184
|
+
|
|
176
185
|
class Model {
|
|
177
186
|
static compile(model: Model, context?: any): Component
|
|
178
187
|
|
|
@@ -391,10 +400,10 @@ declare module '@hatiolab/things-scene' {
|
|
|
391
400
|
class Ellipse extends Shape {}
|
|
392
401
|
class Polygon extends Shape {}
|
|
393
402
|
class Line extends Component {
|
|
394
|
-
get
|
|
395
|
-
get
|
|
396
|
-
get from():
|
|
397
|
-
get to():
|
|
403
|
+
get fromEnd(): LinkEnd | undefined
|
|
404
|
+
get toEnd(): LinkEnd | undefined
|
|
405
|
+
get from(): LinkEndConfig
|
|
406
|
+
get to(): LinkEndConfig
|
|
398
407
|
}
|
|
399
408
|
class OrthoLine extends Line {}
|
|
400
409
|
class Donut extends Ellipse {}
|