[core] Rewrite style parsing logic for reuse in node bindings

This commit is contained in:
John Firebaugh
2016-06-19 20:05:05 -07:00
parent 7ea0a0db32
commit a18d6dda5d
16 changed files with 336 additions and 240 deletions

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'circle-blur' must be a number, or a number function"]
[1, "WARNING", "ParseStyle", "circle-blur: value must be a number"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'circle-color' must be a string"]
[1, "WARNING", "ParseStyle", "circle-color: value must be a string"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'circle-opacity' must be a number, or a number function"]
[1, "WARNING", "ParseStyle", "circle-opacity: value must be a number"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'circle-radius' must be a number, or a number function"]
[1, "WARNING", "ParseStyle", "circle-radius: value must be a number"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "function argument must be a numeric value"]
[1, "WARNING", "ParseStyle", "line-width: function stop must be an array"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "function must specify a function type"]
[1, "WARNING", "ParseStyle", "line-width: function value must specify stops"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'line-opacity' must be a number, or a number function"]
[1, "WARNING", "ParseStyle", "line-opacity: value must be a number"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'line-translate' must be an array of two numbers"]
[1, "WARNING", "ParseStyle", "line-translate: value must be an array of two numbers"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'line-width' must be a number, or a number function"]
[1, "WARNING", "ParseStyle", "line-width: value must be a number"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "stop must have zoom level and value specification"]
[1, "WARNING", "ParseStyle", "fill-opacity: function stop must have two elements"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "stops function must specify a stops array"]
[1, "WARNING", "ParseStyle", "line-width: function stops must be an array"]
]
}
}

View File

@@ -1,7 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'text-size' must be a number, or a number function"]
[1, "WARNING", "ParseStyle", "text-size: value must be a number"]
]
}
}