feat: 去除点图层参数多余的类型定义

This commit is contained in:
2912401452 2022-02-24 14:18:22 +08:00
parent a6ab7fdcca
commit 83f790b056
3 changed files with 4 additions and 7 deletions

View File

@ -5,7 +5,6 @@ import {
IAttribute,
IElements,
IEncodeFeature,
ILayerConfig,
IModel,
IModelUniform,
} from '@antv/l7-core';

View File

@ -3,7 +3,6 @@ import {
BlendType,
gl,
IEncodeFeature,
ILayerConfig,
IModel,
IModelUniform,
} from '@antv/l7-core';
@ -24,7 +23,7 @@ export function PointTriangulation(feature: IEncodeFeature) {
}
export default class NormalModel extends BaseModel {
public getDefaultStyle(): Partial<IPointLayerStyleOptions & ILayerConfig> {
public getDefaultStyle(): Partial<IPointLayerStyleOptions> {
return {
blend: 'additive',
};
@ -139,7 +138,7 @@ export default class NormalModel extends BaseModel {
}
private defaultStyleOptions(): Partial<
IPointLayerStyleOptions & ILayerConfig
IPointLayerStyleOptions
> {
return {
blend: BlendType.additive,

View File

@ -3,7 +3,6 @@ import {
BlendType,
gl,
IEncodeFeature,
ILayerConfig,
IModel,
IModelUniform,
} from '@antv/l7-core';
@ -26,7 +25,7 @@ export function PointTriangulation(feature: IEncodeFeature) {
}
export default class SimplePointModel extends BaseModel {
public getDefaultStyle(): Partial<IPointLayerStyleOptions & ILayerConfig> {
public getDefaultStyle(): Partial<IPointLayerStyleOptions> {
return {
blend: 'additive',
};
@ -150,7 +149,7 @@ export default class SimplePointModel extends BaseModel {
}
private defaultStyleOptions(): Partial<
IPointLayerStyleOptions & ILayerConfig
IPointLayerStyleOptions
> {
return {
blend: BlendType.additive,