mirror of https://gitee.com/antv-l7/antv-l7
feat: 去除点图层参数多余的类型定义
This commit is contained in:
parent
a6ab7fdcca
commit
83f790b056
|
@ -5,7 +5,6 @@ import {
|
|||
IAttribute,
|
||||
IElements,
|
||||
IEncodeFeature,
|
||||
ILayerConfig,
|
||||
IModel,
|
||||
IModelUniform,
|
||||
} from '@antv/l7-core';
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue