@mp70/react-networks 0.1.4-alpha → 0.1.6-alpha
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 +12 -6
- package/dist/index.css +187 -1
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +331 -5
- package/dist/index.d.ts +331 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ interface PortBlock {
|
|
|
39
39
|
* Network node types supported by the diagram
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
type NetworkNodeType = 'rack' | 'switch' | 'router' | 'server' | 'fiber' | 'patch-panel' | 'device' | 'vertical-pdu';
|
|
42
|
+
type NetworkNodeType = 'rack' | 'switch' | 'router' | 'server' | 'fiber' | 'patch-panel' | 'device' | 'vertical-pdu' | 'splice' | 'splice-tray' | 'tube' | 'cable' | 'coupler' | 'closure';
|
|
43
43
|
/**
|
|
44
44
|
* Device status states
|
|
45
45
|
* @public
|
|
@@ -118,6 +118,30 @@ interface NetworkNode {
|
|
|
118
118
|
uNumberingDirection?: UNumberingDirection;
|
|
119
119
|
/** Custom header text for rack nodes */
|
|
120
120
|
customHeaderText?: string;
|
|
121
|
+
/** Holder position within tray (1-12) for splice nodes */
|
|
122
|
+
holderPosition?: number;
|
|
123
|
+
/** Loss value in dB for splice nodes */
|
|
124
|
+
lossDb?: number;
|
|
125
|
+
/** Connector type for coupler nodes */
|
|
126
|
+
connector?: 'SC' | 'LC';
|
|
127
|
+
/** Number of fibers for coupler nodes (1, 2, or 4) */
|
|
128
|
+
couplerFiberCount?: 1 | 2 | 4;
|
|
129
|
+
/** Optional port labels for left side of coupler */
|
|
130
|
+
portLabelsLeft?: string[];
|
|
131
|
+
/** Optional port labels for right side of coupler */
|
|
132
|
+
portLabelsRight?: string[];
|
|
133
|
+
/** Slot position for couplers inside panels (1-based, vertical slots aligned to right edge) */
|
|
134
|
+
slotPosition?: number;
|
|
135
|
+
/** Width override for container nodes (patch-panel, closure) */
|
|
136
|
+
panelWidth?: number;
|
|
137
|
+
/** Height override for container nodes (patch-panel, closure) */
|
|
138
|
+
panelHeight?: number;
|
|
139
|
+
/** Number of rows for container nodes (patch-panel, closure) */
|
|
140
|
+
rows?: number;
|
|
141
|
+
/** Number of columns for container nodes (patch-panel, closure) */
|
|
142
|
+
cols?: number;
|
|
143
|
+
/** Header text for container nodes */
|
|
144
|
+
header?: string;
|
|
121
145
|
/** Additional custom properties */
|
|
122
146
|
[key: string]: any;
|
|
123
147
|
};
|
|
@@ -126,7 +150,7 @@ interface NetworkNode {
|
|
|
126
150
|
* Network edge types
|
|
127
151
|
* @public
|
|
128
152
|
*/
|
|
129
|
-
type NetworkEdgeType = 'fiber' | 'ethernet' | 'power';
|
|
153
|
+
type NetworkEdgeType = 'fiber' | 'ethernet' | 'power' | 'smoothstep' | 'step' | 'thick-cable';
|
|
130
154
|
/**
|
|
131
155
|
* Network edge data structure
|
|
132
156
|
* @public
|
|
@@ -242,6 +266,37 @@ interface FiberCable {
|
|
|
242
266
|
to: string;
|
|
243
267
|
};
|
|
244
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* Splice configuration structure
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
273
|
+
interface SpliceConfig {
|
|
274
|
+
/** Unique splice identifier */
|
|
275
|
+
id: string;
|
|
276
|
+
/** Splice display name */
|
|
277
|
+
name: string;
|
|
278
|
+
/** Holder position within tray (1-12) */
|
|
279
|
+
holder: number;
|
|
280
|
+
/** Loss value in dB */
|
|
281
|
+
lossDb?: number;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Splice tray configuration structure
|
|
285
|
+
* @public
|
|
286
|
+
*/
|
|
287
|
+
interface SpliceTrayConfig {
|
|
288
|
+
/** Unique tray identifier */
|
|
289
|
+
id: string;
|
|
290
|
+
/** Tray display name */
|
|
291
|
+
name: string;
|
|
292
|
+
/** Tray position coordinates */
|
|
293
|
+
position: {
|
|
294
|
+
x: number;
|
|
295
|
+
y: number;
|
|
296
|
+
};
|
|
297
|
+
/** Splices in this tray */
|
|
298
|
+
splices: SpliceConfig[];
|
|
299
|
+
}
|
|
245
300
|
/**
|
|
246
301
|
* Network diagram component props
|
|
247
302
|
* @public
|
|
@@ -297,6 +352,10 @@ interface NetworkDiagramProps {
|
|
|
297
352
|
downloadButtonText?: string;
|
|
298
353
|
/** Download button styling options */
|
|
299
354
|
downloadButtonStyle?: React.CSSProperties;
|
|
355
|
+
/** Allow reconnecting existing edges from either end */
|
|
356
|
+
allowReconnectExisting?: boolean;
|
|
357
|
+
/** Use smoothstep edges for tube connections (both tube-to-cable and cable-to-tube). Default is fiber. */
|
|
358
|
+
useSmoothstepEdgesForTubes?: boolean;
|
|
300
359
|
}
|
|
301
360
|
|
|
302
361
|
declare const NetworkDiagram: React$1.FC<NetworkDiagramProps>;
|
|
@@ -310,7 +369,9 @@ declare const RackNode: React$1.FC<RackNodeProps>;
|
|
|
310
369
|
|
|
311
370
|
declare const FiberNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
312
371
|
|
|
313
|
-
declare const FiberEdge: React$1.FC<EdgeProps<NetworkEdge['data']
|
|
372
|
+
declare const FiberEdge: React$1.FC<EdgeProps<NetworkEdge['data']> & {
|
|
373
|
+
className?: string;
|
|
374
|
+
}>;
|
|
314
375
|
|
|
315
376
|
declare const PowerEdge: React$1.FC<EdgeProps>;
|
|
316
377
|
|
|
@@ -318,6 +379,36 @@ declare const DeviceNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
|
318
379
|
|
|
319
380
|
declare const VerticalPDU: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
320
381
|
|
|
382
|
+
declare const SpliceNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
383
|
+
|
|
384
|
+
declare const SpliceTrayNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* TubeNode
|
|
388
|
+
* - Rectangular node representing a buffer tube (horizontal orientation, rotated 180 degrees)
|
|
389
|
+
* - Renders 12 or 24 fiber handles on the top side with TIA-598 colors
|
|
390
|
+
* - Tube border tinted by tube index color (1..12 cycling)
|
|
391
|
+
* - startOn parameter controls handle positioning:
|
|
392
|
+
* - 'left-center' (default): handles centered on top, tube handle on bottom
|
|
393
|
+
* - 'left': handles on left side, tube handle on left
|
|
394
|
+
* - 'right': handles on right side with reversed colors, tube handle on right
|
|
395
|
+
*/
|
|
396
|
+
declare const TubeNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* CableNode
|
|
400
|
+
* - Visually mirrors TubeNode but represents an entire cable
|
|
401
|
+
* - Each colored handle corresponds to a tube within the cable
|
|
402
|
+
* - Displays cable summary text (fiber count + cable identifier)
|
|
403
|
+
*/
|
|
404
|
+
declare const CableNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
405
|
+
|
|
406
|
+
declare const CouplerNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
407
|
+
|
|
408
|
+
declare const PatchPanelNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
409
|
+
|
|
410
|
+
declare const ClosureNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
411
|
+
|
|
321
412
|
interface InventoryRackDTO {
|
|
322
413
|
id: string | number;
|
|
323
414
|
name: string;
|
|
@@ -461,6 +552,137 @@ declare const updateDeviceUPosition$1: (device: NetworkNode, rack: NetworkNode,
|
|
|
461
552
|
*/
|
|
462
553
|
declare const validateAndSnapDevice: (device: NetworkNode, rack: NetworkNode) => NetworkNode;
|
|
463
554
|
|
|
555
|
+
/**
|
|
556
|
+
* Snap a splice to the nearest holder position within a tray
|
|
557
|
+
*/
|
|
558
|
+
declare const snapToSplicePosition: (splice: NetworkNode, tray: NetworkNode, newPosition: {
|
|
559
|
+
x: number;
|
|
560
|
+
y: number;
|
|
561
|
+
}, allNodes: NetworkNode[]) => {
|
|
562
|
+
x: number;
|
|
563
|
+
y: number;
|
|
564
|
+
holderPosition?: number;
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* Find the next available holder position
|
|
568
|
+
*/
|
|
569
|
+
declare const findNextAvailableHolderPosition: (tray: NetworkNode, splice: NetworkNode, allNodes: NetworkNode[], startFrom?: number) => number;
|
|
570
|
+
/**
|
|
571
|
+
* Calculate splice position based on holder number within a tray
|
|
572
|
+
*/
|
|
573
|
+
declare const calculateSplicePositionFromNumber: (tray: NetworkNode, holderPosition: number) => {
|
|
574
|
+
x: number;
|
|
575
|
+
y: number;
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Panel header height in pixels
|
|
580
|
+
*/
|
|
581
|
+
declare const PANEL_HEADER_HEIGHT = 32;
|
|
582
|
+
/**
|
|
583
|
+
* Coupler slot height in pixels
|
|
584
|
+
*/
|
|
585
|
+
declare const COUPLER_SLOT_HEIGHT_PX = 30;
|
|
586
|
+
/**
|
|
587
|
+
* Default number of couplers per panel
|
|
588
|
+
*/
|
|
589
|
+
declare const COUPLERS_PER_PANEL = 24;
|
|
590
|
+
/**
|
|
591
|
+
* Default coupler width in pixels
|
|
592
|
+
*/
|
|
593
|
+
declare const COUPLER_WIDTH_PX = 80;
|
|
594
|
+
/**
|
|
595
|
+
* Default panel width in pixels
|
|
596
|
+
*/
|
|
597
|
+
declare const PANEL_WIDTH_PX = 400;
|
|
598
|
+
/**
|
|
599
|
+
* Default panel height in pixels
|
|
600
|
+
*/
|
|
601
|
+
declare const PANEL_HEIGHT_PX = 300;
|
|
602
|
+
/**
|
|
603
|
+
* Panel border width in pixels
|
|
604
|
+
*/
|
|
605
|
+
declare const PANEL_BORDER_WIDTH = 2;
|
|
606
|
+
/**
|
|
607
|
+
* Panel padding in pixels
|
|
608
|
+
*/
|
|
609
|
+
declare const PANEL_PADDING = 8;
|
|
610
|
+
/**
|
|
611
|
+
* Spacing between tubes and trays in patch panels (horizontal spacing)
|
|
612
|
+
*/
|
|
613
|
+
declare const PANEL_TUBE_TRAY_SPACING = 120;
|
|
614
|
+
/**
|
|
615
|
+
* Calculate coupler dimensions based on node data
|
|
616
|
+
*/
|
|
617
|
+
declare function getCouplerDimensions(node: NetworkNode): {
|
|
618
|
+
width: number;
|
|
619
|
+
height: number;
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* Calculate tube dimensions based on node data
|
|
623
|
+
*/
|
|
624
|
+
declare function getTubeDimensions(node: NetworkNode): {
|
|
625
|
+
width: number;
|
|
626
|
+
height: number;
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
* Get tray dimensions
|
|
630
|
+
*/
|
|
631
|
+
declare function getTrayDimensions(_node: NetworkNode): {
|
|
632
|
+
width: number;
|
|
633
|
+
height: number;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* Calculate panel width based on content
|
|
637
|
+
*/
|
|
638
|
+
declare function getPanelWidth(panelNode: NetworkNode): number;
|
|
639
|
+
/**
|
|
640
|
+
* Calculate panel height based on content
|
|
641
|
+
*/
|
|
642
|
+
declare function getPanelHeight(panelNode: NetworkNode): number;
|
|
643
|
+
/**
|
|
644
|
+
* Get inner content width (panel width minus borders/padding)
|
|
645
|
+
*/
|
|
646
|
+
declare function getInnerContentWidth(panelNode: NetworkNode): number;
|
|
647
|
+
/**
|
|
648
|
+
* Calculate coupler right X position
|
|
649
|
+
*/
|
|
650
|
+
declare function calculateCouplerRightX(panelNode: NetworkNode, couplerWidth: number): number;
|
|
651
|
+
/**
|
|
652
|
+
* Calculate slot position from Y coordinate
|
|
653
|
+
*/
|
|
654
|
+
declare function calculateSlotPositionFromY(y: number, slotHeight?: number): number;
|
|
655
|
+
/**
|
|
656
|
+
* Calculate Y coordinate from slot position
|
|
657
|
+
*/
|
|
658
|
+
declare function calculateYFromSlotPosition(slot: number, slotHeight?: number): number;
|
|
659
|
+
/**
|
|
660
|
+
* Snap coupler to nearest slot position
|
|
661
|
+
*/
|
|
662
|
+
declare function snapToCouplerPosition(coupler: NetworkNode, panel: NetworkNode, position: {
|
|
663
|
+
x: number;
|
|
664
|
+
y: number;
|
|
665
|
+
}): {
|
|
666
|
+
x: number;
|
|
667
|
+
y: number;
|
|
668
|
+
slotPosition?: number;
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* Calculate panel dimensions based on child nodes
|
|
672
|
+
*/
|
|
673
|
+
declare function calculatePanelDimensions(panelNode: NetworkNode, childNodes: NetworkNode[]): {
|
|
674
|
+
width: number;
|
|
675
|
+
height: number;
|
|
676
|
+
};
|
|
677
|
+
/**
|
|
678
|
+
* Calculate spacing between couplers
|
|
679
|
+
*/
|
|
680
|
+
declare function calculateCouplerSpacing(numCouplers: number, couplerHeight: number, availableHeight: number): number;
|
|
681
|
+
/**
|
|
682
|
+
* Calculate coupler slot spacing
|
|
683
|
+
*/
|
|
684
|
+
declare function calculateCouplerSlotSpacing(numCouplers: number, couplerHeight: number, availableHeight: number): number;
|
|
685
|
+
|
|
464
686
|
/**
|
|
465
687
|
* Configuration options for building nodes from rack schema
|
|
466
688
|
*/
|
|
@@ -526,6 +748,66 @@ declare function addDeviceToRack(racks: RackConfig[], rackId: string, device: Ra
|
|
|
526
748
|
*/
|
|
527
749
|
declare function removeDeviceFromRack(racks: RackConfig[], rackId: string, deviceId: string): RackConfig[];
|
|
528
750
|
|
|
751
|
+
/**
|
|
752
|
+
* Configuration options for building nodes from splice schema
|
|
753
|
+
*/
|
|
754
|
+
interface SpliceSchemaOptions {
|
|
755
|
+
/** How to handle splice placement conflicts */
|
|
756
|
+
conflictPolicy?: 'strict' | 'nearest';
|
|
757
|
+
/** Whether to validate all placements before creating nodes */
|
|
758
|
+
validatePlacements?: boolean;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Error thrown when splice placement conflicts occur in strict mode
|
|
762
|
+
*/
|
|
763
|
+
declare class SplicePlacementError extends Error {
|
|
764
|
+
trayId: string;
|
|
765
|
+
spliceId: string;
|
|
766
|
+
holder: number;
|
|
767
|
+
conflictWith?: string | undefined;
|
|
768
|
+
constructor(trayId: string, spliceId: string, holder: number, conflictWith?: string | undefined);
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Validation result for splice placement
|
|
772
|
+
*/
|
|
773
|
+
interface SplicePlacementValidation {
|
|
774
|
+
isValid: boolean;
|
|
775
|
+
conflicts: Array<{
|
|
776
|
+
spliceId: string;
|
|
777
|
+
holder: number;
|
|
778
|
+
conflictWith: string;
|
|
779
|
+
}>;
|
|
780
|
+
outOfBounds: Array<{
|
|
781
|
+
spliceId: string;
|
|
782
|
+
holder: number;
|
|
783
|
+
max: number;
|
|
784
|
+
}>;
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Validate splice placements within a tray schema
|
|
788
|
+
*/
|
|
789
|
+
declare function validateSplicePlacements(tray: SpliceTrayConfig, _options?: SpliceSchemaOptions): SplicePlacementValidation;
|
|
790
|
+
/**
|
|
791
|
+
* Build NetworkNode array from SpliceTrayConfig array with comprehensive validation
|
|
792
|
+
*/
|
|
793
|
+
declare function buildNodesFromSpliceConfig(trays: SpliceTrayConfig[], options?: SpliceSchemaOptions): NetworkNode[];
|
|
794
|
+
/**
|
|
795
|
+
* Create a SpliceTrayConfig from existing NetworkNode data (reverse operation)
|
|
796
|
+
*/
|
|
797
|
+
declare function createSpliceConfigFromNodes(nodes: NetworkNode[]): SpliceTrayConfig[];
|
|
798
|
+
/**
|
|
799
|
+
* Update splice holder position in a splice schema
|
|
800
|
+
*/
|
|
801
|
+
declare function updateSpliceHolderPosition(trays: SpliceTrayConfig[], trayId: string, spliceId: string, newHolder: number): SpliceTrayConfig[];
|
|
802
|
+
/**
|
|
803
|
+
* Add a splice to a tray schema
|
|
804
|
+
*/
|
|
805
|
+
declare function addSpliceToTray(trays: SpliceTrayConfig[], trayId: string, splice: SpliceConfig, options?: SpliceSchemaOptions): SpliceTrayConfig[];
|
|
806
|
+
/**
|
|
807
|
+
* Remove a splice from a tray schema
|
|
808
|
+
*/
|
|
809
|
+
declare function removeSpliceFromTray(trays: SpliceTrayConfig[], trayId: string, spliceId: string): SpliceTrayConfig[];
|
|
810
|
+
|
|
529
811
|
/**
|
|
530
812
|
* Power connector utilities for consistent styling across devices and PDUs
|
|
531
813
|
*/
|
|
@@ -577,6 +859,48 @@ declare function getDeviceConnectorType(deviceName: string): string;
|
|
|
577
859
|
*/
|
|
578
860
|
declare function getStatusColor(status: DeviceStatus | string): string;
|
|
579
861
|
|
|
862
|
+
/**
|
|
863
|
+
* TIA-598-C standard fiber optic color codes (12 base colors)
|
|
864
|
+
* Colors 1-12: Blue, Orange, Green, Brown, Slate, White, Red, Black, Yellow, Violet, Rose, Aqua
|
|
865
|
+
* @public
|
|
866
|
+
*/
|
|
867
|
+
declare const FIBER_COLORS_12: readonly ["#1f77b4", "#ff7f0e", "#2ca02c", "#8c564b", "#708090", "#ffffff", "#d62728", "#000000", "#ffdf00", "#8a2be2", "#ff69b4", "#00ffff"];
|
|
868
|
+
/**
|
|
869
|
+
* Fiber color ID type (1-24)
|
|
870
|
+
* @public
|
|
871
|
+
*/
|
|
872
|
+
type FiberColorId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
873
|
+
/**
|
|
874
|
+
* Get the base color for a fiber color ID
|
|
875
|
+
* Colors 13-24 use the same base colors as 1-12
|
|
876
|
+
* @param id - Fiber color ID (1-24)
|
|
877
|
+
* @returns Hex color code
|
|
878
|
+
* @public
|
|
879
|
+
*/
|
|
880
|
+
declare function baseColorFor(id: FiberColorId | number): string;
|
|
881
|
+
/**
|
|
882
|
+
* Check if a fiber color ID uses a striped pattern (13-24)
|
|
883
|
+
* @param id - Fiber color ID (1-24)
|
|
884
|
+
* @returns True if the color should be striped
|
|
885
|
+
* @public
|
|
886
|
+
*/
|
|
887
|
+
declare function isStriped(id: FiberColorId | number): boolean;
|
|
888
|
+
/**
|
|
889
|
+
* Get CSS properties for a fiber color (solid or striped)
|
|
890
|
+
* Colors 13-24 use a black stripe pattern over the base color
|
|
891
|
+
* @param id - Fiber color ID (1-24)
|
|
892
|
+
* @returns CSS properties for the color
|
|
893
|
+
* @public
|
|
894
|
+
*/
|
|
895
|
+
declare function fiberSolidOrStriped(id: FiberColorId | number): React$1.CSSProperties;
|
|
896
|
+
/**
|
|
897
|
+
* Get the hex color code for a fiber color ID
|
|
898
|
+
* @param id - Fiber color ID (1-24)
|
|
899
|
+
* @returns Hex color code
|
|
900
|
+
* @public
|
|
901
|
+
*/
|
|
902
|
+
declare function getFiberColor(id: FiberColorId | number): string;
|
|
903
|
+
|
|
580
904
|
/**
|
|
581
905
|
* Calculate the bounding box of a rack node
|
|
582
906
|
* @param rack - The rack node
|
|
@@ -622,11 +946,13 @@ interface ReplaceEdgeOptions {
|
|
|
622
946
|
/** Connection parameters for the new edge */
|
|
623
947
|
connection: Connection;
|
|
624
948
|
/** Type of edge to create */
|
|
625
|
-
edgeType: 'power' | 'fiber';
|
|
949
|
+
edgeType: 'power' | 'fiber' | 'step' | 'smoothstep' | 'thick-cable';
|
|
626
950
|
/** Function to calculate zIndex for the edge */
|
|
627
951
|
selectEdgeZIndex: (edge: NetworkEdge) => number;
|
|
628
952
|
/** Whether to find edge by source or target */
|
|
629
953
|
findBy: 'source' | 'target';
|
|
954
|
+
/** Optional edge data to set on the new edge */
|
|
955
|
+
data?: NetworkEdge['data'];
|
|
630
956
|
}
|
|
631
957
|
/**
|
|
632
958
|
* Replace an existing edge with a new connection
|
|
@@ -670,4 +996,4 @@ declare function useNetworkDiagram(store: NetworkDiagramStore): NetworkDiagramSt
|
|
|
670
996
|
declare function useNodes(store: NetworkDiagramStore): NetworkNode[];
|
|
671
997
|
declare function useEdges(store: NetworkDiagramStore): NetworkEdge[];
|
|
672
998
|
|
|
673
|
-
export { DeviceNode, DevicePlacementError, type DevicePlacementValidation, type FiberCable, FiberEdge, FiberNode, NetworkDiagram, type NetworkDiagramProps, type NetworkEdge, type NetworkNode, POWER_CONNECTORS, type Port, type PortBlock, PowerEdge, type RackConfig, type RackDevice, RackNode, type RackSchemaOptions, type ReplaceEdgeOptions, VerticalPDU, Width, addDeviceToRack, buildNodesFromRackConfig, calculateDevicePositionFromU, createNetworkDiagramStore, createRackConfigFromNodes, findNearestRack, findNextAvailableUPosition, generateLayout, getConnectorConfig, getDeviceConnectorType, getPDUPortType, getPowerPortStyle, getRackBounds, getStatusColor, inventoryCableToNetworkEdge, inventoryDeviceToNetworkNode, inventoryRackToNetworkNode, inventoryToNetworkDiagram, isHighPowerConnector, isPointInRack, isUPositionAvailable, removeDeviceFromRack, replaceEdge, snapToUPosition, updateDeviceUPosition$1 as updateDeviceUPosition, updateDeviceUPosition as updateDeviceUPositionInSchema, useEdges as useDiagramEdges, useNodes as useDiagramNodes, useNetworkDiagram, validateAndSnapDevice, validateRackDevicePlacements };
|
|
999
|
+
export { COUPLERS_PER_PANEL, COUPLER_SLOT_HEIGHT_PX, COUPLER_WIDTH_PX, CableNode, ClosureNode, CouplerNode, DeviceNode, DevicePlacementError, type DevicePlacementValidation, FIBER_COLORS_12, type FiberCable, type FiberColorId, FiberEdge, FiberNode, NetworkDiagram, type NetworkDiagramProps, type NetworkEdge, type NetworkNode, PANEL_BORDER_WIDTH, PANEL_HEADER_HEIGHT, PANEL_HEIGHT_PX, PANEL_PADDING, PANEL_TUBE_TRAY_SPACING, PANEL_WIDTH_PX, POWER_CONNECTORS, PatchPanelNode, type Port, type PortBlock, PowerEdge, type RackConfig, type RackDevice, RackNode, type RackSchemaOptions, type ReplaceEdgeOptions, type SpliceConfig, SpliceNode, SplicePlacementError, type SplicePlacementValidation, type SpliceSchemaOptions, type SpliceTrayConfig, SpliceTrayNode, TubeNode, VerticalPDU, Width, addDeviceToRack, addSpliceToTray, baseColorFor, buildNodesFromRackConfig, buildNodesFromSpliceConfig, calculateCouplerRightX, calculateCouplerSlotSpacing, calculateCouplerSpacing, calculateDevicePositionFromU, calculatePanelDimensions, calculateSlotPositionFromY, calculateSplicePositionFromNumber, calculateYFromSlotPosition, createNetworkDiagramStore, createRackConfigFromNodes, createSpliceConfigFromNodes, fiberSolidOrStriped, findNearestRack, findNextAvailableHolderPosition, findNextAvailableUPosition, generateLayout, getConnectorConfig, getCouplerDimensions, getDeviceConnectorType, getFiberColor, getInnerContentWidth, getPDUPortType, getPanelHeight, getPanelWidth, getPowerPortStyle, getRackBounds, getStatusColor, getTrayDimensions, getTubeDimensions, inventoryCableToNetworkEdge, inventoryDeviceToNetworkNode, inventoryRackToNetworkNode, inventoryToNetworkDiagram, isHighPowerConnector, isPointInRack, isStriped, isUPositionAvailable, removeDeviceFromRack, removeSpliceFromTray, replaceEdge, snapToCouplerPosition, snapToSplicePosition, snapToUPosition, updateDeviceUPosition$1 as updateDeviceUPosition, updateDeviceUPosition as updateDeviceUPositionInSchema, updateSpliceHolderPosition, useEdges as useDiagramEdges, useNodes as useDiagramNodes, useNetworkDiagram, validateAndSnapDevice, validateRackDevicePlacements, validateSplicePlacements };
|