designix 0.5.43 → 0.5.45

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.js CHANGED
@@ -1457,7 +1457,7 @@ import {
1457
1457
  radToDeg as radToDeg3,
1458
1458
  ffix as ffix6,
1459
1459
  pNumber as pNumber4,
1460
- pCheckbox as pCheckbox3,
1460
+ pCheckbox as pCheckbox4,
1461
1461
  pSectionSeparator as pSectionSeparator3,
1462
1462
  initGeom as initGeom4,
1463
1463
  EExtrude as EExtrude3,
@@ -1473,6 +1473,7 @@ import {
1473
1473
  degToRad as degToRad3,
1474
1474
  ffix as ffix5,
1475
1475
  pNumber as pNumber3,
1476
+ pCheckbox as pCheckbox3,
1476
1477
  pSectionSeparator as pSectionSeparator2,
1477
1478
  initGeom as initGeom3,
1478
1479
  transform3d,
@@ -1705,7 +1706,9 @@ var pDef3 = {
1705
1706
  pNumber3("PHA", "degree", 5, -45, 45, 0.1),
1706
1707
  pNumber3("PHL1", "mm", 300, 1, 500, 1),
1707
1708
  pNumber3("PHE2", "mm", 10, 1, 80, 1),
1708
- pNumber3("PHE3", "mm", 10, 1, 80, 1)
1709
+ pNumber3("PHE3", "mm", 10, 1, 80, 1),
1710
+ pSectionSeparator2("for reuse"),
1711
+ pCheckbox3("withOuterCone", true)
1709
1712
  ],
1710
1713
  paramSvg: {
1711
1714
  PHD1: "vaxis_holder_top.svg",
@@ -1721,7 +1724,8 @@ var pDef3 = {
1721
1724
  PHA: "vaxis_holder_section.svg",
1722
1725
  PHL1: "vaxis_holder_section.svg",
1723
1726
  PHE2: "vaxis_holder_section.svg",
1724
- PHE3: "vaxis_holder_top.svg"
1727
+ PHE3: "vaxis_holder_top.svg",
1728
+ withOuterCone: "vaxis_holder_section.svg"
1725
1729
  },
1726
1730
  sim: {
1727
1731
  tMax: 180,
@@ -1736,6 +1740,7 @@ function pGeom3(t, param, suffix = "") {
1736
1740
  const figPetal = figure3();
1737
1741
  const figButtress1 = figure3();
1738
1742
  const figButtress2 = figure3();
1743
+ const figButtress12 = figure3();
1739
1744
  rGeome.logstr += `${rGeome.partName} simTime: ${t}
1740
1745
  `;
1741
1746
  try {
@@ -1789,19 +1794,34 @@ function pGeom3(t, param, suffix = "") {
1789
1794
  return rCtr;
1790
1795
  };
1791
1796
  const ctrButtress2 = function(rnl) {
1792
- const rCtr = contour5(rnl * (R1 + param.PHR4), param.PHE1 / 2).addSegStrokeA(rnl * innerR2, param.PHE1 / 2).addSegStrokeRP(Math.PI / 2 + rnl * outerA, innerL2).addSegStrokeA(rnl * (R1 + param.PHR4), param.PHE1 + param.PHH1).closeSegStroke();
1797
+ const rCtr = contour5(rnl * (R1 + param.PHR4), param.PHE1 / 2).addSegStrokeA(rnl * innerR2, param.PHE1 / 2).addSegStrokeRP(Math.PI / 2 + rnl * outerA, innerL2).addSegStrokeA(rnl * (R1 + param.PHR4), param.PHE1 / 2 + param.PHH1).closeSegStroke();
1798
+ return rCtr;
1799
+ };
1800
+ const ctrButtress12 = function(rnl) {
1801
+ const pA = point4(rnl * innerR2, param.PHE1 / 2).translatePolar(
1802
+ Math.PI / 2 + rnl * outerA,
1803
+ innerL2
1804
+ );
1805
+ const pB = point4(rnl * innerR1, -param.PHE1 / 2).translatePolar(
1806
+ -Math.PI / 2 + rnl * outerA,
1807
+ innerL2
1808
+ );
1809
+ const innerRb = R2 - param.PHE2 / 2;
1810
+ const rCtr = contour5(rnl * innerRb, 0).addSegStrokeA(pA.cx, pA.cy).addSegStrokeA(rnl * (R1 + param.PHR4), param.PHE1 / 2 + param.PHH1).addSegStrokeA(rnl * (R1 + param.PHR4), param.PHE1 / 2).addSegStrokeA(rnl * (R1 + param.PHR4), -param.PHE1 / 2).addSegStrokeA(pB.cx, pB.cy).closeSegStroke();
1793
1811
  return rCtr;
1794
1812
  };
1795
1813
  figOuter.addSecond(ctrButtress1(-1));
1796
1814
  figOuter.addSecond(ctrButtress2(-1));
1797
1815
  figButtress1.mergeFigure(figOuter, true);
1798
1816
  figButtress2.mergeFigure(figOuter, true);
1817
+ figButtress12.mergeFigure(figOuter, true);
1799
1818
  figOuter.addSecond(ctrButtress1(1));
1800
1819
  figOuter.addSecond(ctrButtress2(1));
1801
1820
  figButtress1.addMainO(ctrButtress1(1));
1802
1821
  figButtress1.addSecond(ctrButtress2(1));
1803
1822
  figButtress2.addSecond(ctrButtress1(1));
1804
1823
  figButtress2.addMainO(ctrButtress2(1));
1824
+ figButtress12.addMainO(ctrButtress12(1));
1805
1825
  const fPetal = [];
1806
1826
  fPetal.push(contourCircle3(0, 0, innerR));
1807
1827
  figPetal.addSecond(contourCircle3(0, 0, R2));
@@ -1822,31 +1842,19 @@ function pGeom3(t, param, suffix = "") {
1822
1842
  facePetal: figPetal,
1823
1843
  faceOuter: figOuter,
1824
1844
  faceButtress1: figButtress1,
1825
- faceButtress2: figButtress2
1845
+ faceButtress2: figButtress2,
1846
+ faceButtress12: figButtress12
1826
1847
  };
1827
1848
  const designName = rGeome.partName;
1828
1849
  const tm = transform3d();
1829
1850
  tm.addRotation(Math.PI / 2, 0, 0);
1830
1851
  tm.addTranslation(0, param.PHE3 / 2, 0);
1831
- const preExtrude1 = petalAngles.map((rota, idx) => {
1832
- const tm1 = transform3d(tm.getMatrix());
1833
- tm1.addRotation(0, 0, rota);
1834
- const rElem = {
1835
- outName: `subpax_${designName}_b1_${idx}`,
1836
- face: `${designName}_faceButtress1`,
1837
- extrudeMethod: EExtrude2.eLinearOrtho,
1838
- length: param.PHE3,
1839
- rotate: tm1.getRotation(),
1840
- translate: tm1.getTranslation()
1841
- };
1842
- return rElem;
1843
- });
1844
1852
  const preExtrude2 = petalAngles.map((rota, idx) => {
1845
1853
  const tm2 = transform3d(tm.getMatrix());
1846
1854
  tm2.addRotation(0, 0, rota);
1847
1855
  const rElem = {
1848
1856
  outName: `subpax_${designName}_b2_${idx}`,
1849
- face: `${designName}_faceButtress2`,
1857
+ face: `${designName}_faceButtress12`,
1850
1858
  extrudeMethod: EExtrude2.eLinearOrtho,
1851
1859
  length: param.PHE3,
1852
1860
  rotate: tm2.getRotation(),
@@ -1854,14 +1862,11 @@ function pGeom3(t, param, suffix = "") {
1854
1862
  };
1855
1863
  return rElem;
1856
1864
  });
1857
- const b1List = petalAngles.map((elem, idx) => {
1858
- const subElem = `subpax_${designName}_b1_${idx}`;
1859
- return subElem;
1860
- });
1861
1865
  const b2List = petalAngles.map((elem, idx) => {
1862
1866
  const subElem = `subpax_${designName}_b2_${idx}`;
1863
1867
  return subElem;
1864
1868
  });
1869
+ const optCone = param.withOuterCone ? [`subpax_${designName}_outer`] : [];
1865
1870
  rGeome.vol = {
1866
1871
  extrudes: [
1867
1872
  {
@@ -1879,7 +1884,7 @@ function pGeom3(t, param, suffix = "") {
1879
1884
  rotate: [0, 0, 0],
1880
1885
  translate: [0, 0, -param.PHE1 / 2]
1881
1886
  },
1882
- ...preExtrude1,
1887
+ //...preExtrude1,
1883
1888
  ...preExtrude2
1884
1889
  ],
1885
1890
  volumes: [
@@ -1888,8 +1893,8 @@ function pGeom3(t, param, suffix = "") {
1888
1893
  boolMethod: EBVolume3.eUnion,
1889
1894
  inList: [
1890
1895
  `subpax_${designName}_petal`,
1891
- `subpax_${designName}_outer`,
1892
- ...b1List,
1896
+ ...optCone,
1897
+ //...b1List,
1893
1898
  ...b2List
1894
1899
  ]
1895
1900
  }
@@ -1936,7 +1941,7 @@ var pDef4 = {
1936
1941
  pNumber4("L2", "mm", 30, 1, 100, 1),
1937
1942
  pNumber4("E3", "mm", 40, 1, 100, 1),
1938
1943
  pSectionSeparator3("holders"),
1939
- pCheckbox3("holders", true),
1944
+ pCheckbox4("holders", true),
1940
1945
  pNumber4("PHL1A", "mm", 400, 1, 1e3, 1),
1941
1946
  pNumber4("PHL1B", "mm", 400, 1, 1e3, 1),
1942
1947
  pNumber4("PHB", "mm", 5e3, 1, 2e4, 1),
@@ -2140,6 +2145,7 @@ function pGeom4(t, param, suffix = "") {
2140
2145
  const inheritNames = [];
2141
2146
  let subDesignObj = {};
2142
2147
  if (param.holders) {
2148
+ const withOuterCone = 1;
2143
2149
  const vaxisHolderB2Param = designParam2(vaxisHolderDef.pDef, "B2");
2144
2150
  vaxisHolderB2Param.setVal("PHD1", param.PHD1B);
2145
2151
  vaxisHolderB2Param.setVal("PHD2", 2 * hb2R2);
@@ -2155,6 +2161,7 @@ function pGeom4(t, param, suffix = "") {
2155
2161
  vaxisHolderB2Param.setVal("PHL1", phl1b);
2156
2162
  vaxisHolderB2Param.setVal("PHE2", param.E2);
2157
2163
  vaxisHolderB2Param.setVal("PHE3", param.PHE3B);
2164
+ vaxisHolderB2Param.setVal("withOuterCone", withOuterCone);
2158
2165
  const vaxisHolderB2Geom = vaxisHolderDef.pGeom(
2159
2166
  0,
2160
2167
  vaxisHolderB2Param.getParamVal(),
@@ -2191,6 +2198,7 @@ function pGeom4(t, param, suffix = "") {
2191
2198
  vaxisHolderB1Param.setVal("PHL1", phl1b);
2192
2199
  vaxisHolderB1Param.setVal("PHE2", param.E2);
2193
2200
  vaxisHolderB1Param.setVal("PHE3", param.PHE3B);
2201
+ vaxisHolderB1Param.setVal("withOuterCone", withOuterCone);
2194
2202
  const vaxisHolderB1Geom = vaxisHolderDef.pGeom(
2195
2203
  0,
2196
2204
  vaxisHolderB1Param.getParamVal(),
@@ -2227,6 +2235,7 @@ function pGeom4(t, param, suffix = "") {
2227
2235
  vaxisHolderAParam.setVal("PHL1", phl1a);
2228
2236
  vaxisHolderAParam.setVal("PHE2", param.E2);
2229
2237
  vaxisHolderAParam.setVal("PHE3", param.PHE3A);
2238
+ vaxisHolderAParam.setVal("withOuterCone", withOuterCone);
2230
2239
  const vaxisHolderAGeom = vaxisHolderDef.pGeom(
2231
2240
  0,
2232
2241
  vaxisHolderAParam.getParamVal(),
@@ -2799,6 +2808,7 @@ function pGeom5(t, param, suffix = "") {
2799
2808
  outName: `pax_${designName}`,
2800
2809
  boolMethod: EBVolume5.eSubstraction,
2801
2810
  inList: [`ipax_${designName}_plus`, `ipax_${designName}_hollow`]
2811
+ //inList: [`ipax_${designName}_plus`, `subpax_${designName}_door`] // simplification for freecad
2802
2812
  }
2803
2813
  ]
2804
2814
  };
@@ -4139,6 +4149,7 @@ function pGeom9(t, param, suffix = "") {
4139
4149
  {
4140
4150
  outName: `ipax_${designName}_stopper`,
4141
4151
  boolMethod: EBVolume9.eSubstraction,
4152
+ //boolMethod: EBVolume.eIdentity, // simplification for freecad
4142
4153
  inList: [`ipax_${designName}_plus`, `ipax_${designName}_hollow`]
4143
4154
  },
4144
4155
  {
@@ -6058,7 +6069,7 @@ import {
6058
6069
  figure as figure19,
6059
6070
  ffix as ffix21,
6060
6071
  pNumber as pNumber19,
6061
- pCheckbox as pCheckbox4,
6072
+ pCheckbox as pCheckbox5,
6062
6073
  pDropdown as pDropdown4,
6063
6074
  pSectionSeparator as pSectionSeparator18,
6064
6075
  initGeom as initGeom19,
@@ -6077,19 +6088,19 @@ var pDef19 = {
6077
6088
  pNumber19("ny", "", 9, 1, 40, 1),
6078
6089
  pSectionSeparator18("main fantasia"),
6079
6090
  pDropdown4("main_direction", ["horizontal", "vertical"]),
6080
- pCheckbox4("crenel", false),
6091
+ pCheckbox5("crenel", false),
6081
6092
  pNumber19("first_row", "", 9, 1, 40, 1),
6082
6093
  pNumber19("second_row", "", 9, 1, 40, 1),
6083
6094
  pSectionSeparator18("horizontal spacing"),
6084
6095
  pNumber19("EH", "mm", 10, 0, 1e3, 1),
6085
- pCheckbox4("EH_gradient", false),
6096
+ pCheckbox5("EH_gradient", false),
6086
6097
  pNumber19("EH_sup", "mm", 500, 0, 1e3, 1),
6087
6098
  pNumber19("EH_cycle", "", 1, 0, 3, 0.05),
6088
6099
  pNumber19("EH_start", "", 0, 0, 1, 0.05),
6089
6100
  pDropdown4("EH_shape", ["sinusoid", "triangle", "sawUp", "sawDown"]),
6090
6101
  pSectionSeparator18("vertical spacing"),
6091
6102
  pNumber19("EV", "mm", 10, 0, 1e3, 1),
6092
- pCheckbox4("EV_gradient", false),
6103
+ pCheckbox5("EV_gradient", false),
6093
6104
  pNumber19("EV_sup", "mm", 500, 0, 1e3, 1),
6094
6105
  pNumber19("EV_cycle", "", 1, 0, 3, 0.05),
6095
6106
  pNumber19("EV_start", "", 0, 0, 1, 0.05),
@@ -6469,9 +6480,9 @@ var pDef22 = {
6469
6480
  pNumber22("radius", "mm", 1e3, 100, 4e4, 10)
6470
6481
  ],
6471
6482
  paramSvg: {
6472
- H1: "dummy_pole_static_face.svg",
6473
- H2: "dummy_pole_static_face.svg",
6474
- radius: "dummy_pole_static_face.svg"
6483
+ H1: "voila_face.svg",
6484
+ H2: "voila_face.svg",
6485
+ radius: "voila_face.svg"
6475
6486
  },
6476
6487
  sim: {
6477
6488
  tMax: 180,
@@ -6516,6 +6527,7 @@ import {
6516
6527
  contourCircle as contourCircle18,
6517
6528
  figure as figure23,
6518
6529
  pNumber as pNumber23,
6530
+ pSectionSeparator as pSectionSeparator19,
6519
6531
  EExtrude as EExtrude17,
6520
6532
  EBVolume as EBVolume20,
6521
6533
  initGeom as initGeom23
@@ -6524,14 +6536,17 @@ var pDef23 = {
6524
6536
  partName: "voila",
6525
6537
  params: [
6526
6538
  //pNumber(name, unit, init, min, max, step)
6527
- pNumber23("H1", "mm", 4e3, 100, 4e4, 10),
6528
- pNumber23("H2", "mm", 5e3, 100, 4e4, 10),
6529
- pNumber23("radius", "mm", 1e3, 100, 4e4, 10)
6539
+ pNumber23("H1", "mm", 40, 1, 4e3, 1),
6540
+ pNumber23("H2", "mm", 50, 1, 4e3, 1),
6541
+ pNumber23("radius", "mm", 10, 1, 4e3, 1),
6542
+ pSectionSeparator19("corners"),
6543
+ pNumber23("Rc", "mm", 10, 0, 400, 1)
6530
6544
  ],
6531
6545
  paramSvg: {
6532
- H1: "dummy_pole_static_face.svg",
6533
- H2: "dummy_pole_static_face.svg",
6534
- radius: "dummy_pole_static_face.svg"
6546
+ H1: "voila_face.svg",
6547
+ H2: "voila_face.svg",
6548
+ radius: "voila_face.svg",
6549
+ Rc: "voila_face.svg"
6535
6550
  },
6536
6551
  sim: {
6537
6552
  tMax: 180,
@@ -6547,7 +6562,7 @@ function pGeom23(t, param, suffix = "") {
6547
6562
  `;
6548
6563
  try {
6549
6564
  const face1 = [];
6550
- const ctrPoleFace = contour19(-param.H1 / 2, -param.H2 / 2).addSegStrokeA(param.H1 / 2, -param.H2 / 2).addSegStrokeA(param.H1 / 2, param.H2 / 2).addSegStrokeA(-param.H1 / 2, param.H2 / 2).closeSegStroke();
6565
+ const ctrPoleFace = contour19(-param.H1 / 2, -param.H2 / 2).addCornerRounded(param.Rc).addSegStrokeA(param.H1 / 2, -param.H2 / 2).addSegStrokeA(param.H1 / 2, param.H2 / 2).addCornerRounded(param.Rc).addSegStrokeA(-param.H1 / 2, param.H2 / 2).closeSegStroke();
6551
6566
  face1.push(ctrPoleFace);
6552
6567
  face1.push(contourCircle18(0, 0, param.radius));
6553
6568
  figFace.addMainOI(face1);
@@ -7400,7 +7415,7 @@ import {
7400
7415
  contourCircle as contourCircle20,
7401
7416
  figure as figure34,
7402
7417
  pNumber as pNumber34,
7403
- pCheckbox as pCheckbox5,
7418
+ pCheckbox as pCheckbox6,
7404
7419
  initGeom as initGeom34,
7405
7420
  EExtrude as EExtrude18,
7406
7421
  EBVolume as EBVolume21
@@ -7409,11 +7424,11 @@ var pDef34 = {
7409
7424
  partName: "verify_exports_1",
7410
7425
  params: [
7411
7426
  //pNumber(name, unit, init, min, max, step)
7412
- pCheckbox5("circle", true),
7427
+ pCheckbox6("circle", true),
7413
7428
  pNumber34("circle-size", "mm", 100, 1, 1e3, 1),
7414
- pCheckbox5("contour", true),
7429
+ pCheckbox6("contour", true),
7415
7430
  pNumber34("contour-size", "mm", 30, 1, 1e3, 1),
7416
- pCheckbox5("contour-arc-large", false)
7431
+ pCheckbox6("contour-arc-large", false)
7417
7432
  ],
7418
7433
  paramSvg: {
7419
7434
  circle: "default_param_blank.svg",
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="600" height="2000" viewBox="0 0 158.75 529.167"><defs><path id="h" d="M197.141 325.036h49.599v31.96h-49.599z"/><path id="g" d="M12.224 258.196h62.043v37.148H12.224z"/><path id="f" d="M15.299 180.795H64.08v32.226H15.299z"/><path id="e" d="M180.648 59.142h60.528v30.722h-60.528z"/><path id="a" d="M20.621 18.595h254.251v36.954H20.621z"/><marker id="b" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M3-3 0 0l3 3" style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt" transform="rotate(180,0.125,0)"/></marker><marker id="c" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M-.211-4.106 6.21-.894a1 1 90 0 1 0 1.788L-.21 4.106A1.236 1.236 31.717 0 1-2 3v-6A1.236 1.236 148.283 0 1-.211-4.106" style="fill:context-stroke;fill-rule:evenodd;stroke:none" transform="scale(0.7)"/></marker><marker id="d" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M-.211-4.106 6.21-.894a1 1 90 0 1 0 1.788L-.21 4.106A1.236 1.236 31.717 0 1-2 3v-6A1.236 1.236 148.283 0 1-.211-4.106" style="fill:context-stroke;fill-rule:evenodd;stroke:none" transform="scale(0.7)"/></marker><marker id="i" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M3-3 0 0l3 3" style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt" transform="rotate(180,0.125,0)"/></marker></defs><path d="M22.364 19.996h85.643V91.68H22.364z" style="fill:#fff;stroke:#fff;stroke-width:.264583;stroke-linejoin:bevel"/><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#a)" transform="scale(0.26458333)"><tspan x="20.621" y="31.941">voila.svg</tspan></text><path d="M27.88 35.39h61.654v41.817H27.88z" style="fill:none;stroke:green;stroke-width:.264583;stroke-linejoin:bevel"/><circle cx="58.707" cy="56.298" r="14.695" style="fill:none;stroke:green;stroke-width:.264583;stroke-linejoin:bevel"/><path d="M27.88 35.39v-9.646M89.534 35.257v-9.645M89.666 35.39h9.646M89.666 77.472h9.646" style="fill:none;stroke:#ccc;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/><path d="m28.218 25.744 61.208-.132" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#b);marker-end:url(#b)"/><path d="m99.246 35.759.132 41.517" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#b);marker-end:url(#b)"/><path d="m58.707 56.298 6.141-11.735" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#c);marker-end:url(#d)"/><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#e)" transform="matrix(0.26458333,0,0,0.26458333,9.7402343,5.6616211)"><tspan x="180.648" y="72.487">H1</tspan></text><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#f)" transform="matrix(0.26458333,0,0,0.26458333,95.940917,6.309082)"><tspan x="15.299" y="194.14">H2</tspan></text><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#g)" transform="matrix(0.26458333,0,0,0.26458333,59.398474,-19.460009)"><tspan x="12.225" y="271.542">radius</tspan></text><text xml:space="preserve" style="font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:14.6667px;line-height:normal;font-family:&quot;Liberation Mono&quot;;-inkscape-font-specification:&quot;Liberation Mono&quot;;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;white-space:pre;shape-inside:url(#h);shape-padding:0;shape-margin:0;inline-size:0;opacity:1;vector-effect:none;fill:#000;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000;stop-opacity:1" transform="matrix(0.26458333,0,0,0.26458333,11.5625,0.90039065)"><tspan x="197.141" y="338.085">Rc</tspan></text><path d="m29.053 77.897 33.886 10.345" style="fill:#fff;stroke:#999;stroke-width:.264583;marker-start:url(#b)"/><path d="M87.924 37.294 67.68 87.7" style="fill:#fff;stroke:#999;stroke-width:.264583;marker-start:url(#i)"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="324.688" height="271.93" viewBox="0 0 85.907 71.948"><defs><marker id="a" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M3-3 0 0l3 3" style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt" transform="rotate(180,0.125,0)"/></marker><marker id="b" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M-.211-4.106 6.21-.894a1 1 90 0 1 0 1.788L-.21 4.106A1.236 1.236 31.717 0 1-2 3v-6A1.236 1.236 148.283 0 1-.211-4.106" style="fill:context-stroke;fill-rule:evenodd;stroke:none" transform="scale(0.7)"/></marker><marker id="c" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M-.211-4.106 6.21-.894a1 1 90 0 1 0 1.788L-.21 4.106A1.236 1.236 31.717 0 1-2 3v-6A1.236 1.236 148.283 0 1-.211-4.106" style="fill:context-stroke;fill-rule:evenodd;stroke:none" transform="scale(0.7)"/></marker><marker id="h" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M3-3 0 0l3 3" style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt" transform="rotate(180,0.125,0)"/></marker><path id="g" d="M197.141 325.036h49.599v31.96h-49.599z"/><path id="f" d="M12.224 258.196h62.043v37.148H12.224z"/><path id="e" d="M15.299 180.795H64.08v32.226H15.299z"/><path id="d" d="M180.648 59.142h60.528v30.722h-60.528z"/></defs><g transform="translate(-22.231966,-19.863804)"><path d="M22.364 19.996h85.643V91.68H22.364z" style="fill:#fff;stroke:#fff;stroke-width:.264583;stroke-linejoin:bevel"/><path d="M27.88 35.39h61.654v41.817H27.88z" style="fill:none;stroke:green;stroke-width:.264583;stroke-linejoin:bevel"/><circle cx="58.707" cy="56.298" r="14.695" style="fill:none;stroke:green;stroke-width:.264583;stroke-linejoin:bevel"/><path d="M27.88 35.39v-9.646M89.534 35.257v-9.645M89.666 35.39h9.646M89.666 77.472h9.646" style="fill:none;stroke:#ccc;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/><path d="m28.218 25.744 61.208-.132" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#a);marker-end:url(#a)"/><path d="m99.246 35.759.132 41.517" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#a);marker-end:url(#a)"/><path d="m58.707 56.298 6.141-11.735" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#b);marker-end:url(#c)"/><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#d)" transform="matrix(0.26458333,0,0,0.26458333,9.7402343,5.6616211)"><tspan x="180.648" y="72.487">H1</tspan></text><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#e)" transform="matrix(0.26458333,0,0,0.26458333,95.940917,6.309082)"><tspan x="15.299" y="194.14">H2</tspan></text><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#f)" transform="matrix(0.26458333,0,0,0.26458333,59.398474,-19.460009)"><tspan x="12.225" y="271.542">radius</tspan></text><text xml:space="preserve" style="font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:14.6667px;line-height:normal;font-family:&quot;Liberation Mono&quot;;-inkscape-font-specification:&quot;Liberation Mono&quot;;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;white-space:pre;shape-inside:url(#g);shape-padding:0;shape-margin:0;inline-size:0;opacity:1;vector-effect:none;fill:#000;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000;stop-opacity:1" transform="matrix(0.26458333,0,0,0.26458333,11.5625,0.90039065)"><tspan x="197.141" y="338.085">Rc</tspan></text><path d="m29.053 77.897 33.886 10.345" style="fill:#fff;stroke:#999;stroke-width:.264583;marker-start:url(#a)"/><path d="M87.924 37.294 67.68 87.7" style="fill:#fff;stroke:#999;stroke-width:.264583;marker-start:url(#h)"/></g></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "designix",
3
- "version": "0.5.43",
3
+ "version": "0.5.45",
4
4
  "description": "The first designs made with parametrix",
5
5
  "private": false,
6
6
  "repository": {
@@ -72,16 +72,16 @@
72
72
  "clean": "shx rm -fr dist dist2 node_modules"
73
73
  },
74
74
  "dependencies": {
75
- "geometrix": "^0.5.41"
75
+ "geometrix": "^0.5.43"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@typescript-eslint/eslint-plugin": "^7.0.1",
79
79
  "@typescript-eslint/parser": "^7.0.1",
80
- "esbuild": "^0.21.4",
80
+ "esbuild": "^0.21.5",
81
81
  "eslint": "^8.57.0",
82
82
  "eslint-config-prettier": "^9.1.0",
83
83
  "npm-run-all": "^4.1.5",
84
- "prettier": "^3.3.0",
84
+ "prettier": "^3.3.2",
85
85
  "shx": "^0.3.4",
86
86
  "svgo": "^3.3.2",
87
87
  "tsup": "^8.1.0",
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="600" height="2000" viewBox="0 0 158.75 529.167"><defs><path id="f" d="M12.224 258.196h62.043v37.148H12.224z"/><path id="e" d="M15.299 180.795H64.08v32.226H15.299z"/><path id="d" d="M180.648 59.142h60.528v30.722h-60.528z"/><path id="a" d="M20.621 18.595h254.251v36.954H20.621z"/><marker id="b" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M-.211-4.106 6.21-.894a1 1 90 0 1 0 1.788L-.21 4.106A1.236 1.236 31.717 0 1-2 3v-6A1.236 1.236 148.283 0 1-.211-4.106" style="fill:context-stroke;fill-rule:evenodd;stroke:none" transform="scale(0.7)"/></marker><marker id="c" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M-.211-4.106 6.21-.894a1 1 90 0 1 0 1.788L-.21 4.106A1.236 1.236 31.717 0 1-2 3v-6A1.236 1.236 148.283 0 1-.211-4.106" style="fill:context-stroke;fill-rule:evenodd;stroke:none" transform="scale(0.7)"/></marker></defs><path d="M22.364 19.996h85.643v63.119H22.364z" style="fill:#fff;stroke:#fff;stroke-width:.264583;stroke-linejoin:bevel"/><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#a)" transform="scale(0.26458333)"><tspan x="20.621" y="31.572">dummy_pole_static.svg</tspan></text><path d="M27.88 35.39h61.654v41.817H27.88z" style="fill:none;stroke:green;stroke-width:.264583;stroke-linejoin:bevel"/><circle cx="58.707" cy="56.298" r="14.695" style="fill:none;stroke:green;stroke-width:.264583;stroke-linejoin:bevel"/><path d="M27.88 35.39v-9.646M89.534 35.257v-9.645M89.666 35.39h9.646M89.666 77.472h9.646" style="fill:none;stroke:#ccc;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/><path d="m29.253 25.744 58.902-.132" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#b);marker-end:url(#b)"/><path d="m99.246 36.805.132 38.987" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#c);marker-end:url(#c)"/><path d="m58.707 56.298 6.141-11.735" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#b);marker-end:url(#c)"/><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#d)" transform="matrix(0.26458333,0,0,0.26458333,9.7402343,5.6616211)"><tspan x="180.648" y="72.119">H1</tspan></text><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#e)" transform="matrix(0.26458333,0,0,0.26458333,95.940917,6.309082)"><tspan x="15.299" y="193.772">H2</tspan></text><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#f)" transform="matrix(0.26458333,0,0,0.26458333,59.398474,-19.460009)"><tspan x="12.225" y="271.174">radius</tspan></text></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="324.688" height="239.561" viewBox="0 0 85.907 63.384"><defs><path id="e" d="M12.224 258.196h62.043v37.148H12.224z"/><path id="d" d="M15.299 180.795H64.08v32.226H15.299z"/><path id="c" d="M180.648 59.142h60.528v30.722h-60.528z"/><marker id="a" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M-.211-4.106 6.21-.894a1 1 90 0 1 0 1.788L-.21 4.106A1.236 1.236 31.717 0 1-2 3v-6A1.236 1.236 148.283 0 1-.211-4.106" style="fill:context-stroke;fill-rule:evenodd;stroke:none" transform="scale(0.7)"/></marker><marker id="b" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M-.211-4.106 6.21-.894a1 1 90 0 1 0 1.788L-.21 4.106A1.236 1.236 31.717 0 1-2 3v-6A1.236 1.236 148.283 0 1-.211-4.106" style="fill:context-stroke;fill-rule:evenodd;stroke:none" transform="scale(0.7)"/></marker></defs><g transform="translate(-22.231966,-19.863804)"><path d="M22.364 19.996h85.643v63.119H22.364z" style="fill:#fff;stroke:#fff;stroke-width:.264583;stroke-linejoin:bevel"/><path d="M27.88 35.39h61.654v41.817H27.88z" style="fill:none;stroke:green;stroke-width:.264583;stroke-linejoin:bevel"/><circle cx="58.707" cy="56.298" r="14.695" style="fill:none;stroke:green;stroke-width:.264583;stroke-linejoin:bevel"/><path d="M27.88 35.39v-9.646M89.534 35.257v-9.645M89.666 35.39h9.646M89.666 77.472h9.646" style="fill:none;stroke:#ccc;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"/><path d="m29.253 25.744 58.902-.132" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#a);marker-end:url(#a)"/><path d="m99.246 36.805.132 38.987" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#b);marker-end:url(#b)"/><path d="m58.707 56.298 6.141-11.735" style="fill:none;stroke:#000;stroke-width:.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#a);marker-end:url(#b)"/><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#c)" transform="matrix(0.26458333,0,0,0.26458333,9.7402343,5.6616211)"><tspan x="180.648" y="72.119">H1</tspan></text><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#d)" transform="matrix(0.26458333,0,0,0.26458333,95.940917,6.309082)"><tspan x="15.299" y="193.772">H2</tspan></text><text xml:space="preserve" style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#e)" transform="matrix(0.26458333,0,0,0.26458333,59.398474,-19.460009)"><tspan x="12.225" y="271.174">radius</tspan></text></g></svg>