@matdata/yasgui-graph-plugin 1.2.0 → 1.4.0

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.
@@ -0,0 +1,117 @@
1
+ /* Color scheme variables */
2
+ :root {
3
+ /* Light theme colors (default) */
4
+ --yasgui-graph-uri: #97C2FC;
5
+ --yasgui-graph-literal: #a6c8a6ff;
6
+ --yasgui-graph-blank-node: #c5c5c5ff;
7
+ --yasgui-graph-type-object: #e15b13ff;
8
+ --yasgui-graph-text: #000000;
9
+ --yasgui-graph-edge: #cccccc;
10
+ --yasgui-graph-edge-label: #666666;
11
+ --yasgui-graph-edge-label-bg: rgba(255, 255, 255, 0.8);
12
+ --yasgui-graph-background: #ffffff;
13
+
14
+ /* Legacy variables for backward compatibility */
15
+ --color-blank-node: #ffff00;
16
+ --color-literal: #808080;
17
+ --color-rdf-type: #00ff00;
18
+ --color-uri: #0000ff;
19
+
20
+ --color-blank-node-dark: #ffeb3b;
21
+ --color-literal-dark: #9e9e9e;
22
+ --color-rdf-type-dark: #4caf50;
23
+ --color-uri-dark: #2196f3;
24
+
25
+ --bg-light: #ffffff;
26
+ --bg-dark: #1e1e1e;
27
+
28
+ --text-light: #666666;
29
+ --text-dark: #cccccc;
30
+ --text-error: #f44336;
31
+
32
+ --button-primary-bg: #4caf50;
33
+ --button-primary-bg-hover: #45a049;
34
+ --button-text: #ffffff;
35
+
36
+ --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
37
+ }
38
+ /* Dark theme colors */
39
+ [data-theme='dark'],
40
+ .dark-theme {
41
+ --yasgui-graph-uri: #97C2FC;
42
+ --yasgui-graph-literal: #a6c8a6ff;
43
+ --yasgui-graph-blank-node: #888888;
44
+ --yasgui-graph-type-object: #e15b13ff;
45
+ --yasgui-graph-text: #e0e0e0;
46
+ --yasgui-graph-edge: #666666;
47
+ --yasgui-graph-edge-label: #cccccc;
48
+ --yasgui-graph-edge-label-bg: rgba(30, 30, 30, 0.8);
49
+ --yasgui-graph-background: #1e1e1e;
50
+ }
51
+ /* Graph plugin container */
52
+ .yasgui-graph-plugin-container {
53
+ width: 100%;
54
+ height: 100%;
55
+ position: relative;
56
+ overflow: hidden;
57
+ }
58
+ .yasgui-graph-plugin-container canvas {
59
+ background-color: var(--yasgui-graph-canvas-bg, var(--bg-light));
60
+ }
61
+ .yasgui-graph-plugin-container[data-theme='dark'] canvas,
62
+ .dark-theme .yasgui-graph-plugin-container canvas {
63
+ background-color: var(--yasgui-graph-canvas-bg, var(--bg-dark));
64
+ }
65
+ .yasgui-graph-plugin-empty-state {
66
+ padding: 20px;
67
+ text-align: center;
68
+ color: var(--text-light);
69
+ }
70
+ .dark-theme .yasgui-graph-plugin-empty-state {
71
+ color: var(--text-dark);
72
+ }
73
+ .yasgui-graph-plugin-error {
74
+ padding: 20px;
75
+ color: var(--text-error);
76
+ }
77
+ /* Controls container */
78
+ .yasgui-graph-controls {
79
+ position: absolute;
80
+ top: 10px;
81
+ right: 10px;
82
+ z-index: 10000;
83
+ display: flex;
84
+ gap: 10px;
85
+ pointer-events: auto;
86
+ }
87
+ /* Button styles */
88
+ .yasgui-graph-button {
89
+ padding: 8px 12px;
90
+ background: var(--button-primary-bg);
91
+ color: var(--button-text);
92
+ border: none;
93
+ border-radius: 4px;
94
+ cursor: pointer;
95
+ font-size: 14px;
96
+ box-shadow: var(--box-shadow);
97
+ transition: background 0.2s ease;
98
+ }
99
+ .yasgui-graph-button:hover {
100
+ background: var(--button-primary-bg-hover);
101
+ }
102
+ .yasgui-graph-button:active {
103
+ transform: translateY(1px);
104
+ }
105
+ /* Icon styles */
106
+ .yasgui-graph-icon {
107
+ display: inline-flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ }
111
+ .yasgui-graph-icon svg {
112
+ width: 16px;
113
+ height: 16px;
114
+ fill: currentColor;
115
+ }
116
+ /* Main entry point for all styles */
117
+ /* This file will be imported by the TypeScript code */
@@ -0,0 +1,103 @@
1
+ /* styles/index.css */
2
+ :root {
3
+ --yasgui-graph-uri: #97C2FC;
4
+ --yasgui-graph-literal: #a6c8a6ff;
5
+ --yasgui-graph-blank-node: #c5c5c5ff;
6
+ --yasgui-graph-type-object: #e15b13ff;
7
+ --yasgui-graph-text: #000000;
8
+ --yasgui-graph-edge: #cccccc;
9
+ --yasgui-graph-edge-label: #666666;
10
+ --yasgui-graph-edge-label-bg: rgba(255, 255, 255, 0.8);
11
+ --yasgui-graph-background: #ffffff;
12
+ --color-blank-node: #ffff00;
13
+ --color-literal: #808080;
14
+ --color-rdf-type: #00ff00;
15
+ --color-uri: #0000ff;
16
+ --color-blank-node-dark: #ffeb3b;
17
+ --color-literal-dark: #9e9e9e;
18
+ --color-rdf-type-dark: #4caf50;
19
+ --color-uri-dark: #2196f3;
20
+ --bg-light: #ffffff;
21
+ --bg-dark: #1e1e1e;
22
+ --text-light: #666666;
23
+ --text-dark: #cccccc;
24
+ --text-error: #f44336;
25
+ --button-primary-bg: #4caf50;
26
+ --button-primary-bg-hover: #45a049;
27
+ --button-text: #ffffff;
28
+ --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
29
+ }
30
+ [data-theme=dark],
31
+ .dark-theme {
32
+ --yasgui-graph-uri: #97C2FC;
33
+ --yasgui-graph-literal: #a6c8a6ff;
34
+ --yasgui-graph-blank-node: #888888;
35
+ --yasgui-graph-type-object: #e15b13ff;
36
+ --yasgui-graph-text: #e0e0e0;
37
+ --yasgui-graph-edge: #666666;
38
+ --yasgui-graph-edge-label: #cccccc;
39
+ --yasgui-graph-edge-label-bg: rgba(30, 30, 30, 0.8);
40
+ --yasgui-graph-background: #1e1e1e;
41
+ }
42
+ .yasgui-graph-plugin-container {
43
+ width: 100%;
44
+ height: 100%;
45
+ position: relative;
46
+ overflow: hidden;
47
+ }
48
+ .yasgui-graph-plugin-container canvas {
49
+ background-color: var(--yasgui-graph-canvas-bg, var(--bg-light));
50
+ }
51
+ .yasgui-graph-plugin-container[data-theme=dark] canvas,
52
+ .dark-theme .yasgui-graph-plugin-container canvas {
53
+ background-color: var(--yasgui-graph-canvas-bg, var(--bg-dark));
54
+ }
55
+ .yasgui-graph-plugin-empty-state {
56
+ padding: 20px;
57
+ text-align: center;
58
+ color: var(--text-light);
59
+ }
60
+ .dark-theme .yasgui-graph-plugin-empty-state {
61
+ color: var(--text-dark);
62
+ }
63
+ .yasgui-graph-plugin-error {
64
+ padding: 20px;
65
+ color: var(--text-error);
66
+ }
67
+ .yasgui-graph-controls {
68
+ position: absolute;
69
+ top: 10px;
70
+ right: 10px;
71
+ z-index: 10000;
72
+ display: flex;
73
+ gap: 10px;
74
+ pointer-events: auto;
75
+ }
76
+ .yasgui-graph-button {
77
+ padding: 8px 12px;
78
+ background: var(--button-primary-bg);
79
+ color: var(--button-text);
80
+ border: none;
81
+ border-radius: 4px;
82
+ cursor: pointer;
83
+ font-size: 14px;
84
+ box-shadow: var(--box-shadow);
85
+ transition: background 0.2s ease;
86
+ }
87
+ .yasgui-graph-button:hover {
88
+ background: var(--button-primary-bg-hover);
89
+ }
90
+ .yasgui-graph-button:active {
91
+ transform: translateY(1px);
92
+ }
93
+ .yasgui-graph-icon {
94
+ display: inline-flex;
95
+ align-items: center;
96
+ justify-content: center;
97
+ }
98
+ .yasgui-graph-icon svg {
99
+ width: 16px;
100
+ height: 16px;
101
+ fill: currentColor;
102
+ }
103
+ /*# sourceMappingURL=yasgui-graph-plugin.esm.css.map */
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../styles/index.css"],
4
+ "sourcesContent": ["/* Color scheme variables */\r\n:root {\r\n /* Light theme colors (default) */\r\n --yasgui-graph-uri: #97C2FC;\r\n --yasgui-graph-literal: #a6c8a6ff;\r\n --yasgui-graph-blank-node: #c5c5c5ff;\r\n --yasgui-graph-type-object: #e15b13ff;\r\n --yasgui-graph-text: #000000;\r\n --yasgui-graph-edge: #cccccc;\r\n --yasgui-graph-edge-label: #666666;\r\n --yasgui-graph-edge-label-bg: rgba(255, 255, 255, 0.8);\r\n --yasgui-graph-background: #ffffff;\r\n \r\n /* Legacy variables for backward compatibility */\r\n --color-blank-node: #ffff00;\r\n --color-literal: #808080;\r\n --color-rdf-type: #00ff00;\r\n --color-uri: #0000ff;\r\n \r\n --color-blank-node-dark: #ffeb3b;\r\n --color-literal-dark: #9e9e9e;\r\n --color-rdf-type-dark: #4caf50;\r\n --color-uri-dark: #2196f3;\r\n \r\n --bg-light: #ffffff;\r\n --bg-dark: #1e1e1e;\r\n \r\n --text-light: #666666;\r\n --text-dark: #cccccc;\r\n --text-error: #f44336;\r\n \r\n --button-primary-bg: #4caf50;\r\n --button-primary-bg-hover: #45a049;\r\n --button-text: #ffffff;\r\n \r\n --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\r\n}\r\n/* Dark theme colors */\r\n[data-theme='dark'],\r\n.dark-theme {\r\n --yasgui-graph-uri: #97C2FC;\r\n --yasgui-graph-literal: #a6c8a6ff;\r\n --yasgui-graph-blank-node: #888888;\r\n --yasgui-graph-type-object: #e15b13ff;\r\n --yasgui-graph-text: #e0e0e0;\r\n --yasgui-graph-edge: #666666;\r\n --yasgui-graph-edge-label: #cccccc;\r\n --yasgui-graph-edge-label-bg: rgba(30, 30, 30, 0.8);\r\n --yasgui-graph-background: #1e1e1e;\r\n}\r\n/* Graph plugin container */\r\n.yasgui-graph-plugin-container {\r\n width: 100%;\r\n height: 100%;\r\n position: relative;\r\n overflow: hidden;\r\n}\r\n.yasgui-graph-plugin-container canvas {\r\n background-color: var(--yasgui-graph-canvas-bg, var(--bg-light));\r\n}\r\n.yasgui-graph-plugin-container[data-theme='dark'] canvas,\r\n.dark-theme .yasgui-graph-plugin-container canvas {\r\n background-color: var(--yasgui-graph-canvas-bg, var(--bg-dark));\r\n}\r\n.yasgui-graph-plugin-empty-state {\r\n padding: 20px;\r\n text-align: center;\r\n color: var(--text-light);\r\n}\r\n.dark-theme .yasgui-graph-plugin-empty-state {\r\n color: var(--text-dark);\r\n}\r\n.yasgui-graph-plugin-error {\r\n padding: 20px;\r\n color: var(--text-error);\r\n}\r\n/* Controls container */\r\n.yasgui-graph-controls {\r\n position: absolute;\r\n top: 10px;\r\n right: 10px;\r\n z-index: 10000;\r\n display: flex;\r\n gap: 10px;\r\n pointer-events: auto;\r\n}\r\n/* Button styles */\r\n.yasgui-graph-button {\r\n padding: 8px 12px;\r\n background: var(--button-primary-bg);\r\n color: var(--button-text);\r\n border: none;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n font-size: 14px;\r\n box-shadow: var(--box-shadow);\r\n transition: background 0.2s ease;\r\n}\r\n.yasgui-graph-button:hover {\r\n background: var(--button-primary-bg-hover);\r\n}\r\n.yasgui-graph-button:active {\r\n transform: translateY(1px);\r\n}\r\n/* Icon styles */\r\n.yasgui-graph-icon {\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.yasgui-graph-icon svg {\r\n width: 16px;\r\n height: 16px;\r\n fill: currentColor;\r\n}\r\n/* Main entry point for all styles */\r\n/* This file will be imported by the TypeScript code */\r\n"],
5
+ "mappings": ";AACA;AAEE,sBAAoB;AACpB,0BAAwB;AACxB,6BAA2B;AAC3B,8BAA4B;AAC5B,uBAAqB;AACrB,uBAAqB;AACrB,6BAA2B;AAC3B,gCAA8B,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AAClD,6BAA2B;AAG3B,sBAAoB;AACpB,mBAAiB;AACjB,oBAAkB;AAClB,eAAa;AAEb,2BAAyB;AACzB,wBAAsB;AACtB,yBAAuB;AACvB,oBAAkB;AAElB,cAAY;AACZ,aAAW;AAEX,gBAAc;AACd,eAAa;AACb,gBAAc;AAEd,uBAAqB;AACrB,6BAA2B;AAC3B,iBAAe;AAEf,gBAAc,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACxC;AAEA,CAAC;AACD,CAAC;AACC,sBAAoB;AACpB,0BAAwB;AACxB,6BAA2B;AAC3B,8BAA4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