mesurer 0.0.4 → 0.0.6
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/CHANGELOG.md +8 -1
- package/README.md +19 -20
- package/dist/index.cjs +224 -185
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +224 -185
- package/dist/styles.css +160 -213
- package/package.json +11 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# mesurer
|
|
2
2
|
|
|
3
|
-
## 0.0.
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
- add Chrome extension (MV3) with click-to-toggle toolbar
|
|
6
|
+
- isolate styles to avoid host site conflicts
|
|
7
|
+
- prefix Tailwind utilities with `msr:` to prevent class collisions
|
|
8
|
+
- fix guide Alt/Option distance measurement behavior
|
|
9
|
+
|
|
10
|
+
## 0.0.5
|
|
4
11
|
|
|
5
12
|
- update toolbar UI
|
|
6
13
|
- add changelog
|
package/README.md
CHANGED
|
@@ -33,31 +33,30 @@ function App() {
|
|
|
33
33
|
}
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
No additional CSS import is required.
|
|
37
|
-
|
|
38
36
|
## Props
|
|
39
37
|
|
|
40
|
-
| Prop
|
|
41
|
-
|
|
|
42
|
-
| `highlightColor`
|
|
43
|
-
| `guideColor`
|
|
44
|
-
| `hoverHighlightEnabled` | Disables hover highlight and deselects on click when `false`.
|
|
45
|
-
| `persistOnReload`
|
|
38
|
+
| Prop | Description |
|
|
39
|
+
| ----------------------- | ----------------------------------------------------------------------------- |
|
|
40
|
+
| `highlightColor` | Base color for selection/hover overlays (defaults to `oklch(0.62 0.18 255)`). |
|
|
41
|
+
| `guideColor` | Base color for guides (defaults to `oklch(0.63 0.26 29.23)`). |
|
|
42
|
+
| `hoverHighlightEnabled` | Disables hover highlight and deselects on click when `false`. |
|
|
43
|
+
| `persistOnReload` | Persists state in `localStorage` as `mesurer-state` when `true`. |
|
|
44
|
+
| `portalTarget` | Optional element or shadow root used as the overlay portal mount target. |
|
|
46
45
|
|
|
47
46
|
## Commands
|
|
48
47
|
|
|
49
|
-
| Shortcut
|
|
50
|
-
|
|
|
51
|
-
| `M`
|
|
52
|
-
| `S`
|
|
53
|
-
| `G`
|
|
54
|
-
| `H`
|
|
55
|
-
| `V`
|
|
56
|
-
| `Alt`
|
|
57
|
-
| `Esc`
|
|
58
|
-
| `Backspace` / `Delete` | Remove selected guides.
|
|
59
|
-
| `Cmd/Ctrl + Z`
|
|
60
|
-
| `Cmd/Ctrl + Shift + Z` | Redo.
|
|
48
|
+
| Shortcut | Action |
|
|
49
|
+
| ---------------------- | ----------------------------------------------------- |
|
|
50
|
+
| `M` | Toggle measurer on/off. |
|
|
51
|
+
| `S` | Toggle Select mode. |
|
|
52
|
+
| `G` | Toggle Guides mode. |
|
|
53
|
+
| `H` | Set guide orientation to horizontal. |
|
|
54
|
+
| `V` | Set guide orientation to vertical. |
|
|
55
|
+
| `Alt` | Temporarily enable option/guide measurement overlays. |
|
|
56
|
+
| `Esc` | Clear all measurements and guides. |
|
|
57
|
+
| `Backspace` / `Delete` | Remove selected guides. |
|
|
58
|
+
| `Cmd/Ctrl + Z` | Undo. |
|
|
59
|
+
| `Cmd/Ctrl + Shift + Z` | Redo. |
|
|
61
60
|
|
|
62
61
|
## Features
|
|
63
62
|
|