@1337exp/taoux 0.5.6 → 0.7.1
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 +18 -0
- package/README.md +4 -2
- package/README.ru.md +4 -2
- package/dist/camera.d.ts +18 -3
- package/dist/camera.js +20 -5
- package/dist/camera.js.map +1 -1
- package/dist/canvas/host.d.ts +20 -1
- package/dist/canvas.js +5 -4
- package/dist/canvas.js.map +1 -1
- package/dist/session.d.ts +6 -1
- package/dist/session.js +2 -2
- package/dist/session.js.map +1 -1
- package/dist/tour/core.d.ts +77 -0
- package/dist/tour/index.d.ts +3 -0
- package/dist/tour/memory.d.ts +16 -0
- package/dist/tour/use.d.ts +21 -0
- package/dist/tour.js +172 -0
- package/dist/tour.js.map +1 -0
- package/dist/undovue.d.ts +65 -0
- package/dist/undovue.js +90 -0
- package/dist/undovue.js.map +1 -0
- package/package.json +10 -2
- package/skills/taoux/SKILL.md +5 -3
package/skills/taoux/SKILL.md
CHANGED
|
@@ -24,12 +24,12 @@ controls, or with your own design.
|
|
|
24
24
|
|
|
25
25
|
| Import | What for |
|
|
26
26
|
|---|---|
|
|
27
|
-
| `camera` | pan, zoom around the cursor, screen ↔ world (`zoomAt`) |
|
|
27
|
+
| `camera` | pan, zoom around the cursor, screen ↔ world (`zoomAt`; the range is 0.2…2 unless you pass `ZoomLimits`) |
|
|
28
28
|
| `history` | `new History(snapshot)`: undo / redo on string snapshots, rapid edits with one `key` merged into one step |
|
|
29
29
|
| `undo` | `new UndoStack({ id, revive, vanish? })`: undo / redo of a list of records by steps that keep only the touched ones (`diffRecords(prev, next, id)` makes a step; a returned record takes its old place); right for a list that is edited and synced, where `History` would store the whole list per step and an undo would roll back a sync. `coalesceMaxMs` caps a merged step of typing |
|
|
30
30
|
| `swiperow` | `<TaoxSwipeRow :start="{ id, label, icon, tone }" :end="[{ id, label, icon, tone }]" v-model:open @action="run">` around a list row: a pull to the start runs `start` past a threshold, to the end opens the actions, a long pull runs the last one (`fullSwipe`, on by default); a mouse drags only with `mouse`; `:tabbable="false"` takes the actions out of the Tab order when the app has its own keys for them; an open row closes on a click on it or a press outside, and that click does not go on (once; `:swallow-outside-click="false"` lets the outside one through); `--tx-swipe-bg` for a row right on the page (see docs/swiperow.md); import `@1337exp/taoux/swiperow.css`. Needs TaoUI (tier 2) |
|
|
31
31
|
| `sortable` | `useSortable(listRef, { onMove: (from, to) => (list.value = moveItem(list.value, from, to)) })`; mark each item `data-sortable-item` and a focusable grip inside it `data-sortable-handle` (a TaoButton with `icon="tao-grip"` and an aria-label); style `[data-sortable-dragging]` / `[data-sortable-lifted]`. Keyboard: Space lifts, arrows move, Space drops, Esc returns; `texts: sortableTextsRu` for Russian |
|
|
32
|
-
| `session` | `createDocumentSession(...)`: history + autosave + files + restore + notices for one document; `canUndo` / `canRedo` refs. `camera` is optional (a list, not a canvas); count with `countItems` (`countNodes` is its old name) |
|
|
32
|
+
| `session` | `createDocumentSession(...)`: history + autosave + files + restore + notices for one document; `canUndo` / `canRedo` refs. `camera` is optional (a list, not a canvas); count with `countItems` (`countNodes` is its old name); `zoom` clamps a loaded view to the canvas range |
|
|
33
33
|
| `commands` | `createCommands([...])`: one registry for menus, shortcuts and palettes (see below) |
|
|
34
34
|
| `hotkeys` | `parseHotkey('Mod+Shift+Z')`, `matchHotkey`, `formatHotkey` (`Ctrl+Shift+Z` / `⇧⌘Z`), `isReservedHotkey`, `bindHotkeys(element, map)` |
|
|
35
35
|
| `storage` | autosave to localStorage that never throws; `tryWrite` gives the reason (`quota` / `denied`), `remove`, `subscribe` for changes from other tabs |
|
|
@@ -46,9 +46,11 @@ controls, or with your own design.
|
|
|
46
46
|
| `palette` | search and groups for a palette of nodes |
|
|
47
47
|
| `pins` | row pin positions measured from the DOM (`usePinMeasure`, `createPinRegistry`) |
|
|
48
48
|
| `playback` | time, pause, loop, speed, seeking: `createPlayback` (no Vue), `usePlayback` (drives TaoUI `TaoScrubber`) |
|
|
49
|
+
| `tour` | a guided tour of the page, step by step: `createTour` (no Vue; jumps over steps whose target is gone, `done` / `skipped`), `useTour`, `createTourMemory` (shown once); the drawing is up to you or TaoUI |
|
|
50
|
+
| `undovue` | `undo` and `history` for Vue: `useUndoStack`, `useHistory` (the same classes with `canUndo` / `canRedo` as refs, so the Undo / Redo menu items follow), `useUndoFlags(existing)` + `sync()` |
|
|
49
51
|
| `i18n` | typed i18n: `createI18n({ locales, fallback, storageKey })` |
|
|
50
52
|
| `links` (Vue) | `TaoxLinks`: an SVG layer of links from ready geometry |
|
|
51
|
-
| `canvas` (Vue) | `TaoxCanvas`: pan / zoom canvas with mouse, touch, wheel, auto-scroll, keys; the `CanvasHost` contract |
|
|
53
|
+
| `canvas` (Vue) | `TaoxCanvas`: pan / zoom canvas with mouse, touch, wheel, auto-scroll, keys; the `CanvasHost` contract; options `marquee: 'contain'` (only nodes wholly inside the frame), `zoom: { min, max }`; host `claimsKey(e)` keeps a key from the canvas while a tool uses it |
|
|
52
54
|
| `curveeditor` (Vue) | `TaoxCurveEditor`: points, snapping, bounds, per-segment easing with Bezier handles, keyboard |
|
|
53
55
|
| `gradienteditor` (Vue) | `TaoxGradientEditor`: stops on a bar, `gradientCss`, keyboard |
|
|
54
56
|
| `curvefield` (Vue, needs TaoUI) | `TaoxCurveField`: a curve editor with TaoUI fields for time, value, easing, snapping |
|