@woven-canvas/vue 0.1.0 → 0.1.2
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/build/index.js +8092 -7965
- package/build/index.umd.cjs +36 -36
- package/build/src/components/EditableText.vue.d.ts.map +1 -1
- package/build/src/components/FloatingMenu.vue.d.ts.map +1 -1
- package/build/src/components/blocks/ShapeBlock.vue.d.ts.map +1 -1
- package/build/src/composables/useTextEditorController.d.ts +2 -1
- package/build/src/composables/useTextEditorController.d.ts.map +1 -1
- package/build/style.css +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/theme.css +46 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@woven-canvas/vue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Vue 3 components for woven-canvas infinite canvas",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"@tiptap/extensions": "^3.15.3",
|
|
52
52
|
"@tiptap/vue-3": "^3.15.3",
|
|
53
53
|
"@vueuse/core": "^14.0.0",
|
|
54
|
-
"@woven-ecs/canvas-store": "^1.0.
|
|
54
|
+
"@woven-ecs/canvas-store": "^1.0.4",
|
|
55
55
|
"perfect-freehand": "^1.2.2",
|
|
56
56
|
"vue": "^3.5.26",
|
|
57
57
|
"@woven-canvas/asset-sync": "^0.1.0",
|
|
58
58
|
"@woven-canvas/math": "^0.1.0",
|
|
59
|
-
"@woven-canvas/plugin-
|
|
60
|
-
"@woven-canvas/plugin-eraser": "^0.1.0",
|
|
59
|
+
"@woven-canvas/plugin-canvas-controls": "^0.1.0",
|
|
61
60
|
"@woven-canvas/core": "^0.1.0",
|
|
62
61
|
"@woven-canvas/plugin-pen": "^0.1.0",
|
|
63
|
-
"@woven-canvas/plugin-
|
|
62
|
+
"@woven-canvas/plugin-arrows": "^0.1.0",
|
|
63
|
+
"@woven-canvas/plugin-eraser": "^0.1.0",
|
|
64
64
|
"@woven-canvas/plugin-selection": "^0.1.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
package/src/theme.css
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");
|
|
2
2
|
|
|
3
|
-
@layer
|
|
4
|
-
.
|
|
3
|
+
@layer wov-reset {
|
|
4
|
+
.wov-root :where(*:not(svg, svg *)) {
|
|
5
5
|
all: revert;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
.wov-root {
|
|
11
11
|
/* Brand colors */
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
12
|
+
--wov-primary: #6a58f2;
|
|
13
|
+
--wov-primary-light: #8a76f4;
|
|
14
|
+
--wov-error: #ff4d4f;
|
|
15
15
|
|
|
16
16
|
/* Grayscale */
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
17
|
+
--wov-gray-100: #f8f9f9;
|
|
18
|
+
--wov-gray-200: #e3e5e8;
|
|
19
|
+
--wov-gray-300: #c7ccd1;
|
|
20
|
+
--wov-gray-400: #9099a4;
|
|
21
|
+
--wov-gray-500: #4f5660;
|
|
22
|
+
--wov-gray-600: #2e3338;
|
|
23
|
+
--wov-gray-700: #060607;
|
|
24
24
|
|
|
25
25
|
/* Z-index scale (stacking order) */
|
|
26
|
-
--
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
--
|
|
31
|
-
--
|
|
32
|
-
--
|
|
26
|
+
--wov-z-block-content: 1;
|
|
27
|
+
--wov-z-cursors: 50;
|
|
28
|
+
--wov-z-ui: 100; /* toolbar, indicators, presence */
|
|
29
|
+
--wov-z-floating-menu: 101;
|
|
30
|
+
--wov-z-overlay: 1000; /* version mismatch, loading */
|
|
31
|
+
--wov-z-dropdown: 1001;
|
|
32
|
+
--wov-z-tooltip: 1002;
|
|
33
33
|
|
|
34
34
|
/* UI settings */
|
|
35
|
-
--
|
|
36
|
-
--
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
35
|
+
--wov-font-family: "Figtree", sans-serif;
|
|
36
|
+
--wov-menu-border-radius: 12px;
|
|
37
|
+
--wov-menu-tooltip-border-radius: 6px;
|
|
38
|
+
--wov-transition-duration: 150ms;
|
|
39
|
+
--wov-transition-timing-function: cubwov-bezier(0.4, 0, 0.2, 1);
|
|
40
40
|
|
|
41
41
|
/* Selection/highlight styles */
|
|
42
|
-
--
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
42
|
+
--wov-highlighted-block-outline-color: var(--wov-primary);
|
|
43
|
+
--wov-highlighted-block-outline-width: 1.5px;
|
|
44
|
+
--wov-highlighted-block-outline-offset: -1px;
|
|
45
|
+
--wov-highlighted-block-border-radius: 2px;
|
|
46
|
+
--wov-selection-box-bg: #5865f222;
|
|
47
|
+
--wov-text-selection-color: var(--wov-primary-light);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.
|
|
51
|
-
font-family: var(--
|
|
50
|
+
.wov-root {
|
|
51
|
+
font-family: var(--wov-font-family);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/* Normalize SVG display to prevent style leakage from parent document */
|
|
55
|
-
.
|
|
55
|
+
.wov-root svg {
|
|
56
56
|
display: block;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.
|
|
60
|
-
background-color: var(--
|
|
59
|
+
.wov-root ::selection {
|
|
60
|
+
background-color: var(--wov-text-selection-color);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
/* Block highlight styles for hovered/selected state */
|
|
65
|
-
.
|
|
66
|
-
.
|
|
67
|
-
outline: calc(var(--
|
|
68
|
-
solid var(--
|
|
65
|
+
.wov-block[data-hovered] > *,
|
|
66
|
+
.wov-block[data-selected] > * {
|
|
67
|
+
outline: calc(var(--wov-highlighted-block-outline-width) / var(--wov-zoom, 1))
|
|
68
|
+
solid var(--wov-highlighted-block-outline-color);
|
|
69
69
|
outline-offset: calc(
|
|
70
|
-
var(--
|
|
70
|
+
var(--wov-highlighted-block-outline-offset) / var(--wov-zoom, 1)
|
|
71
71
|
);
|
|
72
72
|
border-radius: calc(
|
|
73
|
-
var(--
|
|
73
|
+
var(--wov-highlighted-block-border-radius) / var(--wov-zoom, 1)
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.
|
|
78
|
-
outline: calc(3px / var(--
|
|
79
|
-
outline-offset: calc(2px / var(--
|
|
77
|
+
.wov-block[data-held-by-other] > * {
|
|
78
|
+
outline: calc(3px / var(--wov-zoom, 1)) solid var(--wov-held-by-color);
|
|
79
|
+
outline-offset: calc(2px / var(--wov-zoom, 1));
|
|
80
80
|
border-radius: calc(
|
|
81
|
-
var(--
|
|
81
|
+
var(--wov-highlighted-block-border-radius) / var(--wov-zoom, 1)
|
|
82
82
|
);
|
|
83
83
|
}
|