|
@@ -13380,7 +13380,7 @@ const Du = (s, t) => {
|
|
fill: "#000"
|
|
fill: "#000"
|
|
}), u = new Oo({
|
|
}), u = new Oo({
|
|
visible: !1,
|
|
visible: !1,
|
|
- opacity: 0.75,
|
|
|
|
|
|
+ opacity: 1,
|
|
name: "label",
|
|
name: "label",
|
|
offsetX: -i.width / 2,
|
|
offsetX: -i.width / 2,
|
|
offsetY: -6
|
|
offsetY: -6
|
|
@@ -13389,20 +13389,22 @@ const Du = (s, t) => {
|
|
const f = new dn({
|
|
const f = new dn({
|
|
name: "text",
|
|
name: "text",
|
|
text: s.title || `P${s.id}`,
|
|
text: s.title || `P${s.id}`,
|
|
- fontFamily: "Calibri",
|
|
|
|
- fontSize: 10,
|
|
|
|
- padding: 5,
|
|
|
|
- fill: "#000"
|
|
|
|
|
|
+ fontFamily: "Inter",
|
|
|
|
+ fontSize: 12,
|
|
|
|
+ padding: 8,
|
|
|
|
+ fill: "#303133"
|
|
});
|
|
});
|
|
u.add(
|
|
u.add(
|
|
new To({
|
|
new To({
|
|
name: "tag",
|
|
name: "tag",
|
|
- fill: "rgba(255, 255, 255, 0.8)",
|
|
|
|
|
|
+ fill: "rgba(255, 255, 255, 1)",
|
|
pointerDirection: "down",
|
|
pointerDirection: "down",
|
|
- pointerWidth: 5,
|
|
|
|
- pointerHeight: 5,
|
|
|
|
|
|
+ pointerWidth: 8,
|
|
|
|
+ pointerHeight: 8,
|
|
lineJoin: "round",
|
|
lineJoin: "round",
|
|
shadowColor: "black",
|
|
shadowColor: "black",
|
|
|
|
+ cornerRadius: 2,
|
|
|
|
+ opacity: 1,
|
|
shadowBlur: 10,
|
|
shadowBlur: 10,
|
|
shadowOffsetX: 10,
|
|
shadowOffsetX: 10,
|
|
shadowOffsetY: 10,
|
|
shadowOffsetY: 10,
|
|
@@ -13423,7 +13425,7 @@ const Du = (s, t) => {
|
|
},
|
|
},
|
|
setData(m) {
|
|
setData(m) {
|
|
let [v, _] = Gt(d, [1, 1]);
|
|
let [v, _] = Gt(d, [1, 1]);
|
|
- d.scale({ x: v, y: _ }), d.x(m[0]), d.y(m[1]), f.text(s.title || `P${s.id}`), ~t.editPolygonNdx ? (A.text((t.editPolygonNdx + 1).toString()).visible(!0), A.offsetX(-h.width() / 2 + A.width() / 2), l.shape.visible(!0), a.visible(!1)) : (A.visible(!1), l.shape.visible(!1), a.visible(e.status.selectPoiIds.includes(s.id)));
|
|
|
|
|
|
+ d.scale({ x: v, y: _ }), d.x(m[0]), d.y(m[1]), f.text(t.attrib.title || `P${s.id}`), ~t.editPolygonNdx ? (A.text((t.editPolygonNdx + 1).toString()).visible(!0), A.offsetX(-h.width() / 2 + A.width() / 2), l.shape.visible(!0), a.visible(!1)) : (A.visible(!1), l.shape.visible(!1), a.visible(e.status.selectPoiIds.includes(s.id)));
|
|
},
|
|
},
|
|
draging() {
|
|
draging() {
|
|
~t.editPolygonNdx && (n.fill("#e0403c"), a.fill("#e0403c"));
|
|
~t.editPolygonNdx && (n.fill("#e0403c"), a.fill("#e0403c"));
|