@arach/arc-iso 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/dist/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-iso",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",