@rogieking/figui3 1.0.49 → 1.0.50
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.
- package/fig.js +3 -7
- package/package.json +1 -1
package/fig.js
CHANGED
|
@@ -577,7 +577,7 @@ class FigSlider extends HTMLElement {
|
|
|
577
577
|
hue: { min: 0, max: 255, step: 1 },
|
|
578
578
|
delta: { min: -100, max: 100, step: 1 },
|
|
579
579
|
stepper: { min: 0, max: 100, step: 25 },
|
|
580
|
-
opacity: { min: 0, max:
|
|
580
|
+
opacity: { min: 0, max: 100, step: 0.01, color: "#FF0000" },
|
|
581
581
|
};
|
|
582
582
|
constructor() {
|
|
583
583
|
super();
|
|
@@ -644,7 +644,6 @@ class FigSlider extends HTMLElement {
|
|
|
644
644
|
|
|
645
645
|
this.datalist = this.querySelector("datalist");
|
|
646
646
|
this.figInputText = this.querySelector("fig-input-text");
|
|
647
|
-
this.textInput = this.querySelector("input[type=number]");
|
|
648
647
|
if (this.datalist) {
|
|
649
648
|
this.datalist.setAttribute(
|
|
650
649
|
"id",
|
|
@@ -698,9 +697,6 @@ class FigSlider extends HTMLElement {
|
|
|
698
697
|
break;
|
|
699
698
|
default:
|
|
700
699
|
this[name] = this.input[name] = newValue;
|
|
701
|
-
if (this.figInputText) {
|
|
702
|
-
this.figInputText.setAttribute(name, newValue);
|
|
703
|
-
}
|
|
704
700
|
this.handleInput();
|
|
705
701
|
break;
|
|
706
702
|
}
|
|
@@ -727,8 +723,8 @@ class FigSlider extends HTMLElement {
|
|
|
727
723
|
this.style.setProperty("--slider-complete", complete);
|
|
728
724
|
this.style.setProperty("--default", defaultValue);
|
|
729
725
|
this.style.setProperty("--unchanged", complete === defaultValue ? 1 : 0);
|
|
730
|
-
if (this.
|
|
731
|
-
this.
|
|
726
|
+
if (this.figInputText) {
|
|
727
|
+
this.figInputText.setAttribute("value", val);
|
|
732
728
|
}
|
|
733
729
|
}
|
|
734
730
|
}
|
package/package.json
CHANGED