mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
feat(draw): answer the Draw controls through the display store
The draw tool no longer looks up or listens on its controls. It connects toggleDraw, setDrawShape, setDrawColor, setDrawLabel and clearDraw to the display store, which now holds several owners and lets the newest owner of an action answer it, and it publishes the colour and label beside the shape, state and hint. The Draw panel renders the shape choice with UiSegmented and binds the label and colour to what the tool publishes. The label field's own Enter listener goes: the session's capture-phase key handler already finishes the shape from that field.
This commit is contained in:
1 parent
3c3f8e3e67
commit
a6e85db8be
10 files changed
+283
-134
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* `v-range-value`: a range input's (or select's) live value, written only
|
||||
* when it differs.
|
||||
* `v-range-value`: a range input's (or a select's or text field's) live
|
||||
* value, written only when it differs.
|
||||
* A `:value` binding would also rewrite the value attribute on every patch;
|
||||
* the directive runs after the element's min, max and step are patched, so
|
||||
* the value is never clamped to a stale range.
|
||||
|
||||
Reference in new issue
Block a user