@michael_home/workflow-engine-vue 1.0.1 → 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/src/EdgeView.vue DELETED
@@ -1,46 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
- import type { Point } from '@workflow/core'
4
- import { renderSvgEdge } from '@workflow/svg-renderer'
5
-
6
- const props = withDefaults(
7
- defineProps<{
8
- points: Point[]
9
- stroke?: string
10
- strokeWidth?: number
11
- fill?: string
12
- }>(),
13
- {
14
- stroke: '#0b7285',
15
- strokeWidth: 1,
16
- fill: '#0b7285'
17
- }
18
- )
19
-
20
- const render = computed(() => renderSvgEdge(props.points))
21
- </script>
22
-
23
- <template>
24
- <svg class="edge-view" xmlns="http://www.w3.org/2000/svg">
25
- <path
26
- :d="render.path"
27
- :stroke="stroke"
28
- :stroke-width="strokeWidth"
29
- fill="none"
30
- stroke-linecap="round"
31
- stroke-linejoin="round"
32
- />
33
- <polygon :points="render.arrow" :fill="fill" :stroke="stroke" />
34
- </svg>
35
- </template>
36
-
37
- <style scoped>
38
- .edge-view {
39
- position: absolute;
40
- inset: 0;
41
- width: 100%;
42
- height: 100%;
43
- overflow: visible;
44
- pointer-events: none;
45
- }
46
- </style>
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export { default as CanvasView } from './CanvasView.vue'