Skip to content

Commit 66c6c2e

Browse files
committed
Update color plus plugin. Code format updates.
1 parent 53bd6aa commit 66c6c2e

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
"nanoid": "^5.1.11",
219219
"svelte-persisted-store": "0.12.0",
220220
"tweakpane": "4.0.5",
221-
"tweakpane-plugin-color-plus": "0.3.0"
221+
"tweakpane-plugin-color-plus": "0.3.1"
222222
},
223223
"devDependencies": {
224224
"@kitschpatrol/shared-config": "^7.6.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/control/ColorPlus.svelte

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@
2323
/**
2424
* A color value to control.
2525
*
26-
* Use either a color-like string (e.g. #ff00ff), a number, an object with `r`, `b`, `g`, and
27-
* optional `a` keys, or a tuple.
26+
* Use either a color-like string (e.g. #ff00ff), a number, an object with
27+
* `r`, `b`, `g`, and optional `a` keys, or a tuple.
28+
*
2829
* @bindable
2930
*/
3031
value: ColorPlusValue
3132
/**
32-
* Whether to treat values as floats from 0.0 to 1.0, or integers from 0 to 255.
33+
* Whether to treat values as floats from 0.0 to 1.0, or integers from 0 to
34+
* 255.
35+
*
3336
* @default `'int'`
3437
*/
3538
type?: 'float' | 'int'
@@ -44,10 +47,14 @@
4447
/**
4548
* Fires when `value` changes.
4649
*
47-
* _This event is provided for advanced use cases. It's usually preferred to bind to the `value` prop instead._
50+
* _This event is provided for advanced use cases. It's usually preferred to
51+
* bind to the `value` prop instead._
52+
*
53+
* The `event.details` payload includes a copy of the value and an `origin`
54+
* field to distinguish between user-interactive changes (`internal`) and
55+
* changes resulting from programmatic manipulation of the `value`
56+
* (`external`).
4857
*
49-
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
50-
* and changes resulting from programmatic manipulation of the `value` (`external`).
5158
* @extends ValueChangeEvent
5259
* @event
5360
*/

0 commit comments

Comments
 (0)