mesurer 0.0.8 → 0.0.9
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 +13 -0
- package/README.md +4 -0
- package/dist/index.cjs +2291 -543
- package/dist/index.d.cts +39 -2
- package/dist/index.d.ts +39 -2
- package/dist/index.js +2274 -529
- package/dist/styles.css +34 -0
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# mesurer
|
|
2
2
|
|
|
3
|
+
## 0.0.9
|
|
4
|
+
|
|
5
|
+
- add persistent pixel rulers along the top and left edges
|
|
6
|
+
- create and drag guides directly from rulers
|
|
7
|
+
- show live guide values with masked ruler labels
|
|
8
|
+
- select and drag guides across tool modes
|
|
9
|
+
- prevent page text selection while dragging guides
|
|
10
|
+
- add X-ray inspection mode
|
|
11
|
+
- improve Text Inspector behavior and toolbar interactions
|
|
12
|
+
- update toolbar and marketing-site feature icons
|
|
13
|
+
- Thanks to [@alecramos-sudo](https://github.com/alecramos-sudo) for [adding the Aa text-style inspector mode to the overlay toolbar](https://github.com/ibelick/mesurer/pull/8).
|
|
14
|
+
- Thanks to [@Romariin](https://github.com/Romariin) for [keeping guides visible without blocking page clicks](https://github.com/ibelick/mesurer/pull/12).
|
|
15
|
+
|
|
3
16
|
## 0.0.8
|
|
4
17
|
|
|
5
18
|
- restore precise element targeting with top-layer extension host
|
package/README.md
CHANGED
|
@@ -41,6 +41,7 @@ function App() {
|
|
|
41
41
|
| `guideColor` | Base color for guides (defaults to `oklch(0.63 0.26 29.23)`). |
|
|
42
42
|
| `hoverHighlightEnabled` | Disables hover highlight and deselects on click when `false`. |
|
|
43
43
|
| `persistOnReload` | Persists state in `localStorage` as `mesurer-state` when `true`. |
|
|
44
|
+
| `persistKey` | Optional storage key for isolating persisted state between multiple instances. |
|
|
44
45
|
| `portalTarget` | Optional element or shadow root used as the overlay portal mount target. |
|
|
45
46
|
|
|
46
47
|
## Commands
|
|
@@ -50,6 +51,8 @@ function App() {
|
|
|
50
51
|
| `M` | Toggle measurer on/off. |
|
|
51
52
|
| `S` | Toggle Select mode. |
|
|
52
53
|
| `G` | Toggle Guides mode. |
|
|
54
|
+
| `X` | Toggle X-ray mode. |
|
|
55
|
+
| `R` | Toggle pixel rulers along the top and left edges. |
|
|
53
56
|
| `H` | Set guide orientation to horizontal. |
|
|
54
57
|
| `V` | Set guide orientation to vertical. |
|
|
55
58
|
| `Alt` | Temporarily enable option/guide measurement overlays. |
|
|
@@ -63,6 +66,7 @@ function App() {
|
|
|
63
66
|
- **Toggle on/off** – Enable the overlay with a single shortcut
|
|
64
67
|
- **Select mode** – Click elements to measure their bounds
|
|
65
68
|
- **Guides mode** – Add vertical or horizontal guides
|
|
69
|
+
- **Rulers** – Show pixel rulers along the top and left edges
|
|
66
70
|
- **Distance overlays** – Hold Alt for quick spacing checks
|
|
67
71
|
- **Undo/redo** – Command history for guide and measurement changes
|
|
68
72
|
- **Persist state** – Keep guides and measurements on reload
|