@pixerate/editor-svelte 0.180.0 → 0.181.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { LIGHT_SLIDERS, PAPER_FAMILIES, PAPER_LIBRARY, PAPER_SLIDERS, patchPath, readPath, renderPaper, type PaintEditorController } from '@pixerate/editor/paint-editor';
|
|
2
|
+
import { DEFAULT_BACKLIGHT_COLOR, LIGHT_SLIDERS, PAPER_FAMILIES, PAPER_LIBRARY, PAPER_SLIDERS, patchPath, readPath, renderPaper, type PaintEditorController } from '@pixerate/editor/paint-editor';
|
|
3
3
|
import PaintSlider from './PaintSlider.svelte';
|
|
4
4
|
import PixelCanvas from './PixelCanvas.svelte';
|
|
5
5
|
import { attempt, button, paintEditorState, panel } from './paintEditorRune.svelte.js';
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
{#each PAPER_SLIDERS as c (c.path)}
|
|
51
51
|
<PaintSlider control={c} value={readPath(paper, c.path)} oncommit={(v) => run(() => controller.setPaper(patchPath(paper as never, c.path, v) as never))} />
|
|
52
52
|
{/each}
|
|
53
|
+
<label class="flex items-center justify-between">
|
|
54
|
+
<span class="text-slate-400">Backlight colour</span>
|
|
55
|
+
<input type="color" aria-label="Backlight colour" value={paper.backlightColor ?? DEFAULT_BACKLIGHT_COLOR} onchange={(e) => run(() => controller.setPaper({ backlightColor: e.currentTarget.value }))} class="h-6 w-10 rounded bg-transparent" />
|
|
56
|
+
</label>
|
|
53
57
|
<label class="flex items-center gap-2">
|
|
54
58
|
<input type="checkbox" checked={paper.tiling === 'mirror'} onchange={(e) => run(() => controller.setPaper({ tiling: e.currentTarget.checked ? 'mirror' : 'repeat' }))} /> Mirror tiling
|
|
55
59
|
</label>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.181.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.244.0"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@dagrejs/dagre": "^1.1.4",
|