schematex 0.9.10 → 0.9.12
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/ai/ai-sdk.cjs +10 -9
- package/dist/ai/ai-sdk.cjs.map +1 -1
- package/dist/ai/ai-sdk.d.cts +5 -5
- package/dist/ai/ai-sdk.d.ts +5 -5
- package/dist/ai/ai-sdk.js +5 -4
- package/dist/ai/ai-sdk.js.map +1 -1
- package/dist/ai/index.cjs +19 -18
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.d.cts +4 -4
- package/dist/ai/index.d.ts +4 -4
- package/dist/ai/index.js +6 -5
- package/dist/ai/index.js.map +1 -1
- package/dist/{api-D_d-JklT.d.ts → api-C9ufsgIb.d.ts} +2 -2
- package/dist/{api-DnTyW-6F.d.cts → api-DAUFeETp.d.cts} +2 -2
- package/dist/browser.cjs +11 -10
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +5 -4
- package/dist/browser.js.map +1 -1
- package/dist/{chunk-IHX6J4HF.js → chunk-32LOZTNP.js} +178 -4
- package/dist/chunk-32LOZTNP.js.map +1 -0
- package/dist/{chunk-CXA45HIT.js → chunk-6KW7XSUR.js} +203 -12
- package/dist/chunk-6KW7XSUR.js.map +1 -0
- package/dist/{chunk-TXWVJAMR.cjs → chunk-HEGDKO2E.cjs} +178 -4
- package/dist/chunk-HEGDKO2E.cjs.map +1 -0
- package/dist/chunk-IBZKIMT5.cjs +826 -0
- package/dist/chunk-IBZKIMT5.cjs.map +1 -0
- package/dist/{chunk-T5QOVX2I.js → chunk-JLLDJCLW.js} +13194 -13037
- package/dist/chunk-JLLDJCLW.js.map +1 -0
- package/dist/{chunk-OY2CXLVY.cjs → chunk-MGMR6V6N.cjs} +13196 -13037
- package/dist/chunk-MGMR6V6N.cjs.map +1 -0
- package/dist/{chunk-MXV3XJFH.cjs → chunk-OGF7QM74.cjs} +80 -17
- package/dist/chunk-OGF7QM74.cjs.map +1 -0
- package/dist/chunk-PGMKMIGM.js +818 -0
- package/dist/chunk-PGMKMIGM.js.map +1 -0
- package/dist/{chunk-MVTYPWHO.js → chunk-Q5MQLUOH.js} +80 -17
- package/dist/chunk-Q5MQLUOH.js.map +1 -0
- package/dist/{chunk-CA54ESRT.cjs → chunk-YLG7S4SM.cjs} +205 -14
- package/dist/chunk-YLG7S4SM.cjs.map +1 -0
- package/dist/{diagnostics-D2qkBfFx.d.cts → diagnostics-DSxLohjY.d.cts} +9 -3
- package/dist/{diagnostics-D2qkBfFx.d.ts → diagnostics-DSxLohjY.d.ts} +9 -3
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.cjs +8 -8
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.js +1 -1
- package/dist/diagrams/ecomap/index.d.cts +1 -1
- package/dist/diagrams/ecomap/index.d.ts +1 -1
- package/dist/diagrams/entity/index.d.cts +1 -1
- package/dist/diagrams/entity/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.d.cts +1 -1
- package/dist/diagrams/fishbone/index.d.ts +1 -1
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/genogram/index.d.cts +1 -1
- package/dist/diagrams/genogram/index.d.ts +1 -1
- package/dist/diagrams/ladder/index.d.cts +1 -1
- package/dist/diagrams/ladder/index.d.ts +1 -1
- package/dist/diagrams/logic/index.d.cts +1 -1
- package/dist/diagrams/logic/index.d.ts +1 -1
- package/dist/diagrams/orgchart/index.d.cts +1 -1
- package/dist/diagrams/orgchart/index.d.ts +1 -1
- package/dist/diagrams/pedigree/index.d.cts +1 -1
- package/dist/diagrams/pedigree/index.d.ts +1 -1
- package/dist/diagrams/phylo/index.d.cts +1 -1
- package/dist/diagrams/phylo/index.d.ts +1 -1
- package/dist/diagrams/siteplan/index.cjs +38 -0
- package/dist/diagrams/siteplan/index.cjs.map +1 -0
- package/dist/diagrams/siteplan/index.d.cts +122 -0
- package/dist/diagrams/siteplan/index.d.ts +122 -0
- package/dist/diagrams/siteplan/index.js +5 -0
- package/dist/diagrams/siteplan/index.js.map +1 -0
- package/dist/diagrams/sld/index.cjs +7 -7
- package/dist/diagrams/sld/index.d.cts +4 -1
- package/dist/diagrams/sld/index.d.ts +4 -1
- package/dist/diagrams/sld/index.js +1 -1
- package/dist/diagrams/sociogram/index.d.cts +1 -1
- package/dist/diagrams/sociogram/index.d.ts +1 -1
- package/dist/diagrams/timing/index.d.cts +1 -1
- package/dist/diagrams/timing/index.d.ts +1 -1
- package/dist/diagrams/venn/index.d.cts +1 -1
- package/dist/diagrams/venn/index.d.ts +1 -1
- package/dist/{index-JZlLiE6K.d.cts → index-CDDfbChc.d.cts} +1 -1
- package/dist/{index-D9u0YRxL.d.ts → index-CZa2pU0T.d.ts} +1 -1
- package/dist/index.cjs +56 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +5 -4
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +4 -3
- package/dist/react.js.map +1 -1
- package/dist/{tools-DAKYNcPv.d.cts → tools-Bvw6dwIR.d.cts} +2 -2
- package/dist/{tools-DM0aLCbc.d.ts → tools-DtuvE-K4.d.ts} +2 -2
- package/package.json +6 -1
- package/dist/chunk-CA54ESRT.cjs.map +0 -1
- package/dist/chunk-CXA45HIT.js.map +0 -1
- package/dist/chunk-IHX6J4HF.js.map +0 -1
- package/dist/chunk-MVTYPWHO.js.map +0 -1
- package/dist/chunk-MXV3XJFH.cjs.map +0 -1
- package/dist/chunk-OY2CXLVY.cjs.map +0 -1
- package/dist/chunk-T5QOVX2I.js.map +0 -1
- package/dist/chunk-TXWVJAMR.cjs.map +0 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* - Renderer: LayoutResult → SVG string
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
type DiagramType = "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "eventtree" | "fmea" | "rbd" | "comparison" | "causalloop" | "markov" | "gitgraph" | "epc" | "idef0" | "threatmodel" | "welding" | "floorplan" | "playbook";
|
|
12
|
+
type DiagramType = "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "eventtree" | "fmea" | "rbd" | "comparison" | "causalloop" | "markov" | "gitgraph" | "epc" | "idef0" | "threatmodel" | "welding" | "floorplan" | "siteplan" | "playbook";
|
|
13
13
|
type GenogramMode = "medical" | "heritage";
|
|
14
14
|
/**
|
|
15
15
|
* Standard legend positions:
|
|
@@ -437,7 +437,7 @@ interface LogicGateAST {
|
|
|
437
437
|
/** Non-fatal parser warnings (e.g. signals auto-declared as inputs). */
|
|
438
438
|
warnings?: string[];
|
|
439
439
|
}
|
|
440
|
-
type CircuitComponentType = "resistor" | "potentiometer" | "rheostat" | "thermistor_ntc" | "thermistor_ptc" | "ldr" | "varistor" | "fuse" | "fuse_slow" | "capacitor" | "electrolytic_cap" | "variable_cap" | "inductor" | "inductor_iron" | "inductor_ferrite" | "variable_inductor" | "ferrite_bead" | "crystal" | "transformer" | "diode" | "zener" | "schottky" | "led" | "photodiode" | "varactor" | "tvs_diode" | "bridge_rectifier" | "npn" | "pnp" | "darlington_npn" | "darlington_pnp" | "nmos" | "pmos" | "nmos_depletion" | "jfet_n" | "jfet_p" | "igbt" | "scr" | "triac" | "diac" | "phototransistor" | "optocoupler" | "opamp" | "comparator" | "schmitt_buffer" | "tri_state_buffer" | "instrumentation_amp" | "generic_ic" | "voltage_regulator" | "dc_dc_converter" | "555_timer" | "terminal_block" | "voltage_source" | "current_source" | "ac_source" | "battery" | "vcc" | "ground" | "gnd_signal" | "gnd_chassis" | "gnd_digital" | "switch_spst" | "switch_spdt" | "switch_dpdt" | "push_no" | "push_nc" | "relay_coil" | "relay_no" | "relay_nc" | "contactor" | "solenoid_valve" | "thermal_overload" | "disconnect_switch" | "motor" | "speaker" | "microphone" | "buzzer" | "ammeter" | "voltmeter" | "wattmeter" | "oscilloscope" | "wire" | "dot" | "label" | "port" | "test_point" | "no_connect" | "antenna";
|
|
440
|
+
type CircuitComponentType = "resistor" | "potentiometer" | "rheostat" | "thermistor_ntc" | "thermistor_ptc" | "ldr" | "varistor" | "fuse" | "fuse_slow" | "capacitor" | "electrolytic_cap" | "variable_cap" | "inductor" | "inductor_iron" | "inductor_ferrite" | "variable_inductor" | "ferrite_bead" | "crystal" | "transformer" | "diode" | "zener" | "schottky" | "led" | "photodiode" | "varactor" | "tvs_diode" | "bridge_rectifier" | "npn" | "pnp" | "darlington_npn" | "darlington_pnp" | "nmos" | "pmos" | "nmos_depletion" | "jfet_n" | "jfet_p" | "igbt" | "scr" | "triac" | "diac" | "phototransistor" | "optocoupler" | "opamp" | "comparator" | "schmitt_buffer" | "tri_state_buffer" | "instrumentation_amp" | "generic_ic" | "voltage_regulator" | "dc_dc_converter" | "555_timer" | "terminal_block" | "enclosure" | "din_rail" | "wire_duct" | "plc" | "pilot_light" | "selector_switch" | "emergency_stop" | "voltage_source" | "current_source" | "ac_source" | "battery" | "vcc" | "ground" | "gnd_signal" | "gnd_chassis" | "gnd_digital" | "switch_spst" | "switch_spdt" | "switch_dpdt" | "push_no" | "push_nc" | "relay_coil" | "relay_no" | "relay_nc" | "contactor" | "solenoid_valve" | "thermal_overload" | "disconnect_switch" | "motor" | "speaker" | "microphone" | "buzzer" | "ammeter" | "voltmeter" | "wattmeter" | "oscilloscope" | "wire" | "dot" | "label" | "port" | "test_point" | "no_connect" | "antenna";
|
|
441
441
|
type CircuitDirection = "right" | "left" | "up" | "down";
|
|
442
442
|
interface CircuitComponent {
|
|
443
443
|
id: string;
|
|
@@ -563,7 +563,7 @@ interface LadderAST {
|
|
|
563
563
|
rungs: LadderRung[];
|
|
564
564
|
metadata?: Record<string, string>;
|
|
565
565
|
}
|
|
566
|
-
type SLDNodeType = "utility" | "generator" | "solar" | "wind" | "ups" | "transformer" | "transformer_dy" | "transformer_yd" | "transformer_yy" | "transformer_dd" | "autotransformer" | "transformer_3winding" | "bus" | "bus_tie" | "hub" | "breaker" | "breaker_vacuum" | "switch" | "switch_load" | "ground_switch" | "ats" | "recloser" | "sectionalizer" | "fuse" | "fuse_cl" | "ct" | "pt" | "relay" | "surge_arrester" | "ground_fault" | "motor" | "load" | "capacitor_bank" | "harmonic_filter" | "vfd" | "watthour_meter" | "demand_meter" | "unknown";
|
|
566
|
+
type SLDNodeType = "utility" | "generator" | "solar" | "wind" | "ups" | "transformer" | "transformer_dy" | "transformer_yd" | "transformer_yy" | "transformer_dd" | "autotransformer" | "transformer_3winding" | "bus" | "bus_tie" | "hub" | "breaker" | "breaker_vacuum" | "switch" | "switch_load" | "ground_switch" | "ats" | "recloser" | "sectionalizer" | "fuse" | "fuse_cl" | "ct" | "pt" | "relay" | "surge_arrester" | "ground_fault" | "rcd" | "motor" | "load" | "capacitor_bank" | "harmonic_filter" | "vfd" | "watthour_meter" | "demand_meter" | "consumer_unit" | "unknown";
|
|
567
567
|
interface SLDNode {
|
|
568
568
|
id: string;
|
|
569
569
|
nodeType: SLDNodeType;
|
|
@@ -584,6 +584,12 @@ interface SLDConnection {
|
|
|
584
584
|
to: string;
|
|
585
585
|
/** Cable specification e.g. "3#2/0 AWG" */
|
|
586
586
|
cable?: string;
|
|
587
|
+
/** Cable cross-sectional area, common in IEC/REBT residential docs (e.g. "2.5 mm2"). */
|
|
588
|
+
cableCsa?: string;
|
|
589
|
+
/** Cable length in meters, when a prompt asks for cable schedule hints. */
|
|
590
|
+
cableLengthM?: string;
|
|
591
|
+
/** Cable insulation / construction (e.g. "H07V-K", "XLPE/SWA/PVC"). */
|
|
592
|
+
cableInsulation?: string;
|
|
587
593
|
label?: string;
|
|
588
594
|
}
|
|
589
595
|
/**
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* - Renderer: LayoutResult → SVG string
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
type DiagramType = "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "eventtree" | "fmea" | "rbd" | "comparison" | "causalloop" | "markov" | "gitgraph" | "epc" | "idef0" | "threatmodel" | "welding" | "floorplan" | "playbook";
|
|
12
|
+
type DiagramType = "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "eventtree" | "fmea" | "rbd" | "comparison" | "causalloop" | "markov" | "gitgraph" | "epc" | "idef0" | "threatmodel" | "welding" | "floorplan" | "siteplan" | "playbook";
|
|
13
13
|
type GenogramMode = "medical" | "heritage";
|
|
14
14
|
/**
|
|
15
15
|
* Standard legend positions:
|
|
@@ -437,7 +437,7 @@ interface LogicGateAST {
|
|
|
437
437
|
/** Non-fatal parser warnings (e.g. signals auto-declared as inputs). */
|
|
438
438
|
warnings?: string[];
|
|
439
439
|
}
|
|
440
|
-
type CircuitComponentType = "resistor" | "potentiometer" | "rheostat" | "thermistor_ntc" | "thermistor_ptc" | "ldr" | "varistor" | "fuse" | "fuse_slow" | "capacitor" | "electrolytic_cap" | "variable_cap" | "inductor" | "inductor_iron" | "inductor_ferrite" | "variable_inductor" | "ferrite_bead" | "crystal" | "transformer" | "diode" | "zener" | "schottky" | "led" | "photodiode" | "varactor" | "tvs_diode" | "bridge_rectifier" | "npn" | "pnp" | "darlington_npn" | "darlington_pnp" | "nmos" | "pmos" | "nmos_depletion" | "jfet_n" | "jfet_p" | "igbt" | "scr" | "triac" | "diac" | "phototransistor" | "optocoupler" | "opamp" | "comparator" | "schmitt_buffer" | "tri_state_buffer" | "instrumentation_amp" | "generic_ic" | "voltage_regulator" | "dc_dc_converter" | "555_timer" | "terminal_block" | "voltage_source" | "current_source" | "ac_source" | "battery" | "vcc" | "ground" | "gnd_signal" | "gnd_chassis" | "gnd_digital" | "switch_spst" | "switch_spdt" | "switch_dpdt" | "push_no" | "push_nc" | "relay_coil" | "relay_no" | "relay_nc" | "contactor" | "solenoid_valve" | "thermal_overload" | "disconnect_switch" | "motor" | "speaker" | "microphone" | "buzzer" | "ammeter" | "voltmeter" | "wattmeter" | "oscilloscope" | "wire" | "dot" | "label" | "port" | "test_point" | "no_connect" | "antenna";
|
|
440
|
+
type CircuitComponentType = "resistor" | "potentiometer" | "rheostat" | "thermistor_ntc" | "thermistor_ptc" | "ldr" | "varistor" | "fuse" | "fuse_slow" | "capacitor" | "electrolytic_cap" | "variable_cap" | "inductor" | "inductor_iron" | "inductor_ferrite" | "variable_inductor" | "ferrite_bead" | "crystal" | "transformer" | "diode" | "zener" | "schottky" | "led" | "photodiode" | "varactor" | "tvs_diode" | "bridge_rectifier" | "npn" | "pnp" | "darlington_npn" | "darlington_pnp" | "nmos" | "pmos" | "nmos_depletion" | "jfet_n" | "jfet_p" | "igbt" | "scr" | "triac" | "diac" | "phototransistor" | "optocoupler" | "opamp" | "comparator" | "schmitt_buffer" | "tri_state_buffer" | "instrumentation_amp" | "generic_ic" | "voltage_regulator" | "dc_dc_converter" | "555_timer" | "terminal_block" | "enclosure" | "din_rail" | "wire_duct" | "plc" | "pilot_light" | "selector_switch" | "emergency_stop" | "voltage_source" | "current_source" | "ac_source" | "battery" | "vcc" | "ground" | "gnd_signal" | "gnd_chassis" | "gnd_digital" | "switch_spst" | "switch_spdt" | "switch_dpdt" | "push_no" | "push_nc" | "relay_coil" | "relay_no" | "relay_nc" | "contactor" | "solenoid_valve" | "thermal_overload" | "disconnect_switch" | "motor" | "speaker" | "microphone" | "buzzer" | "ammeter" | "voltmeter" | "wattmeter" | "oscilloscope" | "wire" | "dot" | "label" | "port" | "test_point" | "no_connect" | "antenna";
|
|
441
441
|
type CircuitDirection = "right" | "left" | "up" | "down";
|
|
442
442
|
interface CircuitComponent {
|
|
443
443
|
id: string;
|
|
@@ -563,7 +563,7 @@ interface LadderAST {
|
|
|
563
563
|
rungs: LadderRung[];
|
|
564
564
|
metadata?: Record<string, string>;
|
|
565
565
|
}
|
|
566
|
-
type SLDNodeType = "utility" | "generator" | "solar" | "wind" | "ups" | "transformer" | "transformer_dy" | "transformer_yd" | "transformer_yy" | "transformer_dd" | "autotransformer" | "transformer_3winding" | "bus" | "bus_tie" | "hub" | "breaker" | "breaker_vacuum" | "switch" | "switch_load" | "ground_switch" | "ats" | "recloser" | "sectionalizer" | "fuse" | "fuse_cl" | "ct" | "pt" | "relay" | "surge_arrester" | "ground_fault" | "motor" | "load" | "capacitor_bank" | "harmonic_filter" | "vfd" | "watthour_meter" | "demand_meter" | "unknown";
|
|
566
|
+
type SLDNodeType = "utility" | "generator" | "solar" | "wind" | "ups" | "transformer" | "transformer_dy" | "transformer_yd" | "transformer_yy" | "transformer_dd" | "autotransformer" | "transformer_3winding" | "bus" | "bus_tie" | "hub" | "breaker" | "breaker_vacuum" | "switch" | "switch_load" | "ground_switch" | "ats" | "recloser" | "sectionalizer" | "fuse" | "fuse_cl" | "ct" | "pt" | "relay" | "surge_arrester" | "ground_fault" | "rcd" | "motor" | "load" | "capacitor_bank" | "harmonic_filter" | "vfd" | "watthour_meter" | "demand_meter" | "consumer_unit" | "unknown";
|
|
567
567
|
interface SLDNode {
|
|
568
568
|
id: string;
|
|
569
569
|
nodeType: SLDNodeType;
|
|
@@ -584,6 +584,12 @@ interface SLDConnection {
|
|
|
584
584
|
to: string;
|
|
585
585
|
/** Cable specification e.g. "3#2/0 AWG" */
|
|
586
586
|
cable?: string;
|
|
587
|
+
/** Cable cross-sectional area, common in IEC/REBT residential docs (e.g. "2.5 mm2"). */
|
|
588
|
+
cableCsa?: string;
|
|
589
|
+
/** Cable length in meters, when a prompt asks for cable schedule hints. */
|
|
590
|
+
cableLengthM?: string;
|
|
591
|
+
/** Cable insulation / construction (e.g. "H07V-K", "XLPE/SWA/PVC"). */
|
|
592
|
+
cableInsulation?: string;
|
|
587
593
|
label?: string;
|
|
588
594
|
}
|
|
589
595
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BlockAST, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { B as BlockAST, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
declare function parseBlockDiagram(text: string): BlockAST;
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHEGDKO2E_cjs = require('../../chunk-HEGDKO2E.cjs');
|
|
4
4
|
require('../../chunk-7OOUU6BL.cjs');
|
|
5
5
|
require('../../chunk-VHDSPI6A.cjs');
|
|
6
6
|
require('../../chunk-3WNW5Y7P.cjs');
|
|
@@ -9,31 +9,31 @@ require('../../chunk-3WNW5Y7P.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "circuit", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkHEGDKO2E_cjs.circuit; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "layoutCircuit", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkHEGDKO2E_cjs.layoutCircuit; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "layoutCircuitNetlist", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkHEGDKO2E_cjs.layoutCircuitNetlist; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "lintCircuit", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkHEGDKO2E_cjs.lintCircuit; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "parseCircuit", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkHEGDKO2E_cjs.parseCircuit; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "parseNetlist", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkHEGDKO2E_cjs.parseNetlist; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "renderCircuit", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkHEGDKO2E_cjs.renderCircuit; }
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=index.cjs.map
|
|
39
39
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CircuitAST, S as SchematexDiagnostic, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { C as CircuitAST, S as SchematexDiagnostic, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Top-level circuit parser. Detects two DSL modes:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CircuitAST, S as SchematexDiagnostic, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { C as CircuitAST, S as SchematexDiagnostic, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Top-level circuit parser. Detects two DSL modes:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit } from '../../chunk-
|
|
1
|
+
export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit } from '../../chunk-32LOZTNP.js';
|
|
2
2
|
import '../../chunk-JVNV2T2T.js';
|
|
3
3
|
import '../../chunk-TO6PNBT3.js';
|
|
4
4
|
import '../../chunk-SYYBKDL7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
declare class EcomapParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
declare class EcomapParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
declare function parseEntityDSL(text: string): EntityAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
declare function parseEntityDSL(text: string): EntityAST;
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '../../diagnostics-
|
|
2
|
-
export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-
|
|
1
|
+
import '../../diagnostics-DSxLohjY.cjs';
|
|
2
|
+
export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-CDDfbChc.cjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '../../diagnostics-
|
|
2
|
-
export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-
|
|
1
|
+
import '../../diagnostics-DSxLohjY.js';
|
|
2
|
+
export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-CZa2pU0T.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
declare class ParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
declare class ParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
declare function parseLadderDSL(text: string): LadderAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
declare function parseLadderDSL(text: string): LadderAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
declare function parseLogic(text: string): LogicGateAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
declare function parseLogic(text: string): LogicGateAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
type OrgchartDirection = "TD" | "LR";
|
|
4
4
|
type OrgchartLayoutMode = "tree" | "list";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
type OrgchartDirection = "TD" | "LR";
|
|
4
4
|
type OrgchartLayoutMode = "tree" | "list";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
declare class PedigreeParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
declare class PedigreeParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
2
|
|
|
3
3
|
declare class PhyloParseError extends Error {
|
|
4
4
|
constructor(message: string);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
2
|
|
|
3
3
|
declare class PhyloParseError extends Error {
|
|
4
4
|
constructor(message: string);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkIBZKIMT5_cjs = require('../../chunk-IBZKIMT5.cjs');
|
|
4
|
+
require('../../chunk-7OOUU6BL.cjs');
|
|
5
|
+
require('../../chunk-3WNW5Y7P.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "SiteplanParseError", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkIBZKIMT5_cjs.SiteplanParseError; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "formatSiteLength", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkIBZKIMT5_cjs.formatSiteLength; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "layoutSiteplan", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkIBZKIMT5_cjs.layoutSiteplan; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "parseSiteplan", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkIBZKIMT5_cjs.parseSiteplan; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "renderSiteplan", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkIBZKIMT5_cjs.renderSiteplan; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "renderSiteplanLayout", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkIBZKIMT5_cjs.renderSiteplanLayout; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "siteplan", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkIBZKIMT5_cjs.siteplan; }
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=index.cjs.map
|
|
38
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Site plan / parcel layout — AST and layout types.
|
|
5
|
+
*
|
|
6
|
+
* Scope: presentation-grade property/site sketches for listings, proposals,
|
|
7
|
+
* and early planning. Not survey-grade, CAD, or permit-ready.
|
|
8
|
+
*/
|
|
9
|
+
type SiteplanUnit = "ft" | "m";
|
|
10
|
+
type SiteplanLineRole = "setback" | "easement" | "fence" | "utility" | "frontage" | "dimension" | "boundary";
|
|
11
|
+
type SiteplanPolygonRole = "parcel" | "structure" | "zone" | "landscape" | "parking";
|
|
12
|
+
type SiteplanPathRole = "road" | "driveway" | "walkway" | "trail";
|
|
13
|
+
type SiteplanMarkerKind = "tree" | "car" | "pin" | "entry" | "hydrant" | "well";
|
|
14
|
+
interface Point {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}
|
|
18
|
+
interface SiteplanPolygon {
|
|
19
|
+
role: SiteplanPolygonRole;
|
|
20
|
+
id: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
points: Point[];
|
|
23
|
+
fill?: string;
|
|
24
|
+
line?: number;
|
|
25
|
+
}
|
|
26
|
+
interface SiteplanPath {
|
|
27
|
+
role: SiteplanPathRole;
|
|
28
|
+
id: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
points: Point[];
|
|
31
|
+
width: number;
|
|
32
|
+
line?: number;
|
|
33
|
+
}
|
|
34
|
+
interface SiteplanLine {
|
|
35
|
+
role: SiteplanLineRole;
|
|
36
|
+
id: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
points: Point[];
|
|
39
|
+
line?: number;
|
|
40
|
+
}
|
|
41
|
+
interface SiteplanMarker {
|
|
42
|
+
kind: SiteplanMarkerKind;
|
|
43
|
+
id: string;
|
|
44
|
+
at: Point;
|
|
45
|
+
size: number;
|
|
46
|
+
label?: string;
|
|
47
|
+
rotate: number;
|
|
48
|
+
line?: number;
|
|
49
|
+
}
|
|
50
|
+
interface SiteplanCallout {
|
|
51
|
+
label: string;
|
|
52
|
+
at: Point;
|
|
53
|
+
to: Point;
|
|
54
|
+
line?: number;
|
|
55
|
+
}
|
|
56
|
+
interface SiteplanDimension {
|
|
57
|
+
label: string;
|
|
58
|
+
from: Point;
|
|
59
|
+
to: Point;
|
|
60
|
+
line?: number;
|
|
61
|
+
}
|
|
62
|
+
interface SiteplanAst {
|
|
63
|
+
type: "siteplan";
|
|
64
|
+
title: string;
|
|
65
|
+
unit: SiteplanUnit;
|
|
66
|
+
north?: number;
|
|
67
|
+
scale?: number;
|
|
68
|
+
legend: boolean;
|
|
69
|
+
polygons: SiteplanPolygon[];
|
|
70
|
+
paths: SiteplanPath[];
|
|
71
|
+
lines: SiteplanLine[];
|
|
72
|
+
markers: SiteplanMarker[];
|
|
73
|
+
callouts: SiteplanCallout[];
|
|
74
|
+
dimensions: SiteplanDimension[];
|
|
75
|
+
}
|
|
76
|
+
type SiteplanLayoutPolygon = SiteplanPolygon;
|
|
77
|
+
type SiteplanLayoutPath = SiteplanPath;
|
|
78
|
+
type SiteplanLayoutLine = SiteplanLine;
|
|
79
|
+
type SiteplanLayoutMarker = SiteplanMarker;
|
|
80
|
+
type SiteplanLayoutCallout = SiteplanCallout;
|
|
81
|
+
type SiteplanLayoutDimension = SiteplanDimension;
|
|
82
|
+
interface SiteplanLegendItem {
|
|
83
|
+
key: string;
|
|
84
|
+
label: string;
|
|
85
|
+
}
|
|
86
|
+
interface SiteplanLayoutResult {
|
|
87
|
+
title: string;
|
|
88
|
+
unit: SiteplanUnit;
|
|
89
|
+
north?: number;
|
|
90
|
+
scale?: number;
|
|
91
|
+
legend: boolean;
|
|
92
|
+
polygons: SiteplanLayoutPolygon[];
|
|
93
|
+
paths: SiteplanLayoutPath[];
|
|
94
|
+
lines: SiteplanLayoutLine[];
|
|
95
|
+
markers: SiteplanLayoutMarker[];
|
|
96
|
+
callouts: SiteplanLayoutCallout[];
|
|
97
|
+
dimensions: SiteplanLayoutDimension[];
|
|
98
|
+
bounds: {
|
|
99
|
+
minX: number;
|
|
100
|
+
minY: number;
|
|
101
|
+
maxX: number;
|
|
102
|
+
maxY: number;
|
|
103
|
+
};
|
|
104
|
+
warnings: string[];
|
|
105
|
+
legendItems: SiteplanLegendItem[];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare class SiteplanParseError extends Error {
|
|
109
|
+
readonly line: number;
|
|
110
|
+
constructor(message: string, line: number);
|
|
111
|
+
}
|
|
112
|
+
declare function parseSiteplan(text: string): SiteplanAst;
|
|
113
|
+
|
|
114
|
+
declare function layoutSiteplan(ast: SiteplanAst): SiteplanLayoutResult;
|
|
115
|
+
declare function formatSiteLength(n: number, unit: "ft" | "m"): string;
|
|
116
|
+
|
|
117
|
+
declare function renderSiteplan(text: string, config?: RenderConfig): string;
|
|
118
|
+
declare function renderSiteplanLayout(lay: SiteplanLayoutResult, config?: RenderConfig): string;
|
|
119
|
+
|
|
120
|
+
declare const siteplan: DiagramPlugin;
|
|
121
|
+
|
|
122
|
+
export { type Point, type SiteplanAst, type SiteplanCallout, type SiteplanDimension, type SiteplanLayoutCallout, type SiteplanLayoutDimension, type SiteplanLayoutLine, type SiteplanLayoutMarker, type SiteplanLayoutPath, type SiteplanLayoutPolygon, type SiteplanLayoutResult, type SiteplanLegendItem, type SiteplanLine, type SiteplanLineRole, type SiteplanMarker, type SiteplanMarkerKind, SiteplanParseError, type SiteplanPath, type SiteplanPathRole, type SiteplanPolygon, type SiteplanPolygonRole, type SiteplanUnit, formatSiteLength, layoutSiteplan, parseSiteplan, renderSiteplan, renderSiteplanLayout, siteplan };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-DSxLohjY.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Site plan / parcel layout — AST and layout types.
|
|
5
|
+
*
|
|
6
|
+
* Scope: presentation-grade property/site sketches for listings, proposals,
|
|
7
|
+
* and early planning. Not survey-grade, CAD, or permit-ready.
|
|
8
|
+
*/
|
|
9
|
+
type SiteplanUnit = "ft" | "m";
|
|
10
|
+
type SiteplanLineRole = "setback" | "easement" | "fence" | "utility" | "frontage" | "dimension" | "boundary";
|
|
11
|
+
type SiteplanPolygonRole = "parcel" | "structure" | "zone" | "landscape" | "parking";
|
|
12
|
+
type SiteplanPathRole = "road" | "driveway" | "walkway" | "trail";
|
|
13
|
+
type SiteplanMarkerKind = "tree" | "car" | "pin" | "entry" | "hydrant" | "well";
|
|
14
|
+
interface Point {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}
|
|
18
|
+
interface SiteplanPolygon {
|
|
19
|
+
role: SiteplanPolygonRole;
|
|
20
|
+
id: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
points: Point[];
|
|
23
|
+
fill?: string;
|
|
24
|
+
line?: number;
|
|
25
|
+
}
|
|
26
|
+
interface SiteplanPath {
|
|
27
|
+
role: SiteplanPathRole;
|
|
28
|
+
id: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
points: Point[];
|
|
31
|
+
width: number;
|
|
32
|
+
line?: number;
|
|
33
|
+
}
|
|
34
|
+
interface SiteplanLine {
|
|
35
|
+
role: SiteplanLineRole;
|
|
36
|
+
id: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
points: Point[];
|
|
39
|
+
line?: number;
|
|
40
|
+
}
|
|
41
|
+
interface SiteplanMarker {
|
|
42
|
+
kind: SiteplanMarkerKind;
|
|
43
|
+
id: string;
|
|
44
|
+
at: Point;
|
|
45
|
+
size: number;
|
|
46
|
+
label?: string;
|
|
47
|
+
rotate: number;
|
|
48
|
+
line?: number;
|
|
49
|
+
}
|
|
50
|
+
interface SiteplanCallout {
|
|
51
|
+
label: string;
|
|
52
|
+
at: Point;
|
|
53
|
+
to: Point;
|
|
54
|
+
line?: number;
|
|
55
|
+
}
|
|
56
|
+
interface SiteplanDimension {
|
|
57
|
+
label: string;
|
|
58
|
+
from: Point;
|
|
59
|
+
to: Point;
|
|
60
|
+
line?: number;
|
|
61
|
+
}
|
|
62
|
+
interface SiteplanAst {
|
|
63
|
+
type: "siteplan";
|
|
64
|
+
title: string;
|
|
65
|
+
unit: SiteplanUnit;
|
|
66
|
+
north?: number;
|
|
67
|
+
scale?: number;
|
|
68
|
+
legend: boolean;
|
|
69
|
+
polygons: SiteplanPolygon[];
|
|
70
|
+
paths: SiteplanPath[];
|
|
71
|
+
lines: SiteplanLine[];
|
|
72
|
+
markers: SiteplanMarker[];
|
|
73
|
+
callouts: SiteplanCallout[];
|
|
74
|
+
dimensions: SiteplanDimension[];
|
|
75
|
+
}
|
|
76
|
+
type SiteplanLayoutPolygon = SiteplanPolygon;
|
|
77
|
+
type SiteplanLayoutPath = SiteplanPath;
|
|
78
|
+
type SiteplanLayoutLine = SiteplanLine;
|
|
79
|
+
type SiteplanLayoutMarker = SiteplanMarker;
|
|
80
|
+
type SiteplanLayoutCallout = SiteplanCallout;
|
|
81
|
+
type SiteplanLayoutDimension = SiteplanDimension;
|
|
82
|
+
interface SiteplanLegendItem {
|
|
83
|
+
key: string;
|
|
84
|
+
label: string;
|
|
85
|
+
}
|
|
86
|
+
interface SiteplanLayoutResult {
|
|
87
|
+
title: string;
|
|
88
|
+
unit: SiteplanUnit;
|
|
89
|
+
north?: number;
|
|
90
|
+
scale?: number;
|
|
91
|
+
legend: boolean;
|
|
92
|
+
polygons: SiteplanLayoutPolygon[];
|
|
93
|
+
paths: SiteplanLayoutPath[];
|
|
94
|
+
lines: SiteplanLayoutLine[];
|
|
95
|
+
markers: SiteplanLayoutMarker[];
|
|
96
|
+
callouts: SiteplanLayoutCallout[];
|
|
97
|
+
dimensions: SiteplanLayoutDimension[];
|
|
98
|
+
bounds: {
|
|
99
|
+
minX: number;
|
|
100
|
+
minY: number;
|
|
101
|
+
maxX: number;
|
|
102
|
+
maxY: number;
|
|
103
|
+
};
|
|
104
|
+
warnings: string[];
|
|
105
|
+
legendItems: SiteplanLegendItem[];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare class SiteplanParseError extends Error {
|
|
109
|
+
readonly line: number;
|
|
110
|
+
constructor(message: string, line: number);
|
|
111
|
+
}
|
|
112
|
+
declare function parseSiteplan(text: string): SiteplanAst;
|
|
113
|
+
|
|
114
|
+
declare function layoutSiteplan(ast: SiteplanAst): SiteplanLayoutResult;
|
|
115
|
+
declare function formatSiteLength(n: number, unit: "ft" | "m"): string;
|
|
116
|
+
|
|
117
|
+
declare function renderSiteplan(text: string, config?: RenderConfig): string;
|
|
118
|
+
declare function renderSiteplanLayout(lay: SiteplanLayoutResult, config?: RenderConfig): string;
|
|
119
|
+
|
|
120
|
+
declare const siteplan: DiagramPlugin;
|
|
121
|
+
|
|
122
|
+
export { type Point, type SiteplanAst, type SiteplanCallout, type SiteplanDimension, type SiteplanLayoutCallout, type SiteplanLayoutDimension, type SiteplanLayoutLine, type SiteplanLayoutMarker, type SiteplanLayoutPath, type SiteplanLayoutPolygon, type SiteplanLayoutResult, type SiteplanLegendItem, type SiteplanLine, type SiteplanLineRole, type SiteplanMarker, type SiteplanMarkerKind, SiteplanParseError, type SiteplanPath, type SiteplanPathRole, type SiteplanPolygon, type SiteplanPolygonRole, type SiteplanUnit, formatSiteLength, layoutSiteplan, parseSiteplan, renderSiteplan, renderSiteplanLayout, siteplan };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SiteplanParseError, formatSiteLength, layoutSiteplan, parseSiteplan, renderSiteplan, renderSiteplanLayout, siteplan } from '../../chunk-PGMKMIGM.js';
|
|
2
|
+
import '../../chunk-JVNV2T2T.js';
|
|
3
|
+
import '../../chunk-SYYBKDL7.js';
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|