|
@@ -3,16 +3,17 @@
|
|
|
<el-button @click="show">展示</el-button>
|
|
|
<el-button @click="create">创建</el-button>
|
|
|
<el-button @click="edit">编辑</el-button>
|
|
|
- <canvas id="editPolygon" width="800" height="400" tabindex="0" />
|
|
|
+ <canvas id="editPolygon" width="800" height="400" tabindex="0" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang='ts'>
|
|
|
- import { SGraphItem, SGraphView, SGraphScene } from "@persagy-web/graph/";
|
|
|
+import { SGraphItem, SGraphView, SGraphScene } from "@persagy-web/graph/";
|
|
|
+import { SMouseEvent } from "@persagy-web/base/";
|
|
|
import {
|
|
|
SColor,
|
|
|
SLineCapStyle,
|
|
|
SPainter,
|
|
|
- SPath2D,
|
|
|
+ SPath,
|
|
|
SPoint,
|
|
|
SPolygonUtil,
|
|
|
SRect,
|