react-lasso-select 2.0.2 → 2.0.3

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.js +3 -4
  2. package/package.json +16 -13
package/dist/index.js CHANGED
@@ -67,10 +67,9 @@ class C {
67
67
  return s;
68
68
  }
69
69
  getCTM() {
70
- const s = this.getSvg();
71
- let t = s.getCTM();
72
- if (t === null && (t = s.querySelector('rect[visibility="hidden"]').getCTM()), !t) throw new Error("CTM is null");
73
- return t;
70
+ const e = this.getSvg().querySelector('rect[visibility="hidden"]').getCTM();
71
+ if (!e) throw new Error("CTM is null");
72
+ return e;
74
73
  }
75
74
  getViewboxSize() {
76
75
  return this.getSvg().viewBox.baseVal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-lasso-select",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A responsive react tool for marking irregular areas in images (lasso / free select)",
5
5
  "author": "akcyp",
6
6
  "license": "ISC",
@@ -35,6 +35,20 @@
35
35
  "dist"
36
36
  ],
37
37
  "type": "module",
38
+ "scripts": {
39
+ "preinstall": "npx only-allow pnpm",
40
+ "build": "tsc -b && vite build",
41
+ "build:ci": "pnpm run build -m build:ci",
42
+ "dev": "rimraf dist && vite",
43
+ "prod": "pnpm run build && vite",
44
+ "lint": "eslint .",
45
+ "format": "prettier -c .",
46
+ "test": "vitest",
47
+ "preview": "vite preview",
48
+ "prepare": "husky",
49
+ "prepublishOnly": "pnpm run build"
50
+ },
51
+ "packageManager": "pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67",
38
52
  "engines": {
39
53
  "node": "^22.10.6",
40
54
  "pnpm": "^10.15.1"
@@ -75,16 +89,5 @@
75
89
  "lint-staged": {
76
90
  "*.{ts,tsx}": "eslint --fix",
77
91
  "*.{js,jsx,ts,tsx,md,html,css}": "prettier --write"
78
- },
79
- "scripts": {
80
- "preinstall": "npx only-allow pnpm",
81
- "build": "tsc -b && vite build",
82
- "build:ci": "pnpm run build -m build:ci",
83
- "dev": "rimraf dist && vite",
84
- "prod": "pnpm run build && vite",
85
- "lint": "eslint .",
86
- "format": "prettier -c .",
87
- "test": "vitest",
88
- "preview": "vite preview"
89
92
  }
90
- }
93
+ }