Skip to content

Commit 8f06d1b

Browse files
committed
core stuff
1 parent 6b8e792 commit 8f06d1b

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

src/ops/base/Ops.Boolean.TriggerOnChangeBoolean_v2/Ops.Boolean.TriggerOnChangeBoolean_v2.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ const
33
outTrue = op.outTrigger("True"),
44
outFalse = op.outTrigger("False");
55

6-
inBool.onChange = function ()
6+
inBool.onChange = update;
7+
8+
function update()
79
{
810
if (inBool.get()) outTrue.trigger();
911
else outFalse.trigger();
10-
};
12+
}
1113

1214
op.init = () =>
1315
{
14-
if (inBool.isLinked())next.trigger();
16+
if (inBool.isLinked())update();
1517
};

src/ops/base/Ops.Gl.ArrayToTexture_v2/Ops.Gl.ArrayToTexture_v2.js

-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ function update()
146146
pixels = flipped;
147147
}
148148

149-
console.log(pixels);
150149
tex.initFromData(pixels, w, h, cgl_filter, cgl_wrap);
151150

152151
outWidth.set(w);

src/ops/base/Ops.Gl.ForceCanvasSize/Ops.Gl.ForceCanvasSize.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ inTrigger.onTriggered = function ()
133133
let h = inHeight.get();
134134

135135
let clientRect = cgl.canvas.parentNode.getBoundingClientRect();
136+
137+
// console.log("clientrect",clientRect);
138+
136139
if (clientRect.height == 0)
137140
{
138141
cgl.canvas.parentNode.style.height = "100%";
@@ -221,11 +224,12 @@ inTrigger.onTriggered = function ()
221224
cgl.canvas.style.transform = "scale(1)";
222225
}
223226

224-
if (cgl.canvas.width / cgl.pixelDensity != w || cgl.canvas.height / cgl.pixelDensity != h)
227+
if (cgl.canvasWidth != w || cgl.canvasHeight != h)
225228
{
226229
outWidth.set(w);
227230
outHeight.set(h);
228231
cgl.setSize(w, h);
232+
console.log("res ckhange", cgl.canvas.width, w);
229233
}
230234
// else
231235
next.trigger();

src/ops/base/Ops.Gl.ForceCanvasSize/Ops.Gl.ForceCanvasSize.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,6 @@
137137
}
138138
]
139139
},
140-
"exampleProjectId": "f9UbD-"
140+
"exampleProjectId": "f9UbD-",
141+
"license": "MIT"
141142
}
Loading

src/ops/base/Ops.Html.CSS.ElementAddClass/Ops.Html.CSS.ElementAddClass.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ function update()
99
let ele = inEle.get();
1010
if (!ele || !inClassName.get()) return;
1111
ele.classList.add(inClassName.get());
12-
outClassList.set([]);
13-
if (ele) outClassList.setRef(Array.from(ele.classList));
12+
outClassList.setRef(Array.from(ele.classList));
1413
}

src/ops/base/Ops.Html.CSS.ElementRemoveClass/Ops.Html.CSS.ElementRemoveClass.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ function update()
99
let ele = inEle.get();
1010
if (!ele || !inClassName.get()) return;
1111
ele.classList.remove(inClassName.get());
12-
outClassList.set([]);
13-
if (ele) outClassList.setRef(Array.from(ele.classList));
12+
outClassList.setRef(Array.from(ele.classList));
1413
}

src/ops/base/Ops.Html.CompareImages_v2/Ops.Html.CompareImages_v2.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function compare()
2424
{
2525
if (!finished)
2626
{
27-
console.log("waiting");
27+
// console.log("waiting");
2828
clearTimeout(to);
2929
canceled = true;
3030
to = setTimeout(compare, 50);
@@ -40,7 +40,6 @@ function compare()
4040

4141
loadingId = op.patch.loading.start(op.name, CABLES.uuid(), op);
4242
canceled = false;
43-
// console.log("inCanv1.get()", inCanv1.get());
4443
try
4544
{
4645
resemble(inCanv2.get())
@@ -50,7 +49,6 @@ function compare()
5049
{
5150
if (canceled)
5251
{
53-
console.log("cancel");
5452
finished = true;
5553
compare();
5654
return;
@@ -62,9 +60,7 @@ function compare()
6260
loadingId = op.patch.loading.finished(loadingId);
6361
outFinished.trigger();
6462

65-
console.log("", performance.now() - startTime);
6663
finished = true;
67-
console.log("finishe");
6864
clearTimeout(to);
6965
});
7066
}

src/ops/base/Ops.Html.HyperLink_v2/Ops.Html.HyperLink_v2.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@
3232
"type": 5,
3333
"name": "Specs"
3434
}
35-
],
36-
"portsOut": []
35+
]
3736
},
3837
"summary": "Open another website",
39-
"issues": "",
40-
4138
"docs": {
4239
"ports": []
4340
},
44-
"youtubeids": [],
45-
"exampleProjectId": "ilts7O"
41+
"exampleProjectId": "ilts7O",
42+
"license": "MIT"
4643
}
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
For target name and spec options see: https://www.w3schools.com/jsref/met_win_open.asp
1+
For target name and spec options see: https://www.w3schools.com/jsref/met_win_open.asp
2+
3+
This operator opens a window/tab using an URL. This can be blocked by popup blockers/browser security measures.
4+
Try using a html anchor element like <a href="url">link</a>

0 commit comments

Comments
 (0)