@nesso-how/graph 0.1.0-alpha.33 → 0.1.0-alpha.34
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/GlyphSVG.d.ts +2 -2
- package/dist/GlyphSVG.js +2 -2
- package/dist/NessoEdge.js +1 -1
- package/dist/NessoGraph.d.ts +1 -1
- package/dist/context.d.ts +1 -1
- package/package.json +4 -4
package/dist/GlyphSVG.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { GlyphKind } from '@nesso-how/
|
|
1
|
+
import type { GlyphKind } from '@nesso-how/vocab-learning';
|
|
2
2
|
interface Props {
|
|
3
3
|
kind: GlyphKind;
|
|
4
4
|
color?: string;
|
|
5
5
|
size?: number;
|
|
6
6
|
}
|
|
7
|
-
/** Renders a relation glyph from `@nesso-how/
|
|
7
|
+
/** Renders a relation glyph from `@nesso-how/vocab-learning`' framework-agnostic SVG data. */
|
|
8
8
|
export declare function GlyphSVG({ kind, color, size }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
package/dist/GlyphSVG.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
|
-
import { GLYPH_PATHS } from '@nesso-how/
|
|
4
|
-
/** Renders a relation glyph from `@nesso-how/
|
|
3
|
+
import { GLYPH_PATHS } from '@nesso-how/vocab-learning';
|
|
4
|
+
/** Renders a relation glyph from `@nesso-how/vocab-learning`' framework-agnostic SVG data. */
|
|
5
5
|
export function GlyphSVG({ kind, color = 'currentColor', size = 14 }) {
|
|
6
6
|
return (_jsx("svg", { width: size, height: size, viewBox: "0 0 14 14", style: { color }, strokeWidth: 1.4, strokeLinecap: "round", strokeLinejoin: "round", fill: "none", stroke: "currentColor", dangerouslySetInnerHTML: { __html: GLYPH_PATHS[kind] } }));
|
|
7
7
|
}
|
package/dist/NessoEdge.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { useStore } from '@xyflow/react';
|
|
5
|
-
import { PALETTES, RELATION_TYPES } from '@nesso-how/
|
|
5
|
+
import { PALETTES, RELATION_TYPES } from '@nesso-how/vocab-learning';
|
|
6
6
|
import { GlyphSVG } from './GlyphSVG.js';
|
|
7
7
|
import { useGraphDisplay } from './context.js';
|
|
8
8
|
import { arcControlPoint, effectiveCurveFlip, flowNodeCenterX, flowNodeCenterY, nessoArcPath, rectExit, } from './geometry.js';
|
package/dist/NessoGraph.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Node, Edge, NodeTypes, EdgeTypes, ReactFlowProps, Viewport, OnNodesChange, OnEdgesChange, OnConnect, OnConnectStart, OnConnectEnd, OnMoveEnd } from '@xyflow/react';
|
|
2
2
|
import type { NessoGraphFile } from '@nesso-how/formats';
|
|
3
|
-
import type { EdgeTypeName } from '@nesso-how/
|
|
3
|
+
import type { EdgeTypeName } from '@nesso-how/vocab-learning';
|
|
4
4
|
import type { ConceptNodeData, NessoEdgeData, GraphDisplaySettings, CategoryPalette } from '@nesso-how/types';
|
|
5
5
|
import { type CategoryColorMode } from './context.js';
|
|
6
6
|
type PassthroughKeys = 'nodes' | 'defaultNodes' | 'edges' | 'defaultEdges' | 'nodeTypes' | 'edgeTypes' | 'nodesDraggable' | 'nodesConnectable' | 'elementsSelectable' | 'onNodesChange' | 'onEdgesChange' | 'onConnect' | 'onConnectStart' | 'onConnectEnd' | 'onSelectionChange' | 'onMoveEnd' | 'onNodeClick' | 'onEdgeClick' | 'fitView' | 'defaultViewport' | 'minZoom' | 'maxZoom' | 'panOnDrag' | 'zoomOnScroll';
|
package/dist/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EdgeTypeName } from '@nesso-how/
|
|
1
|
+
import type { EdgeTypeName } from '@nesso-how/vocab-learning';
|
|
2
2
|
import type { EdgeEncoding, CurveStyle, CategoryPalette } from '@nesso-how/types';
|
|
3
3
|
export type CategoryColorMode = 'palette' | 'css';
|
|
4
4
|
export interface NessoGraphDisplayContext {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nesso-how/graph",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.34",
|
|
4
4
|
"description": "Embeddable read-only Nesso knowledge graph React component",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@nesso-how/formats": "0.1.0-alpha.
|
|
26
|
-
"@nesso-how/
|
|
27
|
-
"@nesso-how/types": "0.1.0-alpha.
|
|
25
|
+
"@nesso-how/formats": "0.1.0-alpha.34",
|
|
26
|
+
"@nesso-how/vocab-learning": "0.1.0-alpha.34",
|
|
27
|
+
"@nesso-how/types": "0.1.0-alpha.34"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@xyflow/react": "^12.6.4",
|