brep-io-kernel 1.0.266 → 1.0.268

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.
Files changed (32) hide show
  1. package/README.md +3 -5
  2. package/dist/about.html +2 -2
  3. package/dist/apiExamples/BREP_Booleans.html +2 -2
  4. package/dist/apiExamples/BREP_Export.html +2 -2
  5. package/dist/apiExamples/BREP_Primitives.html +2 -2
  6. package/dist/apiExamples/BREP_Transforms.html +2 -2
  7. package/dist/apiExamples/Embeded_2D_Sketcher.html +2 -2
  8. package/dist/apiExamples/Embeded_CAD.html +2 -2
  9. package/dist/apiExamples/Embeded_CAD_Integration_Test.html +2 -2
  10. package/dist/assets/{apiExample_BREP_Booleans-BYmpqcsp.js → apiExample_BREP_Booleans-BQuhH0p9.js} +1 -1
  11. package/dist/assets/{apiExample_BREP_Export-uBjod_wt.js → apiExample_BREP_Export-DxoW5Siv.js} +1 -1
  12. package/dist/assets/{apiExample_BREP_Primitives-6305hZzi.js → apiExample_BREP_Primitives-DObxD2ky.js} +1 -1
  13. package/dist/assets/{apiExample_BREP_Transforms-BzoYBAov.js → apiExample_BREP_Transforms-B2hpG-YX.js} +1 -1
  14. package/dist/assets/{apiExample_Embeded_2D_Sketcher-D1NLjBBJ.js → apiExample_Embeded_2D_Sketcher-Dg9Zu_hE.js} +1 -1
  15. package/dist/assets/{apiExample_Embeded_CAD-CyBvK6VA.js → apiExample_Embeded_CAD-BpJVoWOu.js} +1 -1
  16. package/dist/assets/{apiExample_Embeded_CAD_Integration_Test-GmK-MuGv.js → apiExample_Embeded_CAD_Integration_Test-B_Rho3aP.js} +1 -1
  17. package/dist/assets/{brep-kernel-PNIMTlaV.js → brep-kernel-Bj1tafeh.js} +7 -3
  18. package/dist/assets/{browserTests-B-7L1X5b.js → browserTests-DyAKA3LJ.js} +3 -3
  19. package/dist/assets/{index.es-BCqdB02m.js → index.es-CV0V3j9t.js} +1 -1
  20. package/dist/assets/{javascript-hVMGvX5S.js → javascript-CMfqYyeC.js} +1 -1
  21. package/dist/assets/{main-cad-3Myw0wlX.js → main-cad-B_iFo8MJ.js} +11 -7
  22. package/dist/assets/{test-D2BDjo1w.js → test-DTqZegA4.js} +3 -3
  23. package/dist/cad.html +1 -1
  24. package/dist/help/index.html +2 -2
  25. package/dist/help/search-index.json +1 -1
  26. package/dist/test.html +1 -1
  27. package/dist/viewer.html +1 -1
  28. package/dist-kernel/brep-kernel.js +30 -26
  29. package/dist-kernel/help/index.html +2 -2
  30. package/dist-kernel/help/search-index.json +1 -1
  31. package/package.json +2 -4
  32. package/src/UI/toolbarButtons/scriptRunnerButton.js +11 -3
@@ -3,11 +3,15 @@ import { FloatingWindow } from '../FloatingWindow.js';
3
3
 
4
4
  const PANEL_KEY = Symbol('ScriptRunnerPanel');
5
5
  const CONSOLE_TREE_CHILD_LIMIT = 300;
6
- const DEFAULT_SNIPPET = `// Access the app environment via the global "env" object.
6
+ const DEFAULT_SNIPPET = `
7
+ // Access the app environment via the global "env" object.
7
8
  console.log('env keys', Object.keys(env || {}));
8
9
 
9
10
  // Example: log the active part history entry
10
- console.log('active history', viewer?.partHistory?.getActiveStep?.());
11
+ console.log('active history', viewer?.partHistory);
12
+
13
+
14
+
11
15
  `;
12
16
 
13
17
  class ScriptRunnerPanel {
@@ -48,10 +52,12 @@ class ScriptRunnerPanel {
48
52
 
49
53
  _ensureWindow() {
50
54
  if (this.root) return;
55
+ const pageHeight = Number(window?.innerHeight) || 520;
56
+ const initialHeight = Math.max(320, Math.round(pageHeight * 0.95));
51
57
  const fw = new FloatingWindow({
52
58
  title: 'Script Runner',
53
59
  width: 760,
54
- height: 520,
60
+ height: initialHeight,
55
61
  right: 16,
56
62
  top: 56,
57
63
  shaded: false,
@@ -75,6 +81,8 @@ class ScriptRunnerPanel {
75
81
  }
76
82
  });
77
83
 
84
+ alert('hello world');
85
+
78
86
  fw.addHeaderAction(btnRun);
79
87
  fw.addHeaderAction(btnRefresh);
80
88