seat-editor 3.2.18 → 3.2.19
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.
|
@@ -214,15 +214,15 @@ const TouchScrollDetect = () => {
|
|
|
214
214
|
]} eventMatchTable={[
|
|
215
215
|
{
|
|
216
216
|
event: "mouseenter",
|
|
217
|
-
properties: {
|
|
217
|
+
properties: { strokeWidth: 5 },
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
event: "dragenter",
|
|
221
|
-
properties: {
|
|
221
|
+
properties: { strokeWidth: 5 },
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
event: "selected",
|
|
225
|
-
properties: {
|
|
225
|
+
properties: { strokeWidth: 5 },
|
|
226
226
|
},
|
|
227
227
|
]} iconTags={[
|
|
228
228
|
{
|
|
@@ -3,6 +3,7 @@ import { isEmpty, omit } from "lodash";
|
|
|
3
3
|
import { arcByDirection, distributeWithSpacing } from "../layer-v3/utils";
|
|
4
4
|
import { PRIVILEGED_TAGS, tagsDummy } from "./constant";
|
|
5
5
|
import { useAppSelector } from "../../hooks/use-redux";
|
|
6
|
+
const toKebabCase = (str) => str.replace(/[A-Z]/g, (m) => "-" + m.toLowerCase());
|
|
6
7
|
const Layers = ({ components, selectedTable, iconTags, eventMatchTable, onHighlightGroup, onForceRestoreGroup, selectedTableColor, privilegedTags = [], }) => {
|
|
7
8
|
const { isShowTagType } = useAppSelector((state) => state.board);
|
|
8
9
|
const showLabels = !(["type-1", "type-2"].includes(isShowTagType)) && !iconTags;
|
|
@@ -160,7 +161,7 @@ const Layers = ({ components, selectedTable, iconTags, eventMatchTable, onHighli
|
|
|
160
161
|
el.dataset[key] = el.getAttribute(key) || "";
|
|
161
162
|
});
|
|
162
163
|
Object.entries(properties).forEach(([key, value]) => {
|
|
163
|
-
el.setAttribute(key, value);
|
|
164
|
+
el.setAttribute(toKebabCase(key), value);
|
|
164
165
|
});
|
|
165
166
|
});
|
|
166
167
|
};
|
|
@@ -178,7 +179,7 @@ const Layers = ({ components, selectedTable, iconTags, eventMatchTable, onHighli
|
|
|
178
179
|
// bersihkan data
|
|
179
180
|
const dataset = el.dataset;
|
|
180
181
|
Object.entries(dataset).forEach(([key, value]) => {
|
|
181
|
-
el.setAttribute(key, value);
|
|
182
|
+
el.setAttribute(toKebabCase(key), value);
|
|
182
183
|
delete el.dataset[key];
|
|
183
184
|
properties = {};
|
|
184
185
|
});
|
|
@@ -195,7 +196,7 @@ const Layers = ({ components, selectedTable, iconTags, eventMatchTable, onHighli
|
|
|
195
196
|
return;
|
|
196
197
|
const dataset = el.dataset;
|
|
197
198
|
Object.entries(dataset).forEach(([key, value]) => {
|
|
198
|
-
el.setAttribute(key, value);
|
|
199
|
+
el.setAttribute(toKebabCase(key), value);
|
|
199
200
|
delete el.dataset[key];
|
|
200
201
|
properties = {};
|
|
201
202
|
});
|
package/dist/dto/table.d.ts
CHANGED