@bruno00o/graph 0.3.0 → 0.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.
- package/README.md +2 -2
- package/dist/db.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{mount-graph-DQLST9-_.d.ts → mount-graph-Br5IAZbP.d.ts} +2 -2
- package/dist/{mount-graph-CzVfiIte.js → mount-graph-mObhwJ3e.js} +279 -170
- package/dist/mount-graph-mObhwJ3e.js.map +1 -0
- package/dist/query.d.ts +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/theme.css +3 -0
- package/dist/{types-BaflHDaf.d.ts → types-DJEdpHUo.d.ts} +6 -1
- package/package.json +1 -1
- package/dist/mount-graph-CzVfiIte.js.map +0 -1
package/dist/query.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Key, x as LiveSource } from "./types-
|
|
1
|
+
import { _ as Key, x as LiveSource } from "./types-DJEdpHUo.js";
|
|
2
2
|
import { ReadonlyStore } from "@tanstack/store";
|
|
3
3
|
import { DefaultError, QueryClient, QueryKey, QueryObserverOptions } from "@tanstack/query-core";
|
|
4
4
|
export interface ExplorationData<TNode, TEdge> {
|
package/dist/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as GraphEventHandler, h as ElementKeysInput, i as GraphInstance, l as GraphStore, s as GraphState, v as GraphEventName } from "./mount-graph-
|
|
2
|
-
import { B as View, m as GraphDefinition } from "./types-
|
|
1
|
+
import { _ as GraphEventHandler, h as ElementKeysInput, i as GraphInstance, l as GraphStore, s as GraphState, v as GraphEventName } from "./mount-graph-Br5IAZbP.js";
|
|
2
|
+
import { B as View, m as GraphDefinition } from "./types-DJEdpHUo.js";
|
|
3
3
|
import { CSSProperties, JSX, ReactNode, Ref } from "react";
|
|
4
4
|
export interface GraphEventProps {
|
|
5
5
|
readonly onClick?: GraphEventHandler<"click">;
|
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as mountGraph } from "./mount-graph-
|
|
1
|
+
import { t as mountGraph } from "./mount-graph-mObhwJ3e.js";
|
|
2
2
|
import { createContext, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
// src/react/index.tsx
|
package/dist/theme.css
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
--graph-focus-ring: #c93700;
|
|
14
14
|
--graph-halo: #c9370047;
|
|
15
15
|
--graph-label-halo: #f7f7f4;
|
|
16
|
+
--graph-label-background: #ffffff;
|
|
16
17
|
--graph-node-ring: #f7f7f4;
|
|
17
18
|
--graph-badge-fill: #191d22;
|
|
18
19
|
--graph-badge-ink: #f7f7f4;
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
--graph-focus-ring: #fa8054;
|
|
45
46
|
--graph-halo: #fa805447;
|
|
46
47
|
--graph-label-halo: #0f1113;
|
|
48
|
+
--graph-label-background: #171a1d;
|
|
47
49
|
--graph-node-ring: #0f1113;
|
|
48
50
|
--graph-badge-fill: #efeeeb;
|
|
49
51
|
--graph-badge-ink: #0f1113;
|
|
@@ -74,6 +76,7 @@
|
|
|
74
76
|
--graph-focus-ring: #fa8054;
|
|
75
77
|
--graph-halo: #fa805447;
|
|
76
78
|
--graph-label-halo: #0f1113;
|
|
79
|
+
--graph-label-background: #171a1d;
|
|
77
80
|
--graph-node-ring: #0f1113;
|
|
78
81
|
--graph-badge-fill: #efeeeb;
|
|
79
82
|
--graph-badge-ink: #0f1113;
|
|
@@ -45,6 +45,7 @@ interface NodeImage {
|
|
|
45
45
|
interface LabelOptions<T> {
|
|
46
46
|
readonly text: Channel<T, string>;
|
|
47
47
|
readonly secondary?: Channel<T, string>;
|
|
48
|
+
readonly background?: Style<T, string | boolean | null>;
|
|
48
49
|
}
|
|
49
50
|
interface NodeOptions<T> {
|
|
50
51
|
readonly key?: KeyChannel<T>;
|
|
@@ -57,6 +58,8 @@ interface NodeOptions<T> {
|
|
|
57
58
|
readonly fill?: Style<T, string>;
|
|
58
59
|
readonly stroke?: Style<T, string>;
|
|
59
60
|
readonly strokeWidth?: Style<T, number>;
|
|
61
|
+
readonly outline?: Style<T, string | null>;
|
|
62
|
+
readonly outlineWidth?: Style<T, number>;
|
|
60
63
|
readonly opacity?: Style<T, number>;
|
|
61
64
|
readonly image?: Style<T, string | NodeImage | null>;
|
|
62
65
|
readonly badges?: Readonly<Partial<Record<BadgeCorner, Accessor<T, Badge | null | undefined>>>>;
|
|
@@ -112,6 +115,8 @@ interface StateStyle {
|
|
|
112
115
|
readonly fill?: string;
|
|
113
116
|
readonly stroke?: string;
|
|
114
117
|
readonly strokeWidth?: number;
|
|
118
|
+
readonly outline?: string;
|
|
119
|
+
readonly outlineWidth?: number;
|
|
115
120
|
readonly halo?: boolean;
|
|
116
121
|
readonly label?: boolean;
|
|
117
122
|
}
|
|
@@ -160,4 +165,4 @@ interface GraphDefinition<S extends string = string> {
|
|
|
160
165
|
readonly transitions: ResolvedTransitions;
|
|
161
166
|
}
|
|
162
167
|
export { ResolvedInteraction as A, View as B, NodeImage as C, NumberScale as D, NodeShape as E, SourceSubscription as F, StateStyle as I, StateStyles as L, ScalesOptions as M, SelectMode as N, NumberScaleType as O, SourceChange as P, Style as R, Mark as S, NodeOptions as T, Key as _, Channel as a, LabelOptions as b, EdgeDash as c, FieldOf as d, FreeState as f, InteractionOptions as g, GraphDefinitionOptions as h, BuiltInState as i, ResolvedTransitions as j, Point as k, EdgeMark as l, GraphDefinition as m, Badge as n, ColorScale as o, GraphData as p, BadgeCorner as r, EdgeArrow as s, Accessor as t, EdgeOptions as u, KeyChannel as v, NodeMark as w, LiveSource as x, KeyFieldOf as y, TransitionOptions as z };
|
|
163
|
-
//# sourceMappingURL=types-
|
|
168
|
+
//# sourceMappingURL=types-DJEdpHUo.d.ts.map
|