@fmsim/board 1.0.0 → 1.0.3
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/custom-elements.json +906 -906
- package/dist/src/component/etc.js +23 -0
- package/dist/src/component/etc.js.map +1 -1
- package/dist/src/layers/mcs-mouse-event-handler.js +37 -45
- package/dist/src/layers/mcs-mouse-event-handler.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/icons/components/triangle.png +0 -0
- package/package.json +4 -4
|
@@ -2,6 +2,7 @@ const rect = new URL('../../../icons/components/rect.png', import.meta.url).href
|
|
|
2
2
|
const ellipse = new URL('../../../icons/components/ellipse.png', import.meta.url).href;
|
|
3
3
|
const lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href;
|
|
4
4
|
const dash = new URL('../../../icons/components/dash.png', import.meta.url).href;
|
|
5
|
+
const triangle = new URL('../../../icons/components/triangle.png', import.meta.url).href;
|
|
5
6
|
const icon = `
|
|
6
7
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
|
7
8
|
<style type="text/css">
|
|
@@ -59,6 +60,28 @@ export const etc = {
|
|
|
59
60
|
lineCap: 'butt'
|
|
60
61
|
}
|
|
61
62
|
},
|
|
63
|
+
{
|
|
64
|
+
type: 'triangle',
|
|
65
|
+
description: 'triangle shape',
|
|
66
|
+
icon: triangle,
|
|
67
|
+
group: 'shape',
|
|
68
|
+
model: {
|
|
69
|
+
type: 'triangle',
|
|
70
|
+
x1: 150,
|
|
71
|
+
y1: 100,
|
|
72
|
+
x2: 100,
|
|
73
|
+
y2: 200,
|
|
74
|
+
x3: 200,
|
|
75
|
+
y3: 200,
|
|
76
|
+
fillStyle: '#fff',
|
|
77
|
+
strokeStyle: '#000',
|
|
78
|
+
alpha: 1,
|
|
79
|
+
hidden: false,
|
|
80
|
+
lineWidth: 1,
|
|
81
|
+
lineDash: 'solid',
|
|
82
|
+
lineCap: 'butt'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
62
85
|
{
|
|
63
86
|
type: 'line',
|
|
64
87
|
description: 'simple line',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etc.js","sourceRoot":"","sources":["../../../src/component/etc.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,uCAAuC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACtF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACpF,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"etc.js","sourceRoot":"","sources":["../../../src/component/etc.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,uCAAuC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACtF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACpF,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,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["import { ComponentGroup } from '../types'\n\nconst rect = new URL('../../../icons/components/rect.png', import.meta.url).href\nconst ellipse = new URL('../../../icons/components/ellipse.png', import.meta.url).href\nconst lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href\nconst dash = new URL('../../../icons/components/dash.png', import.meta.url).href\nconst triangle = new URL('../../../icons/components/triangle.png', import.meta.url).href\n\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <circle class=\"st0\" cx=\"7.1\" cy=\"15\" r=\"2\"/>\n <circle class=\"st0\" cx=\"15\" cy=\"15\" r=\"2\"/>\n <circle class=\"st0\" cx=\"22.9\" cy=\"15\" r=\"2\"/>\n </g>\n</svg>\n`\n\nexport const etc: ComponentGroup = {\n name: 'etc',\n description: 'a group of components that have not yet been defined.',\n icon,\n templates: [\n {\n type: 'rect',\n description: 'rectangle shape',\n icon: rect,\n group: 'shape',\n model: {\n type: 'rect',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'ellipse',\n description: 'ellipse shape',\n icon: ellipse,\n group: 'shape',\n model: {\n type: 'ellipse',\n rx: 50,\n ry: 50,\n cx: 150,\n cy: 150,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'triangle',\n description: 'triangle shape',\n icon: triangle,\n group: 'shape',\n model: {\n type: 'triangle',\n x1: 150,\n y1: 100,\n x2: 100,\n y2: 200,\n x3: 200,\n y3: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'line',\n description: 'simple line',\n icon: lineIcon,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 3,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'dash',\n description: 'dash line',\n icon: dash,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 3,\n lineDash: 'round-dot',\n lineCap: 'butt'\n }\n }\n ]\n}\n"]}
|
|
@@ -1,70 +1,62 @@
|
|
|
1
1
|
import { EventMap } from '@hatiolab/things-scene';
|
|
2
|
-
function
|
|
2
|
+
function dispatchFetchLvModelDataByMouseEvent(type, event, target) {
|
|
3
3
|
var _a;
|
|
4
|
-
const
|
|
5
|
-
if (
|
|
6
|
-
|
|
4
|
+
const parent = target.parentObject;
|
|
5
|
+
if ((_a = target.model) === null || _a === void 0 ? void 0 : _a.id) {
|
|
6
|
+
window.dispatchEvent(new CustomEvent('fetchLvModelDataByMouseEvent', {
|
|
7
|
+
detail: {
|
|
8
|
+
value: {
|
|
9
|
+
type,
|
|
10
|
+
event,
|
|
11
|
+
model: {
|
|
12
|
+
...target.state,
|
|
13
|
+
parentObjectId: parent === null || parent === void 0 ? void 0 : parent.get('id')
|
|
14
|
+
},
|
|
15
|
+
data: target.data
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
19
|
+
return parent || target;
|
|
7
20
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
else if (parent) {
|
|
22
|
+
window.dispatchEvent(new CustomEvent('fetchLvModelDataByMouseEvent', {
|
|
23
|
+
detail: {
|
|
24
|
+
value: {
|
|
25
|
+
type,
|
|
26
|
+
event,
|
|
27
|
+
model: parent.state,
|
|
28
|
+
data: parent.data
|
|
29
|
+
}
|
|
16
30
|
}
|
|
17
|
-
}
|
|
18
|
-
|
|
31
|
+
}));
|
|
32
|
+
return parent;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function onmouseenter(event, hint) {
|
|
36
|
+
const target = hint.origin;
|
|
37
|
+
event.stopPropagation();
|
|
38
|
+
dispatchFetchLvModelDataByMouseEvent('hover', event, target);
|
|
19
39
|
}
|
|
20
40
|
function onclick(event, hint) {
|
|
21
41
|
const target = hint.origin;
|
|
22
|
-
// if (!target.model?.id) {
|
|
23
|
-
// return
|
|
24
|
-
// }
|
|
25
42
|
event.stopPropagation();
|
|
26
43
|
setTimeout(() => {
|
|
27
|
-
var _a;
|
|
28
44
|
if (target.currentEvent !== 'dblclick') {
|
|
29
|
-
|
|
30
|
-
window.dispatchEvent(new CustomEvent('fetchLvModelDataByMouseEvent', {
|
|
31
|
-
detail: {
|
|
32
|
-
value: {
|
|
33
|
-
type: 'click',
|
|
34
|
-
event,
|
|
35
|
-
model: target.state,
|
|
36
|
-
data: target.data
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}));
|
|
45
|
+
const realTarget = dispatchFetchLvModelDataByMouseEvent('click', event, target);
|
|
40
46
|
window.dispatchEvent(new CustomEvent('clickComponent', {
|
|
41
|
-
detail: target
|
|
47
|
+
detail: realTarget || target
|
|
42
48
|
}));
|
|
43
49
|
}
|
|
44
50
|
}, 300);
|
|
45
51
|
}
|
|
46
52
|
function ondblclick(event, hint) {
|
|
47
|
-
var _a;
|
|
48
53
|
const target = hint.origin;
|
|
49
54
|
setTimeout(() => {
|
|
50
55
|
target.currentEvent = '';
|
|
51
56
|
}, 500);
|
|
52
|
-
// if (!target.model?.id) {
|
|
53
|
-
// return
|
|
54
|
-
// }
|
|
55
57
|
event.stopPropagation();
|
|
56
58
|
target.currentEvent = 'dblclick';
|
|
57
|
-
(
|
|
58
|
-
window.dispatchEvent(new CustomEvent('fetchLvModelDataByMouseEvent', {
|
|
59
|
-
detail: {
|
|
60
|
-
value: {
|
|
61
|
-
type: 'dblclick',
|
|
62
|
-
event,
|
|
63
|
-
model: target.state,
|
|
64
|
-
data: target.data
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}));
|
|
59
|
+
dispatchFetchLvModelDataByMouseEvent('dblclick', event, target);
|
|
68
60
|
}
|
|
69
61
|
EventMap.register('mcs-event-handler', {
|
|
70
62
|
'model-layer': {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcs-mouse-event-handler.js","sourceRoot":"","sources":["../../../src/layers/mcs-mouse-event-handler.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mcs-mouse-event-handler.js","sourceRoot":"","sources":["../../../src/layers/mcs-mouse-event-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAE5D,SAAS,oCAAoC,CAC3C,IAAoC,EACpC,KAAiB,EACjB,MAAgD;;IAEhD,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,CAAA;IAElC,IAAI,MAAA,MAAM,CAAC,KAAK,0CAAE,EAAE,EAAE,CAAC;QACrB,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAAC,8BAA8B,EAAE;YAC9C,MAAM,EAAE;gBACN,KAAK,EAAE;oBACL,IAAI;oBACJ,KAAK;oBACL,KAAK,EAAE;wBACL,GAAG,MAAM,CAAC,KAAK;wBACf,cAAc,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,CAAC,IAAI,CAAC;qBAClC;oBACD,IAAI,EAAE,MAAM,CAAC,IAAI;iBAClB;aACF;SACF,CAAC,CACH,CAAA;QAED,OAAO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AAK,CAAC,eAAe,EAAE,CAAA;IAEvB,MAAM,CAAC,YAAY,GAAG,UAAU,CAAA;IAEhC,oCAAoC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;AACjE,CAAC;AAED,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,EAAE;IACrC,aAAa,EAAE;QACb,OAAO,EAAE;YACP,6CAA6C;YAC7C,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;SACrB;KACF;CACF,CAAC,CAAA","sourcesContent":["import { Component, EventMap } from '@hatiolab/things-scene'\n\nfunction dispatchFetchLvModelDataByMouseEvent(\n type: 'hover' | 'click' | 'dblclick',\n event: MouseEvent,\n target: Component & { parentObject?: Component }\n): Component | undefined {\n const parent = target.parentObject\n\n if (target.model?.id) {\n window.dispatchEvent(\n new CustomEvent('fetchLvModelDataByMouseEvent', {\n detail: {\n value: {\n type,\n event,\n model: {\n ...target.state,\n parentObjectId: parent?.get('id')\n },\n data: target.data\n }\n }\n })\n )\n\n return parent || target\n } else if (parent) {\n window.dispatchEvent(\n new CustomEvent('fetchLvModelDataByMouseEvent', {\n detail: {\n value: {\n type,\n event,\n model: parent.state,\n data: parent.data\n }\n }\n })\n )\n\n return parent\n }\n}\n\nfunction onmouseenter(event: MouseEvent, hint: any) {\n const target = hint.origin\n\n event.stopPropagation()\n\n dispatchFetchLvModelDataByMouseEvent('hover', event, target)\n}\n\nfunction onclick(event: MouseEvent, hint: any) {\n const target = hint.origin\n\n event.stopPropagation()\n\n setTimeout(() => {\n if (target.currentEvent !== 'dblclick') {\n const realTarget = dispatchFetchLvModelDataByMouseEvent('click', event, target)\n\n window.dispatchEvent(\n new CustomEvent('clickComponent', {\n detail: realTarget || target\n })\n )\n }\n }, 300)\n}\n\nfunction ondblclick(event: MouseEvent, hint: any) {\n const target = hint.origin\n\n setTimeout(() => {\n target.currentEvent = ''\n }, 500)\n\n event.stopPropagation()\n\n target.currentEvent = 'dblclick'\n\n dispatchFetchLvModelDataByMouseEvent('dblclick', event, target)\n}\n\nEventMap.register('mcs-event-handler', {\n 'model-layer': {\n '(all)': {\n // mouseenter: onmouseenter, /* 사용되지 않고 있음 */\n click: onclick,\n dblclick: ondblclick\n }\n }\n})\n"]}
|