@meltemi/diagrams-canvas 1.10.0 → 1.10.18
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/README.md +13 -0
- package/canvas.css +1076 -40
- package/dist/app.d.ts +558 -21
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +3039 -226
- package/dist/app.js.map +1 -1
- package/dist/bars.d.ts +32 -0
- package/dist/bars.d.ts.map +1 -0
- package/dist/bars.js +71 -0
- package/dist/bars.js.map +1 -0
- package/dist/dom.d.ts +27 -0
- package/dist/dom.d.ts.map +1 -1
- package/dist/dom.js +44 -1
- package/dist/dom.js.map +1 -1
- package/dist/font-picker.d.ts +108 -0
- package/dist/font-picker.d.ts.map +1 -0
- package/dist/font-picker.js +340 -0
- package/dist/font-picker.js.map +1 -0
- package/dist/glyphs.d.ts +14 -1
- package/dist/glyphs.d.ts.map +1 -1
- package/dist/glyphs.js +68 -8
- package/dist/glyphs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/inline.d.ts +86 -1
- package/dist/inline.d.ts.map +1 -1
- package/dist/inline.js +148 -9
- package/dist/inline.js.map +1 -1
- package/dist/inspector.d.ts +98 -0
- package/dist/inspector.d.ts.map +1 -1
- package/dist/inspector.js +466 -50
- package/dist/inspector.js.map +1 -1
- package/dist/messages/en.d.ts +205 -6
- package/dist/messages/en.d.ts.map +1 -1
- package/dist/messages/en.js +207 -11
- package/dist/messages/en.js.map +1 -1
- package/dist/messages/es.d.ts.map +1 -1
- package/dist/messages/es.js +129 -8
- package/dist/messages/es.js.map +1 -1
- package/dist/messages/index.d.ts +122 -3
- package/dist/messages/index.d.ts.map +1 -1
- package/dist/pen-menu.d.ts +92 -0
- package/dist/pen-menu.d.ts.map +1 -0
- package/dist/pen-menu.js +292 -0
- package/dist/pen-menu.js.map +1 -0
- package/dist/pen.d.ts +48 -0
- package/dist/pen.d.ts.map +1 -0
- package/dist/pen.js +204 -0
- package/dist/pen.js.map +1 -0
- package/dist/presence-layer.d.ts +26 -4
- package/dist/presence-layer.d.ts.map +1 -1
- package/dist/presence-layer.js +48 -5
- package/dist/presence-layer.js.map +1 -1
- package/dist/presence.d.ts +40 -3
- package/dist/presence.d.ts.map +1 -1
- package/dist/presence.js +38 -3
- package/dist/presence.js.map +1 -1
- package/dist/property-tabs.d.ts +15 -0
- package/dist/property-tabs.d.ts.map +1 -0
- package/dist/property-tabs.js +125 -0
- package/dist/property-tabs.js.map +1 -0
- package/dist/sticky.d.ts +25 -0
- package/dist/sticky.d.ts.map +1 -0
- package/dist/sticky.js +26 -0
- package/dist/sticky.js.map +1 -0
- package/dist/story.d.ts.map +1 -1
- package/dist/story.js +5 -0
- package/dist/story.js.map +1 -1
- package/dist/strokes.d.ts +82 -0
- package/dist/strokes.d.ts.map +1 -0
- package/dist/strokes.js +305 -0
- package/dist/strokes.js.map +1 -0
- package/dist/tooltip.d.ts +11 -3
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +14 -9
- package/dist/tooltip.js.map +1 -1
- package/package.json +10 -5
package/README.md
CHANGED
|
@@ -67,6 +67,19 @@ Popovers, menus, side panels, tooltips and target outlines open and close with s
|
|
|
67
67
|
on the motion tokens of `canvas.css` (`--mdg-motion-fast`, `--mdg-motion`, `--mdg-motion-slow`,
|
|
68
68
|
`--mdg-ease`). When the system asks for reduced motion they are zero and nothing moves.
|
|
69
69
|
|
|
70
|
+
The properties panel folds to a rail from the button in its head and unfolds from the rail's
|
|
71
|
+
button or the toolbar's toggle, one choice kept with the canvas's state (`PersistedState.inspector`,
|
|
72
|
+
read as a boolean only). A host folds it too with `app.setInspectorCollapsed(collapsed)` and reads
|
|
73
|
+
`app.inspectorCollapsed`; a host that binds a key of its own for it names the key in
|
|
74
|
+
`host.keys.inspector` (the playground passes "Ctrl+Alt+B"), and the canvas's tooltips show it.
|
|
75
|
+
|
|
76
|
+
Every toolbar button's name says what it does, without its key; its `title` adds the key in
|
|
77
|
+
parentheses and `aria-keyshortcuts` says it. The package exports the bubble that shows those titles,
|
|
78
|
+
`Tooltips` (`new Tooltips(root, { except })`, 400 ms after the pointer rests, `TOOLTIP_DELAY`), so a
|
|
79
|
+
host draws its own controls' tooltips the same way (the playground uses `{ except: "#app" }`, and
|
|
80
|
+
the canvas keeps its own), and `ariaKeyshortcuts(shown)`, which writes a shown key ("Ctrl+Alt+B",
|
|
81
|
+
"Mayús+1") as `aria-keyshortcuts` wants it ("Control+Alt+B", "Shift+1").
|
|
82
|
+
|
|
70
83
|
## Documentation
|
|
71
84
|
|
|
72
85
|
- [Editor guide](https://github.com/askenaz-dev/meltemi-diagrams/blob/main/docs/editor.md)
|