Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mapbox-gl-style-spec

Package Overview
Dependencies
Maintainers
30
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-gl-style-spec - npm Package Compare versions

Comparing version 6.1.1 to 7.0.0

.idea/encodings.xml

2

docs/_generate/generate.js

@@ -7,3 +7,3 @@ #!/usr/bin/env node

path = require('path'),
ref = require('../../reference/v6.json'),
ref = require('../../reference/v7.json'),
_ = require('underscore');

@@ -10,0 +10,0 @@

@@ -7,1 +7,2 @@ module.exports = {};

module.exports.v6 = require('./reference/v6.json');
module.exports.v7 = require('./reference/v7.json');
{
"name": "mapbox-gl-style-spec",
"version": "6.1.1",
"version": "7.0.0",
"description": "a specification for mapbox gl styles",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -105,7 +105,4 @@ {

},
"url": {
"type": "string"
},
"data": {
"type": "object"
"type": "*"
}

@@ -266,3 +263,3 @@ },

"default": "point",
"doc": "Label placement relative to its geometry. `Line` can only be used on LineStrings and Polygons."
"doc": "Label placement relative to its geometry. `line` can only be used on LineStrings and Polygons."
},

@@ -272,3 +269,3 @@ "symbol-min-distance": {

"default": 250,
"minimum": 0,
"minimum": 1,
"units": "pixels",

@@ -319,3 +316,3 @@ "doc": "Minimum distance between two symbol anchors.",

"default": "viewport",
"doc": "Orientation of icon when map is rotated",
"doc": "Orientation of icon when map is rotated.",
"requires": [

@@ -390,3 +387,3 @@ "icon-image"

"default": "viewport",
"doc": "Orientation of icon or text when map is rotated",
"doc": "Orientation of icon or text when map is rotated.",
"requires": [

@@ -579,3 +576,2 @@ "text-field"

"type": "number",
"function": true,
"default": 256,

@@ -589,3 +585,2 @@ "minimum": 0,

"type": "number",
"function": true,
"default": 0,

@@ -670,3 +665,3 @@ "minimum": 0,

"maximum": 1,
"doc": "The opacity given to the fill color",
"doc": "The opacity given to the fill color.",
"transition": true

@@ -733,3 +728,3 @@ },

"type": "number",
"doc": "The opacity at which the line will be drawn",
"doc": "The opacity at which the line will be drawn.",
"function": true,

@@ -743,3 +738,3 @@ "default": 1,

"type": "color",
"doc": "The color with which the line will be drawn",
"doc": "The color with which the line will be drawn.",
"default": "#000000",

@@ -786,3 +781,3 @@ "function": true,

"units": "pixels",
"doc": "Stroke thickness"
"doc": "Stroke thickness."
},

@@ -805,3 +800,3 @@ "line-gap-width": {

"units": "pixels",
"doc": "Line blur"
"doc": "Blur applied to the line, in pixels."
},

@@ -833,3 +828,3 @@ "line-dasharray": {

"icon-opacity": {
"doc": "The opacity at which the icon will be drawn",
"doc": "The opacity at which the icon will be drawn.",
"type": "number",

@@ -930,3 +925,3 @@ "default": 1,

"type": "number",
"doc": "The opacity at which the text will be drawn",
"doc": "The opacity at which the text will be drawn.",
"default": 1,

@@ -955,3 +950,3 @@ "minimum": 0,

"type": "color",
"doc": "The color with which the text will be drawn",
"doc": "The color with which the text will be drawn.",
"default": "#000000",

@@ -1031,3 +1026,3 @@ "function": true,

"type": "number",
"doc": "The opacity at which the image will be drawn",
"doc": "The opacity at which the image will be drawn.",
"default": 1,

@@ -1091,3 +1086,3 @@ "minimum": 0,

"default": "#000000",
"doc": "The color with which the background will be drawn",
"doc": "The color with which the background will be drawn.",
"function": true,

@@ -1103,3 +1098,3 @@ "transition": true,

"type": "string",
"doc": "Optionally an image which is drawn as the background"
"doc": "Optionally an image which is drawn as the background."
},

@@ -1111,3 +1106,3 @@ "background-opacity": {

"maximum": 1,
"doc": "The opacity at which the background will be drawn",
"doc": "The opacity at which the background will be drawn.",
"function": true,

@@ -1114,0 +1109,0 @@ "transition": true

@@ -64,2 +64,4 @@ 'use strict';

});
} else if (typeof obj.value === 'object') {
validSchema(k + '.value', t, obj.value, ref);
} else {

@@ -72,4 +74,9 @@ t.ok(types.indexOf(obj.value) !== -1, k + '.value (' + obj.value + ')');

t.equal('string', typeof obj.doc, k + '.doc (string)');
if (obj.function !== undefined)
t.equal('boolean', typeof obj.function, k + '.function (boolean)');
if (obj.function !== undefined) {
if (ref.$version >= 7) {
t.equal(true, ['interpolated', 'piecewise-constant'].indexOf(obj.function) >= 0);
} else {
t.equal('boolean', typeof obj.function, k + '.required (boolean)');
}
}
if (obj.required !== undefined)

@@ -76,0 +83,0 @@ t.equal('boolean', typeof obj.required, k + '.required (boolean)');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc