@hatiolab/things-scene 3.2.6 → 3.2.7

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/things-scene.d.ts CHANGED
@@ -299,7 +299,6 @@ declare module '@hatiolab/things-scene' {
299
299
  rootModel: ModelLayer
300
300
  parent: Container
301
301
  app: ApplicationContext
302
- path: Array<DIMENSION>
303
302
  hidden: boolean
304
303
 
305
304
  get nature(): ComponentNature
@@ -321,6 +320,9 @@ declare module '@hatiolab/things-scene' {
321
320
  get textBounds(): BOUNDS
322
321
  get textRotation(): number
323
322
 
323
+ get path(): Array<DIMENSION>
324
+ set path(path: Array<DIMENSION>)
325
+
324
326
  get center(): POINT
325
327
  set center(point: POINT)
326
328
 
@@ -349,8 +351,17 @@ declare module '@hatiolab/things-scene' {
349
351
  reposition(): void
350
352
  clearCache(): void
351
353
 
354
+ prepareIf(boolean)
355
+ createCanvas(width: number, height: number)
356
+ mutatePath(
357
+ beforeLogic?: (context: CanvasRenderingContext2D | null, path: Array<DIMENSION>) => void,
358
+ afterLogic?: (context: CanvasRenderingContext2D | null, path: Array<DIMENSION>) => void,
359
+ context?: CanvasRenderingContext2D
360
+ )
361
+
352
362
  transcoordP2S(x: number, y: number): POSITION
353
363
  transcoordC2S(x: number, y: number, top?: RootContainer): POSITION
364
+ transcoordS2T(x: number, y: number): POSITION
354
365
 
355
366
  prerender(context: CanvasRenderingContext2D): void
356
367
  render(context: CanvasRenderingContext2D): void