-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Color updates, improved annotation logging
- Loading branch information
1 parent
5b413c4
commit dbed9ce
Showing
17 changed files
with
203 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script context="module"> | ||
import "@melloware/coloris/dist/coloris.css"; | ||
import Coloris from "@melloware/coloris"; | ||
Coloris.init(); | ||
</script> | ||
|
||
<script> | ||
import { onMount } from 'svelte'; | ||
import { writable } from 'svelte/store' | ||
export let palette = writable([]); | ||
let container; | ||
onMount(() => { | ||
Coloris({el: '.picker', alpha: false}); | ||
return Coloris.close | ||
}) | ||
</script> | ||
|
||
<style> | ||
:global(.picker-container .clr-field button) { | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 4px; | ||
} | ||
</style> | ||
|
||
<div class="picker-container flex flex-wrap items-center gap-2" bind:this={container}> | ||
{#each $palette as p} | ||
{#key "{i}-{p}"} | ||
<input on:change={() => palette.set(Array.from(container.querySelectorAll('.picker')).map(e => e.value))} type="text" value={p} class="picker w-2 h-2 border-0 cursor-pointer"> | ||
{/key} | ||
{/each} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.