@pixerate/editor-svelte 0.152.0 → 0.153.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.
|
@@ -55,7 +55,11 @@
|
|
|
55
55
|
void tick;
|
|
56
56
|
return Boolean(controller.segmentationProvider);
|
|
57
57
|
});
|
|
58
|
-
const toLayer = $derived(output
|
|
58
|
+
const toLayer = $derived(output !== 'selection' && output !== 'layer-mask');
|
|
59
|
+
const outputs = $derived.by(() => {
|
|
60
|
+
void tick;
|
|
61
|
+
return REFINE_OUTPUTS.filter((o) => !o.needsDocuments || controller.canOpenDocuments);
|
|
62
|
+
});
|
|
59
63
|
const target = $derived(list.find((l) => l.id === layerId) ?? list[list.length - 1]);
|
|
60
64
|
|
|
61
65
|
async function refine() {
|
|
@@ -124,14 +128,14 @@
|
|
|
124
128
|
onchange={(e) => (output = (e.currentTarget as HTMLSelectElement).value as RefineOutput)}
|
|
125
129
|
class="flex-1 bg-background border border-border rounded px-1 py-1 text-foreground"
|
|
126
130
|
>
|
|
127
|
-
{#each
|
|
131
|
+
{#each outputs as o (o.id)}
|
|
128
132
|
<option value={o.id}>{o.label}</option>
|
|
129
133
|
{/each}
|
|
130
134
|
</select>
|
|
131
135
|
</label>
|
|
132
136
|
<label class="flex flex-col gap-1">
|
|
133
137
|
<span class="flex justify-between text-muted-foreground">
|
|
134
|
-
<span>Decontaminate colors{toLayer ? '' : ' (new layer outputs)'}</span>
|
|
138
|
+
<span>Decontaminate colors{toLayer ? '' : ' (new layer or document outputs)'}</span>
|
|
135
139
|
<span class="font-mono">{decontaminate}%</span>
|
|
136
140
|
</span>
|
|
137
141
|
<input
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
session.end();
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
const toLayer = $derived(settings.output
|
|
130
|
+
const toLayer = $derived(settings.output !== 'selection' && settings.output !== 'layer-mask');
|
|
131
131
|
const brushTool = $derived(settings.tool === 'quick-select' || settings.tool === 'brush' || settings.tool === 'refine-brush');
|
|
132
132
|
|
|
133
133
|
const button =
|
|
@@ -258,14 +258,19 @@
|
|
|
258
258
|
<span class={imageSectionTitleClass}>Output Settings</span>
|
|
259
259
|
<label class="flex flex-col gap-1">
|
|
260
260
|
<span class="flex justify-between text-muted-foreground">
|
|
261
|
-
<span>Decontaminate Colors{toLayer ? '' : ' (new layer outputs)'}</span>
|
|
261
|
+
<span>Decontaminate Colors{toLayer ? '' : ' (new layer or document outputs)'}</span>
|
|
262
262
|
<span class="font-mono">{settings.decontaminate}%</span>
|
|
263
263
|
</span>
|
|
264
264
|
<ImageRange label="Workspace decontaminate amount" min={0} max={100} step={1} value={settings.decontaminate} disabled={!toLayer} oninput={(v) => set({ decontaminate: v })} />
|
|
265
265
|
</label>
|
|
266
266
|
<label class="flex items-center gap-2">
|
|
267
267
|
Output To
|
|
268
|
-
<ImageSelect
|
|
268
|
+
<ImageSelect
|
|
269
|
+
label="Output to"
|
|
270
|
+
value={settings.output}
|
|
271
|
+
options={REFINE_OUTPUTS.filter((o) => !o.needsDocuments || controller.canOpenDocuments).map((o) => ({ value: o.id, label: o.label }))}
|
|
272
|
+
onchange={(v) => set({ output: v as RefineOutput })}
|
|
273
|
+
/>
|
|
269
274
|
</label>
|
|
270
275
|
<label class="flex items-center gap-2">
|
|
271
276
|
<ImageCheckbox label="Remember Settings" checked={settings.remember} onchange={(on) => set({ remember: on })} />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.153.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.209.0"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@dagrejs/dagre": "^1.1.4",
|