- Modular block files: split into blocks-algo, blocks-data, blocks-proc - New modules: sections.js (labelled canvas areas), proc-browser.js (procedure tree modal), lib-loader.js (lazy library loading), templates.js (project templates), errno-data.js (errno table) - Test infrastructure: browser test suite (28 tests) and Node pure-function tests (75 tests) - Warning system: unified .block-warn for disconnected inputs, unconnected error hooks, and zero-exit-in-error-path - Error path highlighting: red flow paths and block borders for error-only subgraphs - Input hooks: hidden by default, shown during linking; outputs always at bottom - Block editor modal: pencil icon, colour picker for accent, compact field labels - Doc generation: standalone node script extracts JSDoc -> docs/API.md (124 declarations) - Persistence: save/restore sections, errno selection, block colours - Fixes: _segmentsIntersect bug, WCEnd crash from closest(this), drawpath guard on detached elements
89 lines
2.3 KiB
JSON
89 lines
2.3 KiB
JSON
{
|
|
"procedures": [
|
|
{
|
|
"name": "sin",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the sine of an angle in radians."
|
|
},
|
|
{
|
|
"name": "cos",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the cosine of an angle in radians."
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the tangent of an angle in radians."
|
|
},
|
|
{
|
|
"name": "sqrt",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the square root of a number."
|
|
},
|
|
{
|
|
"name": "pow",
|
|
"inputs": [["x","float"],["y","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns a number raised to a power."
|
|
},
|
|
{
|
|
"name": "exp",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns e raised to the given power."
|
|
},
|
|
{
|
|
"name": "log",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the natural logarithm of a number."
|
|
},
|
|
{
|
|
"name": "log10",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the base-10 logarithm of a number."
|
|
},
|
|
{
|
|
"name": "fabs",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the absolute value of a floating-point number."
|
|
},
|
|
{
|
|
"name": "floor",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Rounds a number down to the nearest integer."
|
|
},
|
|
{
|
|
"name": "ceil",
|
|
"inputs": [["x","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Rounds a number up to the nearest integer."
|
|
},
|
|
{
|
|
"name": "fmod",
|
|
"inputs": [["x","float"],["y","float"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the floating-point remainder of division."
|
|
}
|
|
]
|
|
}
|