add work/pool url options in engine constructor
This commit is contained in:
parent
57819b8c91
commit
cb98a056f8
2 changed files with 13 additions and 8 deletions
|
|
@ -88,8 +88,7 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js"></script>
|
||||
<!-- <script src="/lib/kiri-run/engine.js" type="module"></script> -->
|
||||
<script type="module">
|
||||
import { Engine } from '/lib/kiri-run/engine.js';
|
||||
const engine = new Engine();
|
||||
import { Engine } from '/lib/kiri/run/engine.js';
|
||||
let edit, saveit = "";
|
||||
function $(id) { return document.getElementById(id) }
|
||||
function onload() {
|
||||
|
|
@ -127,7 +126,7 @@
|
|||
eval(`(function(){${code}})()`);
|
||||
}
|
||||
function demoFDM() {
|
||||
engine
|
||||
new Engine()
|
||||
.setListener(display_message)
|
||||
.load("/obj/cube.stl")
|
||||
.then(eng => eng.setProcess({
|
||||
|
|
@ -144,7 +143,7 @@
|
|||
}
|
||||
|
||||
function demoCAM(){
|
||||
engine
|
||||
new Engine()
|
||||
.setListener(display_message)
|
||||
.load("/obj/cube.stl")
|
||||
// should to call widget.setTopZ here ideally
|
||||
|
|
@ -244,7 +243,7 @@
|
|||
}
|
||||
|
||||
function demoLASER(){
|
||||
engine
|
||||
new Engine()
|
||||
.setListener(display_message)
|
||||
.load("/obj/cube.stl")
|
||||
// should to call widget.setTopZ here ideally
|
||||
|
|
|
|||
Loading…
Reference in a new issue