seat-editor 3.5.45 → 3.5.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -199,11 +199,16 @@ const TouchScrollDetect = () => {
|
|
|
199
199
|
properties: {
|
|
200
200
|
strokeWidth: 5,
|
|
201
201
|
filter: "drop-shadow(0px 0px 5px red)",
|
|
202
|
+
opacity: 1
|
|
202
203
|
},
|
|
203
204
|
},
|
|
204
205
|
{
|
|
205
206
|
event: "dragenter",
|
|
206
|
-
properties: {
|
|
207
|
+
properties: {
|
|
208
|
+
strokeWidth: 5,
|
|
209
|
+
filter: "drop-shadow(0px 0px 5px red)",
|
|
210
|
+
opacity: 1
|
|
211
|
+
},
|
|
207
212
|
},
|
|
208
213
|
// {
|
|
209
214
|
// event: "selected",
|
|
@@ -223,11 +223,16 @@ const TouchScrollDetect = () => {
|
|
|
223
223
|
properties: {
|
|
224
224
|
strokeWidth: 5,
|
|
225
225
|
filter: "drop-shadow(0px 0px 5px red)",
|
|
226
|
+
opacity: 1
|
|
226
227
|
},
|
|
227
228
|
},
|
|
228
229
|
{
|
|
229
230
|
event: "dragenter",
|
|
230
|
-
properties: {
|
|
231
|
+
properties: {
|
|
232
|
+
strokeWidth: 5,
|
|
233
|
+
filter: "drop-shadow(0px 0px 5px red)",
|
|
234
|
+
opacity: 1
|
|
235
|
+
},
|
|
231
236
|
},
|
|
232
237
|
// {
|
|
233
238
|
// event: "selected",
|
|
@@ -411,7 +411,7 @@ const LayerView = (props) => {
|
|
|
411
411
|
const findEvent = eventMatchTable === null || eventMatchTable === void 0 ? void 0 : eventMatchTable.find((item) => item.event === "hoverdragontable");
|
|
412
412
|
if (dataHoveredGhostId === hoverUnderghostId.current && findEvent) {
|
|
413
413
|
const allKeyEvent = Object.keys(findEvent.properties);
|
|
414
|
-
|
|
414
|
+
dataBeforeHoverRef.current = allKeyEvent.map((key) => {
|
|
415
415
|
return {
|
|
416
416
|
key,
|
|
417
417
|
value: hoveredGroup === null || hoveredGroup === void 0 ? void 0 : hoveredGroup.getAttribute(key)
|
|
@@ -426,14 +426,14 @@ const LayerView = (props) => {
|
|
|
426
426
|
const dataPreview = hoverUnderghostId.current;
|
|
427
427
|
const hoveredBefore = svg.querySelector(`g[data-id="${dataPreview}"]`);
|
|
428
428
|
if (hoveredBefore) {
|
|
429
|
-
|
|
429
|
+
// console.log((hoveredBefore.firstChild as Element)?.children)
|
|
430
|
+
dataBeforeHoverRef.current.forEach((item) => {
|
|
430
431
|
var _a, _b, _c;
|
|
431
432
|
(_c = (_b = (_a = hoveredBefore.firstChild) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.setAttribute(item.key, item.value);
|
|
432
433
|
});
|
|
433
434
|
}
|
|
434
435
|
}
|
|
435
436
|
if (findEvent && targetGroup) {
|
|
436
|
-
// console
|
|
437
437
|
const idTarget = JSON.parse(targetGroup.getAttribute("data-id") || "{}");
|
|
438
438
|
const targetElement = svg.querySelector(`g[data-id="${idTarget}"]`);
|
|
439
439
|
Object.entries(findEvent.properties).forEach(([key, value]) => {
|
|
@@ -410,7 +410,7 @@ const LayerView = (props) => {
|
|
|
410
410
|
const findEvent = eventMatchTable === null || eventMatchTable === void 0 ? void 0 : eventMatchTable.find((item) => item.event === "hoverdragontable");
|
|
411
411
|
if (dataHoveredGhostId === hoverUnderghostId.current && findEvent) {
|
|
412
412
|
const allKeyEvent = Object.keys(findEvent.properties);
|
|
413
|
-
|
|
413
|
+
dataBeforeHoverRef.current = allKeyEvent.map((key) => {
|
|
414
414
|
return {
|
|
415
415
|
key,
|
|
416
416
|
value: hoveredGroup === null || hoveredGroup === void 0 ? void 0 : hoveredGroup.getAttribute(key)
|
|
@@ -425,14 +425,14 @@ const LayerView = (props) => {
|
|
|
425
425
|
const dataPreview = hoverUnderghostId.current;
|
|
426
426
|
const hoveredBefore = svg.querySelector(`g[data-id="${dataPreview}"]`);
|
|
427
427
|
if (hoveredBefore) {
|
|
428
|
-
|
|
428
|
+
// console.log((hoveredBefore.firstChild as Element)?.children)
|
|
429
|
+
dataBeforeHoverRef.current.forEach((item) => {
|
|
429
430
|
var _a, _b, _c;
|
|
430
431
|
(_c = (_b = (_a = hoveredBefore.firstChild) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.setAttribute(item.key, item.value);
|
|
431
432
|
});
|
|
432
433
|
}
|
|
433
434
|
}
|
|
434
435
|
if (findEvent && targetGroup) {
|
|
435
|
-
// console
|
|
436
436
|
const idTarget = JSON.parse(targetGroup.getAttribute("data-id") || "{}");
|
|
437
437
|
const targetElement = svg.querySelector(`g[data-id="${idTarget}"]`);
|
|
438
438
|
Object.entries(findEvent.properties).forEach(([key, value]) => {
|