diff --git a/build/rollup.config.js b/build/rollup.config.js index 0a050092a3..3d2e80c3d0 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -72,7 +72,7 @@ module.exports = [ commonjs({ namedExports: { eventemitter3: [ 'EventEmitter' ], - inversify: ['inject','injectable','postConstruct','Container','decorate','interfaces'], + // inversify: ['inject','injectable','postConstruct','Container','decorate','interfaces'], // @see https://github.com/rollup/rollup-plugin-commonjs/issues/266 lodash: [ 'isNil', diff --git a/packages/core/src/services/layer/ILayerService.ts b/packages/core/src/services/layer/ILayerService.ts index d418a671a3..88c50e9213 100644 --- a/packages/core/src/services/layer/ILayerService.ts +++ b/packages/core/src/services/layer/ILayerService.ts @@ -130,7 +130,7 @@ export interface ILayer { scale(field: string | number | IScaleOptions, cfg?: IScale): ILayer; size(field: StyleAttrField, value?: StyleAttributeOption): ILayer; color(field: StyleAttrField, value?: StyleAttributeOption): ILayer; - texture(field: StyleAttrField, value?: StyleAttributeOption): ILayer; + texture?(field: StyleAttrField, value?: StyleAttributeOption): ILayer; shape(field: StyleAttrField, value?: StyleAttributeOption): ILayer; label(field: StyleAttrField, value?: StyleAttributeOption): ILayer; animate(option: Partial | boolean): ILayer; diff --git a/packages/core/src/services/map/IMapService.ts b/packages/core/src/services/map/IMapService.ts index fe307857ac..f56285d6cc 100644 --- a/packages/core/src/services/map/IMapService.ts +++ b/packages/core/src/services/map/IMapService.ts @@ -30,7 +30,7 @@ export interface IMapWrapper { } export interface IMapService { - version: string; + version?: string; map: RawMap; init(): void; initViewPort?(): void;