Skip to content

Commit 4752383

Browse files
committed
chore: ci 错误
2 parents 6969ec0 + 1d18130 commit 4752383

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/layers/src/core/triangulation.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
primitiveSphere,
1717
} from '../earth/utils';
1818
import ExtrudePolyline from '../utils/extrude_polyline';
19+
import type { ILineLayerStyleOptions } from './interface';
1920
import type { IPosition, ShapeType2D, ShapeType3D } from './shape/Path';
2021
import { geometryShape } from './shape/Path';
2122
import type { IExtrudeGeomety } from './shape/extrude';
@@ -88,14 +89,12 @@ export function PointImageTriangulation(feature: IEncodeFeature) {
8889
* @param feature 映射feature
8990
* @param styleOption 样式配置(从 buildLayerModel 传入)
9091
*/
91-
export function LineTriangulation(feature: IEncodeFeature, styleOption?: any) {
92+
export function LineTriangulation(
93+
feature: IEncodeFeature,
94+
styleOption?: Partial<ILineLayerStyleOptions>,
95+
) {
9296
const { coordinates } = feature;
9397

94-
// let path = coordinates as number[][][] | number[][];
95-
// if (!Array.isArray(path[0][0])) {
96-
// path = [coordinates] as number[][][];
97-
// }
98-
9998
const line = new ExtrudePolyline({
10099
dash: true,
101100
join: 'bevel',

0 commit comments

Comments
 (0)