svelte-tweakpane-ui 1.3.0 → 1.3.2
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/dist/control/Button.svelte.d.ts +2 -2
- package/dist/control/ButtonGrid.svelte +1 -1
- package/dist/control/ButtonGrid.svelte.d.ts +5 -5
- package/dist/control/Checkbox.svelte.d.ts +2 -2
- package/dist/control/Color.svelte +1 -1
- package/dist/control/Color.svelte.d.ts +13 -13
- package/dist/control/CubicBezier.svelte +2 -2
- package/dist/control/CubicBezier.svelte.d.ts +7 -7
- package/dist/control/Image.svelte +1 -1
- package/dist/control/Image.svelte.d.ts +4 -4
- package/dist/control/IntervalSlider.svelte +1 -1
- package/dist/control/IntervalSlider.svelte.d.ts +9 -9
- package/dist/control/List.svelte.d.ts +3 -3
- package/dist/control/Point.svelte.d.ts +26 -26
- package/dist/control/RadioGrid.svelte +1 -1
- package/dist/control/RadioGrid.svelte.d.ts +7 -7
- package/dist/control/Ring.svelte +1 -1
- package/dist/control/Ring.svelte.d.ts +11 -11
- package/dist/control/RotationEuler.svelte +1 -1
- package/dist/control/RotationEuler.svelte.d.ts +13 -40
- package/dist/control/RotationQuaternion.svelte +1 -1
- package/dist/control/RotationQuaternion.svelte.d.ts +11 -47
- package/dist/control/Slider.svelte.d.ts +8 -8
- package/dist/control/Text.svelte +2 -1
- package/dist/control/Text.svelte.d.ts +3 -3
- package/dist/control/Textarea.svelte +1 -1
- package/dist/control/Textarea.svelte.d.ts +5 -5
- package/dist/control/Wheel.svelte +1 -1
- package/dist/control/Wheel.svelte.d.ts +9 -9
- package/dist/core/Binding.svelte.d.ts +4 -3
- package/dist/core/Blade.svelte.d.ts +3 -2
- package/dist/core/Folder.svelte.d.ts +4 -4
- package/dist/core/Pane.svelte.d.ts +27 -27
- package/dist/core/Separator.svelte.d.ts +2 -2
- package/dist/core/TabGroup.svelte.d.ts +2 -2
- package/dist/core/TabPage.svelte.d.ts +3 -3
- package/dist/extra/AutoObject.svelte +4 -4
- package/dist/extra/AutoObject.svelte.d.ts +1 -1
- package/dist/extra/AutoValue.svelte.d.ts +2 -2
- package/dist/extra/Element.svelte.d.ts +4 -4
- package/dist/index.d.ts +26 -26
- package/dist/internal/ClsPad.svelte.d.ts +3 -71
- package/dist/internal/GenericBinding.svelte.d.ts +2 -2
- package/dist/internal/GenericBladeFolding.svelte.d.ts +6 -6
- package/dist/internal/GenericInput.svelte.d.ts +2 -2
- package/dist/internal/GenericInputFolding.svelte.d.ts +6 -6
- package/dist/internal/GenericMonitor.svelte.d.ts +5 -5
- package/dist/internal/GenericPane.svelte.d.ts +4 -4
- package/dist/internal/GenericSlider.svelte.d.ts +8 -8
- package/dist/internal/InternalMonitorBoolean.svelte.d.ts +5 -5
- package/dist/internal/InternalMonitorNumber.svelte.d.ts +9 -9
- package/dist/internal/InternalMonitorString.svelte.d.ts +7 -7
- package/dist/internal/InternalPaneDraggable.svelte +1 -1
- package/dist/internal/InternalPaneDraggable.svelte.d.ts +14 -14
- package/dist/internal/InternalPaneFixed.svelte.d.ts +7 -7
- package/dist/internal/InternalPaneInline.svelte.d.ts +5 -5
- package/dist/monitor/FpsGraph.svelte +1 -1
- package/dist/monitor/FpsGraph.svelte.d.ts +57 -57
- package/dist/monitor/Monitor.svelte.d.ts +31 -31
- package/dist/monitor/Profiler.svelte +1 -1
- package/dist/monitor/Profiler.svelte.d.ts +61 -65
- package/dist/monitor/WaveformMonitor.svelte +1 -1
- package/dist/monitor/WaveformMonitor.svelte.d.ts +12 -12
- package/dist/theme.d.ts +2 -2
- package/dist/theme.js +1 -1
- package/package.json +44 -38
- package/readme.md +6 -1
|
@@ -14,23 +14,23 @@ declare class __sveltets_Render<
|
|
|
14
14
|
* DOM class name of the button used to expand and collapse the input's picker.
|
|
15
15
|
* @default `undefined`
|
|
16
16
|
* */
|
|
17
|
-
buttonClass?: string
|
|
17
|
+
buttonClass?: string;
|
|
18
18
|
/**
|
|
19
19
|
* Expand or collapse the input's picker.
|
|
20
20
|
* @default `false`
|
|
21
21
|
* @bindable
|
|
22
22
|
* */
|
|
23
|
-
expanded?: boolean
|
|
23
|
+
expanded?: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* The style of value "picker" to use in the input.
|
|
26
26
|
* @default `'popup'`
|
|
27
27
|
*/
|
|
28
|
-
picker?: 'inline' | 'popup'
|
|
28
|
+
picker?: 'inline' | 'popup';
|
|
29
29
|
/**
|
|
30
30
|
* Allow users to interactively expand / contract the picker.
|
|
31
31
|
* @default `true`
|
|
32
32
|
* */
|
|
33
|
-
userExpandable?: boolean
|
|
33
|
+
userExpandable?: boolean;
|
|
34
34
|
} & {
|
|
35
35
|
/**
|
|
36
36
|
* The value to control.
|
|
@@ -50,7 +50,7 @@ declare class __sveltets_Render<
|
|
|
50
50
|
* Prevent interactivity and gray out the control.
|
|
51
51
|
* @default `false`
|
|
52
52
|
*/
|
|
53
|
-
disabled?: boolean
|
|
53
|
+
disabled?: boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Text displayed next to control.
|
|
56
56
|
* @default `undefined`
|
|
@@ -102,7 +102,7 @@ declare class __sveltets_Render<
|
|
|
102
102
|
*
|
|
103
103
|
* @default `undefined`
|
|
104
104
|
*/
|
|
105
|
-
plugin?: import('
|
|
105
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
106
106
|
},
|
|
107
107
|
'object' | 'key'
|
|
108
108
|
>;
|
|
@@ -13,14 +13,14 @@ declare class __sveltets_Render<
|
|
|
13
13
|
* @default `1` \
|
|
14
14
|
* Or `64` if value is `number` and `graph` is `true`.
|
|
15
15
|
* */
|
|
16
|
-
bufferSize?: number
|
|
16
|
+
bufferSize?: number;
|
|
17
17
|
/**
|
|
18
18
|
* Time between value samples in milliseconds.
|
|
19
19
|
*
|
|
20
20
|
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
21
21
|
* @default `0`
|
|
22
22
|
* */
|
|
23
|
-
interval?: number
|
|
23
|
+
interval?: number;
|
|
24
24
|
/**
|
|
25
25
|
* Number of visible rows of state history.
|
|
26
26
|
*
|
|
@@ -29,7 +29,7 @@ declare class __sveltets_Render<
|
|
|
29
29
|
* @default `1` \
|
|
30
30
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
31
31
|
* */
|
|
32
|
-
rows?: number
|
|
32
|
+
rows?: number;
|
|
33
33
|
} & {
|
|
34
34
|
/**
|
|
35
35
|
* The value to control.
|
|
@@ -49,7 +49,7 @@ declare class __sveltets_Render<
|
|
|
49
49
|
* Prevent interactivity and gray out the control.
|
|
50
50
|
* @default `false`
|
|
51
51
|
*/
|
|
52
|
-
disabled?: boolean
|
|
52
|
+
disabled?: boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Text displayed next to control.
|
|
55
55
|
* @default `undefined`
|
|
@@ -101,7 +101,7 @@ declare class __sveltets_Render<
|
|
|
101
101
|
*
|
|
102
102
|
* @default `undefined`
|
|
103
103
|
*/
|
|
104
|
-
plugin?: import('
|
|
104
|
+
plugin?: import('..').Plugin | undefined;
|
|
105
105
|
},
|
|
106
106
|
'object' | 'key'
|
|
107
107
|
>;
|
|
@@ -14,12 +14,12 @@ declare const __propDef: {
|
|
|
14
14
|
*
|
|
15
15
|
* Hides the collapse button from the title bar when `false`.
|
|
16
16
|
* @default `true`
|
|
17
|
-
* */ userExpandable?: boolean
|
|
17
|
+
* */ userExpandable?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* Expand or collapse the pane into its title bar.
|
|
20
20
|
* @default `true`
|
|
21
21
|
* @bindable
|
|
22
|
-
* */ expanded?: boolean
|
|
22
|
+
* */ expanded?: boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Custom color scheme.
|
|
25
25
|
*
|
|
@@ -50,8 +50,8 @@ declare const __propDef: {
|
|
|
50
50
|
*
|
|
51
51
|
* Negative values are ignored.
|
|
52
52
|
* @default `1`
|
|
53
|
-
*/ scale?: number
|
|
54
|
-
/** Internal use only. */ userCreatedPane?: boolean
|
|
53
|
+
*/ scale?: number;
|
|
54
|
+
/** Internal use only. */ userCreatedPane?: boolean;
|
|
55
55
|
/**
|
|
56
56
|
* The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
|
|
57
57
|
*
|
|
@@ -10,14 +10,14 @@ declare class __sveltets_Render<T extends number | IntervalSliderValue> {
|
|
|
10
10
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
11
11
|
* @default `undefined`
|
|
12
12
|
* */
|
|
13
|
-
min?: number
|
|
13
|
+
min?: number;
|
|
14
14
|
/**
|
|
15
15
|
* Maximum value.
|
|
16
16
|
*
|
|
17
17
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
18
18
|
* @default `undefined`
|
|
19
19
|
* */
|
|
20
|
-
max?: number
|
|
20
|
+
max?: number;
|
|
21
21
|
/**
|
|
22
22
|
* A function to customize the point value's string representation (e.g. rounding, etc.).
|
|
23
23
|
* @default `undefined` \
|
|
@@ -29,26 +29,26 @@ declare class __sveltets_Render<T extends number | IntervalSliderValue> {
|
|
|
29
29
|
* @default `1` \
|
|
30
30
|
* Or `stepValue` if defined.
|
|
31
31
|
* */
|
|
32
|
-
keyScale?: number
|
|
32
|
+
keyScale?: number;
|
|
33
33
|
/**
|
|
34
34
|
* The unit scale for pointer-based input for all dimensions.
|
|
35
35
|
* @default `undefined` \
|
|
36
36
|
* [Dynamic based on magnitude of
|
|
37
37
|
* `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
|
|
38
38
|
* */
|
|
39
|
-
pointerScale?: number
|
|
39
|
+
pointerScale?: number;
|
|
40
40
|
/**
|
|
41
41
|
* The minimum step interval.
|
|
42
42
|
* @default `undefined` \
|
|
43
43
|
* No step constraint.
|
|
44
44
|
* */
|
|
45
|
-
step?: number
|
|
45
|
+
step?: number;
|
|
46
46
|
/**
|
|
47
47
|
* When `true`, expand the width of the control at the expense of the numeric input
|
|
48
48
|
* field.
|
|
49
49
|
* @default `false`
|
|
50
50
|
* */
|
|
51
|
-
wide?: boolean
|
|
51
|
+
wide?: boolean;
|
|
52
52
|
} & {
|
|
53
53
|
/**
|
|
54
54
|
* The value to control.
|
|
@@ -68,7 +68,7 @@ declare class __sveltets_Render<T extends number | IntervalSliderValue> {
|
|
|
68
68
|
* Prevent interactivity and gray out the control.
|
|
69
69
|
* @default `false`
|
|
70
70
|
*/
|
|
71
|
-
disabled?: boolean
|
|
71
|
+
disabled?: boolean;
|
|
72
72
|
/**
|
|
73
73
|
* Text displayed next to control.
|
|
74
74
|
* @default `undefined`
|
|
@@ -120,7 +120,7 @@ declare class __sveltets_Render<T extends number | IntervalSliderValue> {
|
|
|
120
120
|
*
|
|
121
121
|
* @default `undefined`
|
|
122
122
|
*/
|
|
123
|
-
plugin?: import('
|
|
123
|
+
plugin?: import('..').Plugin | undefined;
|
|
124
124
|
},
|
|
125
125
|
'object' | 'key'
|
|
126
126
|
>;
|
|
@@ -14,14 +14,14 @@ declare const __propDef: {
|
|
|
14
14
|
* @default `1` \
|
|
15
15
|
* Or `64` if value is `number` and `graph` is `true`.
|
|
16
16
|
*/
|
|
17
|
-
bufferSize?: number
|
|
17
|
+
bufferSize?: number;
|
|
18
18
|
/**
|
|
19
19
|
* Time between value samples in milliseconds.
|
|
20
20
|
*
|
|
21
21
|
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
22
22
|
* @default `0`
|
|
23
23
|
*/
|
|
24
|
-
interval?: number
|
|
24
|
+
interval?: number;
|
|
25
25
|
/**
|
|
26
26
|
* Number of visible rows of state history.
|
|
27
27
|
*
|
|
@@ -30,7 +30,7 @@ declare const __propDef: {
|
|
|
30
30
|
* @default `1` \
|
|
31
31
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
32
32
|
*/
|
|
33
|
-
rows?: number
|
|
33
|
+
rows?: number;
|
|
34
34
|
} & {
|
|
35
35
|
/**
|
|
36
36
|
* A `boolean` value to monitor.
|
|
@@ -49,7 +49,7 @@ declare const __propDef: {
|
|
|
49
49
|
* Prevent interactivity and gray out the control.
|
|
50
50
|
* @default `false`
|
|
51
51
|
*/
|
|
52
|
-
disabled?: boolean
|
|
52
|
+
disabled?: boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Text displayed next to control.
|
|
55
55
|
* @default `undefined`
|
|
@@ -101,7 +101,7 @@ declare const __propDef: {
|
|
|
101
101
|
*
|
|
102
102
|
* @default `undefined`
|
|
103
103
|
*/
|
|
104
|
-
plugin?: import('
|
|
104
|
+
plugin?: import('../utils').Plugin | undefined;
|
|
105
105
|
},
|
|
106
106
|
'object' | 'key'
|
|
107
107
|
>,
|
|
@@ -11,23 +11,23 @@ declare const __propDef: {
|
|
|
11
11
|
* Minimum bound when `graph` is true.
|
|
12
12
|
* @default `0`
|
|
13
13
|
*/
|
|
14
|
-
min?: number
|
|
14
|
+
min?: number;
|
|
15
15
|
/**
|
|
16
16
|
* Maximum bound when `graph` is true.
|
|
17
17
|
* @default `100`
|
|
18
18
|
* */
|
|
19
|
-
max?: number
|
|
19
|
+
max?: number;
|
|
20
20
|
/**
|
|
21
21
|
* A function to customize the number's string representation (e.g. rounding, etc.).
|
|
22
22
|
* @default `undefined` \
|
|
23
23
|
* Normal `.toString()` formatting.
|
|
24
24
|
* */
|
|
25
|
-
format?: (
|
|
25
|
+
format?: (value: number) => string;
|
|
26
26
|
/**
|
|
27
27
|
* Display a graph of the value's changes over time.
|
|
28
28
|
* @default `false`
|
|
29
29
|
* */
|
|
30
|
-
graph?: boolean
|
|
30
|
+
graph?: boolean;
|
|
31
31
|
} & Omit<
|
|
32
32
|
{
|
|
33
33
|
/**
|
|
@@ -35,14 +35,14 @@ declare const __propDef: {
|
|
|
35
35
|
* @default `1` \
|
|
36
36
|
* Or `64` if value is `number` and `graph` is `true`.
|
|
37
37
|
*/
|
|
38
|
-
bufferSize?: number
|
|
38
|
+
bufferSize?: number;
|
|
39
39
|
/**
|
|
40
40
|
* Time between value samples in milliseconds.
|
|
41
41
|
*
|
|
42
42
|
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
43
43
|
* @default `0`
|
|
44
44
|
*/
|
|
45
|
-
interval?: number
|
|
45
|
+
interval?: number;
|
|
46
46
|
/**
|
|
47
47
|
* Number of visible rows of state history.
|
|
48
48
|
*
|
|
@@ -51,7 +51,7 @@ declare const __propDef: {
|
|
|
51
51
|
* @default `1` \
|
|
52
52
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
53
53
|
*/
|
|
54
|
-
rows?: number
|
|
54
|
+
rows?: number;
|
|
55
55
|
} & {
|
|
56
56
|
/**
|
|
57
57
|
* A `number` value to monitor.
|
|
@@ -70,7 +70,7 @@ declare const __propDef: {
|
|
|
70
70
|
* Prevent interactivity and gray out the control.
|
|
71
71
|
* @default `false`
|
|
72
72
|
*/
|
|
73
|
-
disabled?: boolean
|
|
73
|
+
disabled?: boolean;
|
|
74
74
|
/**
|
|
75
75
|
* Text displayed next to control.
|
|
76
76
|
* @default `undefined`
|
|
@@ -122,7 +122,7 @@ declare const __propDef: {
|
|
|
122
122
|
*
|
|
123
123
|
* @default `undefined`
|
|
124
124
|
*/
|
|
125
|
-
plugin?: import('
|
|
125
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
126
126
|
},
|
|
127
127
|
'object' | 'key'
|
|
128
128
|
>,
|
|
@@ -11,7 +11,7 @@ declare const __propDef: {
|
|
|
11
11
|
* Display multiline strings.
|
|
12
12
|
* @default `false`
|
|
13
13
|
* */
|
|
14
|
-
multiline?: boolean
|
|
14
|
+
multiline?: boolean;
|
|
15
15
|
} & Omit<
|
|
16
16
|
{
|
|
17
17
|
/**
|
|
@@ -19,14 +19,14 @@ declare const __propDef: {
|
|
|
19
19
|
* @default `1` \
|
|
20
20
|
* Or `64` if value is `number` and `graph` is `true`.
|
|
21
21
|
*/
|
|
22
|
-
bufferSize?: number
|
|
22
|
+
bufferSize?: number;
|
|
23
23
|
/**
|
|
24
24
|
* Time between value samples in milliseconds.
|
|
25
25
|
*
|
|
26
26
|
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
27
27
|
* @default `0`
|
|
28
28
|
*/
|
|
29
|
-
interval?: number
|
|
29
|
+
interval?: number;
|
|
30
30
|
/**
|
|
31
31
|
* Number of visible rows of state history.
|
|
32
32
|
*
|
|
@@ -35,7 +35,7 @@ declare const __propDef: {
|
|
|
35
35
|
* @default `1` \
|
|
36
36
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
37
37
|
*/
|
|
38
|
-
rows?: number
|
|
38
|
+
rows?: number;
|
|
39
39
|
} & {
|
|
40
40
|
/**
|
|
41
41
|
* A `string` value to monitor.
|
|
@@ -54,7 +54,7 @@ declare const __propDef: {
|
|
|
54
54
|
* Prevent interactivity and gray out the control.
|
|
55
55
|
* @default `false`
|
|
56
56
|
*/
|
|
57
|
-
disabled?: boolean
|
|
57
|
+
disabled?: boolean;
|
|
58
58
|
/**
|
|
59
59
|
* Text displayed next to control.
|
|
60
60
|
* @default `undefined`
|
|
@@ -106,7 +106,7 @@ declare const __propDef: {
|
|
|
106
106
|
*
|
|
107
107
|
* @default `undefined`
|
|
108
108
|
*/
|
|
109
|
-
plugin?: import('
|
|
109
|
+
plugin?: import('../utils').Plugin | undefined;
|
|
110
110
|
},
|
|
111
111
|
'object' | 'key'
|
|
112
112
|
>,
|
|
@@ -144,7 +144,7 @@ export type InternalMonitorStringSlots = typeof __propDef.slots;
|
|
|
144
144
|
* <script lang="ts">
|
|
145
145
|
* import { InternalMonitorString } from 'svelte-tweakpane-ui';
|
|
146
146
|
*
|
|
147
|
-
* let stringToMonitor = '
|
|
147
|
+
* let stringToMonitor = 'so\nit\ngoes';
|
|
148
148
|
*
|
|
149
149
|
* setInterval(() => {
|
|
150
150
|
* stringToMonitor = stringToMonitor
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import GenericPane from './GenericPane.svelte';
|
|
10
10
|
import { clamp, getSwatchButton, pickerIsOpen, removeKeys } from '../utils.js';
|
|
11
11
|
import { onDestroy, onMount } from 'svelte';
|
|
12
|
-
import { persisted } from 'svelte-
|
|
12
|
+
import { persisted } from 'svelte-persisted-store';
|
|
13
13
|
const titlebarWindowShadeSingleClick = true;
|
|
14
14
|
const titlebarWindowShadeDoubleClick = false;
|
|
15
15
|
const pointerCancelOnWindowBlur = true;
|
|
@@ -11,7 +11,7 @@ declare const __propDef: {
|
|
|
11
11
|
* @default `0`
|
|
12
12
|
* @bindable
|
|
13
13
|
* */
|
|
14
|
-
x?: number
|
|
14
|
+
x?: number;
|
|
15
15
|
/**
|
|
16
16
|
* Vertical position of the pane relative to the top of the window, in pixels.
|
|
17
17
|
*
|
|
@@ -22,30 +22,30 @@ declare const __propDef: {
|
|
|
22
22
|
* @default `0`
|
|
23
23
|
* @bindable
|
|
24
24
|
* */
|
|
25
|
-
y?: number
|
|
25
|
+
y?: number;
|
|
26
26
|
/**
|
|
27
27
|
* Minimum pane width in pixels.
|
|
28
28
|
* @default `200`
|
|
29
29
|
* */
|
|
30
|
-
minWidth?: number
|
|
30
|
+
minWidth?: number;
|
|
31
31
|
/**
|
|
32
32
|
* Maximum pane width in pixels.
|
|
33
33
|
* @default `600`
|
|
34
34
|
* */
|
|
35
|
-
maxWidth?: number
|
|
35
|
+
maxWidth?: number;
|
|
36
36
|
/**
|
|
37
37
|
* Automatically collapse open panels when the available window size is less than the height
|
|
38
38
|
* of the pane.
|
|
39
39
|
*
|
|
40
40
|
* @default `false`
|
|
41
41
|
* */
|
|
42
|
-
collapseChildrenToFit?: boolean
|
|
42
|
+
collapseChildrenToFit?: boolean;
|
|
43
43
|
/**
|
|
44
44
|
* Identifier to be used if multiple `<Pane position="draggable">` components with
|
|
45
45
|
* `storePositionLocally` set to true are used on the same page.
|
|
46
46
|
* @default `'1'`
|
|
47
47
|
*/
|
|
48
|
-
localStoreId?: string
|
|
48
|
+
localStoreId?: string;
|
|
49
49
|
/**
|
|
50
50
|
* CSS [padding property string](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
|
|
51
51
|
* to apply to the draggable pane container to prevent it from being dragged all the way to
|
|
@@ -54,13 +54,13 @@ declare const __propDef: {
|
|
|
54
54
|
* Useful for keeping the pane away from of menu bars, etc.
|
|
55
55
|
* @default `'0'`
|
|
56
56
|
*/
|
|
57
|
-
padding?: string
|
|
57
|
+
padding?: string;
|
|
58
58
|
/**
|
|
59
59
|
* Allow the user to resize the width of the pane by dragging the right corner of the title
|
|
60
60
|
* bar.
|
|
61
61
|
* @default `true`
|
|
62
62
|
* */
|
|
63
|
-
resizable?: boolean
|
|
63
|
+
resizable?: boolean;
|
|
64
64
|
/**
|
|
65
65
|
* Store the pane's position and width when the user changes it interactively.
|
|
66
66
|
*
|
|
@@ -68,7 +68,7 @@ declare const __propDef: {
|
|
|
68
68
|
* `storePositionLocally` set to `true`.
|
|
69
69
|
* @default `true`
|
|
70
70
|
* */
|
|
71
|
-
storePositionLocally?: boolean
|
|
71
|
+
storePositionLocally?: boolean;
|
|
72
72
|
/**
|
|
73
73
|
* Width of the pane, in pixels.
|
|
74
74
|
*
|
|
@@ -84,7 +84,7 @@ declare const __propDef: {
|
|
|
84
84
|
* @default `256`
|
|
85
85
|
* @bindable
|
|
86
86
|
* */
|
|
87
|
-
width?: number
|
|
87
|
+
width?: number;
|
|
88
88
|
} & Omit<
|
|
89
89
|
{
|
|
90
90
|
/**
|
|
@@ -100,13 +100,13 @@ declare const __propDef: {
|
|
|
100
100
|
* Hides the collapse button from the title bar when `false`.
|
|
101
101
|
* @default `true`
|
|
102
102
|
*/
|
|
103
|
-
userExpandable?: boolean
|
|
103
|
+
userExpandable?: boolean;
|
|
104
104
|
/**
|
|
105
105
|
* Expand or collapse the pane into its title bar.
|
|
106
106
|
* @default `true`
|
|
107
107
|
* @bindable
|
|
108
108
|
*/
|
|
109
|
-
expanded?: boolean
|
|
109
|
+
expanded?: boolean;
|
|
110
110
|
/**
|
|
111
111
|
* Custom color scheme.
|
|
112
112
|
*
|
|
@@ -139,9 +139,9 @@ declare const __propDef: {
|
|
|
139
139
|
* Negative values are ignored.
|
|
140
140
|
* @default `1`
|
|
141
141
|
*/
|
|
142
|
-
scale?: number
|
|
142
|
+
scale?: number;
|
|
143
143
|
/** Internal use only. */
|
|
144
|
-
userCreatedPane?: boolean
|
|
144
|
+
userCreatedPane?: boolean;
|
|
145
145
|
/**
|
|
146
146
|
* The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
|
|
147
147
|
*
|
|
@@ -9,7 +9,7 @@ declare const __propDef: {
|
|
|
9
9
|
* @default `undefined` \
|
|
10
10
|
* 8 pixels from the right edge of the window.
|
|
11
11
|
* */
|
|
12
|
-
x?: number
|
|
12
|
+
x?: number;
|
|
13
13
|
/**
|
|
14
14
|
* Vertical position of the pane relative to the top of the window, in pixels.
|
|
15
15
|
*
|
|
@@ -18,12 +18,12 @@ declare const __propDef: {
|
|
|
18
18
|
* @default `undefined` \
|
|
19
19
|
* 8 pixels from the top edge of the window.
|
|
20
20
|
* */
|
|
21
|
-
y?: number
|
|
21
|
+
y?: number;
|
|
22
22
|
/**
|
|
23
23
|
* Width of the pane, in pixels.
|
|
24
24
|
* @default `256`
|
|
25
25
|
* */
|
|
26
|
-
width?: number
|
|
26
|
+
width?: number;
|
|
27
27
|
} & Omit<
|
|
28
28
|
{
|
|
29
29
|
/**
|
|
@@ -39,13 +39,13 @@ declare const __propDef: {
|
|
|
39
39
|
* Hides the collapse button from the title bar when `false`.
|
|
40
40
|
* @default `true`
|
|
41
41
|
*/
|
|
42
|
-
userExpandable?: boolean
|
|
42
|
+
userExpandable?: boolean;
|
|
43
43
|
/**
|
|
44
44
|
* Expand or collapse the pane into its title bar.
|
|
45
45
|
* @default `true`
|
|
46
46
|
* @bindable
|
|
47
47
|
*/
|
|
48
|
-
expanded?: boolean
|
|
48
|
+
expanded?: boolean;
|
|
49
49
|
/**
|
|
50
50
|
* Custom color scheme.
|
|
51
51
|
*
|
|
@@ -78,9 +78,9 @@ declare const __propDef: {
|
|
|
78
78
|
* Negative values are ignored.
|
|
79
79
|
* @default `1`
|
|
80
80
|
*/
|
|
81
|
-
scale?: number
|
|
81
|
+
scale?: number;
|
|
82
82
|
/** Internal use only. */
|
|
83
|
-
userCreatedPane?: boolean
|
|
83
|
+
userCreatedPane?: boolean;
|
|
84
84
|
/**
|
|
85
85
|
* The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
|
|
86
86
|
*
|
|
@@ -12,7 +12,7 @@ declare const __propDef: {
|
|
|
12
12
|
* element is not provided.
|
|
13
13
|
* @default `undefined`
|
|
14
14
|
* */
|
|
15
|
-
width?: number
|
|
15
|
+
width?: number;
|
|
16
16
|
} & {
|
|
17
17
|
/**
|
|
18
18
|
* Text in the pane's title bar.
|
|
@@ -27,13 +27,13 @@ declare const __propDef: {
|
|
|
27
27
|
* Hides the collapse button from the title bar when `false`.
|
|
28
28
|
* @default `true`
|
|
29
29
|
*/
|
|
30
|
-
userExpandable?: boolean
|
|
30
|
+
userExpandable?: boolean;
|
|
31
31
|
/**
|
|
32
32
|
* Expand or collapse the pane into its title bar.
|
|
33
33
|
* @default `true`
|
|
34
34
|
* @bindable
|
|
35
35
|
*/
|
|
36
|
-
expanded?: boolean
|
|
36
|
+
expanded?: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* Custom color scheme.
|
|
39
39
|
*
|
|
@@ -66,9 +66,9 @@ declare const __propDef: {
|
|
|
66
66
|
* Negative values are ignored.
|
|
67
67
|
* @default `1`
|
|
68
68
|
*/
|
|
69
|
-
scale?: number
|
|
69
|
+
scale?: number;
|
|
70
70
|
/** Internal use only. */
|
|
71
|
-
userCreatedPane?: boolean
|
|
71
|
+
userCreatedPane?: boolean;
|
|
72
72
|
/**
|
|
73
73
|
* The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
|
|
74
74
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-essentials';
|
|
5
4
|
import Blade from '../core/Blade.svelte';
|
|
6
5
|
import ClsPad from '../internal/ClsPad.svelte';
|
|
7
6
|
import { fillWith } from '../utils';
|
|
7
|
+
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-essentials';
|
|
8
8
|
import { BROWSER } from 'esm-env';
|
|
9
9
|
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
|
|
10
10
|
export let rows = void 0;
|