1.0.9 • Published 2 years ago

@fds-components/fds-gradient-editor v1.0.9

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

fds-gradient-editor

Simple gradient editor made with Svelte as web component so it can be used in Gyre form editor as an element for the Gyre user interface.

Installation

npm i ??? /fds-gradient-editor

Usage

<script src="fds-gradient-editor.js"></script>

<fds-gradient-editor value="gradient definitions"></fds-gradient-editor>

Example

        <fds-gradient-editor value="0:255,0,0
        25:255,255,255
        50:0,255,0
        75:0,0,255" onchange="console.log(this.value)"></fds-gradient-editor>

produces output

alt text

So value is a list with gradient stops (0 to 100 max) a colon and color for each line.

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago