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 CHANGED
@@ -1,6 +1,13 @@
1
1
  # mesurer
2
2
 
3
- ## 0.0.4
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 | Description |
41
- | --- | --- |
42
- | `highlightColor` | Base color for selection/hover overlays (defaults to `oklch(0.62 0.18 255)`). |
43
- | `guideColor` | Base color for guides (defaults to `oklch(0.63 0.26 29.23)`). |
44
- | `hoverHighlightEnabled` | Disables hover highlight and deselects on click when `false`. |
45
- | `persistOnReload` | Persists state in `localStorage` as `mesurer-state` when `true`. |
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 | Action |
50
- | --- | --- |
51
- | `M` | Toggle measurer on/off. |
52
- | `S` | Toggle Select mode. |
53
- | `G` | Toggle Guides mode. |
54
- | `H` | Set guide orientation to horizontal. |
55
- | `V` | Set guide orientation to vertical. |
56
- | `Alt` | Temporarily enable option/guide measurement overlays. |
57
- | `Esc` | Clear all measurements and guides. |
58
- | `Backspace` / `Delete` | Remove selected guides. |
59
- | `Cmd/Ctrl + Z` | Undo. |
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