@hatiolab/things-scene 3.3.40 → 3.3.41
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/package.json +1 -1
- package/things-scene.d.ts +13 -0
- package/things-scene.mjs +1 -1
package/package.json
CHANGED
package/things-scene.d.ts
CHANGED
|
@@ -324,6 +324,17 @@ declare module '@hatiolab/things-scene' {
|
|
|
324
324
|
static reposition(component: Component): void
|
|
325
325
|
static registerDecorator(name: string, decorator: Decorator): void
|
|
326
326
|
static createCanvas(width: number, height: number): HTMLCanvasElement
|
|
327
|
+
static template(
|
|
328
|
+
template: string,
|
|
329
|
+
options?: {
|
|
330
|
+
escape?: RegExp
|
|
331
|
+
evaluate?: RegExp
|
|
332
|
+
imports?: any
|
|
333
|
+
interpolate?: RegExp
|
|
334
|
+
sourceURL?: string
|
|
335
|
+
variable?: string
|
|
336
|
+
}
|
|
337
|
+
): any
|
|
327
338
|
|
|
328
339
|
state: Properties
|
|
329
340
|
bounds: BOUNDS
|
|
@@ -384,6 +395,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
384
395
|
isHTMLElement(): boolean
|
|
385
396
|
isConnectable(): boolean
|
|
386
397
|
isIdentifiable(): boolean
|
|
398
|
+
isTemplate(): boolean
|
|
387
399
|
|
|
388
400
|
ready(): void
|
|
389
401
|
dispose(): void
|
|
@@ -479,6 +491,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
479
491
|
overlay: HTMLDivElement
|
|
480
492
|
}
|
|
481
493
|
|
|
494
|
+
class InfoWindow extends RectPath(Shape) {}
|
|
482
495
|
class Text extends RectPath(Component) {}
|
|
483
496
|
class Shape extends Component {}
|
|
484
497
|
class Ellipse extends Shape {}
|