@hatiolab/things-scene 3.2.8 → 3.2.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatiolab/things-scene",
3
- "version": "3.2.8",
3
+ "version": "3.2.10",
4
4
  "description": "2D graphic library",
5
5
  "main": "src/index.js",
6
6
  "module": "things-scene.mjs",
package/things-scene.d.ts CHANGED
@@ -292,6 +292,7 @@ declare module '@hatiolab/things-scene' {
292
292
  ): () => string | undefined
293
293
  static reposition(component: Component): void
294
294
  static registerDecorator(name: string, decorator: Decorator): void
295
+ static createCanvas(width: number, height: number): HTMLCanvasElement
295
296
 
296
297
  state: Properties
297
298
  bounds: BOUNDS
@@ -352,10 +353,9 @@ declare module '@hatiolab/things-scene' {
352
353
  clearCache(): void
353
354
 
354
355
  prepareIf(boolean)
355
- createCanvas(width: number, height: number)
356
356
  mutatePath(
357
- beforeLogic?: (path: Array<DIMENSION>) => void | null,
358
- afterLogic?: (path: Array<DIMENSION>) => void | null,
357
+ beforeLogic: ((path: Array<DIMENSION>) => void) | null,
358
+ afterLogic: ((path: Array<DIMENSION>) => void) | null,
359
359
  context?: any
360
360
  )
361
361