@markup-canvas/core 1.0.9 → 1.1.0

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Markup Canvas
3
3
  * High-performance markup canvas with zoom and pan capabilities
4
- * @version 1.0.9
4
+ * @version 1.1.0
5
5
  */
6
6
  'use strict';
7
7
 
@@ -12,6 +12,9 @@ const EDITOR_PRESET = {
12
12
  width: 4000,
13
13
  height: 4000,
14
14
  enableAcceleration: true,
15
+ // Global Binding & Instance Access
16
+ bindToWindow: true,
17
+ name: "canvas",
15
18
  // Interaction controls
16
19
  enableZoom: true,
17
20
  enablePan: true,
@@ -63,9 +66,6 @@ const EDITOR_PRESET = {
63
66
  gridColorDark: "rgba(232, 86, 193, 0.5)",
64
67
  // Theme
65
68
  themeMode: "light",
66
- // Global Binding & Instance Access
67
- bindToWindow: false,
68
- name: "markupCanvas",
69
69
  // Callbacks
70
70
  onTransformUpdate: () => { },
71
71
  };
@@ -1,13 +1,16 @@
1
1
  /**
2
2
  * Markup Canvas
3
3
  * High-performance markup canvas with zoom and pan capabilities
4
- * @version 1.0.9
4
+ * @version 1.1.0
5
5
  */
6
6
  const EDITOR_PRESET = {
7
7
  // Canvas dimensions
8
8
  width: 4000,
9
9
  height: 4000,
10
10
  enableAcceleration: true,
11
+ // Global Binding & Instance Access
12
+ bindToWindow: true,
13
+ name: "canvas",
11
14
  // Interaction controls
12
15
  enableZoom: true,
13
16
  enablePan: true,
@@ -59,9 +62,6 @@ const EDITOR_PRESET = {
59
62
  gridColorDark: "rgba(232, 86, 193, 0.5)",
60
63
  // Theme
61
64
  themeMode: "light",
62
- // Global Binding & Instance Access
63
- bindToWindow: false,
64
- name: "markupCanvas",
65
65
  // Callbacks
66
66
  onTransformUpdate: () => { },
67
67
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Markup Canvas
3
3
  * High-performance markup canvas with zoom and pan capabilities
4
- * @version 1.0.9
4
+ * @version 1.1.0
5
5
  */
6
6
  (function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markup-canvas/core",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "High-performance canvas-like container with pan and zoom capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/markup-canvas.cjs.js",
@@ -6,6 +6,10 @@ export const EDITOR_PRESET: Required<MarkupCanvasConfig> = {
6
6
  height: 4000,
7
7
  enableAcceleration: true,
8
8
 
9
+ // Global Binding & Instance Access
10
+ bindToWindow: true,
11
+ name: "canvas",
12
+
9
13
  // Interaction controls
10
14
  enableZoom: true,
11
15
  enablePan: true,
@@ -68,10 +72,6 @@ export const EDITOR_PRESET: Required<MarkupCanvasConfig> = {
68
72
  // Theme
69
73
  themeMode: "light",
70
74
 
71
- // Global Binding & Instance Access
72
- bindToWindow: false,
73
- name: "markupCanvas",
74
-
75
75
  // Callbacks
76
76
  onTransformUpdate: () => {},
77
77
  };