seat-editor 3.6.4 → 3.6.5
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.
- package/dist/features/board-v3/index.js +0 -2
- package/dist/features/board-v3/index.jsx +0 -2
- package/dist/features/board-v3/polygon.js +0 -1
- package/dist/features/board-v3/rect.js +4 -4
- package/dist/features/view-only-3/index.js +0 -1
- package/dist/features/view-only-3/index.jsx +0 -1
- package/package.json +1 -1
|
@@ -76,7 +76,6 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, priviewActive =
|
|
|
76
76
|
//boundingbox
|
|
77
77
|
const isInialBoundingBox = useRef(false);
|
|
78
78
|
const { components: componentsProps, extraComponents: extraComponentsProps, boundingBox, flagChange, updateBy, isShowTagType, } = useAppSelector((state) => state.board);
|
|
79
|
-
console.log("isShowTagType", isShowTagType);
|
|
80
79
|
const selectedGroup = useAppSelector((state) => state.panel.selectedGroup);
|
|
81
80
|
const { selectionLines } = useAppSelector((state) => state.panel);
|
|
82
81
|
const [selectedLines, setSelectedLines] = useState(null);
|
|
@@ -1669,7 +1668,6 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, priviewActive =
|
|
|
1669
1668
|
type: "tool/setActiveTool",
|
|
1670
1669
|
payload: "select",
|
|
1671
1670
|
});
|
|
1672
|
-
console.log({ selectionLines });
|
|
1673
1671
|
dispatch({ type: "panel/setSelectionLines", payload: selectionLines });
|
|
1674
1672
|
setSelectedLines(selectionLines);
|
|
1675
1673
|
(_p = (_o = svgRef.current) === null || _o === void 0 ? void 0 : _o.querySelectorAll("#ghost-element-create")) === null || _p === void 0 ? void 0 : _p.forEach((el) => el.remove());
|
|
@@ -75,7 +75,6 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, priviewActive =
|
|
|
75
75
|
//boundingbox
|
|
76
76
|
const isInialBoundingBox = useRef(false);
|
|
77
77
|
const { components: componentsProps, extraComponents: extraComponentsProps, boundingBox, flagChange, updateBy, isShowTagType, } = useAppSelector((state) => state.board);
|
|
78
|
-
console.log("isShowTagType", isShowTagType);
|
|
79
78
|
const selectedGroup = useAppSelector((state) => state.panel.selectedGroup);
|
|
80
79
|
const { selectionLines } = useAppSelector((state) => state.panel);
|
|
81
80
|
const [selectedLines, setSelectedLines] = useState(null);
|
|
@@ -1668,7 +1667,6 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, priviewActive =
|
|
|
1668
1667
|
type: "tool/setActiveTool",
|
|
1669
1668
|
payload: "select",
|
|
1670
1669
|
});
|
|
1671
|
-
console.log({ selectionLines });
|
|
1672
1670
|
dispatch({ type: "panel/setSelectionLines", payload: selectionLines });
|
|
1673
1671
|
setSelectedLines(selectionLines);
|
|
1674
1672
|
(_p = (_o = svgRef.current) === null || _o === void 0 ? void 0 : _o.querySelectorAll("#ghost-element-create")) === null || _p === void 0 ? void 0 : _p.forEach((el) => el.remove());
|
|
@@ -71,7 +71,6 @@ export function resizePolygon(target, handle, dx, dy) {
|
|
|
71
71
|
// posisi group translate
|
|
72
72
|
let gx = g.transform.baseVal.getItem(0).matrix.e;
|
|
73
73
|
let gy = g.transform.baseVal.getItem(0).matrix.f;
|
|
74
|
-
console.log({ gx, gy });
|
|
75
74
|
// --- 3. Map handle operations (mirip punya kamu) ---
|
|
76
75
|
const ops = {
|
|
77
76
|
n: () => { h -= dy; gy += dy; },
|
|
@@ -7,17 +7,17 @@ export function resizeRect(target, handle, dx, dy) {
|
|
|
7
7
|
let gx = g.transform.baseVal.getItem(0).matrix.e;
|
|
8
8
|
let gy = g.transform.baseVal.getItem(0).matrix.f;
|
|
9
9
|
let angle = (_a = g.firstChild) === null || _a === void 0 ? void 0 : _a.transform.baseVal.getItem(0).angle;
|
|
10
|
-
console.log({ dx, dy
|
|
10
|
+
// console.log({ dx, dy});
|
|
11
11
|
if (angle !== 0) {
|
|
12
12
|
const rad = angle * Math.PI / 180;
|
|
13
13
|
const localDx = dx * Math.cos(-rad) - dy * Math.sin(-rad);
|
|
14
14
|
const localDy = dx * Math.sin(-rad) + dy * Math.cos(-rad);
|
|
15
|
-
console.log({ localDx, localDy });
|
|
15
|
+
// console.log({ localDx, localDy });
|
|
16
16
|
if (handle === "se") {
|
|
17
17
|
w = gx + localDx;
|
|
18
18
|
h = gy + localDy;
|
|
19
19
|
}
|
|
20
|
-
console.log({ w, h });
|
|
20
|
+
// console.log({ w, h });
|
|
21
21
|
rect.width.baseVal.value = w;
|
|
22
22
|
rect.height.baseVal.value = h;
|
|
23
23
|
// apply new translate (for left/top resizing)
|
|
@@ -94,7 +94,7 @@ export function resizeRectTes(target, handle, dx, dy) {
|
|
|
94
94
|
// ay = gy;
|
|
95
95
|
// newH1 = pos.y - y;
|
|
96
96
|
// newY1 = y;
|
|
97
|
-
console.log({ angle });
|
|
97
|
+
// console.log({ angle });
|
|
98
98
|
if (angle !== 0) {
|
|
99
99
|
const opsScale = {
|
|
100
100
|
se: () => {
|
|
@@ -397,7 +397,6 @@ const LayerView = (props) => {
|
|
|
397
397
|
if (dataHoveredGhostId === hoverUnderghostId.current && findEvent) {
|
|
398
398
|
const allKeyEvent = Object.keys(findEvent.properties);
|
|
399
399
|
const findId = componentsAll === null || componentsAll === void 0 ? void 0 : componentsAll.find((item) => item.id == hoverUnderghostId.current);
|
|
400
|
-
console.log(findId, hoverUnderghostId.current);
|
|
401
400
|
dataBeforeHoverRef.current = allKeyEvent.map((key) => {
|
|
402
401
|
return {
|
|
403
402
|
key,
|
|
@@ -396,7 +396,6 @@ const LayerView = (props) => {
|
|
|
396
396
|
if (dataHoveredGhostId === hoverUnderghostId.current && findEvent) {
|
|
397
397
|
const allKeyEvent = Object.keys(findEvent.properties);
|
|
398
398
|
const findId = componentsAll === null || componentsAll === void 0 ? void 0 : componentsAll.find((item) => item.id == hoverUnderghostId.current);
|
|
399
|
-
console.log(findId, hoverUnderghostId.current);
|
|
400
399
|
dataBeforeHoverRef.current = allKeyEvent.map((key) => {
|
|
401
400
|
return {
|
|
402
401
|
key,
|