openlayers-style-editor 0.2.4 → 0.2.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/dist/index.cjs CHANGED
@@ -105,7 +105,7 @@
105
105
  return GraduatedModes;
106
106
  }({});
107
107
  function getCategorizedStyle(attribute, colors, outlineColor, outlineWidth, defaultColor) {
108
- let outlineColorCopy = outlineColor ? outlineColor : void 0;
108
+ let outlineColorCopy = outlineColor ? [...outlineColor] : void 0;
109
109
  if (outlineWidth == 0 && outlineColorCopy != void 0) outlineColorCopy[3] = 0;
110
110
  else if (outlineWidth != void 0 && outlineWidth > 0 && outlineColorCopy) outlineColorCopy[3] = 1;
111
111
  let aux = [];
@@ -141,7 +141,7 @@
141
141
  };
142
142
  }
143
143
  function singleColorStyle(color, outlineColor, outlineWidth) {
144
- let outlineColorCopy = outlineColor ? outlineColor : void 0;
144
+ let outlineColorCopy = outlineColor ? [...outlineColor] : void 0;
145
145
  if (outlineWidth == 0 && outlineColorCopy != void 0) outlineColorCopy[3] = 0;
146
146
  else if (outlineWidth != void 0 && outlineWidth > 0 && outlineColorCopy) outlineColorCopy[3] = 1;
147
147
  return {
@@ -177,7 +177,7 @@
177
177
  };
178
178
  }
179
179
  function getGraduatedStyle(attribute, ramp, outlineColor, outlineWidth) {
180
- let outlineColorCopy = outlineColor ? outlineColor : void 0;
180
+ let outlineColorCopy = outlineColor ? [...outlineColor] : void 0;
181
181
  if (outlineWidth == 0 && outlineColorCopy != void 0) outlineColorCopy[3] = 0;
182
182
  else if (outlineWidth != void 0 && outlineWidth > 0 && outlineColorCopy) outlineColorCopy[3] = 1;
183
183
  let aux = [];
package/dist/index.js CHANGED
@@ -73,7 +73,7 @@ var GraduatedModes = /* @__PURE__ */ function(GraduatedModes) {
73
73
  return GraduatedModes;
74
74
  }({});
75
75
  function getCategorizedStyle(attribute, colors, outlineColor, outlineWidth, defaultColor) {
76
- let outlineColorCopy = outlineColor ? outlineColor : void 0;
76
+ let outlineColorCopy = outlineColor ? [...outlineColor] : void 0;
77
77
  if (outlineWidth == 0 && outlineColorCopy != void 0) outlineColorCopy[3] = 0;
78
78
  else if (outlineWidth != void 0 && outlineWidth > 0 && outlineColorCopy) outlineColorCopy[3] = 1;
79
79
  let aux = [];
@@ -109,7 +109,7 @@ function getCategorizedStyle(attribute, colors, outlineColor, outlineWidth, defa
109
109
  };
110
110
  }
111
111
  function singleColorStyle(color, outlineColor, outlineWidth) {
112
- let outlineColorCopy = outlineColor ? outlineColor : void 0;
112
+ let outlineColorCopy = outlineColor ? [...outlineColor] : void 0;
113
113
  if (outlineWidth == 0 && outlineColorCopy != void 0) outlineColorCopy[3] = 0;
114
114
  else if (outlineWidth != void 0 && outlineWidth > 0 && outlineColorCopy) outlineColorCopy[3] = 1;
115
115
  return {
@@ -145,7 +145,7 @@ function singleColorStyleForLines(color) {
145
145
  };
146
146
  }
147
147
  function getGraduatedStyle(attribute, ramp, outlineColor, outlineWidth) {
148
- let outlineColorCopy = outlineColor ? outlineColor : void 0;
148
+ let outlineColorCopy = outlineColor ? [...outlineColor] : void 0;
149
149
  if (outlineWidth == 0 && outlineColorCopy != void 0) outlineColorCopy[3] = 0;
150
150
  else if (outlineWidth != void 0 && outlineWidth > 0 && outlineColorCopy) outlineColorCopy[3] = 1;
151
151
  let aux = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openlayers-style-editor",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "description": "A style editor extension for OpenLayers currently working with WebGL Vector Layers",
6
6
  "homepage": "https://land-it.github.io/openlayers-style-editor/",