@arach/arc 0.6.0 → 0.8.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 +6 -6
- package/lib/{MarkupPanel-CroO7O49.js → MarkupPanel--EYuvzz7.js} +1 -1
- package/lib/arc.css +1 -1
- package/lib/arc.es.js +1 -1
- package/lib/arc.umd.js +119 -126
- package/lib/{index-CbEv7M-m.js → index-Cv2FalAd.js} +27011 -25786
- package/lib/{index-gm9Hs3ZB.js → index-jV-38nBI.js} +1 -1
- package/lib/index.d.ts +18 -1
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as Re, a as ee, f as $, m as v, s as de, c as Vn, p as te, r as wn, b as ue, d as pn, e as mr, g as M, h as dr, i as gr, j as hn, k as ne, n as Ce, l as Qe, q as yr, t as xr, v as It, u as kr } from "./index-B47Ukxqu.js";
|
|
2
2
|
import { Fragment as Tt, jsxs as br, jsx as wr } from "react/jsx-runtime";
|
|
3
3
|
import { useState as qn, useEffect as Sr, createElement as Er } from "react";
|
|
4
|
-
import { g as Pt } from "./index-
|
|
4
|
+
import { g as Pt } from "./index-Cv2FalAd.js";
|
|
5
5
|
function Cr(e, n) {
|
|
6
6
|
const t = {};
|
|
7
7
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
package/lib/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare interface ArcConnectorStyle {
|
|
|
22
22
|
dashed?: boolean;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export declare function ArcDiagram({ data, className, interactive, mode, theme, label, labelPosition, defaultZoom, zoomLevels, showArcToggle, showAutoLayout, showControls, showMinimap, showLegend, showFocusStory, frame, hoverEffects, onNodeHover, titleBlock, maxFitZoom, }: ArcDiagramProps): JSX.Element;
|
|
25
|
+
export declare function ArcDiagram({ data, className, interactive, mode, theme, label, labelPosition, defaultZoom, zoomLevels, showArcToggle, showAutoLayout, showControls, showMinimap, showLegend, showFocusStory, frame, hoverEffects, onNodeHover, titleBlock, maxFitZoom, defaultViewMode, defaultIsoStyle, }: ArcDiagramProps): JSX.Element;
|
|
26
26
|
|
|
27
27
|
declare interface ArcDiagram_2 {
|
|
28
28
|
layout: DiagramLayout_2;
|
|
@@ -100,6 +100,10 @@ declare interface ArcDiagramProps {
|
|
|
100
100
|
onNodeHover?: (nodeId: string | null) => void;
|
|
101
101
|
/** Override the engineering title-block fields (shown when the theme opts in). */
|
|
102
102
|
titleBlock?: TitleBlockInfo;
|
|
103
|
+
/** Render the diagram in isometric projection. Default: '2d' */
|
|
104
|
+
defaultViewMode?: ViewMode_2;
|
|
105
|
+
/** Isometric render style — 'solid' | 'blueprint' | 'cyanotype'. Default: 'solid' */
|
|
106
|
+
defaultIsoStyle?: IsoStyleId;
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
declare interface ArcDiagramProps_2 {
|
|
@@ -825,6 +829,14 @@ export declare interface NodePosition {
|
|
|
825
829
|
z?: number;
|
|
826
830
|
isoHeight?: number;
|
|
827
831
|
isoDepth?: number;
|
|
832
|
+
/** Painter's-algorithm bias when two boxes occupy the same volume. Higher draws later (in front). */
|
|
833
|
+
isoOrder?: number;
|
|
834
|
+
/** Top-face label axis. Omit / `auto` = along the longer edge. */
|
|
835
|
+
isoLabelDir?: 'auto' | 'x' | 'y';
|
|
836
|
+
/** Rotate the print 180° on the face. */
|
|
837
|
+
isoLabelFlip?: boolean;
|
|
838
|
+
/** Typeface for the printed label. Omit / `theme` follows the diagram brand. */
|
|
839
|
+
isoLabelFont?: 'theme' | 'ui' | 'mono';
|
|
828
840
|
}
|
|
829
841
|
|
|
830
842
|
declare interface NodePosition_2 {
|
|
@@ -1066,10 +1078,15 @@ export declare function validateDiagramShape(value: unknown): string | null;
|
|
|
1066
1078
|
|
|
1067
1079
|
export declare type ViewMode = '2d' | 'isometric';
|
|
1068
1080
|
|
|
1081
|
+
declare type ViewMode_2 = '2d' | 'isometric';
|
|
1082
|
+
|
|
1069
1083
|
declare interface ZoomConfig {
|
|
1070
1084
|
defaultZoom?: number | 'fit';
|
|
1071
1085
|
zoomLevels?: number[];
|
|
1072
1086
|
zoomStep?: number;
|
|
1087
|
+
/** Cap for `defaultZoom: 'fit'` / Fit. Embeds stay at 1 so a small diagram
|
|
1088
|
+
* isn't blown up; the editor passes 2 so the drawing can fill the view. */
|
|
1089
|
+
maxFitZoom?: number;
|
|
1073
1090
|
}
|
|
1074
1091
|
|
|
1075
1092
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arach/arc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"packageManager": "bun@1.3.11",
|
|
6
6
|
"workspaces": [
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"build:lib": "vite build --config vite.config.lib.js",
|
|
65
65
|
"build:mcp": "bun scripts/build-arc-mcp.mjs",
|
|
66
66
|
"mcp": "bun scripts/mcp/server.ts",
|
|
67
|
+
"mcp:http": "bun scripts/mcp/http-server.ts",
|
|
67
68
|
"build:iso": "vite build --config vite.config.iso.js && vite build --config vite.config.iso-slim.js",
|
|
68
69
|
"lint": "eslint .",
|
|
69
70
|
"typecheck": "tsc --noEmit",
|