cyclecad 3.5.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app/index.html CHANGED
@@ -966,6 +966,10 @@
966
966
  <button class="menu-item-link" data-action="tools-addins">Add-ins...</button>
967
967
  <button class="menu-item-link" data-action="tools-marketplace">Marketplace...</button>
968
968
  <div class="menu-separator"></div>
969
+ <button class="menu-item-link" data-action="tools-text-to-cad">Text-to-CAD (AI)</button>
970
+ <button class="menu-item-link" data-action="tools-photo-to-cad">Photo-to-CAD</button>
971
+ <button class="menu-item-link" data-action="tools-dfm">Manufacturability Check</button>
972
+ <div class="menu-separator"></div>
969
973
  <button class="menu-item-link" data-action="tools-settings">Settings...</button>
970
974
  </div>
971
975
  </div>
@@ -1366,6 +1370,11 @@
1366
1370
  <script src="js/token-engine.js"></script>
1367
1371
  <script src="js/marketplace.js"></script>
1368
1372
 
1373
+ <!-- Killer Feature Modules -->
1374
+ <script src="js/modules/text-to-cad.js"></script>
1375
+ <script src="js/modules/photo-to-cad.js"></script>
1376
+ <script src="js/modules/manufacturability.js"></script>
1377
+
1369
1378
  <script type="module">
1370
1379
  // ===== Three.js Imports =====
1371
1380
  import * as THREE from 'three';
@@ -1533,6 +1542,30 @@
1533
1542
  case 'help-about':
1534
1543
  showDialog('About cycleCAD', 'cycleCAD v0.9.0 - Fusion 360 Clone<br>Open-source parametric 3D CAD modeler<br><br>Built with Three.js, supporting STEP/IGES import, full parametric modeling, and AI-powered design assistance.');
1535
1544
  break;
1545
+ case 'tools-text-to-cad':
1546
+ if (window.CycleCAD && window.CycleCAD.TextToCAD) {
1547
+ const ttcPanel = window.CycleCAD.TextToCAD.getUI();
1548
+ showDialog('Text-to-CAD (AI)', '');
1549
+ const dlg = document.querySelector('.dialog-content');
1550
+ if (dlg) { dlg.innerHTML = ''; dlg.appendChild(ttcPanel); dlg.style.maxHeight = '500px'; dlg.style.overflow = 'auto'; }
1551
+ }
1552
+ break;
1553
+ case 'tools-photo-to-cad':
1554
+ if (window.CycleCAD && window.CycleCAD.PhotoToCAD) {
1555
+ const ptcPanel = window.CycleCAD.PhotoToCAD.getUI();
1556
+ showDialog('Photo-to-CAD', '');
1557
+ const dlg2 = document.querySelector('.dialog-content');
1558
+ if (dlg2) { dlg2.innerHTML = ''; dlg2.appendChild(ptcPanel); dlg2.style.maxHeight = '500px'; dlg2.style.overflow = 'auto'; }
1559
+ }
1560
+ break;
1561
+ case 'tools-dfm':
1562
+ if (window.CycleCAD && window.CycleCAD.Manufacturability) {
1563
+ const dfmPanel = window.CycleCAD.Manufacturability.getUI();
1564
+ showDialog('Manufacturability Check', '');
1565
+ const dlg3 = document.querySelector('.dialog-content');
1566
+ if (dlg3) { dlg3.innerHTML = ''; dlg3.appendChild(dfmPanel); dlg3.style.maxHeight = '500px'; dlg3.style.overflow = 'auto'; }
1567
+ }
1568
+ break;
1536
1569
  default:
1537
1570
  showToast(`${action}`, 'success');
1538
1571
  }
@@ -1838,6 +1871,24 @@
1838
1871
 
1839
1872
  // Token engine and marketplace are auto-initialized via global scripts
1840
1873
  // They expose APIs at window.cycleCAD.tokens, window.cycleCAD.marketplace
1874
+
1875
+ // Initialize Text-to-CAD module
1876
+ if (window.CycleCAD && window.CycleCAD.TextToCAD) {
1877
+ window.CycleCAD.TextToCAD.init(scene, renderer);
1878
+ console.log('[cycleCAD] Text-to-CAD module initialized');
1879
+ }
1880
+
1881
+ // Initialize Photo-to-CAD module
1882
+ if (window.CycleCAD && window.CycleCAD.PhotoToCAD) {
1883
+ window.CycleCAD.PhotoToCAD.init();
1884
+ console.log('[cycleCAD] Photo-to-CAD module initialized');
1885
+ }
1886
+
1887
+ // Initialize Manufacturability module
1888
+ if (window.CycleCAD && window.CycleCAD.Manufacturability) {
1889
+ window.CycleCAD.Manufacturability.init(scene);
1890
+ console.log('[cycleCAD] Manufacturability (DFM) module initialized');
1891
+ }
1841
1892
  }
1842
1893
 
1843
1894
  // ===== Export Global Functions =====