Skip to content

Commit d8229ff

Browse files
committed
dev docs
1 parent a7553b2 commit d8229ff

14 files changed

Lines changed: 17 additions & 378 deletions

File tree

src/ops/base/Ops.Boolean.AndMultiPort_v2/Ops.Boolean.AndMultiPort_v2.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
"type": "new op",
1010
"author": "pandur",
1111
"date": 1762781802774
12-
},
13-
{
14-
"message": "Patch.Pmrnfc1.AndMultiPort renamed to Ops.Boolean.AndMultiPort",
15-
"type": "rename",
16-
"author": "pandur",
17-
"date": 1762782584482
1812
}
1913
],
2014
"layout": {

src/ops/base/Ops.Cables.UploadScreenshot/Ops.Cables.UploadScreenshot.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@
2929
"subType": "number"
3030
}
3131
]
32+
},
33+
"summary": "Upload an image as screentshot in cables",
34+
"docs": {
35+
"ports": []
3236
}
3337
}

src/ops/base/Ops.Color.Gradient/Ops.Color.Gradient.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,12 @@
2222
}
2323
]
2424
},
25-
"summary": "texture containing a colour gradient that can be altered with an editor",
25+
"summary": "gradient editor,outputs an objects with gradient information",
2626
"docs": {
2727
"ports": [
2828
{
2929
"name": "Gradient",
3030
"text": "Click this to open the editor for the gradient. See docs for a more in depth explanation."
31-
},
32-
{
33-
"name": "Smoothstep",
34-
"text": "Enable smoothstep on changes in gradients."
35-
},
36-
{
37-
"name": "Size",
38-
"text": "The resolution of the gradient in pixels. 256 is a good default value"
39-
},
40-
{
41-
"name": "Gradient Array",
42-
"text": "An array of Object containing pos,r,g,b,a information (see documentation for format)"
4331
}
4432
]
4533
},
Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1 @@
1-
This op allows the creation of custom gradients. Click the edit button to get the UI to edit gradient. More colours can be added to the gradient.
2-
3-
Click on the small squares at the bottom and then the larger square to change the colour of that gradient point.
4-
5-
Drag the small squares around to change the relationship between the different colours.
6-
Click once in the thin line at the bottom to add extra squares/gradient points.
7-
8-
This will produce a datastructure like this, which can also go into the 'Gradient Array'-Port:
9-
```
10-
[
11-
{
12-
"pos": 0,
13-
"r": 0,
14-
"g": 0.19215686274509805,
15-
"b": 0.6705882352941176,
16-
"a": 1
17-
},
18-
{
19-
"pos": 0.085,
20-
"r": 0.00784313725490196,
21-
"g": 0.20392156862745098,
22-
"b": 0.6941176470588235,
23-
"a": 0.76
24-
},
25-
...
26-
{
27-
"pos": 1,
28-
"r": 0.9882352941176471,
29-
"g": 0.3215686274509804,
30-
"b": 1,
31-
"a": 0
32-
}
33-
]
34-
```
1+
This op allows the creation of custom gradients. Click the edit button to get the UI to edit gradient. More colours can be added to the gradient.

src/ops/base/Ops.HTML.ElementAsHtmlString/Ops.HTML.ElementAsHtmlString.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
"type": "new op",
1010
"author": "pandur",
1111
"date": 1763997616751
12-
},
13-
{
14-
"message": "Patch.P2ZWIt3.InnerHtmlGet renamed to Ops.HTML.ElementAsHtmlString",
15-
"type": "rename",
16-
"author": "pandur",
17-
"date": 1763998310683
1812
}
1913
],
2014
"layout": {
@@ -31,5 +25,9 @@
3125
"name": "HTML String"
3226
}
3327
]
28+
},
29+
"summary": "Serialize HTML/SVG elements to a string",
30+
"docs": {
31+
"ports": []
3432
}
3533
}

src/ops/base/Ops.HTML.ElementGradientBg/Ops.HTML.ElementGradientBg.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,9 @@
4545
"objType": "element"
4646
}
4747
]
48+
},
49+
"summary": "Use a cables gradient as HTML element background",
50+
"docs": {
51+
"ports": []
4852
}
4953
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
converts a cables gradient object to a css gradient

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function rebuild()
6363

6464
for (let i = 0; i < ports.length; i++)
6565
{
66-
if (ports[i].links.length > 1)console.log("!!!!!!!!!! element childs to many", op.id);
66+
// if (ports[i].links.length > 1)console.log("!!!!!!!!!! element childs to many", op.id);
6767
const ele = ports[i].get();
6868
oldEles.push(ele);
6969
if (ele)

src/ops/base/Ops.Html.Event.ElementEventListener_v2/Ops.Html.Event.ElementEventListener_v2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function update()
3131
lastElement = element;
3232
lastEventName = eventName;
3333
lastUseCapture = useCapture;
34+
op.setUiAttrib({ "extendTitle": eventNamePort.get() });
3435
}
3536

3637
function removeListener()
4.67 KB
Loading

0 commit comments

Comments
 (0)