ol 9.2.5-dev.1718182619798 → 9.2.5-dev.1718183112915
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/color.js +2 -2
- package/dist/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/expr/cpu.d.ts.map +1 -1
- package/expr/cpu.js +2 -16
- package/expr/expression.d.ts +7 -14
- package/expr/expression.d.ts.map +1 -1
- package/expr/expression.js +388 -508
- package/expr/gpu.d.ts.map +1 -1
- package/expr/gpu.js +1 -14
- package/package.json +1 -1
- package/render/canvas/style.d.ts.map +1 -1
- package/render/canvas/style.js +6 -5
- package/util.js +1 -1
- package/webgl/styleparser.d.ts.map +1 -1
- package/webgl/styleparser.js +54 -66
package/color.js
CHANGED
|
@@ -102,11 +102,11 @@ export function fromString(s) {
|
|
|
102
102
|
|
|
103
103
|
const color = parseRgba(s);
|
|
104
104
|
if (color.length !== 4) {
|
|
105
|
-
throw new Error('
|
|
105
|
+
throw new Error('failed to parse "' + s + '" as color');
|
|
106
106
|
}
|
|
107
107
|
for (const c of color) {
|
|
108
108
|
if (isNaN(c)) {
|
|
109
|
-
throw new Error('
|
|
109
|
+
throw new Error('failed to parse "' + s + '" as color');
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
normalize(color);
|