Skip to content

Commit

Permalink
fix: 同步类型修改 (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei authored Nov 6, 2023
1 parent 91686ca commit 6b5ee07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IColorRamp } from '@antv/l7';
import { CoreLayerOptions } from '../../core/core-layer';
import { IColorRamp } from '../../types';

/**
* 热力普通图层 色带
Expand Down
11 changes: 1 addition & 10 deletions packages/composite-layers/src/core-layers/raster-layer/types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import { CoreLayerOptions } from '../../core/core-layer';
import { ShapeAttr } from '../../types';

export interface IColorRamp {
/* 值域色带位置分布 */
positions: number[];
/* 值域色带颜色分布 */
colors: string[];
/* 值域色带比重分布 */
weights?: number[];
}
import { IColorRamp, ShapeAttr } from '../../types';

export type RasterDataTileLayerStyleOptions = {
/* 透明度 */
Expand Down
2 changes: 2 additions & 0 deletions packages/composite-layers/src/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type {
ILegendSegmentItem,
ILegendClassificaItem,
ILegend,
IColorRamp,
} from '@antv/l7';
import { BlendType } from '@antv/l7';

Expand All @@ -25,6 +26,7 @@ export type {
ILegendClassificaItem,
ILegend,
Scene,
IColorRamp,
};

export { BlendType };
Expand Down

0 comments on commit 6b5ee07

Please sign in to comment.