@soonspacejs/plugin-drawing-shape 2.14.28 → 2.14.30

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.
Files changed (2) hide show
  1. package/dist/index.esm.js +2 -10
  2. package/package.json +2 -2
package/dist/index.esm.js CHANGED
@@ -68,11 +68,7 @@ class P {
68
68
  }, k = () => {
69
69
  this.clearDrawingCanvas3D(), y(), a?.onCancel?.();
70
70
  }, v = (p) => {
71
- switch (p.code) {
72
- case "Escape":
73
- k();
74
- break;
75
- }
71
+ p.code === "Escape" && k();
76
72
  }, y = () => {
77
73
  this.ssp.signals.mouseMove.remove(o), this.ssp.signals.click.remove(c), this.ssp.signals.rightClick.remove(k), this.ssp.signals.keyUp.remove(v);
78
74
  };
@@ -238,11 +234,7 @@ class P {
238
234
  }, y = () => {
239
235
  this.clearDrawingCanvas3D(), d(), a?.onCancel?.();
240
236
  }, p = (i) => {
241
- switch (i.code) {
242
- case "Escape":
243
- y();
244
- break;
245
- }
237
+ i.code === "Escape" && y();
246
238
  }, d = () => {
247
239
  this.ssp.signals.mouseMove.remove(k), this.ssp.signals.click.remove(v), this.ssp.signals.rightClick.remove(y), this.ssp.signals.keyUp.remove(p);
248
240
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soonspacejs/plugin-drawing-shape",
3
3
  "pluginName": "DrawingShapePlugin",
4
- "version": "2.14.28",
4
+ "version": "2.14.30",
5
5
  "description": "DrawingShapePlugin plugin for SoonSpace.js",
6
6
  "main": "dist/index.esm.js",
7
7
  "module": "dist/index.esm.js",
@@ -15,6 +15,6 @@
15
15
  "license": "UNLICENSED",
16
16
  "gitHead": "4a87dd85050651088e11c3da777c49fab3db7e5d",
17
17
  "peerDependencies": {
18
- "soonspacejs": "2.14.28"
18
+ "soonspacejs": "2.14.30"
19
19
  }
20
20
  }