[core] Enable text-variable-anchor property

This commit is contained in:
Mikhail Pozdnyakov
2019-03-07 18:34:45 +02:00
parent 4adfc5d323
commit a6d8742e63
19 changed files with 152 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ global.evaluatedType = function (property) {
if (property.length) {
return `std::array<${evaluatedType({type: property.value})}, ${property.length}>`;
} else {
return `std::vector<${evaluatedType({type: property.value})}>`;
return `std::vector<${evaluatedType({type: property.value, name: property.name})}>`;
}
default: throw new Error(`unknown type for ${property.name}`)
}

View File

@@ -5,7 +5,6 @@ delete spec.layout_symbol['symbol-sort-key'];
delete spec.layout_symbol['symbol-z-order'].values['auto'];
spec.layout_symbol['symbol-z-order'].default = 'viewport-y';
delete spec.layout_symbol['text-variable-anchor'];
delete spec.layout_symbol['text-radial-offset'];
delete spec.layout_symbol['text-justify'].values['auto'];
spec.layout_symbol['text-offset'].requires.splice(1, 1); // { "!": "text-radial-offset" }
spec.layout_symbol['text-offset'].requires.splice(1, 1); // { "!": "text-radial-offset" }