@rogieking/figui3 2.10.4 → 2.10.5
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/components.css +1 -0
- package/fig.js +8 -0
- package/package.json +1 -1
package/components.css
CHANGED
package/fig.js
CHANGED
|
@@ -1587,6 +1587,8 @@ class FigSlider extends HTMLElement {
|
|
|
1587
1587
|
"color",
|
|
1588
1588
|
"units",
|
|
1589
1589
|
"transform",
|
|
1590
|
+
"text",
|
|
1591
|
+
"default",
|
|
1590
1592
|
];
|
|
1591
1593
|
}
|
|
1592
1594
|
|
|
@@ -1611,6 +1613,8 @@ class FigSlider extends HTMLElement {
|
|
|
1611
1613
|
break;
|
|
1612
1614
|
case "value":
|
|
1613
1615
|
this.value = newValue;
|
|
1616
|
+
this.input.value = newValue;
|
|
1617
|
+
this.#syncProperties();
|
|
1614
1618
|
if (this.figInputNumber) {
|
|
1615
1619
|
this.figInputNumber.setAttribute("value", newValue);
|
|
1616
1620
|
}
|
|
@@ -1621,6 +1625,10 @@ class FigSlider extends HTMLElement {
|
|
|
1621
1625
|
this.figInputNumber.setAttribute("transform", this.transform);
|
|
1622
1626
|
}
|
|
1623
1627
|
break;
|
|
1628
|
+
case "default":
|
|
1629
|
+
this.default = newValue;
|
|
1630
|
+
this.#syncProperties();
|
|
1631
|
+
break;
|
|
1624
1632
|
case "min":
|
|
1625
1633
|
case "max":
|
|
1626
1634
|
case "step":
|
package/package.json
CHANGED