| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import {
- WholeLineLineAttrib,
- WholeLinePointAttrib,
- WholeLinePolygonAttrib,
- } from "drawing-board";
- import { ref } from "vue";
- export type Polygons = {
- id: string;
- lines: WholeLineLineAttrib[];
- polygons: WholeLinePolygonAttrib[];
- points: (WholeLinePointAttrib & { rtk: boolean })[];
- };
- export const polygons = ref<Polygons>({
- id: "0",
- lines: [],
- polygons: [],
- points: [],
- });
- setTimeout(() => {
- polygons.value = {
- id: "0",
- lines: [
- { id: "1", pointIds: ["2666", "2667"] },
- { id: "2", pointIds: ["2667", "2669"] },
- ],
- polygons: [{ id: "1", lineIds: ["1", "2"] }],
- points: [
- { rtk: false, x: 115.949835199646, y: 30.0971239995873, id: "2666" },
- { rtk: false, x: 115.949706558269, y: 30.0975243383135, id: "2667" },
- { rtk: false, x: 115.950002555619, y: 30.0977552558535, id: "2668" },
- { rtk: false, x: 115.949968744193, y: 30.097862045865, id: "2669" },
- { rtk: true, x: 115.950063977564, y: 30.0978879318173, id: "2670" },
- { rtk: true, x: 115.949964417593, y: 30.0978650571868, id: "2671" },
- { rtk: true, x: 115.950300839723, y: 30.0976756336231, id: "2672" },
- { rtk: true, x: 115.950437426448, y: 30.097269657442, id: "2673" },
- ],
- };
- }, 2000);
|