@rogieking/figui3 1.0.48 → 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.
Files changed (2) hide show
  1. package/fig.js +3 -11
  2. 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: 1, step: 0.01, color: "#FF0000" },
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.textInput) {
731
- this.textInput.value = val;
726
+ if (this.figInputText) {
727
+ this.figInputText.setAttribute("value", val);
732
728
  }
733
729
  }
734
730
  }
@@ -809,10 +805,6 @@ class FigInputText extends HTMLElement {
809
805
  case "label":
810
806
  this.disabled = this.input.disabled = newValue;
811
807
  break;
812
- case "value":
813
- this.value = newValue;
814
- this.handleInput();
815
- break;
816
808
  default:
817
809
  this[name] = this.input[name] = newValue;
818
810
  if (this.input) {
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.48"
3
+ "version": "1.0.50"
4
4
  }