@mapbox/mapbox-gl-style-spec 14.30.0-alpha.742b92e7a62 → 14.30.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 +2 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -72
- package/dist/index.es.js +2 -65
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/reference/v8.json +1 -59
- package/types.ts +1 -30
- package/validate/validate_layer.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1574,14 +1574,6 @@ declare const _exports: {
|
|
|
1574
1574
|
};
|
|
1575
1575
|
};
|
|
1576
1576
|
};
|
|
1577
|
-
"placement-group": {
|
|
1578
|
-
doc: string;
|
|
1579
|
-
"sdk-support": {
|
|
1580
|
-
"basic functionality": {};
|
|
1581
|
-
};
|
|
1582
|
-
private: boolean;
|
|
1583
|
-
experimental: boolean;
|
|
1584
|
-
};
|
|
1585
1577
|
clip: {
|
|
1586
1578
|
doc: string;
|
|
1587
1579
|
"sdk-support": {
|
|
@@ -9144,42 +9136,6 @@ declare const _exports: {
|
|
|
9144
9136
|
};
|
|
9145
9137
|
"property-type": string;
|
|
9146
9138
|
};
|
|
9147
|
-
"placement-priority": {
|
|
9148
|
-
type: string;
|
|
9149
|
-
doc: string;
|
|
9150
|
-
default: number;
|
|
9151
|
-
minimum: number;
|
|
9152
|
-
transition: boolean;
|
|
9153
|
-
appearance: boolean;
|
|
9154
|
-
expression: {
|
|
9155
|
-
interpolated: boolean;
|
|
9156
|
-
parameters: string[];
|
|
9157
|
-
};
|
|
9158
|
-
"property-type": string;
|
|
9159
|
-
"sdk-support": {
|
|
9160
|
-
"basic functionality": {};
|
|
9161
|
-
"data-driven styling": {};
|
|
9162
|
-
};
|
|
9163
|
-
private: boolean;
|
|
9164
|
-
experimental: boolean;
|
|
9165
|
-
};
|
|
9166
|
-
"placement-group": {
|
|
9167
|
-
type: string;
|
|
9168
|
-
doc: string;
|
|
9169
|
-
transition: boolean;
|
|
9170
|
-
appearance: boolean;
|
|
9171
|
-
expression: {
|
|
9172
|
-
interpolated: boolean;
|
|
9173
|
-
parameters: string[];
|
|
9174
|
-
};
|
|
9175
|
-
"property-type": string;
|
|
9176
|
-
"sdk-support": {
|
|
9177
|
-
"basic functionality": {};
|
|
9178
|
-
"data-driven styling": {};
|
|
9179
|
-
};
|
|
9180
|
-
private: boolean;
|
|
9181
|
-
experimental: boolean;
|
|
9182
|
-
};
|
|
9183
9139
|
};
|
|
9184
9140
|
paint_raster: {
|
|
9185
9141
|
"raster-opacity": {
|
|
@@ -11473,14 +11429,6 @@ type SymbolLayerSpecification = {
|
|
|
11473
11429
|
"icon-color-brightness-max"?: number | ExpressionSpecification;
|
|
11474
11430
|
"symbol-z-offset"?: DataDrivenPropertyValueSpecification<number>;
|
|
11475
11431
|
"symbol-z-offset-transition"?: TransitionSpecification;
|
|
11476
|
-
/**
|
|
11477
|
-
* @experimental This property is experimental and subject to change in future versions.
|
|
11478
|
-
*/
|
|
11479
|
-
"placement-priority"?: DataDrivenPropertyValueSpecification<number>;
|
|
11480
|
-
/**
|
|
11481
|
-
* @experimental This property is experimental and subject to change in future versions.
|
|
11482
|
-
*/
|
|
11483
|
-
"placement-group"?: DataDrivenPropertyValueSpecification<string>;
|
|
11484
11432
|
};
|
|
11485
11433
|
"appearances"?: Array<AppearanceSpecification>;
|
|
11486
11434
|
};
|
|
@@ -12066,20 +12014,6 @@ type SlotLayerSpecification = {
|
|
|
12066
12014
|
"layout"?: never;
|
|
12067
12015
|
"paint"?: never;
|
|
12068
12016
|
};
|
|
12069
|
-
type PlacementGroupLayerSpecification = {
|
|
12070
|
-
"id": string;
|
|
12071
|
-
"type": "placement-group";
|
|
12072
|
-
"metadata"?: unknown;
|
|
12073
|
-
"source"?: never;
|
|
12074
|
-
"source-layer"?: never;
|
|
12075
|
-
"slot"?: string;
|
|
12076
|
-
"minzoom"?: never;
|
|
12077
|
-
"maxzoom"?: never;
|
|
12078
|
-
"filter"?: never;
|
|
12079
|
-
"appearances"?: Array<AppearanceSpecification>;
|
|
12080
|
-
"layout"?: never;
|
|
12081
|
-
"paint"?: never;
|
|
12082
|
-
};
|
|
12083
12017
|
type ClipLayerSpecification = {
|
|
12084
12018
|
"id": string;
|
|
12085
12019
|
"type": "clip";
|
|
@@ -12102,7 +12036,7 @@ type ClipLayerSpecification = {
|
|
|
12102
12036
|
* @deprecated Use `ClipLayerSpecification['layout']` instead.
|
|
12103
12037
|
*/
|
|
12104
12038
|
type ClipLayout = ClipLayerSpecification['layout'];
|
|
12105
|
-
type LayerSpecification = FillLayerSpecification | LineLayerSpecification | SymbolLayerSpecification | CircleLayerSpecification | HeatmapLayerSpecification | FillExtrusionLayerSpecification | BuildingLayerSpecification | RasterLayerSpecification | RasterParticleLayerSpecification | HillshadeLayerSpecification | ModelLayerSpecification | BackgroundLayerSpecification | SkyLayerSpecification | SlotLayerSpecification |
|
|
12039
|
+
type LayerSpecification = FillLayerSpecification | LineLayerSpecification | SymbolLayerSpecification | CircleLayerSpecification | HeatmapLayerSpecification | FillExtrusionLayerSpecification | BuildingLayerSpecification | RasterLayerSpecification | RasterParticleLayerSpecification | HillshadeLayerSpecification | ModelLayerSpecification | BackgroundLayerSpecification | SkyLayerSpecification | SlotLayerSpecification | ClipLayerSpecification;
|
|
12106
12040
|
type LayoutSpecification = UnionToIntersection<NonNullable<LayerSpecification['layout']>>;
|
|
12107
12041
|
type PaintSpecification = UnionToIntersection<NonNullable<LayerSpecification['paint']>>;
|
|
12108
12042
|
type LayerBaseSpecification = Pick<LayerSpecification, "slot" | "minzoom" | "maxzoom" | "filter" | "appearances">;
|
|
@@ -12171,10 +12105,6 @@ type SkyLayer = SkyLayerSpecification;
|
|
|
12171
12105
|
* @deprecated Use `SlotLayerSpecification` instead.
|
|
12172
12106
|
*/
|
|
12173
12107
|
type SlotLayer = SlotLayerSpecification;
|
|
12174
|
-
/**
|
|
12175
|
-
* @deprecated Use `PlacementGroupLayerSpecification` instead.
|
|
12176
|
-
*/
|
|
12177
|
-
type PlacementGroupLayer = PlacementGroupLayerSpecification;
|
|
12178
12108
|
/**
|
|
12179
12109
|
* @deprecated Use `ClipLayerSpecification` instead.
|
|
12180
12110
|
*/
|
|
@@ -13059,4 +12989,4 @@ declare const visit: {
|
|
|
13059
12989
|
};
|
|
13060
12990
|
|
|
13061
12991
|
export { Color, ParsingError$1 as ParsingError, ValidationError$1 as ValidationError, export_default as composite, convertFilter, derefLayers, diffStyles as diff, expression, createFilter as featureFilter, format, styleFunction as function, _default as latest, export_default$1 as migrate, _exports as v8, validateStyle as validate, validateMapboxApiSupported, visit };
|
|
13062
|
-
export type { AmbientLightSpecification, AnyLayer, AnyLayout, AnyPaint, AnySourceData, AppearanceSpecification, ArrayPropertySpecification, BackgroundLayer, BackgroundLayerSpecification, BackgroundLayout, BackgroundPaint, BooleanPropertySpecification, BuildingLayer, BuildingLayerSpecification, BuildingLayout, BuildingPaint, CameraFunctionSpecification, CameraSpecification, CircleLayer, CircleLayerSpecification, CircleLayout, CirclePaint, ClipLayer, ClipLayerSpecification, ClipLayout, ColorPropertySpecification, ColorSpecification, ColorThemeSpecification, CompositeFunctionSpecification, ConfigSpecification, DataDrivenPropertyValueSpecification, DirectionalLightSpecification, EnumPropertySpecification, Expression$1 as Expression, ExpressionSpecification, FeaturesetSpecification, FeaturesetsSpecification, FillExtrusionLayer, FillExtrusionLayerSpecification, FillExtrusionLayout, FillExtrusionPaint, FillLayer, FillLayerSpecification, FillLayout, FillPaint, FilterSpecification, FlatLightSpecification, FogSpecification, FormattedPropertySpecification, FormattedSpecification, FunctionSpecification, GeoJSONSourceSpecification, HeatmapLayer, HeatmapLayerSpecification, HeatmapLayout, HeatmapPaint, HillshadeLayer, HillshadeLayerSpecification, HillshadeLayout, HillshadePaint, IconsetSpecification, IconsetsSpecification, ImageSourceSpecification, ImportSpecification, IndoorSourceSpecification, IndoorSpecification, Layer, LayerBaseSpecification, LayerSpecification, LayoutSpecification, LightSpecification, LightsSpecification, LineLayer, LineLayerSpecification, LineLayout, LinePaint, ModelLayer, ModelLayerSpecification, ModelLayout, ModelLightOverridesSpecification, ModelMaterialOverrideSpecification, ModelMaterialOverridesSpecification, ModelNodeOverrideSpecification, ModelNodeOverridesSpecification, ModelPaint, ModelSourceModelSpecification, ModelSourceModelsSpecification, ModelSourceSpecification, ModelSpecification, ModelsSpecification, NumberPropertySpecification, OptionSpecification, PaintSpecification,
|
|
12992
|
+
export type { AmbientLightSpecification, AnyLayer, AnyLayout, AnyPaint, AnySourceData, AppearanceSpecification, ArrayPropertySpecification, BackgroundLayer, BackgroundLayerSpecification, BackgroundLayout, BackgroundPaint, BooleanPropertySpecification, BuildingLayer, BuildingLayerSpecification, BuildingLayout, BuildingPaint, CameraFunctionSpecification, CameraSpecification, CircleLayer, CircleLayerSpecification, CircleLayout, CirclePaint, ClipLayer, ClipLayerSpecification, ClipLayout, ColorPropertySpecification, ColorSpecification, ColorThemeSpecification, CompositeFunctionSpecification, ConfigSpecification, DataDrivenPropertyValueSpecification, DirectionalLightSpecification, EnumPropertySpecification, Expression$1 as Expression, ExpressionSpecification, FeaturesetSpecification, FeaturesetsSpecification, FillExtrusionLayer, FillExtrusionLayerSpecification, FillExtrusionLayout, FillExtrusionPaint, FillLayer, FillLayerSpecification, FillLayout, FillPaint, FilterSpecification, FlatLightSpecification, FogSpecification, FormattedPropertySpecification, FormattedSpecification, FunctionSpecification, GeoJSONSourceSpecification, HeatmapLayer, HeatmapLayerSpecification, HeatmapLayout, HeatmapPaint, HillshadeLayer, HillshadeLayerSpecification, HillshadeLayout, HillshadePaint, IconsetSpecification, IconsetsSpecification, ImageSourceSpecification, ImportSpecification, IndoorSourceSpecification, IndoorSpecification, Layer, LayerBaseSpecification, LayerSpecification, LayoutSpecification, LightSpecification, LightsSpecification, LineLayer, LineLayerSpecification, LineLayout, LinePaint, ModelLayer, ModelLayerSpecification, ModelLayout, ModelLightOverridesSpecification, ModelMaterialOverrideSpecification, ModelMaterialOverridesSpecification, ModelNodeOverrideSpecification, ModelNodeOverridesSpecification, ModelPaint, ModelSourceModelSpecification, ModelSourceModelsSpecification, ModelSourceSpecification, ModelSpecification, ModelsSpecification, NumberPropertySpecification, OptionSpecification, PaintSpecification, Projection, ProjectionSpecification, PromoteIdSpecification, PropertyExpressionSpecification, PropertyFunctionStop, PropertyValueSpecification, RainSpecification, RasterArraySourceSpecification, RasterDEMSourceSpecification, RasterLayer, RasterLayerSpecification, RasterLayout, RasterPaint, RasterParticleLayer, RasterParticleLayerSpecification, RasterParticleLayout, RasterParticlePaint, RasterSourceSpecification, ResolvedImagePropertySpecification, ResolvedImageSpecification, SchemaSpecification, SelectorPropertySpecification, SelectorSpecification, SkyLayer, SkyLayerSpecification, SkyLayout, SkyPaint, SlotLayer, SlotLayerSpecification, SnowSpecification, SourceFunctionSpecification, SourceSpecification, Sources, SourcesSpecification, StringPropertySpecification, Style, StylePropertySpecification, StyleSpecification, SymbolLayer, SymbolLayerSpecification, SymbolLayout, SymbolPaint, TerrainSpecification, TerrainSpecificationUpdate, Transition, TransitionSpecification, VectorSourceSpecification, VideoSourceSpecification, ZoomAndPropertyFunctionStop };
|
package/dist/index.es.js
CHANGED
|
@@ -1618,15 +1618,6 @@ var layer = {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
1620
|
},
|
|
1621
|
-
"placement-group": {
|
|
1622
|
-
doc: "Marks a placement priority group relative to other layers, going from lower to higher priority. Symbols from groups with higher priorities will be placed first",
|
|
1623
|
-
"sdk-support": {
|
|
1624
|
-
"basic functionality": {
|
|
1625
|
-
}
|
|
1626
|
-
},
|
|
1627
|
-
"private": true,
|
|
1628
|
-
experimental: true
|
|
1629
|
-
},
|
|
1630
1621
|
clip: {
|
|
1631
1622
|
doc: "Layer that removes 3D content from map.",
|
|
1632
1623
|
"sdk-support": {
|
|
@@ -1647,7 +1638,7 @@ var layer = {
|
|
|
1647
1638
|
},
|
|
1648
1639
|
source: {
|
|
1649
1640
|
type: "string",
|
|
1650
|
-
doc: "Name of a source description to be used for this layer. Required for all layer types except `background
|
|
1641
|
+
doc: "Name of a source description to be used for this layer. Required for all layer types except `background` and `slot`."
|
|
1651
1642
|
},
|
|
1652
1643
|
"source-layer": {
|
|
1653
1644
|
type: "string",
|
|
@@ -9523,60 +9514,6 @@ var paint_symbol = {
|
|
|
9523
9514
|
]
|
|
9524
9515
|
},
|
|
9525
9516
|
"property-type": "data-driven"
|
|
9526
|
-
},
|
|
9527
|
-
"placement-priority": {
|
|
9528
|
-
type: "number",
|
|
9529
|
-
doc: "In-group placement priority. Higher values are placed first within the symbol's placement group.",
|
|
9530
|
-
"default": 0,
|
|
9531
|
-
minimum: 0,
|
|
9532
|
-
transition: false,
|
|
9533
|
-
appearance: true,
|
|
9534
|
-
expression: {
|
|
9535
|
-
interpolated: true,
|
|
9536
|
-
parameters: [
|
|
9537
|
-
"zoom",
|
|
9538
|
-
"pitch",
|
|
9539
|
-
"feature",
|
|
9540
|
-
"feature-state",
|
|
9541
|
-
"measure-light",
|
|
9542
|
-
"distance-from-center"
|
|
9543
|
-
]
|
|
9544
|
-
},
|
|
9545
|
-
"property-type": "data-driven",
|
|
9546
|
-
"sdk-support": {
|
|
9547
|
-
"basic functionality": {
|
|
9548
|
-
},
|
|
9549
|
-
"data-driven styling": {
|
|
9550
|
-
}
|
|
9551
|
-
},
|
|
9552
|
-
"private": true,
|
|
9553
|
-
experimental: true
|
|
9554
|
-
},
|
|
9555
|
-
"placement-group": {
|
|
9556
|
-
type: "string",
|
|
9557
|
-
doc: "Assigns this symbol layer to the specified placement-group layer, placing its symbols as if they were drawn within that group. When unset, the layer's symbols use an implicitly created placement group located at the same position as the symbol layer.",
|
|
9558
|
-
transition: false,
|
|
9559
|
-
appearance: true,
|
|
9560
|
-
expression: {
|
|
9561
|
-
interpolated: false,
|
|
9562
|
-
parameters: [
|
|
9563
|
-
"zoom",
|
|
9564
|
-
"pitch",
|
|
9565
|
-
"feature",
|
|
9566
|
-
"feature-state",
|
|
9567
|
-
"measure-light",
|
|
9568
|
-
"distance-from-center"
|
|
9569
|
-
]
|
|
9570
|
-
},
|
|
9571
|
-
"property-type": "data-driven",
|
|
9572
|
-
"sdk-support": {
|
|
9573
|
-
"basic functionality": {
|
|
9574
|
-
},
|
|
9575
|
-
"data-driven styling": {
|
|
9576
|
-
}
|
|
9577
|
-
},
|
|
9578
|
-
"private": true,
|
|
9579
|
-
experimental: true
|
|
9580
9517
|
}
|
|
9581
9518
|
};
|
|
9582
9519
|
var paint_raster = {
|
|
@@ -20411,7 +20348,7 @@ function validateLayer(options) {
|
|
|
20411
20348
|
} else {
|
|
20412
20349
|
type = unbundle(parent.type);
|
|
20413
20350
|
}
|
|
20414
|
-
} else if (!(type === "background" || type === "sky" || type === "slot"
|
|
20351
|
+
} else if (!(type === "background" || type === "sky" || type === "slot")) {
|
|
20415
20352
|
if (!layer.source) {
|
|
20416
20353
|
errors.push(new ValidationError(key, layer, 'missing required property "source"'));
|
|
20417
20354
|
} else if (!isString(layer.source)) {
|