@mapbox/mapbox-gl-style-spec 14.12.0 → 14.13.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.d.ts CHANGED
@@ -489,6 +489,9 @@ type VectorSourceSpecification = {
489
489
  number,
490
490
  number
491
491
  ];
492
+ /**
493
+ * @experimental This property is experimental and subject to change in future versions.
494
+ */
492
495
  "extra_bounds"?: Array<[
493
496
  number,
494
497
  number,
@@ -513,6 +516,9 @@ type RasterSourceSpecification = {
513
516
  number,
514
517
  number
515
518
  ];
519
+ /**
520
+ * @experimental This property is experimental and subject to change in future versions.
521
+ */
516
522
  "extra_bounds"?: Array<[
517
523
  number,
518
524
  number,
@@ -537,6 +543,9 @@ type RasterDEMSourceSpecification = {
537
543
  number,
538
544
  number
539
545
  ];
546
+ /**
547
+ * @experimental This property is experimental and subject to change in future versions.
548
+ */
540
549
  "extra_bounds"?: Array<[
541
550
  number,
542
551
  number,
@@ -561,6 +570,9 @@ type RasterArraySourceSpecification = {
561
570
  number,
562
571
  number
563
572
  ];
573
+ /**
574
+ * @experimental This property is experimental and subject to change in future versions.
575
+ */
564
576
  "extra_bounds"?: Array<[
565
577
  number,
566
578
  number,
@@ -746,7 +758,6 @@ type FillLayerSpecification = {
746
758
  "fill-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
747
759
  "fill-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
748
760
  "fill-pattern-cross-fade"?: PropertyValueSpecification<number>;
749
- "fill-pattern-cross-fade-transition"?: TransitionSpecification;
750
761
  "fill-emissive-strength"?: PropertyValueSpecification<number>;
751
762
  "fill-emissive-strength-transition"?: TransitionSpecification;
752
763
  /**
@@ -825,7 +836,6 @@ type LineLayerSpecification = {
825
836
  "line-dasharray"?: DataDrivenPropertyValueSpecification<Array<number>>;
826
837
  "line-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
827
838
  "line-pattern-cross-fade"?: PropertyValueSpecification<number>;
828
- "line-pattern-cross-fade-transition"?: TransitionSpecification;
829
839
  "line-gradient"?: ExpressionSpecification;
830
840
  "line-gradient-use-theme"?: PropertyValueSpecification<string>;
831
841
  "line-trim-offset"?: [
@@ -960,7 +970,6 @@ type SymbolLayerSpecification = {
960
970
  "icon-translate-transition"?: TransitionSpecification;
961
971
  "icon-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
962
972
  "icon-image-cross-fade"?: PropertyValueSpecification<number>;
963
- "icon-image-cross-fade-transition"?: TransitionSpecification;
964
973
  "text-opacity"?: DataDrivenPropertyValueSpecification<number>;
965
974
  "text-opacity-transition"?: TransitionSpecification;
966
975
  "text-occlusion-opacity"?: DataDrivenPropertyValueSpecification<number>;
@@ -1095,7 +1104,6 @@ type FillExtrusionLayerSpecification = {
1095
1104
  "fill-extrusion-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
1096
1105
  "fill-extrusion-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
1097
1106
  "fill-extrusion-pattern-cross-fade"?: PropertyValueSpecification<number>;
1098
- "fill-extrusion-pattern-cross-fade-transition"?: TransitionSpecification;
1099
1107
  "fill-extrusion-height"?: DataDrivenPropertyValueSpecification<number>;
1100
1108
  "fill-extrusion-height-transition"?: TransitionSpecification;
1101
1109
  "fill-extrusion-base"?: DataDrivenPropertyValueSpecification<number>;
@@ -1619,20 +1627,20 @@ export declare class Color {
1619
1627
  * var translucentGreen = new Color.parse('rgba(26, 207, 26, .73)');
1620
1628
  * translucentGreen.toString(); // = "rgba(26,207,26,0.73)"
1621
1629
  */
1622
- toStringPremultipliedAlpha(): string;
1623
1630
  toString(): string;
1624
- toRenderColor(lut: LUT | null): RenderColor;
1631
+ toNonPremultipliedRenderColor(lut: LUT | null): NonPremultipliedRenderColor;
1632
+ toPremultipliedRenderColor(lut: LUT | null): NonPremultipliedRenderColor;
1625
1633
  clone(): Color;
1626
1634
  }
1627
- declare class RenderColor {
1635
+ declare abstract class RenderColor {
1636
+ premultiplied: boolean;
1628
1637
  r: number;
1629
1638
  g: number;
1630
1639
  b: number;
1631
1640
  a: number;
1632
- constructor(lut: LUT | null, r: number, g: number, b: number, a: number);
1641
+ constructor(lut: LUT | null, r: number, g: number, b: number, a: number, premultiplied?: boolean);
1633
1642
  /**
1634
- * Returns an RGBA array of values representing the color, unpremultiplied by A.
1635
- *
1643
+ * Returns an RGBA array of values representing the color.
1636
1644
  * @returns An array of RGBA color values in the range [0, 255].
1637
1645
  */
1638
1646
  toArray(): [
@@ -1643,7 +1651,6 @@ declare class RenderColor {
1643
1651
  ];
1644
1652
  /**
1645
1653
  * Returns an HSLA array of values representing the color, unpremultiplied by A.
1646
- *
1647
1654
  * @returns An array of HSLA color values.
1648
1655
  */
1649
1656
  toHslaArray(): [
@@ -1653,7 +1660,7 @@ declare class RenderColor {
1653
1660
  number
1654
1661
  ];
1655
1662
  /**
1656
- * Returns a RGBA array of float values representing the color, unpremultiplied by A.
1663
+ * Returns a RGBA array of float values representing the color.
1657
1664
  *
1658
1665
  * @returns An array of RGBA color values in the range [0, 1].
1659
1666
  */
@@ -1675,20 +1682,9 @@ declare class RenderColor {
1675
1682
  number
1676
1683
  ];
1677
1684
  /**
1678
- * Returns an RGBA array of values representing the color, premultiplied by A.
1679
- *
1680
- * @returns An array of RGBA color values in the range [0, 1].
1681
- */
1682
- toArray01PremultipliedAlpha(): [
1683
- number,
1684
- number,
1685
- number,
1686
- number
1687
- ];
1688
- /**
1689
- * Returns an RGBA array of values representing the color, unpremultiplied by A, and converted to linear color space.
1690
- * The color is defined by sRGB primaries, but the sRGB transfer function is reversed to obtain linear energy.
1691
- *
1685
+ * Returns an RGBA array of values representing the color converted to linear color space.
1686
+ * The color is defined by sRGB primaries, but the sRGB transfer function
1687
+ * is reversed to obtain linear energy.
1692
1688
  * @returns An array of RGBA color values in the range [0, 1].
1693
1689
  */
1694
1690
  toArray01Linear(): [
@@ -1698,6 +1694,9 @@ declare class RenderColor {
1698
1694
  number
1699
1695
  ];
1700
1696
  }
1697
+ declare class NonPremultipliedRenderColor extends RenderColor {
1698
+ constructor(lut: LUT | null, r: number, g: number, b: number, a: number);
1699
+ }
1701
1700
  declare class Collator {
1702
1701
  locale: string | null;
1703
1702
  sensitivity: "base" | "accent" | "case" | "variant";
@@ -1940,6 +1939,7 @@ interface GlobalProperties {
1940
1939
  readonly isSupportedScript?: (_: string) => boolean;
1941
1940
  accumulated?: Value;
1942
1941
  brightness?: number;
1942
+ worldview?: string;
1943
1943
  }
1944
1944
  declare class StyleExpression {
1945
1945
  expression: Expression;