@hatiolab/things-scene 2.7.18 → 2.7.19

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": "2.7.18",
3
+ "version": "2.7.19",
4
4
  "description": "2D graphic library",
5
5
  "main": "src/index.js",
6
6
  "module": "things-scene.mjs",
package/things-scene.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  declare module '@hatiolab/things-scene' {
2
2
  type Constructor<T = {}> = new (...args: any[]) => T
3
3
 
4
- const MODE_VIEW = 0
5
- const MODE_EDIT = 1
6
- const MODE_SHIFT = 2
4
+ type MODE_VIEW = 0
5
+ type MODE_EDIT = 1
6
+ type MODE_SHIFT = 2
7
+
8
+ type SCENE_MODE = MODE_VIEW | MODE_EDIT
7
9
 
8
10
  type FITMODE = 'both' | 'ratio' | 'width' | 'height' | 'center' | 'none'
9
11
  type DIMENSION = { x: number; y: number }