123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- function OnInitializeData(reload, preview) {
-
- PUI(()=>{
-
-
-
-
- });
- }
- function OnReady(reload, preview) {
-
- PUI(()=>{
-
-
-
- });
- }
- function OnCloseForm() {
- }
- function OnException(err) {
-
- }
- function OnReturn(){
- unit.form.mainfrm.menu(0);
- }
- function OnSend(){
- var id = parent.setTimeout(() => {
- unit.form.mainfrm.OnSend('0');
- }, 100);
- unit.form.mainfrm.OnSend('mark ' + ui.pb_name.value + ' ' + ui.pb_R.value + ' ' + ui.pb_G.value + ' ' + ui.pb_B.value + ' ' + ui.pb_size.value + ' ' + ui.pb_x.value + ' ' + ui.pb_y.value + ' ' + ui.pb_z.value);
- }
- function OnParentDockerMessage(type, para) {
- }
- function onDragFile(filepath) {
- }
- function PUI(cb) {
- if(pui){cb();}
- }
- CW_DeclareVariable("pb_x",
- val => {
- ui.pb_x.value = val;
- }, () => {});
-
- CW_DeclareVariable("pb_y",
- val => {
- ui.pb_y.value = val;
- }, () => {});
- CW_DeclareVariable("pb_z",
- val => {
- ui.pb_z.value = val;
- }, () => {});
- function BLOCK_EVENT(cb) {
- ui.block_event = true;
-
- cb();
-
- ui.block_event = false;
- }
- function CW_DeclareVariable(name, setter, getter) {
- if(typeof(__DeclareVariable) === 'function') {
- __DeclareVariable(name, setter, getter);
- }
- }
- function CW_DeclareOuterVariable(name) {
- if(typeof(__DeclareOuterVariable) === 'function') {
- __DeclareOuterVariable(name);
- }
- }
|