ol 7.1.1-dev.1667450092854 → 7.1.1-dev.1667574553768
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/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/style/expressions.js +5 -10
- package/util.js +1 -1
package/package.json
CHANGED
package/style/expressions.js
CHANGED
|
@@ -566,12 +566,9 @@ Operators['*'] = {
|
|
|
566
566
|
return ValueTypes.NUMBER;
|
|
567
567
|
},
|
|
568
568
|
toGlsl: function (context, args) {
|
|
569
|
-
|
|
569
|
+
assertArgsMinCount(args, 2);
|
|
570
570
|
assertNumbers(args);
|
|
571
|
-
return `(${expressionToGlsl(context,
|
|
572
|
-
context,
|
|
573
|
-
args[1]
|
|
574
|
-
)})`;
|
|
571
|
+
return `(${args.map((arg) => expressionToGlsl(context, arg)).join(' * ')})`;
|
|
575
572
|
},
|
|
576
573
|
};
|
|
577
574
|
|
|
@@ -594,12 +591,10 @@ Operators['+'] = {
|
|
|
594
591
|
return ValueTypes.NUMBER;
|
|
595
592
|
},
|
|
596
593
|
toGlsl: function (context, args) {
|
|
597
|
-
|
|
594
|
+
assertArgsMinCount(args, 2);
|
|
598
595
|
assertNumbers(args);
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
args[1]
|
|
602
|
-
)})`;
|
|
596
|
+
|
|
597
|
+
return `(${args.map((arg) => expressionToGlsl(context, arg)).join(' + ')})`;
|
|
603
598
|
},
|
|
604
599
|
};
|
|
605
600
|
|
package/util.js
CHANGED