@pixerate/editor-svelte 0.143.0 → 0.144.0
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.
|
@@ -229,6 +229,26 @@
|
|
|
229
229
|
</label>
|
|
230
230
|
</div>
|
|
231
231
|
{/if}
|
|
232
|
+
{#if options.tool === 'quick'}
|
|
233
|
+
<div data-testid="quick-selection-options" class="flex flex-col gap-2">
|
|
234
|
+
<p class="text-muted-foreground">Paint inside the area: the selection grows out to its edges. Each stroke adds (Alt-drag subtracts).</p>
|
|
235
|
+
<label class="flex flex-col gap-1">
|
|
236
|
+
<span class="flex justify-between text-muted-foreground">
|
|
237
|
+
<span>Size</span>
|
|
238
|
+
<span class="font-mono">{options.quickSize ?? 30} px</span>
|
|
239
|
+
</span>
|
|
240
|
+
<ImageRange label="Quick selection size" min={1} max={500} step={1} value={options.quickSize ?? 30} oninput={(v) => set({ quickSize: v })} />
|
|
241
|
+
</label>
|
|
242
|
+
<label class="flex items-center gap-2 text-foreground">
|
|
243
|
+
<ImageCheckbox label="Sample all layers" checked={options.quickSampleAll ?? true} onchange={(on) => set({ quickSampleAll: on })} />
|
|
244
|
+
Sample all layers
|
|
245
|
+
</label>
|
|
246
|
+
<label class="flex items-center gap-2 text-foreground">
|
|
247
|
+
<ImageCheckbox label="Auto-enhance edges" checked={options.quickEnhance ?? false} onchange={(on) => set({ quickEnhance: on })} />
|
|
248
|
+
Auto-enhance edges
|
|
249
|
+
</label>
|
|
250
|
+
</div>
|
|
251
|
+
{/if}
|
|
232
252
|
{#if options.tool === 'type' || options.tool === 'type-vertical'}
|
|
233
253
|
<div data-testid="type-mask-options" class="flex flex-col gap-2">
|
|
234
254
|
<p class="text-muted-foreground">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.144.0",
|
|
4
4
|
"description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"**/*.css"
|
|
166
166
|
],
|
|
167
167
|
"dependencies": {
|
|
168
|
-
"@pixerate/editor": "0.
|
|
168
|
+
"@pixerate/editor": "0.197.0"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@dagrejs/dagre": "^1.1.4",
|