[core] Fixed codegen script
Updated path to style spec reference following spinoff from gl-native repository. Centralized overrides for not-yet-implemented layout properties. Removed overrides that have already been removed for mbgl in gl-native.
This commit is contained in:
committed by
Minh Nguyễn
parent
105c3d288d
commit
72cb8f09e2
@@ -15,11 +15,6 @@ const suffix = 'StyleLayer';
|
||||
|
||||
let spec = _.merge(require('../../../scripts/style-spec'), require('./style-spec-overrides-v8.json'));
|
||||
|
||||
// FIXME: https://github.com/mapbox/mapbox-gl-native/issues/15008
|
||||
delete spec.layout_circle["circle-sort-key"]
|
||||
delete spec.layout_line["line-sort-key"]
|
||||
delete spec.layout_fill["fill-sort-key"]
|
||||
|
||||
class ConventionOverride {
|
||||
constructor(val) {
|
||||
if (typeof val === 'string') {
|
||||
|
||||
@@ -6,11 +6,6 @@ const ejs = require('ejs');
|
||||
const spec = require('./style-spec');
|
||||
const colorParser = require('csscolorparser');
|
||||
|
||||
// FIXME: https://github.com/mapbox/mapbox-gl-native/issues/15008
|
||||
delete spec.layout_circle["circle-sort-key"]
|
||||
delete spec.layout_line["line-sort-key"]
|
||||
delete spec.layout_fill["fill-sort-key"]
|
||||
|
||||
require('./style-code');
|
||||
|
||||
function parseCSSColor(str) {
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
var spec = module.exports = require('../mapbox-gl-js/src/style-spec/reference/v8');
|
||||
var spec = module.exports = require('../vendor/mapbox-gl-native/mapbox-gl-js/src/style-spec/reference/v8');
|
||||
|
||||
// FIXME: https://github.com/mapbox/mapbox-gl-native/issues/15008
|
||||
delete spec.layout_circle["circle-sort-key"];
|
||||
|
||||
Reference in New Issue
Block a user