[core] Rewrite style parsing logic for reuse in node bindings
This commit is contained in:
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user