vue3-network-graph 0.2.1 → 0.2.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/README.en.md +733 -727
- package/README.md +733 -727
- package/dist/index.d.ts +21 -0
- package/dist/index.mjs +1219 -843
- package/dist/index.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -152,6 +152,15 @@ export interface TopologyConfig {
|
|
|
152
152
|
edgeTextBgColor?: string;
|
|
153
153
|
/** Edge label plate opacity 0-1 (default 0.92) */
|
|
154
154
|
edgeTextBgOpacity?: number;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the edge `centerText` label rotates along the line direction.
|
|
157
|
+
* - `true` (default): label follows the line tangent, like today.
|
|
158
|
+
* - `false`: label always stays horizontal on screen; only its anchor
|
|
159
|
+
* point still tracks the path midpoint. Affects `centerText` only —
|
|
160
|
+
* `fromText` / `toText` and the merged-bundle count badge still follow
|
|
161
|
+
* the line.
|
|
162
|
+
*/
|
|
163
|
+
edgeCenterTextFollowLine?: boolean;
|
|
155
164
|
/** Global default line color for edges (animation layers AND, when set, the static line). Per-edge `edge.color` wins. Legacy fallback edge.centerText.color still applies to animation layers when unset. */
|
|
156
165
|
edgeColor?: string;
|
|
157
166
|
/** Alias for `edgeColor` */
|
|
@@ -196,6 +205,18 @@ export interface TopologyConfig {
|
|
|
196
205
|
* image node = `nodeType` image/img/picture, or no `nodeType` + picture.
|
|
197
206
|
*/
|
|
198
207
|
imageNodeBySource?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Base icon space width (the former single BASE_ICON_SIZE, now split).
|
|
210
|
+
* Derived from it: the default size of nodes without an explicit
|
|
211
|
+
* width / height, the icon slot scaling (nodeScale), and the image
|
|
212
|
+
* node viewBox / picture fitting. Default 60.
|
|
213
|
+
*/
|
|
214
|
+
baseIconWidth?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Base icon space height (the former single BASE_ICON_SIZE, now split).
|
|
217
|
+
* Same derivations as baseIconWidth, along the vertical axis. Default 60.
|
|
218
|
+
*/
|
|
219
|
+
baseIconHeight?: number;
|
|
199
220
|
/**
|
|
200
221
|
* Node / edge paint order.
|
|
201
222
|
* - "split" (default): every node is painted in two passes — background
|