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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "7.1.1-dev.1667450092854",
3
+ "version": "7.1.1-dev.1667574553768",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -566,12 +566,9 @@ Operators['*'] = {
566
566
  return ValueTypes.NUMBER;
567
567
  },
568
568
  toGlsl: function (context, args) {
569
- assertArgsCount(args, 2);
569
+ assertArgsMinCount(args, 2);
570
570
  assertNumbers(args);
571
- return `(${expressionToGlsl(context, args[0])} * ${expressionToGlsl(
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
- assertArgsCount(args, 2);
594
+ assertArgsMinCount(args, 2);
598
595
  assertNumbers(args);
599
- return `(${expressionToGlsl(context, args[0])} + ${expressionToGlsl(
600
- context,
601
- args[1]
602
- )})`;
596
+
597
+ return `(${args.map((arg) => expressionToGlsl(context, arg)).join(' + ')})`;
603
598
  },
604
599
  };
605
600
 
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '7.1.1-dev.1667450092854';
36
+ export const VERSION = '7.1.1-dev.1667574553768';