@mapbox/mapbox-gl-style-spec 14.11.0-beta.2 → 14.11.0

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
@@ -154,6 +154,7 @@
154
154
  doc: "A collection of icon sets",
155
155
  "sdk-support": {
156
156
  "basic functionality": {
157
+ js: "3.11.0",
157
158
  android: "11.11.0",
158
159
  ios: "11.11.0"
159
160
  }
@@ -12148,11 +12149,15 @@
12148
12149
  return number(d, to[i], t);
12149
12150
  });
12150
12151
  }
12152
+ function easeIn(x) {
12153
+ return x * x * x * x * x;
12154
+ }
12151
12155
 
12152
12156
  var interpolate$1 = /*#__PURE__*/Object.freeze({
12153
12157
  __proto__: null,
12154
12158
  array: array,
12155
12159
  color: color,
12160
+ easeIn: easeIn,
12156
12161
  number: number
12157
12162
  });
12158
12163
 
@@ -12498,6 +12503,7 @@
12498
12503
  }
12499
12504
  }
12500
12505
 
12506
+ const separator = '\x1F';
12501
12507
  class ImageId {
12502
12508
  constructor(id) {
12503
12509
  if (typeof id === 'string') {
@@ -12511,30 +12517,20 @@
12511
12517
  return new ImageId(id);
12512
12518
  }
12513
12519
  static toString(id) {
12514
- return JSON.stringify({
12515
- name: id.name,
12516
- iconsetId: id.iconsetId
12517
- });
12520
+ return id.iconsetId ? `${ id.name }${ separator }${ id.iconsetId }` : id.name;
12518
12521
  }
12519
12522
  static parse(str) {
12520
- try {
12521
- const {name, iconsetId} = JSON.parse(str);
12522
- return new ImageId({
12523
- name,
12524
- iconsetId
12525
- });
12526
- } catch (e) {
12527
- return null;
12528
- }
12523
+ const [name, iconsetId] = str.split(separator);
12524
+ return new ImageId({
12525
+ name,
12526
+ iconsetId
12527
+ });
12529
12528
  }
12530
12529
  static isEqual(a, b) {
12531
12530
  return a.name === b.name && a.iconsetId === b.iconsetId;
12532
12531
  }
12533
12532
  toString() {
12534
- return JSON.stringify({
12535
- name: this.name,
12536
- iconsetId: this.iconsetId
12537
- });
12533
+ return ImageId.toString(this);
12538
12534
  }
12539
12535
  serialize() {
12540
12536
  return {
@@ -13149,16 +13145,7 @@
13149
13145
  for (const key in params) {
13150
13146
  if (params[key]) {
13151
13147
  try {
13152
- const color = params[key].evaluate(ctx);
13153
- const msg = `Ignoring image parameter "${ key }" with semi-transparent color ${ color.toString() }`;
13154
- if (color.a !== 1) {
13155
- if (!this._imageWarnHistory[msg]) {
13156
- console.warn(msg);
13157
- this._imageWarnHistory[msg] = true;
13158
- }
13159
- continue;
13160
- }
13161
- result[key] = color;
13148
+ result[key] = params[key].evaluate(ctx);
13162
13149
  } catch (err) {
13163
13150
  continue;
13164
13151
  }