@cyber-harbour/ui 1.0.68 → 1.0.70
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/dist/index.d.mts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +143 -143
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +132 -132
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Graph2D/Graph2D.tsx +76 -25
- package/src/Graph2D/types.ts +2 -4
package/dist/index.d.mts
CHANGED
|
@@ -1693,10 +1693,6 @@ interface GraphState {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
/** Флаг необходимости остановки распространения события */
|
|
1695
1695
|
mustBeStoppedPropagation: boolean;
|
|
1696
|
-
/** Последний узел, над которым был курсор */
|
|
1697
|
-
lastHoveredNode: NodeObject | null;
|
|
1698
|
-
/** Кэшированная ссылка на последний узел, над которым был курсор (для избежания лишних вычислений) */
|
|
1699
|
-
lastHoveredNodeRef: NodeObject | null;
|
|
1700
1696
|
/** Начальная позиция курсора при начале перетаскивания */
|
|
1701
1697
|
mouseStartPos: {
|
|
1702
1698
|
x: number;
|
|
@@ -1722,6 +1718,8 @@ interface Graph2DProps {
|
|
|
1722
1718
|
interface NodeButton {
|
|
1723
1719
|
img: string;
|
|
1724
1720
|
hoverImg: string;
|
|
1721
|
+
loading?: boolean;
|
|
1722
|
+
count?: (node: NodeObject) => number;
|
|
1725
1723
|
onClick: (node: NodeObject) => void;
|
|
1726
1724
|
}
|
|
1727
1725
|
type GraphData<NodeType = {}, LinkType = {}> = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1693,10 +1693,6 @@ interface GraphState {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
/** Флаг необходимости остановки распространения события */
|
|
1695
1695
|
mustBeStoppedPropagation: boolean;
|
|
1696
|
-
/** Последний узел, над которым был курсор */
|
|
1697
|
-
lastHoveredNode: NodeObject | null;
|
|
1698
|
-
/** Кэшированная ссылка на последний узел, над которым был курсор (для избежания лишних вычислений) */
|
|
1699
|
-
lastHoveredNodeRef: NodeObject | null;
|
|
1700
1696
|
/** Начальная позиция курсора при начале перетаскивания */
|
|
1701
1697
|
mouseStartPos: {
|
|
1702
1698
|
x: number;
|
|
@@ -1722,6 +1718,8 @@ interface Graph2DProps {
|
|
|
1722
1718
|
interface NodeButton {
|
|
1723
1719
|
img: string;
|
|
1724
1720
|
hoverImg: string;
|
|
1721
|
+
loading?: boolean;
|
|
1722
|
+
count?: (node: NodeObject) => number;
|
|
1725
1723
|
onClick: (node: NodeObject) => void;
|
|
1726
1724
|
}
|
|
1727
1725
|
type GraphData<NodeType = {}, LinkType = {}> = {
|