|
@@ -18,7 +18,7 @@
|
|
|
* ********************************************************************************************************************
|
|
|
*/
|
|
|
|
|
|
-import { SPainter, SPath2D, SPoint, SColor } from "@saga-web/draw/lib";
|
|
|
+import { SPainter, SPath, SPoint, SColor } from "@saga-web/draw/lib";
|
|
|
import { Zone } from "../../types/floor/Zone";
|
|
|
import { ItemColor, ItemOrder } from "../..";
|
|
|
import { SGraphItem } from "@saga-web/graph/lib";
|
|
@@ -34,7 +34,7 @@ export class SBoardItem extends SGraphItem {
|
|
|
/** 空间轮廓线坐标list */
|
|
|
readonly pointArr: SPoint[][][] = [];
|
|
|
/** path */
|
|
|
- private pathList: SPath2D[] = [];
|
|
|
+ private pathList: SPath[] = [];
|
|
|
|
|
|
/**
|
|
|
* 构造函数
|
|
@@ -53,7 +53,7 @@ export class SBoardItem extends SGraphItem {
|
|
|
) {
|
|
|
let tempArr = this.data.OutLine;
|
|
|
this.pointArr = tempArr.map((t): SPoint[][] => {
|
|
|
- let sPath = new SPath2D();
|
|
|
+ let sPath = new SPath();
|
|
|
let tempArr = t.map((it): SPoint[] => {
|
|
|
let array = it.map(
|
|
|
(item): SPoint => {
|