import {nodes as htmlNodes} from "./json/html.js"; import {nodes as flowNodes} from "./json/flow.js"; import {nodes as debugNodes} from "./json/debug.js"; import {nodes as nodysseusNodes} from "./json/nodysseus.js"; const generic = { "id": "generic", "nodes": { ...Object.fromEntries(htmlNodes.map(node => [node.id, node])), ...Object.fromEntries(flowNodes.map(node => [node.id, node])), ...Object.fromEntries(debugNodes.map(node => [node.id, node])), ...Object.fromEntries(nodysseusNodes.map(node => [node.id, node])), "@templates.simple": { "id": "@templates.simple", "out": "out", "category": "templates", "edges": { "qgbinm2": { "from": "qgbinm2", "to": "8dy573e", "as": "children" }, "8dy573e": { "from": "8dy573e", "to": "out", "as": "display" }, "output_val": { "from": "output_val", "to": "out", "as": "value" }, "args": { "from": "args", "to": "out", "as": "args" } }, "nodes": { "args": { "id": "args", "ref": "@data.object" }, "qgbinm2": { "id": "qgbinm2", "value": "Hello, world!", "ref": "@html.html_text" }, "8dy573e": { "id": "8dy573e", "ref": "@html.html_element" }, "output_val": { "id": "output_val", "value": "some output" }, "out": { "id": "out", "ref": "return", "name": "@templates.simple" } } }, "@debug.log": { "id": "@debug.log", "description": "Prints value to console.log", "category": "debug", "out": "out", "nodes": { "in": { "id": "in" }, "value": { "id": "value", "ref": "arg", "value": "value" }, "graph_value": { "id": "graph_value", "ref": "arg", "value": "__graph_value" }, "out": { "id": "out", "args": [], "ref": "@js.script", "value": "graph_value ? console.log(graph_value, value) : console.log(value); return value", "name": "@debug.log" } }, "edges": [ { "from": "in", "to": "out", "as": "input", "type": "ref" }, { "from": "graph_value", "to": "out", "as": "graph_value" }, { "from": "value", "to": "out", "as": "value" } ] }, "@math.math": { "id": "@math.math", "category": "math", "description": "JS Math functions.", "ref": "extern", "value": "extern.math" }, "@debug.expect": { "id": "@debug.expect", "category": "debug", "ref": "extern", "value": "extern.expect" }, "@network.fetch": { "id": "@network.fetch", "category": "network", "name": "fetch", "description": "Uses the Fetch API to get data.", "ref": "extern", "value": "extern.fetch" }, "@js.call": { "id": "@js.call", "name": "call", "category": "js", "description": "Calls `self.fn` with `args`. If `self is not found, uses the node's context.", "ref": "extern", "value": "extern.call" }, "@nodysseus.nodeDisplay": { "id": "@nodysseus.nodeDisplay", "category": "nodysseus", "description": "Displys the \"display\" output of a node in the current graph", "ref": "extern", "value": "extern.nodeDisplay" }, "@data.stringify": { "id": "@data.stringify", "name": "stringify", "category": "data", "description": "JSON.stringify the `value` argument", "ref": "extern", "value": "extern.stringify" }, "@data.parse": { "id": "@data.parse", "name": "parse", "category": "data", "description": "JSON.parse the `value` argument", "ref": "extern", "value": "extern.parse" }, "@math.add": { "id": "@math.add", "ref": "extern", "category": "math", "value": "extern.add", "description": "The javascript + operator" }, "@math.mult": { "id": "@math.mult", "ref": "extern", "value": "extern.mult", "category": "math", "description": "The javascript * operator" }, "@math.divide": { "id": "@math.divide", "ref": "extern", "value": "extern.divide", "category": "math", "description": "The javascript / operator" }, "@math.negate": { "id": "@math.negate", "ref": "extern", "value": "extern.negate", "category": "math", "description": "The javascript - operator" }, "@math.and": { "id": "@math.and", "ref": "extern", "value": "extern.and", "category": "math", "description": "The javascript && operator" }, "@math.or": { "id": "@math.and", "ref": "extern", "value": "extern.or", "category": "math", "description": "The javascript || operator" }, "@math.convertAngle": { "id": "@math.and", "ref": "extern", "value": "extern.convertAngle", "category": "math", "description": "Convert either degrees or radians to the other one." }, "@math.random": { "id": "@math.random", "category": "math", "description": "Returns a seeded random function", "ref": "extern", "value": "extern.random" }, "@js.typeof": { "id": "@js.typeof", "ref": "extern", "category": "js", "value": "extern.typeofvalue", "description": "javascript typeof operator" }, "@js.new": { "id": "@js.new", "ref": "extern", "category": "js", "value": "extern.construct", "description": "javascript constructor" }, "@js.addEventListeners": { "id": "@js.addEventListeners", "ref": "extern", "category": "js", "value": "extern.addEventListeners", "description": "add js event listeners to a target" }, "@data.object": { "id": "@data.object", "ref": "extern", "category": "js", "value": "extern.data", "description": "create an object from the inputs" }, "@graph.ancestors": { "id": "@graph.ancestors", "out": "out", "category": "graph", "description": "Gets the ancestors of the `node` in `graph`", "nodes": { "in": { "id": "in" }, "graph": { "id": "graph", "ref": "arg", "value": "graph" }, "node": { "id": "node", "ref": "arg", "value": "node" }, "out": { "id": "out", "ref": "@js.script", "value": "const parents = (id) => (graph ?? _graph).edges.filter(e => e.to === id).flatMap(e => parents(e.from)).concat([id]); return parents(node ?? graph.out ?? 'out')", "name": "@graph.ancestors" } }, "edges": [ { "from": "in", "to": "out", "as": "_", "type": "ref" }, { "from": "graph", "to": "out", "as": "graph" }, { "from": "node", "to": "out", "as": "node" } ] }, "@data.append": { "id": "@data.append", "category": "data", "description": "Appends `item` to `array`. `item` can be a single item or an array.", "nodes": { "in": { "id": "in" }, "array": { "id": "array", "ref": "arg", "value": "array" }, "item": { "id": "item", "ref": "arg", "value": "item" }, "out": { "id": "out", "ref": "@js.script", "value": "return array.concat(Array.isArray(item) ? item : [item])", "name": "@data.append" } }, "edges": [ { "from": "in", "to": "out", "as": "_", "type": "ref" }, { "from": "array", "to": "out", "as": "array" }, { "from": "item", "to": "out", "as": "item" } ] }, "@data.concat": { "id": "@data.concat", "category": "data", "description": "Concats `items` to `array`.", "nodes": { "array": { "id": "array", "ref": "arg", "value": "array" }, "items": { "id": "items", "ref": "arg", "value": "items" }, "out": { "id": "out", "args": [ "item", "array" ], "ref": "@js.script", "value": "return (array ?? []).concat(items ?? [])", "name": "@data.concat" } }, "edges": [ { "from": "array", "to": "out", "as": "array" }, { "from": "items", "to": "out", "as": "items" } ] }, "@flow.default": { "id": "@flow.default", "out": "out", "category": "flow", "description": "Returns `value` if it's defined, if not then returns `otherwise`", "nodes": { "value": { "id": "value", "ref": "arg", "value": "value" }, "is_value_value": { "id": "is_value_value", "ref": "arg", "value": "value" }, "graph_value": { "id": "graph_value", "ref": "arg", "value": "__graph_value" }, "otherwise_is": { "id": "otherwise_is", "ref": "arg", "value": "otherwise" }, "otherwise_if": { "id": "otherwise_if", "ref": "arg", "value": "otherwise" }, "otherwise_value": { "id": "otherwise_value", "ref": "arg", "value": "otherwise" }, "is_otherwise": { "id": "is_otherwise", "ref": "@js.script", "value": "return otherwise !== undefined && otherwise !== null" }, "if_otherwise": { "id": "if_otherwise", "ref": "@flow.if" }, "is_value": { "id": "is_value", "ref": "@js.script", "value": "return value !== undefined" }, "if_value": { "id": "if_value", "ref": "@flow.if" }, "out": { "id": "out", "ref": "return", "name": "@flow.default" } }, "edges": [ { "from": "otherwise_if", "to": "if_otherwise", "as": "true" }, { "from": "otherwise_is", "to": "is_otherwise", "as": "otherwise" }, { "from": "is_otherwise", "to": "if_otherwise", "as": "pred" }, { "from": "graph_value", "to": "if_otherwise", "as": "false" }, { "from": "is_value_value", "to": "is_value", "as": "value" }, { "from": "value", "to": "if_value", "as": "true" }, { "from": "is_value", "to": "if_value", "as": "pred" }, { "from": "otherwise_value", "to": "if_value", "as": "false" }, { "from": "if_value", "to": "out", "as": "value" } ] }, "@flow.switch": { "id": "@flow.switch", "ref": "extern", "value": "extern.switch", "category": "flow", "description": "Returns the value of the input labeled the same as the 'input' input." }, "@data.compare": { "id": "@data.compare", "ref": "extern", "value": "compare", "category": "data", "description": "Returns true if the two inputs are the same" }, "@flow.if": { "id": "@flow.if", "out": "out", "category": "flow", "description": "If `pred` exists in the node's context, return the value from the `true` branch. Otherwise, return the value from the `false` branch.", "nodes": { "pred": { "id": "pred", "ref": "arg", "value": "pred" }, "true": { "id": "true", "ref": "arg", "value": "true" }, "false": { "id": "false", "ref": "arg", "value": "false" }, "predval": { "id": "predval", "ref": "@js.script", "value": "return !!pred ? 'true_val' : 'false_val'" }, "out": { "id": "out", "ref": "extern", "value": "extern.switch", "name": "@flow.if" } }, "edges": [ { "from": "true", "to": "out", "as": "true_val" }, { "from": "false", "to": "out", "as": "false_val" }, { "from": "pred", "to": "predval", "as": "pred" }, { "from": "predval", "to": "out", "as": "input" } ] }, "@html.svg_text": { "id": "@html.svg_text", "category": "html", "description": "Returns a hyperapp `svg` text element with `text` and `props`", "out": "out", "nodes": { "text": { "id": "text", "ref": "arg", "value": "text" }, "props": { "id": "props", "ref": "arg", "value": "props" }, "dom_type": { "id": "dom_type", "value": "text" }, "text_el": { "id": "text_el", "ref": "@html.html_text" }, "children": { "id": "children", "ref": "@js.script", "value": "return [text]" }, "out": { "id": "out", "ref": "@html.html_element", "name": "@html.svg_text" } }, "edges": [ { "from": "dom_type", "to": "out", "as": "dom_type" }, { "from": "text", "to": "text_el", "as": "text" }, { "from": "text_el", "to": "children", "as": "text" }, { "from": "props", "to": "out", "as": "props" }, { "from": "children", "to": "out", "as": "children" } ] }, "return": { "id": "return", "category": "flow", "description": "Creates an inline graph with args, pub/sub, etc. See docs for more detail.", "ref": "extern", "value": "extern.return" }, "@data.fold": { "id": "@data.fold", "category": "data", "ref": "extern", "value": "extern.fold" }, "@flow.runnable": { "id": "@flow.runnable", "category": "flow", "ref": "extern", "value": "extern.runnable", "description": "Creates a 'runnable' object that runs the fn node. The 'parameters' input determines any inputs to the graph like 'event' for javascript event listeners." }, "@flow.graphRunnable": { "id": "@flow.graphRunnable", "category": "flow", "ref": "extern", "value": "extern.graphRunnable", "description": "Creates a 'runnable' object that runs the input graph. The 'parameters' input determines any inputs to the graph like 'event' for javascript event listeners." }, "@flow.ap": { "id": "@flow.ap", "category": "flow", "ref": "extern", "value": "extern.ap", "description": "Applies the runnable to args." }, "@js.script": { "id": "@js.script", "category": "js", "description": "Runs this as a javascript function. `return` is needed at the end of the script to return anything.", "ref": "extern", "value": "extern.script" }, "extern": { "id": "extern", "category": "nodysseus", "description": "Uses a function from the nodysseus extern library directly" }, "@data.array": { "id": "@data.array", "name": "array", "category": "data", "description": "Create an array from all the inputs in alphabetical order", "ref": "extern", "value": "extern.new_array" }, "@js.compileFunction": { "id": "@js.compileFunction", "ref": "extern", "category": "js", "value": "extern.create_fn" }, "@data.merge_objects": { "id": "@data.merge_objects", "category": "data", "description": "Merge the keys of two objects, in descending alphabetical order priority (`Object.assign(...inputs)`).", "ref": "extern", "value": "extern.merge_objects" }, "@data.merge_objects_mutable": { "id": "@data.merge_objects_mutable", "category": "data", "description": "Merge the keys of one or more objects into the target object, in descending alphabetical order priority (`Object.assign(...inputs)`).", "ref": "extern", "value": "extern.merge_objects_mutable" }, "@data.get": { "id": "@data.get", "category": "data", "description": "Get the value at the path of object. Accepts a `.` separated path e.g. get(target, 'a.b.c') returns target.a.b.c", "out": "out", "ref": "extern", "value": "extern.get" }, "arg": { "id": "arg", "category": "flow", "description": "Get an input to the graph this is a part of.", "ref": "extern", "value": "extern.arg" }, "@data.set_mutable": { "id": "@data.set_mutable", "description": "Sets `target` value at `path` to `value` and returns the object.", "category": "data", "ref": "extern", "value": "extern.set_mutable", "_out": "out", "_nodes": [ { "id": "path", "ref": "arg", "value": "path" }, { "id": "target", "ref": "arg", "value": "target" }, { "id": "value", "ref": "arg", "value": "value" }, { "id": "out", "ref": "extern", "value": "extern.set_mutable" } ], "_edges": [ { "from": "path", "to": "out", "as": "path" }, { "from": "target", "to": "out", "as": "target" }, { "from": "value", "to": "out", "as": "value" } ] }, "@data.set": { "id": "@data.set", "category": "data", "description": "Returns a new object with the property at `path` (or the node's value) on `target` set to `value`. Accepts a `.` separated path e.g. set(target, 'a.b', 'c') returns {...target, a: {...target.a, b: 'c'}}", "type": "(target: any, value: any, path: string) => any", "ref": "extern", "value": "extern.set" }, "@data.modify": { "id": "@data.modify", "category": "data", "description": "Returns a new object with the property at `path` (or the node's value) on `target` modified with `fn`. Accepts a `.` separated path e.g. set(target, 'a.b', 'c') returns {...target, a: {...target.a, b: 'c'}}", "type": "(target: any, value: any, path: string) => any", "ref": "extern", "value": "extern.modify" }, "@data.delete": { "id": "@data.delete", "category": "data", "description": "Deletes `target` property at `path`", "ref": "extern", "value": "extern.delete" }, "@html.tapbutton": { "id": "@html.tapbutton", "category": "html", "nodes": { "args": { "id": "args", "ref": "extern", "value": "extern.data" }, "8dy573e": { "id": "8dy573e", "ref": "@html.html_element" }, "out": { "id": "out", "name": "@html.tapbutton", "ref": "return" }, "qgbinm2": { "id": "qgbinm2", "value": "button", "ref": "@html.html_element" }, "label": { "id": "label", "ref": "arg", "value": "__graph_value" }, "9fogdzn": { "id": "9fogdzn", "value": "signal", "ref": "@html.html_text" }, "ehximpo": { "id": "ehximpo" }, "4stvov8": { "id": "4stvov8", "ref": "@flow.ap" }, "8ywgts7": { "id": "8ywgts7", "ref": "@memory.state" }, "v089o3o": { "id": "v089o3o", "value": "signal.set", "ref": "arg" }, "k3rjgad": { "id": "k3rjgad" }, "76he898": { "id": "76he898", "value": "true" }, "nhmeamz": { "id": "nhmeamz", "ref": "@flow.ap" }, "7mj35x5": { "id": "7mj35x5" }, "bim5wsv": { "id": "bim5wsv", "value": "signal.set", "ref": "arg" }, "4mha35d": { "id": "4mha35d", "value": "false" }, "hbo5tmq": { "id": "hbo5tmq", "ref": "@data.array" }, "lgx7u5i": { "id": "lgx7u5i", "ref": "@html.html_text" }, "g19y12v": { "id": "g19y12v", "value": "signal.state", "ref": "arg" }, "9vqinsg": { "id": "9vqinsg" }, "i38qweq": { "id": "i38qweq", "value": "none" }, "eemfhib": { "id": "eemfhib", "value": "signal.state", "ref": "arg" }, "n2a984s_arr": { "id": "n2a984s_arr", "ref": "@data.array" }, "n2a984s": { "id": "n2a984s", "ref": "@flow.ap" }, "a14g4yc": { "id": "a14g4yc", "value": "ontap", "ref": "arg" } }, "edges": [ { "from": "8dy573e", "to": "out", "as": "display" }, { "from": "args", "to": "out", "as": "args" }, { "from": "label", "to": "9fogdzn", "as": "text" }, { "from": "9fogdzn", "to": "qgbinm2", "as": "children" }, { "from": "ehximpo", "to": "qgbinm2", "as": "props" }, { "from": "8ywgts7", "to": "args", "as": "signal" }, { "from": "v089o3o", "to": "4stvov8", "as": "fn" }, { "from": "k3rjgad", "to": "4stvov8", "as": "args" }, { "from": "76he898", "to": "k3rjgad", "as": "value" }, { "from": "4stvov8", "to": "ehximpo", "as": "onpointerdown" }, { "from": "bim5wsv", "to": "nhmeamz", "as": "fn" }, { "from": "7mj35x5", "to": "nhmeamz", "as": "args" }, { "from": "4mha35d", "to": "7mj35x5", "as": "value" }, { "from": "hbo5tmq", "to": "8dy573e", "as": "children" }, { "from": "qgbinm2", "to": "hbo5tmq", "as": "arg1" }, { "from": "lgx7u5i", "to": "_hbo5tmq", "as": "arg2" }, { "from": "g19y12v", "to": "lgx7u5i", "as": "text" }, { "from": "9vqinsg", "to": "ehximpo", "as": "style" }, { "from": "i38qweq", "to": "9vqinsg", "as": "userSelect" }, { "from": "eemfhib", "to": "8dy573e", "as": "value" }, { "from": "n2a984s", "to": "ehximpo", "as": "onpointerup" }, { "from": "nhmeamz", "to": "n2a984s_arr", "as": "arg0" }, { "from": "a14g4yc", "to": "n2a984s_arr", "as": "arg1" }, { "from": "n2a984s_arr", "to": "n2a984s", "as": "fn" } ], "out": "out" }, "@memory.graphchangecache": { "category": "memory", "edges": { "ap_cache_value": { "from": "ap_cache_value", "to": "ap_cache_args", "as": "value" }, "ap_cache_args": { "from": "ap_cache_args", "to": "cache", "as": "args" }, "ap_cache_fn": { "from": "ap_cache_fn", "to": "cache", "as": "fn" }, "pred_cachevalue_state": { "from": "pred_cachevalue_state", "to": "pred_cache_state", "as": "cachevaluestate" }, "recache": { "from": "recache", "to": "pred_cache_state", "as": "recache" }, "cachevalue_state": { "from": "cachevalue_state", "to": "if_cache_state", "as": "false" }, "cache": { "from": "cache", "to": "kqnga6d", "as": "arg0" }, "pred_cache_state": { "from": "pred_cache_state", "to": "if_cache_state", "as": "pred" }, "if_cache_state": { "from": "if_cache_state", "to": "out", "as": "value" }, "cache_state": { "from": "cache_state", "to": "cache_return_args", "as": "_cachevalue" }, "cache_return_args": { "from": "cache_return_args", "to": "out", "as": "args" }, "recache_button_fn_value": { "from": "recache_button_fn_value", "to": "recache_button_fn_args", "as": "value" }, "recache_button_fn_args": { "from": "recache_button_fn_args", "to": "recache_button_ap", "as": "args" }, "recache_button_fn": { "from": "recache_button_fn", "to": "recache_button_ap", "as": "fn" }, "recache_button_ap": { "from": "recache_button_ap", "to": "recache_button", "as": "ontap" }, "recache_button": { "from": "recache_button", "to": "out", "as": "display" }, "fy9ee3e": { "from": "fy9ee3e", "to": "out", "as": "subscribe" }, "h56r87n": { "from": "h56r87n", "to": "pred_cache_state", "as": "_reset" }, "xbhq0f0": { "from": "xbhq0f0", "to": "cache", "as": "run" }, "kqnga6d": { "from": "kqnga6d", "to": "9w2cqoc", "as": "target" }, "9w2cqoc": { "from": "9w2cqoc", "to": "if_cache_state", "as": "true" }, "2nhroiv": { "from": "2nhroiv", "to": "tebglqx", "as": "parameters" }, "dtfbfdm": { "from": "dtfbfdm", "to": "2nhroiv", "as": "dirtyNodes" }, "bxacisq": { "from": "bxacisq", "to": "zan0upq", "as": "dirtyNodes" }, "tebglqx": { "from": "tebglqx", "to": "fy9ee3e", "as": "graphchange" }, "g1lb9hq": { "from": "g1lb9hq", "to": "zan0upq", "as": "state" }, "zan0upq": { "from": "zan0upq", "to": "ockphl3", "as": "pred" }, "jonwhso": { "from": "jonwhso", "to": "zan0upq", "as": "graphid" }, "ockphl3": { "from": "ockphl3", "to": "tebglqx", "as": "fn" }, "ehb5iz5": { "from": "ehb5iz5", "to": "ockphl3", "as": "true" }, "4w9hxjv": { "from": "4w9hxjv", "to": "ehb5iz5", "as": "fn" }, "fr8wvzt": { "from": "fr8wvzt", "to": "ehb5iz5", "as": "run" }, "affc4bs": { "from": "affc4bs", "to": "ehb5iz5", "as": "args" }, "y4c3klu": { "from": "y4c3klu", "to": "affc4bs", "as": "value" }, "sc3gf99": { "from": "sc3gf99", "to": "2nhroiv", "as": "data" }, "juhzde2": { "from": "juhzde2", "to": "2nhroiv", "as": "graph" } }, "id": "@memory.graphchangecache", "nodes": { "value": { "id": "value", "ref": "arg", "value": "value" }, "graphid": { "id": "graphid", "ref": "arg", "value": "__graphid" }, "recache": { "id": "recache", "ref": "arg", "value": "recache" }, "cachevalue_state": { "id": "cachevalue_state", "value": "_cachevalue.state", "ref": "arg" }, "pred_cachevalue_state": { "id": "pred_cachevalue_state", "value": "_cachevalue.state", "ref": "arg" }, "pred_cache_state": { "id": "pred_cache_state", "value": "const docache = recache === undefined ? (cachevaluestate === undefined || cachevaluestate === null) : (recache !== false && (typeof recache !== 'object' || Object.keys(recache).length > 0))\n\nreturn docache;", "ref": "@js.script" }, "ap_cache_value": { "id": "ap_cache_value", "value": "value: default", "ref": "arg" }, "ap_cache_args": { "id": "ap_cache_args", "ref": "extern", "value": "extern.data" }, "ap_cache_fn": { "id": "ap_cache_fn", "value": "_cachevalue.set", "ref": "arg" }, "cache": { "id": "cache", "ref": "@flow.ap" }, "if_cache_state": { "id": "if_cache_state", "ref": "@flow.if" }, "cache_state": { "id": "cache_state", "ref": "@memory.state" }, "cache_return_args": { "id": "cache_return_args", "ref": "extern", "value": "extern.data" }, "recache_button_fn": { "id": "recache_button_fn", "value": "_cachevalue.set", "ref": "arg" }, "recache_button_fn_args": { "id": "recache_button_fn_args" }, "recache_button_fn_value": { "id": "recache_button_fn_value" }, "recache_button_ap": { "id": "recache_button_ap", "ref": "@flow.ap" }, "recache_button": { "id": "recache_button", "value": "reset", "ref": "@html.tapbutton" }, "out": { "id": "out", "name": "@memory.graphchangecache", "ref": "return" }, "fy9ee3e": { "id": "fy9ee3e", "ref": "extern", "value": "extern.data" }, "h56r87n": { "id": "h56r87n", "value": "_reset.state", "ref": "arg" }, "xbhq0f0": { "id": "xbhq0f0", "value": "true" }, "kqnga6d": { "id": "kqnga6d", "ref": "@data.array" }, "9w2cqoc": { "id": "9w2cqoc", "value": "0", "ref": "@data.get" }, "jmvzfm1": { "id": "jmvzfm1" }, "99ld3d7": { "id": "99ld3d7" }, "tebglqx": { "id": "tebglqx", "ref": "@flow.runnable" }, "2nhroiv": { "id": "2nhroiv" }, "dtfbfdm": { "id": "dtfbfdm" }, "bxacisq": { "id": "bxacisq", "value": "dirtyNodes", "ref": "arg" }, "zan0upq": { "id": "zan0upq", "value": "const ret = dirtyNodes && !dirtyNodes.every(n => !graphid.includes(n));\nreturn ret || state === undefined;", "ref": "@js.script" }, "jonwhso": { "id": "jonwhso", "value": "__graphid", "ref": "arg" }, "ockphl3": { "id": "ockphl3", "ref": "@flow.if" }, "ehb5iz5": { "id": "ehb5iz5", "ref": "@flow.ap" }, "4w9hxjv": { "id": "4w9hxjv", "value": "_cachevalue.set", "ref": "arg" }, "fr8wvzt": { "id": "fr8wvzt", "value": "true" }, "affc4bs": { "id": "affc4bs" }, "y4c3klu": { "id": "y4c3klu" }, "sc3gf99": { "id": "sc3gf99" }, "juhzde2": { "id": "juhzde2" }, "g7fudn7": { "id": "g7fudn7" }, "z5jrs71": { "id": "z5jrs71" }, "crkuagp": { "id": "crkuagp" }, "g1lb9hq": { "id": "g1lb9hq", "value": "_cachevalue.state", "ref": "arg" } }, "out": "out", }, "@memory.cache": { "id": "@memory.cache", "out": "out", "ref": "extern", "value": "extern.cache", "_nodes": { "value": { "id": "value", "ref": "arg", "value": "value" }, "graphid": { "id": "graphid", "ref": "arg", "value": "__graphid" }, "recache": { "id": "recache", "ref": "arg", "value": "recache" }, "cachevalue_state": { "id": "cachevalue_state", "value": "_cachevalue.state", "ref": "arg" }, "pred_cachevalue_state": { "id": "pred_cachevalue_state", "value": "_cachevalue.state", "ref": "arg" }, "pred_cachevalue": { "id": "pred_cachevalue", "value": "_cachevalue", "ref": "arg" }, "pred_cache_state": { "id": "pred_cache_state", "value": "const docache = recache === true || cachevaluestate === undefined || cachevaluestate === null;\n\nreturn docache;", "ref": "@js.script" }, "ap_cache_value": { "id": "ap_cache_value", "ref": "arg", "value": "value: default" }, "ap_cache_args": { "id": "ap_cache_args", "ref": "extern", "value": "extern.data" }, "ap_cache_run": { "id": "ap_cache_run", "value": "true" }, "ap_cache_fn": { "id": "ap_cache_fn", "value": "_cachevalue.set", "ref": "arg" }, "cache": { "id": "cache", "ref": "@flow.ap" }, "if_cache_state": { "id": "if_cache_state", "ref": "@flow.if" }, "cache_state": { "id": "cache_state", "ref": "@memory.state" }, "cache_return_args": { "id": "cache_return_args", "ref": "extern", "value": "extern.data" }, "recache_button_fn": { "id": "recache_button_fn", "value": "_cachevalue.set", "ref": "arg" }, "recache_button_fn_args": { "id": "recache_button_fn_args" }, "recache_button_fn_value": { "id": "recache_button_fn_value", "value": "undefined" }, "recache_button_ap": { "id": "recache_button_ap", "ref": "@flow.ap" }, "recache_button": { "id": "recache_button", "value": "recache", "ref": "@html.tapbutton" }, "out": { "id": "out", "ref": "return", "name": "@memory.cache" }, "jb9ua5s": { "id": "jb9ua5s", "ref": "@memory.reference" } }, "_edges": { "ap_cache_value": { "from": "ap_cache_value", "to": "ap_cache_args", "as": "value" }, "ap_cache_args": { "from": "ap_cache_args", "to": "cache", "as": "args" }, "ap_cache_run": { "from": "ap_cache_run", "to": "cache", "as": "run" }, "ap_cache_fn": { "from": "ap_cache_fn", "to": "cache", "as": "fn" }, "pred_cachevalue_state": { "from": "pred_cachevalue_state", "to": "pred_cache_state", "as": "cachevaluestate" }, "recache": { "from": "recache", "to": "pred_cache_state", "as": "recache" }, "cachevalue_state": { "from": "cachevalue_state", "to": "if_cache_state", "as": "false" }, "cache": { "from": "cache", "to": "if_cache_state", "as": "true" }, "pred_cachevalue": { "from": "pred_cachevalue", "to": "pred_cache_state", "as": "cachevalue" }, "pred_cache_state": { "from": "pred_cache_state", "to": "if_cache_state", "as": "pred" }, "if_cache_state": { "from": "if_cache_state", "to": "out", "as": "value" }, "cache_state": { "from": "cache_state", "to": "cache_return_args", "as": "_cachevalue" }, "cache_return_args": { "from": "cache_return_args", "to": "out", "as": "args" }, "recache_button_fn_value": { "from": "recache_button_fn_value", "to": "recache_button_fn_args", "as": "value" }, "recache_button_fn_args": { "from": "recache_button_fn_args", "to": "recache_button_ap", "as": "args" }, "recache_button_fn": { "from": "recache_button_fn", "to": "recache_button_ap", "as": "fn" }, "recache_button_ap": { "from": "recache_button_ap", "to": "recache_button", "as": "ontap" }, "recache_button": { "from": "recache_button", "to": "out", "as": "display" } }, "category": "memory" }, "@data.isunchanged": { "id": "@data.isunchanged", "nodes": { "in": { "id": "in" }, "eq_fn_value": { "id": "eq_fn_value", "ref": "arg", "value": "value" }, "eq_fn_if": { "id": "eq_fn_if", "ref": "arg", "value": "eq_fn" }, "fn": { "id": "fn", "ref": "arg", "value": "fn" }, "cached": { "id": "cached", "ref": "arg", "value": "cached", "type": "internal" }, "eq_default": { "id": "eq_default", "ref": "eq" }, "eq_runnable": { "id": "eq_runnable", "ref": "@flow.runnable" }, "fn_runnable": { "id": "fn_runnable", "ref": "@flow.default" }, "eq_fn_runnable": { "id": "eq_fn_runnable", "ref": "@js.script", "value": "return {...fn, args: {...(fn.args ?? {}), a, b}}" }, "eq_fn": { "id": "eq_fn", "ref": "run" }, "eq_fn_return_args": { "id": "eq_fn_return_args" }, "if_eq_fn": { "id": "if_eq_fn", "ref": "@flow.if" }, "out": { "id": "out", "ref": "return", "name": "@data.isunchanged" }, "yp2q57b": { "id": "yp2q57b" }, "tpe5t4z": { "id": "tpe5t4z", "ref": "@memory.reference" }, "cy1tm8s": { "id": "cy1tm8s", "value": "const iseq = saved.value !== value;\n\nif(!iseq) {\n saved.set.fn(value);\n}\n\nreturn iseq;", "ref": "@js.script" }, "khdzxds": { "id": "khdzxds", "value": "_saved", "ref": "arg" }, "lv2gcpk": { "id": "lv2gcpk", "value": "value", "ref": "arg" } }, "edges": { "eq_default": { "from": "eq_default", "to": "eq_runnable", "as": "fn" }, "eq_runnable": { "from": "eq_runnable", "to": "fn_runnable", "as": "otherwise" }, "fn": { "from": "fn", "to": "fn_runnable", "as": "value" }, "fn_runnable": { "from": "fn_runnable", "to": "eq_fn_runnable", "as": "fn" }, "eq_fn_value": { "from": "eq_fn_value", "to": "eq_fn_runnable", "as": "a" }, "cached": { "from": "cached", "to": "eq_fn_runnable", "as": "b" }, "eq_fn_runnable": { "from": "eq_fn_runnable", "to": "eq_fn", "as": "runnable" }, "eq_fn_if": { "from": "eq_fn_if", "to": "if_eq_fn", "as": "pred" }, "eq_fn": { "from": "eq_fn", "to": "eq_fn_return_args", "as": "eq_fn" }, "yp2q57b": { "from": "yp2q57b", "to": "out", "as": "args" }, "tpe5t4z": { "from": "tpe5t4z", "to": "yp2q57b", "as": "_saved" }, "cy1tm8s": { "from": "cy1tm8s", "to": "out", "as": "value" }, "khdzxds": { "from": "khdzxds", "to": "cy1tm8s", "as": "saved" }, "lv2gcpk": { "from": "lv2gcpk", "to": "cy1tm8s", "as": "value" } }, "category": "data" }, "@memory.reference": { "id": "@memory.reference", "ref": "extern", "value": "extern.reference", "category": "memory" }, "@memory.state": { "id": "@memory.reference", "ref": "extern", "value": "extern.reference", "category": "memory", "description": "Deprecated: use @memory.reference" }, "@memory.readReference": { "id": "@memory.readReference", "ref": "extern", "value": "extern.readReference", "category": "memory" }, "@memory.unwrap": { "id": "@memory.unwrap", "ref": "extern", "value": "extern.memoryUnwrap" }, "@event.publish_event": { "id": "@event.publish_event", "out": "out", "nodes": { "output_val": { "id": "output_val", "ref": "@flow.runnable" }, "out": { "id": "out", "ref": "return", "name": "@event.publish_event" }, "i5m8bp1": { "id": "i5m8bp1", "value": "_lib.runtime.publish(name, {data})", "ref": "@js.script" }, "3pnfu3c": { "id": "3pnfu3c", "ref": "@flow.default" }, "smopce2": { "id": "smopce2", "value": "event", "ref": "arg" }, "mz8rw6m": { "id": "mz8rw6m", "value": "__graph_value", "ref": "arg" }, "6sffwk9": { "id": "6sffwk9", "value": "data", "ref": "arg" }, "xiqo1q0": { "id": "xiqo1q0", "ref": "extern", "value": "extern.data" }, "k36to2l": { "id": "k36to2l" } }, "edges": { "output_val": { "from": "output_val", "to": "out", "as": "value" }, "i5m8bp1": { "from": "i5m8bp1", "to": "output_val", "as": "fn" }, "3pnfu3c": { "from": "3pnfu3c", "to": "i5m8bp1", "as": "name" }, "smopce2": { "from": "smopce2", "to": "3pnfu3c", "as": "value" }, "mz8rw6m": { "from": "mz8rw6m", "to": "3pnfu3c", "as": "otherwise" }, "6sffwk9": { "from": "6sffwk9", "to": "i5m8bp1", "as": "data" }, "xiqo1q0": { "from": "xiqo1q0", "to": "output_val", "as": "parameters" }, "k36to2l": { "from": "k36to2l", "to": "xiqo1q0", "as": "data" } } }, "@event.event_publisher_onchange": { "id": "@event.event_publisher_onchange", "category": "event", "description": "Publishes a `name` (or this node's value) event with the data `value` when `value` changes.", "out": "out", "nodes": { "value": { "id": "value", "ref": "arg", "value": "value" }, "value_out": { "id": "value_out", "ref": "arg", "value": "value" }, "value_eq_a": { "id": "value_eq_a", "ref": "arg", "value": "a" }, "value_eq_b": { "id": "value_eq_b", "ref": "arg", "value": "b" }, "value_eq_fn": { "id": "value_eq_fn", "ref": "@js.script", "value": "return _lib.compare(a, b)" }, "value_eq": { "id": "value_eq", "ref": "@flow.runnable" }, "value_unchanged": { "id": "value_unchanged", "ref": "@data.isunchanged" }, "publisher": { "id": "publisher", "ref": "event_publisher" }, "out": { "id": "out", "ref": "@flow.if", "name": "@event.event_publisher_onchange" } }, "edges": [ { "from": "value", "to": "value_eq", "as": "value" }, { "from": "value_eq_a", "to": "value_eq_fn", "as": "a" }, { "from": "value_eq_b", "to": "value_eq_fn", "as": "b" }, { "from": "value_eq_fn", "to": "value_eq", "as": "fn" }, { "from": "value_eq", "to": "value_unchanged", "as": "fn" }, { "from": "value_unchanged", "to": "out", "as": "pred" }, { "from": "publisher", "to": "out", "as": "false" }, { "from": "value_out", "to": "out", "as": "true" } ] }, "@data.reduce": { "id": "@data.reduce", "category": "data", "description": "Aray.reduce the `array` with `fn`. Arguments for `fn` are `previous`, `current`, `index`, `array`, and a unique per nested loop `key`.", "name": "reduce", "in": "m3b5wg3", "out": "tgurdpo", "nodes": { "tgurdpo": { "id": "tgurdpo", "ref": "@js.call", "name": "@data.reduce" }, "key": { "id": "key", "ref": "arg", "value": "key" }, "rielyq8": { "id": "rielyq8", "value": "reduce", "name": "rielyq8" }, "1rre4bx": { "ref": "arg", "id": "1rre4bx", "value": "array", "name": "1rre4bx" }, "6g75abk": { "ref": "arg", "id": "6g75abk", "value": "fn", "name": "6g75abk" }, "w0zzawl": { "id": "w0zzawl", "ref": "@data.array", "name": "w0zzawl" }, "args": { "id": "args", "ref": "arg", "value": "args", "type": "local" }, "initial": { "id": "initial", "ref": "arg", "value": "initial" }, "pdljod1": { "id": "pdljod1", "name": "pdljod1", "ref": "@js.script", "value": "return (previous, current, index, array) => _lib.no.run(fn?.graph ?? _graph, fn?.fn ?? fn, Object.assign({}, args ?? {}, fn.args ?? {}, {previous, current, index, array, key: outer_key ? `${index}_${outer_key}` : `${index}`}), _lib);" }, "2lvs5dj": { "id": "2lvs5dj", "ref": "@js.script", "value": "return _graph", "name": "2lvs5dj" } }, "edges": [ { "from": "rielyq8", "to": "tgurdpo", "as": "fn" }, { "from": "1rre4bx", "to": "tgurdpo", "as": "self" }, { "from": "w0zzawl", "to": "tgurdpo", "as": "args", "type": "resolve" }, { "from": "pdljod1", "to": "w0zzawl", "as": "a0" }, { "from": "initial", "to": "w0zzawl", "as": "a1" }, { "from": "2lvs5dj", "to": "pdljod1", "as": "graph" }, { "from": "key", "to": "pdljod1", "as": "outer_key" }, { "from": "args", "to": "pdljod1", "as": "args" }, { "from": "6g75abk", "to": "pdljod1", "as": "fn" } ] }, "@data.map": { "id": "@data.map", "out": "out", "category": "data", "ref": "extern", "value": "extern.map", "description": "Aray.map the `array` with `fn`. Arguments for `fn` are `element`, `index`, `array`, and a unique per nested loop `key`." }, "@data.filter": { "id": "@data.filter", "category": "data", "description": "Aray.filter the `array` with `fn`. Arguments for `fn` are `element`, `index`, `array`, and a unique per nested loop `key`.", "out": "out", "nodes": { "object": { "id": "object", "ref": "arg", "value": "array" }, "pred_fn": { "id": "pred_fn", "ref": "arg", "value": "fn" }, "el_currentValue": { "id": "el_currentValue", "ref": "arg", "value": "currentValue" }, "pred_fn_args": { "id": "pred_fn_args", "ref": "extern", "value": "extern.data" }, "run_pred": { "id": "run_pred", "value": "true" }, "pred_element_fn": { "id": "pred_element_fn", "ref": "extern", "value": "extern.ap" }, "currentValue": { "id": "currentValue", "ref": "arg", "value": "currentValue" }, "previousValue": { "id": "previousValue", "ref": "arg", "value": "previousValue" }, "pred_append": { "id": "pred_append", "ref": "@js.script", "value": "if(pred !== false && pred !== undefined && pred !== null){ return arr.concat([value]); } return arr;" }, "pred_append_fn_args": { "id": "pred_append_fn_args", "value": "{\"previousValue\": \"undefined\", \"currentValue\": \"undefined\"}" }, "pred_append_fn": { "id": "pred_append_fn", "ref": "@flow.runnable" }, "initial": { "id": "initial", "value": "[]" }, "fold": { "id": "fold", "ref": "extern", "value": "extern.fold" }, "out": { "id": "out", "ref": "return", "name": "@data.filter" } }, "edges": [ { "from": "el_currentValue", "to": "pred_fn_args", "as": "element" }, { "from": "pred_fn_args", "to": "pred_element_fn", "as": "args" }, { "from": "pred_fn", "to": "pred_element_fn", "as": "fn" }, { "from": "run_pred", "to": "pred_element_fn", "as": "run" }, { "from": "currentValue", "to": "pred_append", "as": "value" }, { "from": "previousValue", "to": "pred_append", "as": "arr" }, { "from": "pred_element_fn", "to": "pred_append", "as": "pred" }, { "from": "pred_append", "to": "pred_append_fn", "as": "fn" }, { "from": "pred_append_fn_args", "to": "pred_append_fn", "as": "parameters" }, { "from": "pred_append_fn", "to": "fold", "as": "fn" }, { "from": "object", "to": "fold", "as": "object" }, { "from": "initial", "to": "fold", "as": "initial" }, { "from": "fold", "to": "out", "as": "value" } ] }, "@nodysseus.importUrl": { "id": "@nodysseus.importUrl", "description": "Imports the node or nodes found at the `url`.", "name": "@nodysseus.importUrl", "category": "nodysseus", "out": "out", "nodes": { "lapeojg": { "id": "lapeojg", "ref": "@js.script", "value": "return _lib.runtime.addRefsFromUrl(url).then(gs => _lib.runtime.change_graph(graphid, _lib))", "name": "out" }, "graphid": { "id": "graphid", "ref": "arg", "value": "__graphid" }, "out": { "id": "out", "ref": "return", "name": "@nodysseus.importUrl" }, "05eag47": { "id": "05eag47", "ref": "arg", "value": "name" }, "irr99xz": { "id": "irr99xz", "ref": "arg", "value": "url" } }, "edges": [ { "from": "graphid", "to": "lapeojg", "as": "graphid" }, { "from": "05eag47", "to": "lapeojg", "as": "name" }, { "from": "lapeojg", "to": "out", "as": "value" }, { "from": "irr99xz", "to": "lapeojg", "as": "url" }, {"from": "graphid", "to": "lapeojg", "as": "graphid"} ] }, "@data.object_entries": { "id": "@data.object_entries", "category": "data", "description": "Calls Object.entries on `object`.", "name": "object_entries", "in": "tkd4tqn", "out": "j8c79uf", "nodes": { "j8c79uf": { "name": "@data.object_entries", "id": "j8c79uf", "ref": "@data.filter" }, "hfexsuu": { "id": "hfexsuu", "ref": "@js.script", "value": "return !key?.startsWith('_');" }, "runnable_args": { "id": "runnable_args", "value": "{\"element\": \"undefined\"}" }, "runnable": { "id": "runnable", "ref": "@flow.runnable" }, "bgi2g37": { "id": "bgi2g37", "ref": "@js.script", "value": "return obj instanceof Map ? [...obj.entries()] : Object.entries(obj)" }, "7gqcw0o": { "id": "7gqcw0o", "ref": "arg", "value": "0.0" }, "kpakw50": { "id": "kpakw50", "ref": "arg", "value": "object: default" } }, "edges": [ { "from": "runnable_args", "to": "runnable", "as": "parameters" }, { "from": "hfexsuu", "to": "runnable", "as": "fn" }, { "from": "runnable", "to": "j8c79uf", "as": "fn" }, { "from": "bgi2g37", "to": "j8c79uf", "as": "array" }, { "from": "7gqcw0o", "to": "hfexsuu", "as": "key" }, { "from": "kpakw50", "to": "bgi2g37", "as": "obj" } ] }, "@html.css_styles": { "id": "@html.css_styles", "category": "html", "description": "Creates a style element from `css_object`. Inputs to the object should be labeled with css selectors, and inputs to those objects with css properties.", "name": "css_styles", "in": "xw3pmx7", "out": "out", "nodes": { "out": { "id": "out", "ref": "return", "name": "@html.css_styles" }, "5yxmxua": { "id": "5yxmxua", "ref": "@html.html_element", "name": "out" }, "vgv61zj": { "id": "vgv61zj", "ref": "@html.html_text" }, "jstjx7g": { "id": "jstjx7g", "ref": "extern", "value": "extern.data" }, "h40e3j9": { "id": "h40e3j9", "value": "style" }, "xw3pmx7": { "id": "xw3pmx7", "name": "in" }, "jlgp7uy": { "id": "jlgp7uy", "ref": "@js.call", "name": "named_obj/out" }, "o1j78dd": { "id": "o1j78dd", "value": "result-view" }, "ij4z84e": { "id": "ij4z84e", "ref": "@data.map" }, "q3pwj9j": { "id": "q3pwj9j", "value": "join" }, "d6h3gdw": { "id": "d6h3gdw", "ref": "@data.array" }, "j8c79uf": { "id": "j8c79uf", "name": "object_entries", "ref": "@data.object_entries" }, "n9g4wyq": { "id": "n9g4wyq", "ref": "@flow.runnable" }, "z63iaay": { "id": "z63iaay", "ref": "@js.script", "value": "return \"\\n\";" }, "vwsgweb": { "id": "vwsgweb", "ref": "@flow.default" }, "aelf1a7": { "id": "aelf1a7", "ref": "@js.script", "value": "return key + '{' + value + '}'", "name": "out" }, "mkwx4yx": { "id": "mkwx4yx" }, "fzr4mkv": { "id": "fzr4mkv", "ref": "arg", "value": "css_object" }, "5eqf77t": { "id": "5eqf77t", "value": "element.0", "ref": "arg" }, "5pwetw5": { "id": "5pwetw5", "ref": "@flow.if" }, "o5ojdyc": { "id": "o5ojdyc", "ref": "@js.script", "value": "return key?.startsWith(\"@keyframes\")" }, "1hpnid4": { "id": "1hpnid4", "ref": "@js.call" }, "slj7ynn/jlgp7uy": { "id": "slj7ynn/jlgp7uy", "ref": "@js.call", "name": "named_obj/out" }, "ft1oksl": { "id": "ft1oksl", "ref": "arg", "value": "element.0" }, "bbbp82v": { "id": "bbbp82v", "ref": "@data.map" }, "cp66ig5": { "id": "cp66ig5", "value": "join" }, "uwq9u81": { "id": "uwq9u81", "ref": "@data.array" }, "slj7ynn/ij4z84e": { "id": "slj7ynn/ij4z84e", "ref": "@data.map" }, "slj7ynn/q3pwj9j": { "id": "slj7ynn/q3pwj9j", "value": "join" }, "slj7ynn/d6h3gdw": { "id": "slj7ynn/d6h3gdw", "ref": "@data.array" }, "i1ifamx": { "id": "i1ifamx", "ref": "@data.object_entries" }, "druspar_args": { "id": "druspar_args", "value": "{\"element\": \"\"}" }, "n9g4wyq_args": { "id": "n9g4wyq_args", "value": "{\"element\": \"\"}" }, "slj7ynn/n9g4wyq_args": { "id": "slj7ynn/n9g4wyq_args", "value": "{\"element\": \"\"}" }, "slj7ynn/druspar_args": { "id": "slj7ynn/druspar_args", "value": "{\"element\": \"\"}" }, "druspar": { "id": "druspar", "ref": "@flow.runnable" }, "gth1wc2": { "id": "gth1wc2", "ref": "@js.script", "value": "return \"\\n\";" }, "slj7ynn/j8c79uf": { "id": "slj7ynn/j8c79uf", "name": "object_entries", "ref": "@data.object_entries" }, "slj7ynn/n9g4wyq": { "id": "slj7ynn/n9g4wyq", "ref": "@flow.runnable" }, "slj7ynn/z63iaay": { "id": "slj7ynn/z63iaay", "ref": "@js.script", "value": "return \"\\n\";" }, "y25dg2n": { "id": "y25dg2n", "value": "element.1", "ref": "arg" }, "0d4yh8u": { "id": "0d4yh8u", "ref": "@js.script", "value": "return key + ': ' + value + \";\";" }, "slj7ynn/vwsgweb": { "id": "slj7ynn/vwsgweb", "ref": "@flow.default" }, "slj7ynn/aelf1a7": { "id": "slj7ynn/aelf1a7", "ref": "@js.script", "value": "return key + '{' + value + '}'", "name": "out" }, "h13a9fd": { "id": "h13a9fd", "ref": "arg", "value": "element.0" }, "h7me3v8": { "id": "h7me3v8", "ref": "arg", "value": "element.1" }, "slj7ynn/mkwx4yx": { "id": "slj7ynn/mkwx4yx" }, "slj7ynn/fzr4mkv": { "id": "slj7ynn/fzr4mkv", "ref": "arg", "value": "element.1" }, "slj7ynn/5eqf77t": { "id": "slj7ynn/5eqf77t", "value": "element.0", "ref": "arg" }, "slj7ynn/1hpnid4": { "id": "slj7ynn/1hpnid4", "ref": "@js.call" }, "slj7ynn/bbbp82v": { "id": "slj7ynn/bbbp82v", "ref": "@data.map" }, "slj7ynn/cp66ig5": { "id": "slj7ynn/cp66ig5", "value": "join" }, "slj7ynn/uwq9u81": { "id": "slj7ynn/uwq9u81", "ref": "@data.array" }, "slj7ynn/i1ifamx": { "id": "slj7ynn/i1ifamx", "ref": "@data.object_entries" }, "slj7ynn/druspar": { "id": "slj7ynn/druspar", "ref": "@flow.runnable" }, "slj7ynn/gth1wc2": { "id": "slj7ynn/gth1wc2", "ref": "@js.script", "value": "return \"\\n\";" }, "slj7ynn/y25dg2n": { "id": "slj7ynn/y25dg2n", "value": "element.1", "ref": "arg" }, "slj7ynn/0d4yh8u": { "id": "slj7ynn/0d4yh8u", "ref": "@js.script", "value": "return key + ': ' + value + \";\";" }, "slj7ynn/h13a9fd": { "id": "slj7ynn/h13a9fd", "ref": "arg", "value": "element.0" }, "slj7ynn/h7me3v8": { "id": "slj7ynn/h7me3v8", "ref": "arg", "value": "element.1" } }, "edges": [ { "from": "5yxmxua", "to": "out", "as": "value" }, { "from": "vgv61zj", "to": "5yxmxua", "as": "children" }, { "from": "jstjx7g", "to": "5yxmxua", "as": "props" }, { "from": "h40e3j9", "to": "5yxmxua", "as": "dom_type" }, { "from": "xw3pmx7", "to": "5yxmxua", "as": "arg3" }, { "from": "jlgp7uy", "to": "vgv61zj", "as": "text" }, { "from": "o1j78dd", "to": "jstjx7g", "as": "key" }, { "from": "ij4z84e", "to": "jlgp7uy", "as": "self" }, { "from": "q3pwj9j", "to": "jlgp7uy", "as": "fn" }, { "from": "d6h3gdw", "to": "jlgp7uy", "as": "args" }, { "from": "j8c79uf", "to": "ij4z84e", "as": "array" }, { "as": "fn", "from": "n9g4wyq", "to": "ij4z84e" }, { "from": "z63iaay", "to": "d6h3gdw", "as": "arg0" }, { "from": "vwsgweb", "to": "j8c79uf", "as": "object" }, { "as": "fn", "from": "aelf1a7", "to": "n9g4wyq" }, { "from": "mkwx4yx", "to": "vwsgweb", "as": "otherwise" }, { "from": "fzr4mkv", "to": "vwsgweb", "as": "value" }, { "from": "5eqf77t", "to": "aelf1a7", "as": "key" }, { "from": "5pwetw5", "to": "aelf1a7", "as": "value" }, { "from": "o5ojdyc", "to": "5pwetw5", "as": "pred" }, { "as": "false", "from": "1hpnid4", "to": "5pwetw5" }, { "from": "slj7ynn/jlgp7uy", "to": "5pwetw5", "as": "true" }, { "as": "key", "from": "ft1oksl", "to": "o5ojdyc" }, { "from": "bbbp82v", "to": "1hpnid4", "as": "self" }, { "from": "cp66ig5", "to": "1hpnid4", "as": "fn" }, { "from": "uwq9u81", "to": "1hpnid4", "as": "args" }, { "from": "slj7ynn/ij4z84e", "to": "slj7ynn/jlgp7uy", "as": "self" }, { "from": "slj7ynn/q3pwj9j", "to": "slj7ynn/jlgp7uy", "as": "fn" }, { "from": "slj7ynn/d6h3gdw", "to": "slj7ynn/jlgp7uy", "as": "args" }, { "from": "i1ifamx", "to": "bbbp82v", "as": "array" }, { "from": "slj7ynn/druspar_args", "as": "parameters", "to": "slj7ynn/druspar" }, { "from": "slj7ynn/n9g4wyq_args", "as": "parameters", "to": "slj7ynn/n9g4wyq" }, { "from": "n9g4wyq_args", "as": "parameters", "to": "n9g4wyq" }, { "from": "druspar_args", "as": "parameters", "to": "druspar" }, { "as": "fn", "from": "druspar", "to": "bbbp82v" }, { "from": "gth1wc2", "to": "uwq9u81", "as": "arg0" }, { "from": "slj7ynn/j8c79uf", "to": "slj7ynn/ij4z84e", "as": "array" }, { "as": "fn", "from": "slj7ynn/n9g4wyq", "to": "slj7ynn/ij4z84e" }, { "from": "slj7ynn/z63iaay", "to": "slj7ynn/d6h3gdw", "as": "arg0" }, { "from": "y25dg2n", "to": "i1ifamx", "as": "object" }, { "as": "fn", "from": "0d4yh8u", "to": "druspar" }, { "from": "slj7ynn/vwsgweb", "to": "slj7ynn/j8c79uf", "as": "object" }, { "as": "fn", "from": "slj7ynn/aelf1a7", "to": "slj7ynn/n9g4wyq" }, { "from": "h13a9fd", "to": "0d4yh8u", "as": "key" }, { "from": "h7me3v8", "to": "0d4yh8u", "as": "value" }, { "from": "slj7ynn/mkwx4yx", "to": "slj7ynn/vwsgweb", "as": "otherwise" }, { "from": "slj7ynn/fzr4mkv", "to": "slj7ynn/vwsgweb", "as": "value" }, { "from": "slj7ynn/5eqf77t", "to": "slj7ynn/aelf1a7", "as": "key" }, { "as": "value", "from": "slj7ynn/1hpnid4", "to": "slj7ynn/aelf1a7" }, { "from": "slj7ynn/bbbp82v", "to": "slj7ynn/1hpnid4", "as": "self" }, { "from": "slj7ynn/cp66ig5", "to": "slj7ynn/1hpnid4", "as": "fn" }, { "from": "slj7ynn/uwq9u81", "to": "slj7ynn/1hpnid4", "as": "args" }, { "from": "slj7ynn/i1ifamx", "to": "slj7ynn/bbbp82v", "as": "array" }, { "as": "fn", "from": "slj7ynn/druspar", "to": "slj7ynn/bbbp82v" }, { "from": "slj7ynn/gth1wc2", "to": "slj7ynn/uwq9u81", "as": "arg0" }, { "from": "slj7ynn/y25dg2n", "to": "slj7ynn/i1ifamx", "as": "object" }, { "as": "fn", "from": "slj7ynn/0d4yh8u", "to": "slj7ynn/druspar" }, { "from": "slj7ynn/h13a9fd", "to": "slj7ynn/0d4yh8u", "as": "key" }, { "from": "slj7ynn/h7me3v8", "to": "slj7ynn/0d4yh8u", "as": "value" } ] }, "@html.css_anim": { "id": "@html.css_anim", "category": "html", "description": "Creates a css animation string. For use with `css_styles`.", "name": "css_anim", "in": "cawqofn", "out": "spy9h48", "nodes": { "spy9h48": { "name": "@html.css_anim", "id": "spy9h48", "ref": "@js.script", "value": "return Object.fromEntries((Array.isArray(arr[0]) ? arr[0] : arr).map((v, i, a) => [Math.floor((i / a.length)*100) + \"%\", v]))" }, "cawqofn": { "id": "cawqofn", "ref": "@data.array", "name": "in" } }, "edges": [ { "as": "arr", "from": "cawqofn", "to": "spy9h48", "type": "resolve" } ] }, "@html.input": { "category": "html", "edges": [ { "from": "gvkhkfw", "to": "nn4twx9", "as": "children" }, { "from": "7rhq0q5", "to": "nn4twx9", "as": "_" }, { "from": "4972gx3", "to": "gvkhkfw", "as": "arg1" }, { "from": "1ldhfah", "to": "gvkhkfw", "as": "arg0" }, { "from": "ee5i5r2", "to": "4972gx3", "as": "dom_type" }, { "from": "ro8n2gc", "to": "4972gx3", "as": "props" }, { "from": "wet0jdv", "to": "1ldhfah", "as": "children" }, { "from": "gcuxiw9", "to": "1ldhfah", "as": "props" }, { "from": "875c1wk", "to": "1ldhfah", "as": "dom_type" }, { "from": "t6q6rvf", "to": "ro8n2gc", "as": "arg0" }, { "from": "rjwtb3c", "to": "ro8n2gc", "as": "props" }, { "from": "utkc9o6", "to": "wet0jdv", "as": "arg0" }, { "from": "jxl9r29", "to": "gcuxiw9", "as": "for" }, { "from": "2zxw9oo", "to": "t6q6rvf", "as": "onkeydown" }, { "from": "i7y9dyy", "to": "t6q6rvf", "as": "onchange" }, { "from": "vks4vul", "to": "rjwtb3c", "as": "value" }, { "from": "ddfgy2s", "to": "rjwtb3c", "as": "otherwise" }, { "from": "trd8ptp", "to": "utkc9o6", "as": "text" }, { "from": "zfrrk0z", "to": "jxl9r29", "as": "value" }, { "to": "2zxw9oo", "from": "qseh2tb", "as": "fn", "type": "ref" }, { "from": "b0j8nyq", "to": "i7y9dyy", "as": "dispatch" }, { "from": "eotod0l", "to": "i7y9dyy", "as": "seq" }, { "from": "qxwvdfe", "to": "i7y9dyy", "as": "value" }, { "from": "0dnqo5l", "to": "i7y9dyy", "as": "onchange_fn" }, { "from": "1wps21n", "to": "qseh2tb", "as": "a1" }, { "from": "y5q7mbn", "to": "qseh2tb", "as": "a0" }, { "from": "qjc0zt6", "to": "eotod0l", "as": "arg" }, { "from": "widk6u6", "to": "qjc0zt6", "as": "fn" }, { "from": "506ntvb", "to": "qjc0zt6", "as": "value" }, { "from": "4ck1vaf", "to": "widk6u6", "as": "fn" } ], "nodes": { "nn4twx9": { "id": "nn4twx9", "ref": "@html.html_element", "inputs": [ { "from": "bw4iez5/gvkhkfw", "to": "bw4iez5/nn4twx9", "as": "children" }, { "from": "bw4iez5/7rhq0q5", "to": "bw4iez5/nn4twx9", "as": "props" } ], "name": "@html.input" }, "gvkhkfw": { "id": "gvkhkfw", "ref": "@data.array" }, "7rhq0q5": { "id": "7rhq0q5", "name": "in" }, "1ldhfah": { "id": "1ldhfah", "ref": "@html.html_element", "name": "label" }, "4972gx3": { "id": "4972gx3", "ref": "@html.html_element" }, "wet0jdv": { "id": "wet0jdv", "ref": "@data.array" }, "gcuxiw9": { "id": "gcuxiw9" }, "875c1wk": { "id": "875c1wk", "value": "label" }, "ee5i5r2": { "id": "ee5i5r2", "value": "input" }, "ro8n2gc": { "id": "ro8n2gc", "ref": "@data.merge_objects" }, "n1qcxu2": { "id": "n1qcxu2", "value": "true" }, "utkc9o6": { "id": "utkc9o6", "ref": "@html.html_text" }, "jxl9r29": { "id": "jxl9r29", "ref": "@js.script", "value": "return \"input-\" + name;" }, "t6q6rvf": { "id": "t6q6rvf" }, "rjwtb3c": { "id": "rjwtb3c", "ref": "@flow.default" }, "varubwp": { "id": "varubwp" }, "trd8ptp": { "id": "trd8ptp", "ref": "arg", "value": "name" }, "zfrrk0z": { "id": "zfrrk0z", "ref": "arg", "value": "name" }, "2zxw9oo": { "id": "2zxw9oo", "ref": "run", "name": "stop_propagation" }, "sjw3rie": { "id": "sjw3rie", "ref": "@flow.default" }, "vks4vul": { "id": "vks4vul", "ref": "arg", "value": "props" }, "ddfgy2s": { "id": "ddfgy2s" }, "671rzr9": { "id": "671rzr9", "ref": "arg", "value": "name" }, "ccir2fl": { "id": "ccir2fl", "ref": "arg", "value": "name" }, "qseh2tb": { "id": "qseh2tb", "ref": "@data.array" }, "i7y9dyy": { "id": "i7y9dyy", "ref": "@flow.runnable" }, "fihihz0": { "id": "fihihz0", "ref": "arg", "value": "oninput" }, "1wps21n": { "id": "1wps21n", "name": "stop propagation effect", "out": "hj2cig0", "nodes": [ { "id": "hj2cig0", "ref": "array", "name": "stop propagation effect" }, { "id": "1pvaim9", "ref": "run" }, { "id": "0o86xp3", "ref": "arg", "value": "1" }, { "id": "d60jwms", "ref": "@js.script", "value": "payload.stopPropagation();" }, { "id": "xgbubrq", "ref": "arg", "value": "1" } ], "edges": [ { "from": "1pvaim9", "to": "hj2cig0", "as": "a0" }, { "from": "0o86xp3", "to": "hj2cig0", "as": "a1" }, { "from": "d60jwms", "to": "1pvaim9", "as": "fn", "type": "ref" }, { "from": "xgbubrq", "to": "d60jwms", "as": "payload" } ] }, "y5q7mbn": { "id": "y5q7mbn", "ref": "arg", "value": "0" }, "y9bkhqc": { "id": "y9bkhqc" }, "6m6m1hq_1/ocuonub/qjc0zt6": { "id": "6m6m1hq_1/ocuonub/qjc0zt6", "ref": "event_publisher" }, "nb2sswc": { "id": "nb2sswc", "ref": "arg", "value": "name" }, "6m6m1hq_1/ocuonub/506ntvb": { "id": "6m6m1hq_1/ocuonub/506ntvb", "value": "event.target.value", "ref": "arg" }, "6m6m1hq_1/ocuonub/4ck1vaf": { "id": "6m6m1hq_1/ocuonub/4ck1vaf", "ref": "arg", "value": "name" } }, "out": "nn4twx9", "in": "7rhq0q5", "name": "input", "id": "@html.input" }, "@html.html_text": { "id": "@html.html_text", "category": "html", "description": "Some HTML plaintext of `text` (or this node's value). Usually used as a child of html_element.", "out": "out", "nodes": { "arg_text": { "id": "arg_text", "ref": "arg", "value": "text" }, "value_text": { "id": "value_text", "ref": "arg", "value": "__graph_value" }, "text": { "id": "text", "ref": "@flow.default" }, "text_value": { "id": "text_value", "value": "text_value" }, "out": { "id": "out", "name": "@html.html_text" } }, "edges": [ { "from": "text_value", "to": "out", "as": "dom_type" }, { "from": "arg_text", "to": "text", "as": "value" }, { "from": "value_text", "to": "text", "as": "otherwise" }, { "from": "text", "to": "out", "as": "text" } ] }, "@html.html_element": { "id": "@html.html_element", "category": "html", "description": "An HTML Element. `children` is an array of html_element or html_text, `props` are the attributes for the html element as an object, `dom_type` (or this node's value) is the dom type, `memo` refers to hyperapp's memo.", "ref": "extern", "value": "extern.html_element" }, "@html.jsx" : { "id": "@html.jsx", "ref": "extern", "value": "extern.jsx" }, "@html.icon": { "id": "@html.icon", "description": "A ionicon in hyperapp format.", "category": "html", "name": "icon", "out": "c2sko9c", "nodes": { "c2sko9c": { "id": "c2sko9c", "ref": "@html.html_element", "name": "@html.icon" }, "2lr3ihi": { "id": "2lr3ihi", "value": "span" }, "empty_obj": { "id": "empty_obj", "value": {} }, "props": { "id": "props", "ref": "arg", "value": "props" }, "props_pred": { "id": "props_pred", "ref": "arg", "value": "props" }, "iconclass": { "id": "iconclass", "value": "material-symbols-outlined" }, "defined_props": { "id": "defined_props", "ref": "@flow.if" }, "name_path": { "id": "name_path", "value": "name" }, "a0jb5es": { "id": "a0jb5es", "ref": "@data.set", "value": "class" }, "s5x2r1f": { "id": "s5x2r1f", "ref": "arg", "value": "icon" } }, "edges": [ { "from": "2lr3ihi", "to": "c2sko9c", "as": "dom_type" }, { "from": "props", "to": "defined_props", "as": "true" }, { "from": "props_pred", "to": "defined_props", "as": "pred" }, { "from": "empty_obj", "to": "defined_props", "as": "false" }, { "from": "defined_props", "to": "a0jb5es", "as": "target" }, { "from": "iconclass", "to": "a0jb5es", "as": "value" }, { "from": "a0jb5es", "to": "c2sko9c", "as": "props" }, { "from": "s5x2r1f", "to": "c2sko9c", "as": "children" } ] }, "@data.not": { "id": "@data.not", "ref": "extern", "category": "data", "value": "extern.not" }, "@html.canvas_behind_editor": { "id": "@html.canvas_behind_editor", "out": "out", "nodes": { "args": { "id": "args", "ref": "extern", "value": "extern.data" }, "5a6pljw": { "id": "5a6pljw", "ref": "@html.html_element" }, "h2e7s9l": { "id": "h2e7s9l", "value": "canvas" }, "imr2dvi": { "id": "imr2dvi", "ref": "@html.html_element" }, "09epq8r": { "id": "09epq8r", "ref": "@data.array" }, "af9fknz": { "id": "af9fknz", "value": "canvas", "ref": "@html.html_element" }, "cilv4od": { "id": "cilv4od" }, "zvop9wi": { "id": "zvop9wi", "value": "canvas_id", "ref": "arg" }, "zvop9wi_2": { "id": "zvop9wi_2", "value": "canvas_id", "ref": "arg" }, "qe7qvud": { "id": "qe7qvud", "ref": "@html.css_styles" }, "45uuwjl": { "id": "45uuwjl" }, "ejd0zjg": { "id": "ejd0zjg" }, "50811j9": { "id": "50811j9", "ref": "@data.set" }, "vmabx98": { "id": "vmabx98", "value": "return `#${canvas_id}`", "ref": "@js.script" }, "ah2tu3m": { "id": "ah2tu3m", "value": "canvas_id", "ref": "arg" }, "cxwaij4": { "id": "cxwaij4" }, "8cq1yfs": { "id": "8cq1yfs", "value": "return window.innerWidth", "ref": "@js.script" }, "q96l549": { "id": "q96l549", "value": "return window.innerHeight", "ref": "@js.script" }, "icdi8jh": { "id": "icdi8jh", "value": "1" }, "b6e9ux3": { "id": "b6e9ux3", "value": "relative" }, "zq4ni3x": { "id": "zq4ni3x" }, "uzulnsq": { "id": "uzulnsq", "value": "absolute" }, "aoi9bi9": { "id": "aoi9bi9", "value": "unset" }, "3ucsio2": { "id": "3ucsio2", "ref": "extern", "value": "extern.data" }, "jzduiha": { "id": "jzduiha", "value": "32" }, "kup95dw": { "id": "kup95dw", "value": "64" }, "75jvde6": { "id": "75jvde6", "value": "fixed", "name": "" }, "0uhor53": { "id": "0uhor53", "value": "100%" }, "ag93b9f": { "id": "ag93b9f", "value": "100%" }, "zgmfuzy": { "id": "zgmfuzy", "value": "0" }, "dx3qg99": { "id": "dx3qg99", "value": "0", "name": "" }, "z54r0bl": { "id": "z54r0bl" }, "tok49em": { "id": "tok49em", "value": "12" }, "tok49eq": { "id": "tok49eq", "value": "relative" }, "out": { "id": "out", "name": "@html.canvas_behind_editor", "ref": "return" }, "hzvlwu7": { "id": "hzvlwu7", "ref": "extern", "value": "extern.data" }, "mcpndlx": { "id": "mcpndlx", "value": "48" } }, "edges": { "args": { "from": "args", "to": "out", "as": "args" }, "imr2dvi": { "from": "imr2dvi", "to": "out", "as": "value" }, "h2e7s9l": { "from": "h2e7s9l", "to": "args", "as": "canvas_id" }, "09epq8r": { "from": "09epq8r", "to": "imr2dvi", "as": "children" }, "af9fknz": { "from": "af9fknz", "to": "09epq8r", "as": "arg0" }, "cilv4od": { "from": "cilv4od", "to": "af9fknz", "as": "props" }, "zvop9wi": { "from": "zvop9wi", "to": "cilv4od", "as": "id" }, "zvop9wi_2": { "from": "zvop9wi_2", "to": "cilv4od", "as": "key" }, "qe7qvud": { "from": "qe7qvud", "to": "09epq8r", "as": "arg1" }, "50811j9": { "from": "50811j9", "to": "qe7qvud", "as": "css_object" }, "45uuwjl": { "from": "45uuwjl", "to": "50811j9", "as": "target" }, "vmabx98": { "from": "vmabx98", "to": "50811j9", "as": "path" }, "ah2tu3m": { "from": "ah2tu3m", "to": "vmabx98", "as": "canvas_id" }, "cxwaij4": { "from": "cxwaij4", "to": "50811j9", "as": "value" }, "75jvde6": { "from": "75jvde6", "to": "cxwaij4", "as": "position" }, "8cq1yfs": { "from": "8cq1yfs", "to": "cilv4od", "as": "width" }, "q96l549": { "from": "q96l549", "to": "cilv4od", "as": "height" }, "icdi8jh": { "from": "icdi8jh", "to": "cxwaij4", "as": "z-index" }, "jzduiha": { "from": "jzduiha", "to": "ejd0zjg", "as": "z-index" }, "b6e9ux3": { "from": "b6e9ux3", "to": "ejd0zjg", "as": "position" }, "zq4ni3x": { "from": "zq4ni3x", "to": "45uuwjl", "as": "#node-editor-result" }, "uzulnsq": { "from": "uzulnsq", "to": "zq4ni3x", "as": "position" }, "aoi9bi9": { "from": "aoi9bi9", "to": "zq4ni3x", "as": "z-index" }, "kup95dw": { "from": "kup95dw", "to": "3ucsio2", "as": "z-index" }, "3ucsio2": { "from": "3ucsio2", "to": "45uuwjl", "as": "#node-info-wrapper" }, "0uhor53": { "from": "0uhor53", "to": "cxwaij4", "as": "width" }, "ag93b9f": { "from": "ag93b9f", "to": "cxwaij4", "as": "height" }, "dx3qg99": { "from": "dx3qg99", "to": "cxwaij4", "as": "top" }, "zgmfuzy": { "from": "zgmfuzy", "to": "cxwaij4", "as": "left" }, "ejd0zjg": { "from": "ejd0zjg", "to": "45uuwjl", "as": "#node-editor-editor" }, "z54r0bl": { "from": "z54r0bl", "to": "45uuwjl", "as": "#node-editor-error .message" }, "tok49em": { "from": "tok49em", "to": "z54r0bl", "as": "z-index" }, "tok49eq": { "from": "tok49eq", "to": "z54r0bl", "as": "position" }, "hzvlwu7": { "from": "hzvlwu7", "to": "45uuwjl", "as": "#graph-actions" }, "mcpndlx": { "from": "mcpndlx", "to": "hzvlwu7", "as": "z-index" } }, "category": "html" }, "@js.import_module": { "id": "@js.import_module", "category": "js", "description": "Dynamically import an es6 module", "ref": "extern", "value": "extern.import_module" }, "@graphics.offscreenCanvas": { "id": "@graphics.offscreenCanvas", "category": "html", "description": "Creates an offscreen canvas for rendering WebGL content. Multiple canvases can be created to allow switching content on a canvas behind the node editor or the info popup canvas.", "name": "@graphics.offscreenCanvas", "nodes": { "0g1zopd": { "id": "0g1zopd", "name": "@graphics.offscreenCanvas", "ref": "return" }, "ein7naf": { "id": "ein7naf", "ref": "@flow.if" }, "9p0focj": { "id": "9p0focj" }, "98f35dl": { "id": "98f35dl", "value": "return !!window.OffscreenCanvas", "ref": "@js.script" }, "dzb8l3m": { "id": "dzb8l3m", "value": "canvas", "ref": "@html.html_element" }, "c2vbqba": { "id": "c2vbqba" }, "hdn9zr5": { "id": "hdn9zr5", "value": "offscreen" }, "o40rphy": { "id": "o40rphy" }, "p6vd4i7": { "id": "p6vd4i7", "value": "canvas_id", "ref": "arg" }, "lik4fr6": { "id": "lik4fr6", "value": "return window.innerWidth;", "ref": "@js.script" }, "5q5ltj4": { "id": "5q5ltj4", "value": "return window.innerHeight", "ref": "@js.script" }, "w7dugd7": { "id": "w7dugd7", "value": "return window.innerWidth;", "ref": "@js.script" }, "1wirpfe": { "id": "1wirpfe", "value": "return window.innerHeight", "ref": "@js.script" }, "16rxy2o": { "id": "16rxy2o", "value": "hidden" } }, "edges": [ { "from": "ein7naf", "to": "0g1zopd", "as": "value" }, { "from": "9p0focj", "to": "0g1zopd", "as": "args" }, { "from": "98f35dl", "to": "ein7naf", "as": "pred" }, { "from": "dzb8l3m", "to": "ein7naf", "as": "false" }, { "from": "c2vbqba", "to": "dzb8l3m", "as": "props" }, { "from": "hdn9zr5", "to": "c2vbqba", "as": "key" }, { "from": "o40rphy", "to": "c2vbqba", "as": "style" }, { "from": "p6vd4i7", "to": "c2vbqba", "as": "id" }, { "from": "lik4fr6", "to": "c2vbqba", "as": "width" }, { "from": "5q5ltj4", "to": "c2vbqba", "as": "height" }, { "from": "w7dugd7", "to": "o40rphy", "as": "width" }, { "from": "1wirpfe", "to": "o40rphy", "as": "height" }, { "from": "16rxy2o", "to": "o40rphy", "as": "visibility" } ], "out": "0g1zopd" }, "@data.changed": { "id": "@data.changed", "category": "data", "description": "Returns true if `value` has changed", "name": "changed", "nodes": { "p8v5ed5": { "id": "p8v5ed5", "name": "@data.changed", "ref": "return" }, "14mzqe3": { "id": "14mzqe3" }, "vs4opfd": { "id": "vs4opfd", "ref": "return" }, "3l4ufol": { "id": "3l4ufol" }, "jlmvbt7": { "id": "jlmvbt7", "value": "comparison", "ref": "@data.get" }, "izbtl3g": { "id": "izbtl3g", "value": "value", "ref": "arg" }, "mm880mz": { "id": "mm880mz", "ref": "@memory.cache" }, "kw0x0bm": { "id": "kw0x0bm", "value": "state.value", "ref": "@data.set_mutable" }, "qqzgl4i": { "id": "qqzgl4i" }, "f0ticbo": { "id": "f0ticbo" }, "fvvux6n": { "id": "fvvux6n", "value": "value", "ref": "arg" }, "2cvrnm9": { "id": "2cvrnm9", "value": "initial", "ref": "arg" }, "uqm4o4b": { "id": "uqm4o4b", "value": "state", "ref": "arg" }, "a59coum": { "id": "a59coum", "value": "return state != value;", "ref": "@js.script" }, "pt5nb1r": { "id": "pt5nb1r", "value": "state.value", "ref": "arg" }, "hkxrk6s": { "id": "hkxrk6s", "value": "value", "ref": "arg" } }, "edges": [ { "from": "14mzqe3", "to": "p8v5ed5", "as": "args" }, { "from": "vs4opfd", "to": "p8v5ed5", "as": "value" }, { "from": "3l4ufol", "to": "vs4opfd", "as": "args" }, { "from": "jlmvbt7", "to": "vs4opfd", "as": "value" }, { "from": "izbtl3g", "to": "3l4ufol", "as": "value" }, { "from": "mm880mz", "to": "3l4ufol", "as": "state" }, { "from": "kw0x0bm", "to": "jlmvbt7", "as": "target" }, { "from": "qqzgl4i", "to": "mm880mz", "as": "value" }, { "from": "f0ticbo", "to": "kw0x0bm", "as": "target" }, { "from": "fvvux6n", "to": "kw0x0bm", "as": "value" }, { "from": "2cvrnm9", "to": "qqzgl4i", "as": "value" }, { "from": "uqm4o4b", "to": "f0ticbo", "as": "state" }, { "from": "a59coum", "to": "f0ticbo", "as": "comparison" }, { "from": "pt5nb1r", "to": "a59coum", "as": "state" }, { "from": "hkxrk6s", "to": "a59coum", "as": "value" } ], "out": "p8v5ed5" }, "@graphics.webgl": { "id": "@graphics.webgl", "category": "graphics", "description": "Creates a webgl program with vertex shader `vtx`, fragment shader `frg`, in gl context `gl`.", "nodes": { "j219svq": { "id": "j219svq" }, "04xuprq": { "id": "04xuprq" }, "jidlrdv": { "id": "jidlrdv", "value": "return document.getElementById(\"node-editor-info-canvas\").getContext('webgl2')", "ref": "@js.script" }, "gkv4bqi": { "id": "gkv4bqi", "ref": "@memory.cache" }, "ea0tgct": { "id": "ea0tgct", "value": "vtx", "ref": "arg" }, "rh45l5q": { "id": "rh45l5q", "value": "gl", "ref": "arg" }, "hzz1ww4": { "id": "hzz1ww4", "value": "return gl.VERTEX_SHADER;", "ref": "@js.script" }, "qjktjzv": { "id": "qjktjzv", "value": "gl", "ref": "arg" }, "bu3m3jq": { "id": "bu3m3jq", "ref": "@graphics.load_shader" }, "camgxqu": { "id": "camgxqu", "ref": "@graphics.load_shader" }, "3j7l8wk": { "id": "3j7l8wk", "value": "gl", "ref": "arg" }, "wrpwzyg": { "id": "wrpwzyg", "value": "gl", "ref": "arg" }, "l41589j": { "id": "l41589j", "value": "frg", "ref": "arg" }, "5luq4y5": { "id": "5luq4y5", "value": "return gl.FRAGMENT_SHADER;", "ref": "@js.script" }, "esayius": { "id": "esayius", "value": "gl", "ref": "arg" }, "2mgzzwp": { "id": "2mgzzwp", "ref": "return" }, "bkeent2": { "id": "bkeent2", "value": "shaderProgram", "ref": "arg" }, "qbj2tl2": { "id": "qbj2tl2", "value": "gl", "ref": "arg" }, "wyb1z00": { "id": "wyb1z00", "name": "" }, "8njh1mx": { "id": "8njh1mx", "value": "gl", "ref": "arg" }, "ca17ykm": { "id": "ca17ykm", "value": "gl", "ref": "arg" }, "out": { "id": "out", "name": "@graphics.webgl", "ref": "return" }, "ng2kjpd": { "id": "ng2kjpd", "value": "buffer", "ref": "arg" }, "7i0o3pn": { "id": "7i0o3pn", "value": "return `#version 300 es\n\n precision highp float;\n\n\n\n out vec2 texCoord;\n\n void main() {\n float x = float((gl_VertexID & 1) << 2);\n float y = float((gl_VertexID & 2) << 1);\n texCoord.x = x * 0.5;\n texCoord.y = y * 0.5;\n gl_Position = vec4(x - 1.0, y - 1.0, 0, 1);\n }\n `;", "ref": "@js.script" }, "p2ibbe3": { "id": "p2ibbe3", "value": "return {\n program: shaderProgram,\n attribLocations: {\n },\n uniformLocations: {\n dataBuffer: gl.getUniformLocation(shaderProgram, 'uData')\n },\n };\n", "ref": "@js.script" }, "8dy573e/8dy573e": { "id": "8dy573e/8dy573e", "out": "8dy573e/8dy573e", "nodes": [ { "id": "8dy573e/8dy573e", "ref": "html_element" }, { "id": "8dy573e/576gi1y", "ref": "array" }, { "id": "8dy573e/t6fz346", "ref": "css_styles" }, { "id": "8dy573e/21xxdy8" }, { "id": "8dy573e/cuio21r" }, { "id": "8dy573e/dx424v3", "value": "block" } ], "edges": [ { "from": "8dy573e/576gi1y", "to": "8dy573e/8dy573e", "as": "children" }, { "from": "8dy573e/t6fz346", "to": "8dy573e/576gi1y", "as": "arg2" }, { "from": "8dy573e/21xxdy8", "to": "8dy573e/t6fz346", "as": "css_object" }, { "from": "8dy573e/cuio21r", "to": "8dy573e/21xxdy8", "as": "#node-editor-info-canvas" }, { "from": "8dy573e/dx424v3", "to": "8dy573e/cuio21r", "as": "display" } ] }, "1lgkj23": { "id": "1lgkj23", "value": "gl", "ref": "arg" }, "derz1cv": { "id": "derz1cv", "value": "vtx", "ref": "arg" }, "duubxl9": { "id": "duubxl9", "value": "frg", "ref": "arg" }, "5pjjo2a": { "id": "5pjjo2a", "value": "return `#version 300 es\n\n precision highp float;\n\n uniform int uData[1024];\n\n in vec2 texCoord;\n\n out vec4 fragmentColor;\n \n void main() {\n int idx = int(floor(1024.*gl_FragCoord.x/300.0));\n float val = float(uData[idx]) / 128.;\n fragmentColor = vec4(val,val,val, 1.0);\n }\n `;", "ref": "@js.script" }, "4r5fc0b": { "id": "4r5fc0b", "value": "buffer", "ref": "arg" }, "fbru2p5": { "id": "fbru2p5", "value": "const shaderProgram = gl.createProgram();\n gl.attachShader(shaderProgram, vertexShader);\n gl.attachShader(shaderProgram, fragmentShader);\n gl.linkProgram(shaderProgram);\n\n // If creating the shader program failed, alert\n\n if (!gl.getProgramParameter(shaderProgram, gl.LINK_STATUS)) {\n throw new Error(gl.getProgramInfoLog(shaderProgram));\n return null;\n }\n\n return shaderProgram;", "ref": "@js.script" }, "01l4ilv": { "id": "01l4ilv", "value": " gl.clearColor(0.0, 0.0, 0.0, 1.0); // Clear to black, fully opaque\n gl.clearDepth(1.0); // Clear everything\n\n // Clear the canvas before we start drawing on it.\n\n gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);\n\n // Tell WebGL to use our program when drawing\n \n\n gl.useProgram(programInfo.program);\ngl.uniform1fv(programInfo.uniformLocations.dataBuffer, buffers.data);\n\n {\n const offset = 0;\n const vertexCount = 3;\n gl.drawArrays(gl.TRIANGLE_STRIP, offset, vertexCount);\n }", "name": "", "ref": "@js.script" }, "tfz84l0": { "id": "tfz84l0", "ref": "@memory.cache" }, "5bt6mgs": { "id": "5bt6mgs", "ref": "@memory.cache" }, "njrst9d": { "id": "njrst9d", "value": "const valBuffer = gl.createBuffer();\ngl.bindBuffer(gl.ARRAY_BUFFER, valBuffer);\n\ngl.bufferData(gl.ARRAY_BUFFER, buffer.data, gl.STATIC_DRAW);\n\nreturn {\n val: valBuffer,\n data: buffer.data\n}", "name": "", "ref": "@js.script" } }, "edges": [ { "from": "8dy573e/8dy573e", "to": "out", "as": "display" }, { "from": "j219svq", "to": "out", "as": "subscribe" }, { "from": "04xuprq", "to": "out", "as": "args" }, { "from": "jidlrdv", "to": "gkv4bqi", "as": "value" }, { "from": "gkv4bqi", "to": "04xuprq", "as": "gl" }, { "from": "7i0o3pn", "to": "04xuprq", "as": "vtx" }, { "from": "5pjjo2a", "to": "04xuprq", "as": "frg" }, { "from": "ea0tgct", "to": "bu3m3jq", "as": "source" }, { "from": "hzz1ww4", "to": "bu3m3jq", "as": "shader_type" }, { "from": "rh45l5q", "to": "hzz1ww4", "as": "gl" }, { "from": "qjktjzv", "to": "bu3m3jq", "as": "gl" }, { "from": "l41589j", "to": "camgxqu", "as": "source" }, { "from": "5luq4y5", "to": "camgxqu", "as": "shader_type" }, { "from": "3j7l8wk", "to": "camgxqu", "as": "gl" }, { "from": "wrpwzyg", "to": "5luq4y5", "as": "gl" }, { "from": "2mgzzwp", "to": "out", "as": "value" }, { "from": "wyb1z00", "to": "2mgzzwp", "as": "args" }, { "from": "bkeent2", "to": "p2ibbe3", "as": "shaderProgram" }, { "from": "qbj2tl2", "to": "p2ibbe3", "as": "gl" }, { "from": "esayius", "to": "fbru2p5", "as": "gl" }, { "from": "01l4ilv", "to": "2mgzzwp", "as": "value" }, { "from": "8njh1mx", "to": "njrst9d", "as": "gl" }, { "from": "ca17ykm", "to": "01l4ilv", "as": "gl" }, { "from": "camgxqu", "to": "fbru2p5", "as": "fragmentShader" }, { "from": "bu3m3jq", "to": "fbru2p5", "as": "vertexShader" }, { "from": "ng2kjpd", "to": "njrst9d", "as": "buffer" }, { "from": "1lgkj23", "to": "wyb1z00", "as": "gl" }, { "from": "derz1cv", "to": "wyb1z00", "as": "vtx" }, { "from": "duubxl9", "to": "wyb1z00", "as": "frg" }, { "from": "njrst9d", "to": "01l4ilv", "as": "buffers" }, { "from": "4r5fc0b", "to": "wyb1z00", "as": "buffer" }, { "from": "tfz84l0", "to": "wyb1z00", "as": "shaderProgram" }, { "from": "fbru2p5", "to": "tfz84l0", "as": "value" }, { "from": "5bt6mgs", "to": "01l4ilv", "as": "programInfo" }, { "from": "p2ibbe3", "to": "5bt6mgs", "as": "value" } ], "out": "out" }, "@graphics.load_shader": { "id": "@graphics.load_shader", "category": "graphics", "description": "Loads the `source` shader program in webgl context `gl`", "name": "load_shader", "nodes": { "37nc07d": { "id": "37nc07d" }, "c0cr54c": { "id": "c0cr54c", "value": "const shader = gl.createShader(shader_type);\n\n // Send the source to the shader object\n\n gl.shaderSource(shader, source);\n\n // Compile the shader program\n\n gl.compileShader(shader);\n\n // See if it compiled successfully\n\n if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {\n alert('An error occurred compiling the shaders: ' + gl.getShaderInfoLog(shader));\n gl.deleteShader(shader);\n return null;\n }\n\n return shader;", "name": "", "ref": "@js.script" }, "l3qddzc": { "id": "l3qddzc", "value": "gl", "ref": "arg" }, "e5uhxrd": { "id": "e5uhxrd", "value": "source", "ref": "arg" }, "6o4os08": { "id": "6o4os08", "value": "shader_type", "ref": "arg" }, "bu3m3jq": { "id": "bu3m3jq", "name": "@graphics.load_shader", "ref": "return" } }, "edges": [ { "from": "37nc07d", "to": "bu3m3jq", "as": "args" }, { "from": "c0cr54c", "to": "bu3m3jq", "as": "value" }, { "from": "l3qddzc", "to": "c0cr54c", "as": "gl" }, { "from": "e5uhxrd", "to": "c0cr54c", "as": "source" }, { "from": "6o4os08", "to": "c0cr54c", "as": "shader_type" } ], "out": "bu3m3jq" }, "@event.subscribe_many": { "id": "@event.subscribe_many", "name": "subscribe_many", "nodes": { "ld37qq4": { "id": "ld37qq4", "name": "@event.subscribe_many", "ref": "return" }, "ndna6vl": { "id": "ndna6vl" }, "r0v26jn": { "id": "r0v26jn", "name": "", "ref": "@data.reduce" }, "0n8k0b7": { "id": "0n8k0b7", "value": "events", "ref": "arg" }, "kd528s8": { "id": "kd528s8", "name": "", "ref": "@flow.runnable" }, "rxoook3": { "id": "rxoook3", "ref": "@data.merge_objects" }, "daykk9b": { "id": "daykk9b" }, "6kwqo8l": { "id": "6kwqo8l", "value": "previous", "name": "", "ref": "arg" }, "bzkaiyo": { "id": "bzkaiyo", "name": "", "ref": "@data.set" }, "hsq8vrp": { "id": "hsq8vrp", "value": "base", "ref": "arg" }, "5mzlv42": { "id": "5mzlv42" }, "pkd8b0p": { "id": "pkd8b0p", "value": "current", "ref": "arg" }, "8zi1gzy": { "id": "8zi1gzy", "value": "runnable", "ref": "arg" }, "9716t7q": { "id": "9716t7q", "name": "", "ref": "sequence" }, "hi50l05": { "id": "hi50l05", "ref": "@data.get" }, "opox5xi": { "id": "opox5xi", "value": "base", "ref": "arg" }, "5szjf17": { "id": "5szjf17", "value": "current", "ref": "arg" }, "it3evdr": { "id": "it3evdr" }, "qd1bvw9": { "id": "qd1bvw9" }, "6barb7g": { "id": "6barb7g", "ref": "@memory.cache" }, "i7tgtne": { "id": "i7tgtne", "value": "evt_runnable", "ref": "arg" }, "7rpfcmk": { "id": "7rpfcmk", "ref": "@memory.cache" }, "xk6e7zh": { "id": "xk6e7zh" }, "pf10ku6": { "id": "pf10ku6", "ref": "@flow.runnable" }, "km7iwa0": { "id": "km7iwa0", "ref": "@data.set_mutable" }, "zyqw0ko": { "id": "zyqw0ko", "value": "datacache", "ref": "arg" }, "f0roa3q": { "id": "f0roa3q", "value": "current", "ref": "arg" }, "rat3zkt": { "id": "rat3zkt", "value": "data", "ref": "arg" }, "2mcffa6": { "id": "2mcffa6", "value": "base", "ref": "arg" } }, "edges": [ { "from": "ndna6vl", "to": "ld37qq4", "as": "args" }, { "from": "r0v26jn", "to": "ld37qq4", "as": "return" }, { "from": "0n8k0b7", "to": "r0v26jn", "as": "array" }, { "from": "kd528s8", "to": "r0v26jn", "as": "fn" }, { "from": "2mcffa6", "to": "r0v26jn", "as": "initial" }, { "from": "rxoook3", "to": "kd528s8", "as": "fn" }, { "from": "daykk9b", "to": "kd528s8", "as": "args" }, { "from": "hsq8vrp", "to": "daykk9b", "as": "base" }, { "from": "5mzlv42", "to": "bzkaiyo", "as": "target" }, { "from": "pkd8b0p", "to": "bzkaiyo", "as": "path" }, { "from": "opox5xi", "to": "hi50l05", "as": "target" }, { "from": "5szjf17", "to": "hi50l05", "as": "path" }, { "from": "9716t7q", "to": "bzkaiyo", "as": "value" }, { "from": "8zi1gzy", "to": "daykk9b", "as": "evt_runnable" }, { "from": "it3evdr", "to": "9716t7q", "as": "args" }, { "from": "6barb7g", "to": "it3evdr", "as": "data" }, { "from": "qd1bvw9", "to": "6barb7g", "as": "value" }, { "from": "xk6e7zh", "to": "7rpfcmk", "as": "value" }, { "from": "7rpfcmk", "to": "daykk9b", "as": "datacache" }, { "from": "hi50l05", "to": "9716t7q", "as": "arg2" }, { "from": "pf10ku6", "to": "9716t7q", "as": "arg0" }, { "from": "km7iwa0", "to": "pf10ku6", "as": "fn" }, { "from": "zyqw0ko", "to": "km7iwa0", "as": "target" }, { "from": "f0roa3q", "to": "km7iwa0", "as": "path" }, { "from": "rat3zkt", "to": "km7iwa0", "as": "value" }, { "from": "6kwqo8l", "to": "rxoook3", "as": "arg0" }, { "from": "bzkaiyo", "to": "rxoook3", "as": "arg1" }, { "from": "i7tgtne", "to": "9716t7q", "as": "arg1" } ], "out": "ld37qq4", "category": "event" }, // "@html.slider": , "@nodysseus.export": { "category": "nodysseus", "edges": { "args": { "as": "args", "from": "args", "to": "out" }, "jklqh38": { "as": "display", "from": "jklqh38", "to": "out" }, "6qkew20": { "as": "children", "from": "6qkew20", "to": "jklqh38" }, "3y8pyc2": { "as": "arg3", "from": "3y8pyc2", "to": "6qkew20" }, "8dy573e": { "as": "arg0", "from": "8dy573e", "to": "6qkew20" }, "pcx97n4": { "as": "arg2", "from": "pcx97n4", "to": "6qkew20" }, "rk7hcxc": { "as": "props", "from": "rk7hcxc", "to": "pcx97n4" }, "91lhfar": { "as": "onchange", "from": "91lhfar", "to": "rk7hcxc" }, "b8wohxv": { "as": "type", "from": "b8wohxv", "to": "rk7hcxc" }, "x200f4j": { "as": "list", "from": "x200f4j", "to": "rk7hcxc" }, "91lhfar_arr": { "as": "fn", "from": "91lhfar_arr", "to": "91lhfar" }, "zpv5bk2": { "as": "args", "from": "zpv5bk2", "to": "91lhfar" }, "6dadrg0": { "as": "event", "from": "6dadrg0", "to": "zpv5bk2" }, "898n6f7": { "as": "arg0", "from": "898n6f7", "to": "91lhfar_arr" }, "i5wnhvh": { "as": "arg1", "from": "i5wnhvh", "to": "91lhfar_arr" }, "mp0ce5t": { "as": "fn", "from": "mp0ce5t", "to": "i5wnhvh" }, "zucq3k4": { "as": "args", "from": "zucq3k4", "to": "i5wnhvh" }, "8470sfe": { "as": "value", "from": "8470sfe", "to": "zucq3k4" }, "hke54sp": { "as": "file", "from": "hke54sp", "to": "8470sfe" }, "syfso39": { "as": "json", "from": "syfso39", "to": "hke54sp" }, "5ym155p": { "as": "object", "from": "5ym155p", "to": "syfso39" }, "aem1lk9": { "as": "state", "from": "aem1lk9", "to": "5ym155p" }, "kaiwusy": { "as": "graphs", "from": "kaiwusy", "to": "5ym155p" }, "0pnyh3t": { "as": "array", "from": "0pnyh3t", "to": "db0reg4" }, "959i120": { "as": "fn", "from": "959i120", "to": "db0reg4" }, "i60dlmh": { "as": "parameters", "from": "i60dlmh", "to": "959i120" }, "x8ik3x4": { "as": "fn", "from": "x8ik3x4", "to": "959i120" }, "g7pa2bl": { "as": "element", "from": "g7pa2bl", "to": "i60dlmh" }, "l4o1umt": { "as": "value", "from": "l4o1umt", "to": "0pnyh3t" }, "refspromise": { "as": "refs", "from": "refspromise", "to": "l4o1umt" }, "w78q6vm": { "as": "namespace", "from": "w78q6vm", "to": "l4o1umt" }, "1axuplc": { "as": "value", "from": "1axuplc", "to": "w78q6vm" }, "47sbfib": { "as": "value", "from": "47sbfib", "to": "aem1lk9" }, "obg8j8v": { "as": "graphid", "from": "obg8j8v", "to": "47sbfib" }, "690ivn1": { "as": "args", "from": "690ivn1", "to": "898n6f7" }, "9jvfgj1": { "as": "fn", "from": "9jvfgj1", "to": "898n6f7" }, "j2c518b": { "as": "value", "from": "j2c518b", "to": "690ivn1" }, "qpiqhgp": { "as": "value", "from": "qpiqhgp", "to": "j2c518b" }, "n7aaoju": { "as": "children", "from": "n7aaoju", "to": "8dy573e" }, "zihm1kd": { "as": "props", "from": "zihm1kd", "to": "8dy573e" }, "2dz33fg": { "as": "target", "from": "2dz33fg", "to": "zihm1kd" }, "jdoak4g": { "as": "download", "from": "jdoak4g", "to": "zihm1kd" }, "pni2xuu": { "as": "href", "from": "pni2xuu", "to": "zihm1kd" }, "ug26ugw": { "as": "reference", "from": "ug26ugw", "to": "hrefread" }, "hrefread": { "as": "value", "from": "hrefread", "to": "pni2xuu" }, "nsrefread": { "as": "ns", "from": "nsrefread", "to": "jdoak4g" }, "jdufmth": { "as": "reference", "from": "jdufmth", "to": "nsrefread" }, "et5g0m1": { "as": "children", "from": "et5g0m1", "to": "3y8pyc2" }, "xdot36k": { "as": "props", "from": "xdot36k", "to": "3y8pyc2" }, "tfwqhqf": { "as": "id", "from": "tfwqhqf", "to": "xdot36k" }, "2yur4h7": { "as": "fn", "from": "2yur4h7", "to": "et5g0m1" }, "9tv13iq": { "as": "array", "from": "9tv13iq", "to": "et5g0m1" }, "1edrrwq": { "as": "fn", "from": "1edrrwq", "to": "2yur4h7" }, "6ag8lnc": { "as": "parameters", "from": "6ag8lnc", "to": "2yur4h7" }, "9rf8bds": { "as": "element", "from": "9rf8bds", "to": "6ag8lnc" }, "skqnl08": { "as": "children", "from": "skqnl08", "to": "1edrrwq" }, "xp4pv1h": { "as": "text", "from": "xp4pv1h", "to": "skqnl08" }, "dd6st1b": { "as": "element", "from": "dd6st1b", "to": "xp4pv1h" }, "3b7bnzm": { "as": "hrefstate", "from": "3b7bnzm", "to": "args" }, "tad7830": { "as": "namespace", "from": "tad7830", "to": "args" }, "a1vqjzz": { "from": "a1vqjzz", "to": "8zvzwb5", "as": "ref" }, "8zvzwb5": { "from": "8zvzwb5", "to": "x8ik3x4", "as": "graphs" }, "o7cn2a9": { "from": "o7cn2a9", "to": "kaiwusy", "as": "value" }, "db0reg4": { "from": "db0reg4", "to": "o7cn2a9", "as": "graphs" } }, "id": "@nodysseus.export", "nodes": { "out": { "id": "out", "name": "@nodysseus.export", "ref": "return" }, "jklqh38": { "id": "jklqh38", "ref": "@html.html_element" }, "6qkew20": { "id": "6qkew20", "ref": "@data.array" }, "pcx97n4": { "id": "pcx97n4", "ref": "@html.html_element", "value": "input" }, "rk7hcxc": { "id": "rk7hcxc" }, "x200f4j": { "id": "x200f4j", "value": "export-list" }, "b8wohxv": { "id": "b8wohxv", "value": "select" }, "91lhfar": { "id": "91lhfar", "ref": "@flow.ap" }, "zpv5bk2": { "id": "zpv5bk2" }, "6dadrg0": { "id": "6dadrg0", "ref": "arg", "value": "event" }, "91lhfar_arr": { "id": "91lhfar_arr", "ref": "@data.array" }, "i5wnhvh": { "id": "i5wnhvh", "ref": "@flow.ap" }, "zucq3k4": { "id": "zucq3k4" }, "8470sfe": { "id": "8470sfe", "ref": "@js.script", "value": "return URL.createObjectURL(file)" }, "hke54sp": { "id": "hke54sp", "ref": "@js.script", "value": "return new Blob([json], {type: \"application/json\"})" }, "syfso39": { "id": "syfso39", "ref": "@data.stringify" }, "5ym155p": { "id": "5ym155p" }, "kaiwusy": { "id": "kaiwusy", "ref": "@debug.log", "value": "mapout" }, "db0reg4": { "id": "db0reg4", "ref": "@data.map" }, "959i120": { "id": "959i120", "ref": "@flow.runnable" }, "x8ik3x4": { "id": "x8ik3x4", "value": "return graphs.map(ref => {const ret = {...ref}; delete ret['edges_in']; return ret;});", "ref": "@js.script" }, "8zvzwb5": { "id": "8zvzwb5", "value": "return _lib.runtime.graphExport(ref)", "ref": "@js.script" }, "a1vqjzz": { "id": "a1vqjzz", "ref": "arg", "value": "element" }, "i60dlmh": { "id": "i60dlmh" }, "g7pa2bl": { "id": "g7pa2bl" }, "0pnyh3t": { "id": "0pnyh3t", "ref": "@debug.log", "value": "mapin" }, "l4o1umt": { "id": "l4o1umt", "ref": "@js.script", "value": "return refs.filter(r => r.startsWith('@' + namespace + '.') || r === namespace)" }, "w78q6vm": { "id": "w78q6vm", "ref": "@debug.log", "value": "ns" }, "1axuplc": { "id": "1axuplc", "ref": "arg", "value": "event.target.value" }, "refspromise": { "id": "refspromise", "ref": "@js.script", "value": "return _lib.runtime.refs()" }, "aem1lk9": { "id": "aem1lk9", "ref": "@debug.log", "value": "state?" }, "47sbfib": { "id": "47sbfib", "ref": "extern", "value": "extern.graphState" }, "obg8j8v": { "id": "obg8j8v", "ref": "arg", "value": "event.target.value" }, "mp0ce5t": { "id": "mp0ce5t", "ref": "arg", "value": "hrefstate.set" }, "898n6f7": { "id": "898n6f7", "ref": "@flow.ap" }, "9jvfgj1": { "id": "9jvfgj1", "ref": "arg", "value": "namespace.set" }, "690ivn1": { "id": "690ivn1", "ref": "@debug.log", "value": "val" }, "j2c518b": { "id": "j2c518b" }, "qpiqhgp": { "id": "qpiqhgp", "ref": "arg", "value": "event.target.value" }, "8dy573e": { "id": "8dy573e", "ref": "@html.html_element", "value": "a" }, "zihm1kd": { "id": "zihm1kd" }, "pni2xuu": { "id": "pni2xuu", "ref": "@debug.log", "value": "href" }, "ug26ugw": { "id": "ug26ugw", "name": "", "ref": "arg", "value": "hrefstate" }, "jdoak4g": { "id": "jdoak4g", "ref": "@js.script", "value": "return ns + '.json';" }, "jdufmth": { "id": "jdufmth", "ref": "arg", "value": "namespace" }, "nsrefread": { "id": "nsrefread", "ref": "@memory.readReference", }, "hrefread": { "id": "hrefread", "ref": "@memory.readReference", }, "2dz33fg": { "id": "2dz33fg", "value": "_new" }, "n7aaoju": { "id": "n7aaoju", "ref": "@html.html_text", "value": "Export" }, "3y8pyc2": { "id": "3y8pyc2", "ref": "@html.html_element", "value": "datalist" }, "xdot36k": { "id": "xdot36k" }, "tfwqhqf": { "id": "tfwqhqf", "value": "export-list" }, "et5g0m1": { "id": "et5g0m1", "ref": "@data.map" }, "9tv13iq": { "id": "9tv13iq", "ref": "@js.script", "value": "return _lib.runtime.refs()" }, "2yur4h7": { "id": "2yur4h7", "ref": "@flow.runnable" }, "6ag8lnc": { "id": "6ag8lnc" }, "9rf8bds": { "id": "9rf8bds" }, "1edrrwq": { "id": "1edrrwq", "ref": "@html.html_element", "value": "option" }, "skqnl08": { "id": "skqnl08", "ref": "@html.html_text" }, "xp4pv1h": { "id": "xp4pv1h", "ref": "@js.script", "value": "return element" }, "dd6st1b": { "id": "dd6st1b", "ref": "arg", "value": "element" }, "args": { "id": "args", }, "tad7830": { "id": "tad7830", "ref": "@memory.state" }, "3b7bnzm": { "id": "3b7bnzm", "ref": "@memory.state" }, "o7cn2a9": { "id": "o7cn2a9", "value": "return Object.values(graphs.flat().reduce((acc, graph) => acc[graph.id] ? acc : {...acc, [graph.id]: graph}, {}));", "ref": "@js.script" } }, "out": "out" }, "@nodysseus.export_html": {"category":"nodysseus","edges":{"args":{"as":"args","from":"args","to":"out"},"jklqh38":{"as":"display","from":"jklqh38","to":"out"},"6qkew20":{"as":"children","from":"6qkew20","to":"jklqh38"},"3y8pyc2":{"as":"arg3","from":"3y8pyc2","to":"6qkew20"},"8dy573e":{"as":"arg0","from":"8dy573e","to":"6qkew20"},"pcx97n4":{"as":"arg2","from":"pcx97n4","to":"6qkew20"},"rk7hcxc":{"as":"props","from":"rk7hcxc","to":"pcx97n4"},"91lhfar":{"as":"onchange","from":"91lhfar","to":"rk7hcxc"},"b8wohxv":{"as":"type","from":"b8wohxv","to":"rk7hcxc"},"x200f4j":{"as":"list","from":"x200f4j","to":"rk7hcxc"},"91lhfar_arr":{"as":"fn","from":"91lhfar_arr","to":"91lhfar"},"zpv5bk2":{"as":"args","from":"zpv5bk2","to":"91lhfar"},"6dadrg0":{"as":"event","from":"6dadrg0","to":"zpv5bk2"},"898n6f7":{"as":"arg0","from":"898n6f7","to":"91lhfar_arr"},"i5wnhvh":{"as":"arg1","from":"i5wnhvh","to":"91lhfar_arr"},"mp0ce5t":{"as":"fn","from":"mp0ce5t","to":"i5wnhvh"},"zucq3k4":{"as":"args","from":"zucq3k4","to":"i5wnhvh"},"8470sfe":{"as":"value","from":"8470sfe","to":"zucq3k4"},"hke54sp":{"as":"file","from":"hke54sp","to":"8470sfe"},"4s3ayzq":{"as":"json","from":"4s3ayzq","to":"hke54sp"},"j7059cv":{"as":"graphId","from":"j7059cv","to":"4s3ayzq"},"syfso39":{"as":"json","from":"syfso39","to":"4s3ayzq"},"5ym155p":{"as":"object","from":"5ym155p","to":"syfso39"},"aem1lk9":{"as":"state","from":"aem1lk9","to":"5ym155p"},"kaiwusy":{"as":"graphs","from":"kaiwusy","to":"5ym155p"},"o7cn2a9":{"as":"value","from":"o7cn2a9","to":"kaiwusy"},"db0reg4":{"as":"graphs","from":"db0reg4","to":"o7cn2a9"},"0pnyh3t":{"as":"array","from":"0pnyh3t","to":"db0reg4"},"959i120":{"as":"fn","from":"959i120","to":"db0reg4"},"i60dlmh":{"as":"parameters","from":"i60dlmh","to":"959i120"},"x8ik3x4":{"as":"fn","from":"x8ik3x4","to":"959i120"},"8zvzwb5":{"as":"graphs","from":"8zvzwb5","to":"x8ik3x4"},"a1vqjzz":{"as":"ref","from":"a1vqjzz","to":"8zvzwb5"},"g7pa2bl":{"as":"element","from":"g7pa2bl","to":"i60dlmh"},"l4o1umt":{"as":"value","from":"l4o1umt","to":"0pnyh3t"},"refspromise":{"as":"refs","from":"refspromise","to":"l4o1umt"},"w78q6vm":{"as":"namespace","from":"w78q6vm","to":"l4o1umt"},"1axuplc":{"as":"value","from":"1axuplc","to":"w78q6vm"},"47sbfib":{"as":"value","from":"47sbfib","to":"aem1lk9"},"obg8j8v":{"as":"graphid","from":"obg8j8v","to":"47sbfib"},"690ivn1":{"as":"args","from":"690ivn1","to":"898n6f7"},"9jvfgj1":{"as":"fn","from":"9jvfgj1","to":"898n6f7"},"j2c518b":{"as":"value","from":"j2c518b","to":"690ivn1"},"qpiqhgp":{"as":"value","from":"qpiqhgp","to":"j2c518b"},"n7aaoju":{"as":"children","from":"n7aaoju","to":"8dy573e"},"zihm1kd":{"as":"props","from":"zihm1kd","to":"8dy573e"},"2dz33fg":{"as":"target","from":"2dz33fg","to":"zihm1kd"},"jdoak4g":{"as":"download","from":"jdoak4g","to":"zihm1kd"},"pni2xuu":{"as":"href","from":"pni2xuu","to":"zihm1kd"},"ug26ugw":{"as":"value","from":"ug26ugw","to":"pni2xuu"},"jdufmth":{"as":"ns","from":"jdufmth","to":"jdoak4g"},"et5g0m1":{"as":"children","from":"et5g0m1","to":"3y8pyc2"},"xdot36k":{"as":"props","from":"xdot36k","to":"3y8pyc2"},"tfwqhqf":{"as":"id","from":"tfwqhqf","to":"xdot36k"},"2yur4h7":{"as":"fn","from":"2yur4h7","to":"et5g0m1"},"9tv13iq":{"as":"array","from":"9tv13iq","to":"et5g0m1"},"1edrrwq":{"as":"fn","from":"1edrrwq","to":"2yur4h7"},"6ag8lnc":{"as":"parameters","from":"6ag8lnc","to":"2yur4h7"},"9rf8bds":{"as":"element","from":"9rf8bds","to":"6ag8lnc"},"skqnl08":{"as":"children","from":"skqnl08","to":"1edrrwq"},"xp4pv1h":{"as":"text","from":"xp4pv1h","to":"skqnl08"},"dd6st1b":{"as":"element","from":"dd6st1b","to":"xp4pv1h"},"3b7bnzm":{"as":"hrefstate","from":"3b7bnzm","to":"args"},"tad7830":{"as":"namespace","from":"tad7830","to":"args"}},"id":"@nodysseus.export_html","nodes":{"out":{"id":"out","name":"@nodysseus.export_html","ref":"return"},"jklqh38":{"id":"jklqh38","ref":"@html.html_element"},"6qkew20":{"id":"6qkew20","ref":"@data.array"},"pcx97n4":{"id":"pcx97n4","ref":"@html.html_element","value":"input"},"rk7hcxc":{"id":"rk7hcxc"},"x200f4j":{"id":"x200f4j","value":"export-list"},"b8wohxv":{"id":"b8wohxv","value":"select"},"91lhfar":{"id":"91lhfar","ref":"@flow.ap"},"zpv5bk2":{"id":"zpv5bk2"},"6dadrg0":{"id":"6dadrg0","ref":"arg","value":"event"},"91lhfar_arr":{"id":"91lhfar_arr","ref":"@data.array"},"i5wnhvh":{"id":"i5wnhvh","ref":"@flow.ap"},"zucq3k4":{"id":"zucq3k4"},"8470sfe":{"id":"8470sfe","ref":"@js.script","value":"return URL.createObjectURL(file)"},"hke54sp":{"id":"hke54sp","ref":"@js.script","value":"return new Blob([json], {type: \"application/html\"})"},"4s3ayzq":{"id":"4s3ayzq","value":"return `\n\n\n\n\n Nodysseus\n \n \n\n\n
\n \n\n\n\n\n`","ref":"@js.script"},"syfso39":{"id":"syfso39","ref":"@data.stringify"},"5ym155p":{"id":"5ym155p"},"kaiwusy":{"id":"kaiwusy","ref":"@debug.log","value":"mapout"},"o7cn2a9":{"id":"o7cn2a9","ref":"@js.script","value":"return Object.values(graphs.flat().reduce((acc, graph) => acc[graph.id] ? acc : {...acc, [graph.id]: graph}, {}));"},"db0reg4":{"id":"db0reg4","ref":"@data.map"},"959i120":{"id":"959i120","ref":"@flow.runnable"},"x8ik3x4":{"id":"x8ik3x4","ref":"@js.script","value":"return graphs.map(ref => {const ret = {...ref}; delete ret['edges_in']; return ret;});"},"8zvzwb5":{"id":"8zvzwb5","ref":"@js.script","value":"return _lib.runtime.graphExport(ref)"},"a1vqjzz":{"id":"a1vqjzz","ref":"arg","value":"element"},"i60dlmh":{"id":"i60dlmh"},"g7pa2bl":{"id":"g7pa2bl"},"0pnyh3t":{"id":"0pnyh3t","ref":"@debug.log","value":"mapin"},"l4o1umt":{"id":"l4o1umt","ref":"@js.script","value":"return refs.filter(r => r.startsWith('@' + namespace + '.') || r === namespace)"},"w78q6vm":{"id":"w78q6vm","ref":"@debug.log","value":"ns"},"1axuplc":{"id":"1axuplc","ref":"arg","value":"event.target.value"},"refspromise":{"id":"refspromise","ref":"@js.script","value":"return _lib.runtime.refs()"},"aem1lk9":{"id":"aem1lk9","ref":"@debug.log","value":"state?"},"47sbfib":{"id":"47sbfib","ref":"extern","value":"extern.graphState"},"obg8j8v":{"id":"obg8j8v","ref":"arg","value":"event.target.value"},"j7059cv":{"id":"j7059cv","ref":"arg","value":"event.target.value"},"mp0ce5t":{"id":"mp0ce5t","ref":"arg","value":"hrefstate.set"},"898n6f7":{"id":"898n6f7","ref":"@flow.ap"},"9jvfgj1":{"id":"9jvfgj1","ref":"arg","value":"namespace.set"},"690ivn1":{"id":"690ivn1","ref":"@debug.log","value":"val"},"j2c518b":{"id":"j2c518b"},"qpiqhgp":{"id":"qpiqhgp","ref":"arg","value":"event.target.value"},"8dy573e":{"id":"8dy573e","ref":"@html.html_element","value":"a"},"zihm1kd":{"id":"zihm1kd"},"pni2xuu":{"id":"pni2xuu","ref":"@debug.log","value":"href"},"ug26ugw":{"id":"ug26ugw","name":"","ref":"arg","value":"hrefstate.state"},"jdoak4g":{"id":"jdoak4g","ref":"@js.script","value":"return ns + '.html';"},"jdufmth":{"id":"jdufmth","ref":"arg","value":"namespace.state"},"2dz33fg":{"id":"2dz33fg","value":"_new"},"n7aaoju":{"id":"n7aaoju","ref":"@html.html_text","value":"Export"},"3y8pyc2":{"id":"3y8pyc2","ref":"@html.html_element","value":"datalist"},"xdot36k":{"id":"xdot36k"},"tfwqhqf":{"id":"tfwqhqf","value":"export-list"},"et5g0m1":{"id":"et5g0m1","ref":"@data.map"},"9tv13iq":{"id":"9tv13iq","ref":"@js.script","value":"return _lib.runtime.refs()"},"2yur4h7":{"id":"2yur4h7","ref":"@flow.runnable"},"6ag8lnc":{"id":"6ag8lnc"},"9rf8bds":{"id":"9rf8bds"},"1edrrwq":{"id":"1edrrwq","ref":"@html.html_element","value":"option"},"skqnl08":{"id":"skqnl08","ref":"@html.html_text"},"xp4pv1h":{"id":"xp4pv1h","ref":"@js.script","value":"return element"},"dd6st1b":{"id":"dd6st1b","ref":"arg","value":"element"},"args":{"id":"args","ref":"extern","value":"extern.data"},"tad7830":{"id":"tad7830","ref":"@memory.state"},"3b7bnzm":{"id":"3b7bnzm","ref":"@memory.state"}},"out":"out"}, "@memory.assetmanager": { "id": "@memory.assetmanager", "out": "out", "nodes": { "args": { "id": "args", "ref": "extern", "value": "extern.data" }, "qgbinm2": { "id": "qgbinm2", "value": "input", "ref": "@html.html_element" }, "8dy573e": { "id": "8dy573e", "ref": "@html.html_element" }, "output_val": { "id": "output_val", "value": "some output" }, "out": { "id": "out", "ref": "return", "name": "@memory.assetmanager" }, "46kgw03": { "id": "46kgw03", "value": "\nreturn _lib.list_assets();", "ref": "@js.script" }, "4nx9x10": { "id": "4nx9x10", "ref": "@debug.log" }, "rrgshuq": { "id": "rrgshuq", "value": "select", "ref": "@html.html_element" }, "chkprox": { "id": "chkprox", "ref": "@data.map" }, "5hesw9s": { "id": "5hesw9s", "value": "return _lib.runtime.list_assets()", "ref": "@js.script" }, "49od031": { "id": "49od031", "ref": "@flow.runnable" }, "h1z2zqq": { "id": "h1z2zqq", "value": "element", "ref": "arg" }, "znw0jq1": { "id": "znw0jq1", "value": "option", "ref": "@html.html_element" }, "xiv2pw0": { "id": "xiv2pw0" }, "yx1sv0e": { "id": "yx1sv0e" }, "zk03lef": { "id": "zk03lef" }, "23vrr6n": { "id": "23vrr6n", "value": "element", "ref": "arg" }, "md80upr": { "id": "md80upr" }, "zhoffc7": { "id": "zhoffc7", "ref": "@data.array" }, "4zueto7": { "id": "4zueto7" }, "5ndg5og": { "id": "5ndg5og", "value": "file" }, "10ozygd": { "id": "10ozygd", "ref": "@flow.runnable" }, "6zb4hho": { "id": "6zb4hho", "value": "event.target.files", "ref": "arg" }, "6c04ryh": { "id": "6c04ryh", "value": "_lib.runtime.add_asset(name, files[0])", "ref": "@js.script" }, "d4sx4ej": { "id": "d4sx4ej", "value": "assetname", "ref": "arg" }, "drkjew9": { "id": "drkjew9" }, "12i36ht": { "id": "12i36ht", "ref": "@memory.state" }, "gwslf7p": { "id": "gwslf7p" }, "g6loz00": { "id": "g6loz00", "ref": "@flow.ap" }, "7ny91r3": { "id": "7ny91r3", "value": "event.target.value", "ref": "arg" }, "vg773lv": { "id": "vg773lv", "value": "return _lib.runtime.get_asset(asset);", "ref": "@js.script" }, "jhyu5pk": { "id": "jhyu5pk" }, "gnuhmpf": { "id": "gnuhmpf", "value": "_asset.set", "ref": "arg" }, "dh814lx": { "id": "dh814lx", "value": "_asset.state", "ref": "arg" }, "mhqejl5": { "id": "mhqejl5", "value": "file", "ref": "@data.set" }, "1090db5": { "id": "1090db5", "ref": "@flow.if" }, "xuyat95": { "id": "xuyat95", "ref": "@flow.if" }, "mk4gru0": { "id": "mk4gru0", "value": "assetname", "ref": "arg" }, "9ucfrui": { "id": "9ucfrui", "ref": "@flow.ap" }, "1ts2j8n": { "id": "1ts2j8n" }, "gzki6r1": { "id": "gzki6r1", "value": "return _lib.runtime.get_asset(asset);", "ref": "@js.script" }, "l7ahauw": { "id": "l7ahauw", "value": "assetname", "ref": "arg" }, "nhruqy5": { "id": "nhruqy5", "value": "true" }, "g7ew1lp": { "id": "g7ew1lp", "value": "_asset.set", "ref": "arg" }, "riqk7hm": { "id": "riqk7hm", "value": "_asset.state", "ref": "arg" }, "b9gbfro": { "id": "b9gbfro", "value": "_asset.state", "ref": "arg" } }, "edges": { "qgbinm2": { "from": "qgbinm2", "to": "zhoffc7", "as": "arg2" }, "8dy573e": { "from": "8dy573e", "to": "mhqejl5", "as": "target" }, "args": { "from": "args", "to": "out", "as": "args" }, "rrgshuq": { "from": "rrgshuq", "to": "zhoffc7", "as": "arg3" }, "chkprox": { "from": "chkprox", "to": "rrgshuq", "as": "children" }, "5hesw9s": { "from": "5hesw9s", "to": "chkprox", "as": "array" }, "49od031": { "from": "49od031", "to": "chkprox", "as": "fn" }, "h1z2zqq": { "from": "h1z2zqq", "to": "xiv2pw0", "as": "value" }, "znw0jq1": { "from": "znw0jq1", "to": "49od031", "as": "fn" }, "xiv2pw0": { "from": "xiv2pw0", "to": "znw0jq1", "as": "props" }, "yx1sv0e": { "from": "yx1sv0e", "to": "49od031", "as": "parameters" }, "zk03lef": { "from": "zk03lef", "to": "yx1sv0e", "as": "element" }, "23vrr6n": { "from": "23vrr6n", "to": "znw0jq1", "as": "children" }, "md80upr": { "from": "md80upr", "to": "drkjew9", "as": "event" }, "zhoffc7": { "from": "zhoffc7", "to": "8dy573e", "as": "children" }, "4zueto7": { "from": "4zueto7", "to": "qgbinm2", "as": "props" }, "5ndg5og": { "from": "5ndg5og", "to": "4zueto7", "as": "type" }, "10ozygd": { "from": "10ozygd", "to": "4zueto7", "as": "onchange" }, "6zb4hho": { "from": "6zb4hho", "to": "6c04ryh", "as": "files" }, "6c04ryh": { "from": "6c04ryh", "to": "10ozygd", "as": "fn" }, "d4sx4ej": { "from": "d4sx4ej", "to": "6c04ryh", "as": "name" }, "drkjew9": { "from": "drkjew9", "to": "10ozygd", "as": "parameters" }, "12i36ht": { "from": "12i36ht", "to": "args", "as": "_asset" }, "gwslf7p": { "from": "gwslf7p", "to": "rrgshuq", "as": "props" }, "g6loz00": { "from": "g6loz00", "to": "gwslf7p", "as": "onchange" }, "7ny91r3": { "from": "7ny91r3", "to": "vg773lv", "as": "asset" }, "vg773lv": { "from": "vg773lv", "to": "jhyu5pk", "as": "value" }, "jhyu5pk": { "from": "jhyu5pk", "to": "g6loz00", "as": "args" }, "gnuhmpf": { "from": "gnuhmpf", "to": "g6loz00", "as": "fn" }, "dh814lx": { "from": "dh814lx", "to": "gwslf7p", "as": "value" }, "mhqejl5": { "from": "mhqejl5", "to": "out", "as": "value" }, "b9gbfro": { "from": "b9gbfro", "to": "1090db5", "as": "true" }, "riqk7hm": { "from": "riqk7hm", "to": "1090db5", "as": "pred" }, "xuyat95": { "from": "xuyat95", "to": "1090db5", "as": "false" }, "9ucfrui": { "from": "9ucfrui", "to": "xuyat95", "as": "true" }, "mk4gru0": { "from": "mk4gru0", "to": "xuyat95", "as": "pred" }, "g7ew1lp": { "from": "g7ew1lp", "to": "9ucfrui", "as": "fn" }, "nhruqy5": { "from": "nhruqy5", "to": "9ucfrui", "as": "run" }, "1ts2j8n": { "from": "1ts2j8n", "to": "9ucfrui", "as": "args" }, "gzki6r1": { "from": "gzki6r1", "to": "1ts2j8n", "as": "value" }, "l7ahauw": { "from": "l7ahauw", "to": "gzki6r1", "as": "asset" }, "1090db5": { "from": "1090db5", "to": "mhqejl5", "as": "value" } }, "category": "memory" }, "@math.fit": { "id": "@math.fit", "out": "out", "nodes": { "args": { "id": "args", "ref": "extern", "value": "extern.data" }, "qgbinm2": { "id": "qgbinm2", "value": "Hello, world!", "ref": "@html.html_text" }, "8dy573e": { "id": "8dy573e", "ref": "@html.html_element" }, "output_val": { "id": "output_val", "value": "const ap0 = a0 === undefined ? 0 : a0;\nconst bp0 = b0 === undefined ? 1 : b0;\nconst lerp = (x - ap0) / (bp0 - ap0);\nconst result = a1 + lerp * (b1 - a1);\nreturn clamp ? Math.min(Math.max(result, Math.min(a1, b1)), Math.max(a1, b1)) : result", "ref": "@js.script" }, "out": { "id": "out", "name": "@math.fit", "ref": "return" }, "5locpe3": { "id": "5locpe3", "value": "oldLow", "ref": "arg" }, "a8kr545": { "id": "a8kr545", "value": "oldHigh", "ref": "arg" }, "s9mrg9v": { "id": "s9mrg9v", "value": "newLow", "ref": "arg" }, "y1hnt8t": { "id": "y1hnt8t", "value": "newHigh", "ref": "arg" }, "fma0geo": { "id": "fma0geo", "value": "value", "ref": "arg" }, "s351p91": { "id": "s351p91", "value": "clamp", "ref": "arg" } }, "edges": { "qgbinm2": { "from": "qgbinm2", "to": "8dy573e", "as": "children" }, "8dy573e": { "from": "8dy573e", "to": "out", "as": "display" }, "output_val": { "from": "output_val", "to": "out", "as": "value" }, "args": { "from": "args", "to": "out", "as": "args" }, "5locpe3": { "from": "5locpe3", "to": "output_val", "as": "a0" }, "a8kr545": { "from": "a8kr545", "to": "output_val", "as": "b0" }, "s9mrg9v": { "from": "s9mrg9v", "to": "output_val", "as": "a1" }, "y1hnt8t": { "from": "y1hnt8t", "to": "output_val", "as": "b1" }, "fma0geo": { "from": "fma0geo", "to": "output_val", "as": "x" }, "s351p91": { "from": "s351p91", "to": "output_val", "as": "clamp" } }, "category": "math" }, "@memory.store_file": { "id": "@memory.store_file", "category": "memory", "nodes": { "args": { "id": "args", "ref": "extern", "value": "extern.data" }, "8dy573e": { "id": "8dy573e", "ref": "@html.html_element" }, "arcnyff": { "id": "arcnyff", "ref": "@data.array" }, "qgbinm2": { "id": "qgbinm2", "value": "Upload a json file", "ref": "@html.html_text" }, "rtrp3nj": { "id": "rtrp3nj", "value": "input", "ref": "@html.html_element" }, "vnibm4q": { "id": "vnibm4q" }, "07fjn2b": { "id": "07fjn2b", "value": "file" }, "jmqcpll": { "id": "jmqcpll", "ref": "@flow.runnable" }, "o9ukwn8": { "id": "o9ukwn8", "value": "event.target.files.0", "ref": "arg" }, "out": { "id": "out", "name": "@memory.store_file", "ref": "return" }, "1672j69": { "id": "1672j69", "value": "arrayBuffer", "ref": "@js.call" }, "qzp14wr": { "id": "qzp14wr", "value": "add_asset", "ref": "extern" }, "v99fk3p": { "id": "v99fk3p", "ref": "@data.array" }, "y58g8pm": { "id": "y58g8pm", "value": "img", "ref": "@html.html_element" }, "pldugnx": { "id": "pldugnx" }, "ceomp2r": { "id": "ceomp2r", "ref": "@data.array" }, "uyspmvr": { "id": "uyspmvr", "value": "get_asset", "ref": "extern" }, "psxdib2": { "id": "psxdib2", "ref": "return" }, "nxdj21x": { "id": "nxdj21x" }, "gsrb9e6": { "id": "gsrb9e6" }, "4j186m3": { "id": "4j186m3", "value": "50vh" }, "rdt0k55": { "id": "rdt0k55", "value": "image/*" }, "gi30q1h": { "id": "gi30q1h" }, "0clgvk2": { "id": "0clgvk2", "value": "event.target.files.0.type", "ref": "arg" }, "yj9sw4x": { "id": "yj9sw4x", "value": "asset", "ref": "arg" }, "c0gcfke": { "id": "c0gcfke", "value": "asset.data", "ref": "arg" }, "qh60wjb": { "id": "qh60wjb", "value": "asset.type", "ref": "arg" }, "ncih0ts": { "id": "ncih0ts", "value": "asset_id", "ref": "arg" }, "zugbd71": { "id": "zugbd71", "ref": "@flow.if" }, "fmostjp": { "id": "fmostjp", "value": "get_asset", "ref": "extern" }, "hj6upcm": { "id": "hj6upcm", "ref": "@data.array" }, "eviegts": { "id": "eviegts", "value": "asset_id", "ref": "arg" }, "kldqqu0": { "id": "kldqqu0", "value": "asset.type", "ref": "arg" }, "ic7fy1m": { "id": "ic7fy1m", "value": "asset.data", "ref": "arg" }, "yx80n2x": { "id": "yx80n2x", "ref": "return" }, "2qd7694": { "id": "2qd7694", "value": "const blob = new Blob([data], {type: filetype})\nconst url = URL.createObjectURL(blob);\nreturn url", "ref": "@js.script" }, "5mfdcg0": { "id": "5mfdcg0" }, "izkowx6": { "id": "izkowx6", "ref": "@flow.default" }, "i6lfbjh": { "id": "i6lfbjh", "value": "__graph_value", "ref": "arg" }, "b444vmf": { "id": "b444vmf", "ref": "@flow.default" }, "lpet497": { "id": "lpet497", "value": "asset_id", "ref": "arg" }, "lkz76u7": { "id": "lkz76u7", "value": "__graph_value", "ref": "arg" }, "6t8kqs9": { "id": "6t8kqs9", "ref": "@flow.default" }, "ke8lvin": { "id": "ke8lvin", "value": "__graph_value", "ref": "arg" }, "j7ct5iw": { "id": "j7ct5iw", "value": "const blob = new Blob([data], {type: filetype})\nconst url = URL.createObjectURL(blob);\nreturn url", "ref": "@js.script" } }, "edges": [ { "from": "8dy573e", "to": "out", "as": "display" }, { "from": "args", "to": "out", "as": "args" }, { "from": "arcnyff", "to": "8dy573e", "as": "children" }, { "from": "rtrp3nj", "to": "arcnyff", "as": "arg1" }, { "from": "vnibm4q", "to": "rtrp3nj", "as": "props" }, { "from": "07fjn2b", "to": "vnibm4q", "as": "type" }, { "from": "rdt0k55", "to": "vnibm4q", "as": "accept" }, { "from": "jmqcpll", "to": "vnibm4q", "as": "onchange" }, { "from": "o9ukwn8", "to": "1672j69", "as": "self" }, { "from": "qzp14wr", "to": "jmqcpll", "as": "fn" }, { "from": "v99fk3p", "to": "qzp14wr", "as": "args" }, { "from": "y58g8pm", "to": "arcnyff", "as": "arg2" }, { "from": "ceomp2r", "to": "uyspmvr", "as": "args" }, { "from": "nxdj21x", "to": "psxdib2", "as": "args" }, { "from": "qgbinm2", "to": "arcnyff", "as": "arg0" }, { "from": "psxdib2", "to": "pldugnx", "as": "src" }, { "from": "pldugnx", "to": "y58g8pm", "as": "props" }, { "from": "gsrb9e6", "to": "pldugnx", "as": "style" }, { "from": "4j186m3", "to": "gsrb9e6", "as": "max-width" }, { "from": "gi30q1h", "to": "v99fk3p", "as": "arg1" }, { "from": "1672j69", "to": "gi30q1h", "as": "data" }, { "from": "0clgvk2", "to": "gi30q1h", "as": "type" }, { "from": "qh60wjb", "to": "j7ct5iw", "as": "filetype" }, { "from": "c0gcfke", "to": "j7ct5iw", "as": "data" }, { "from": "j7ct5iw", "to": "zugbd71", "as": "true" }, { "from": "yj9sw4x", "to": "zugbd71", "as": "pred" }, { "from": "yx80n2x", "to": "out", "as": "value" }, { "from": "uyspmvr", "to": "nxdj21x", "as": "asset" }, { "from": "zugbd71", "to": "psxdib2", "as": "value" }, { "from": "hj6upcm", "to": "fmostjp", "as": "args" }, { "from": "kldqqu0", "to": "2qd7694", "as": "filetype" }, { "from": "ic7fy1m", "to": "2qd7694", "as": "data" }, { "from": "2qd7694", "to": "yx80n2x", "as": "value" }, { "from": "5mfdcg0", "to": "yx80n2x", "as": "args" }, { "from": "fmostjp", "to": "5mfdcg0", "as": "asset" }, { "from": "izkowx6", "to": "ceomp2r", "as": "arg0" }, { "from": "i6lfbjh", "to": "izkowx6", "as": "otherwise" }, { "from": "ncih0ts", "to": "izkowx6", "as": "value" }, { "from": "lkz76u7", "to": "b444vmf", "as": "otherwise" }, { "from": "lpet497", "to": "b444vmf", "as": "value" }, { "from": "b444vmf", "to": "v99fk3p", "as": "arg0" }, { "from": "6t8kqs9", "to": "hj6upcm", "as": "arg0" }, { "from": "eviegts", "to": "6t8kqs9", "as": "value" }, { "from": "ke8lvin", "to": "6t8kqs9", "as": "otherwise" } ], "out": "out" }, "@data.ischanged": { "id": "@data.ischanged", "nodes": { "eq_fn_value": { "id": "eq_fn_value", "ref": "arg", "value": "value: default" }, "eq_fn_if": { "id": "eq_fn_if", "ref": "arg", "value": "eq_fn" }, "fn": { "id": "fn", "ref": "arg", "value": "fn" }, "eq_default": { "id": "eq_default", "ref": "eq" }, "eq_runnable": { "id": "eq_runnable", "ref": "@flow.runnable" }, "fn_runnable": { "id": "fn_runnable", "ref": "@flow.default" }, "eq_fn_runnable": { "id": "eq_fn_runnable", "ref": "@js.script", "value": "return {...fn, args: {...(fn.args ?? {}), a, b}}" }, "eq_fn": { "id": "eq_fn", "ref": "run" }, "eq_fn_return_args": { "id": "eq_fn_return_args" }, "if_eq_fn": { "id": "if_eq_fn", "ref": "@flow.if" }, "out": { "id": "out", "ref": "return", "name": "@data.ischanged" }, "yp2q57b": { "id": "yp2q57b" }, "tpe5t4z": { "id": "tpe5t4z", "ref": "@memory.reference" }, "savedArg": { "id": "savedArg", "ref": "arg", "value": "_saved" }, "cy1tm8s": { "id": "cy1tm8s", "value": "const iseq = saved?.value?.value?.read() === value;\n\nif(!iseq) {\n saved.set({value});\n}\nreturn !iseq;", "ref": "@js.script" }, "khdzxds": { "id": "khdzxds", "value": "_saved", "ref": "arg" }, "lv2gcpk": { "id": "lv2gcpk", "value": "value", "ref": "arg" } }, "edges": { "eq_default": { "from": "eq_default", "to": "eq_runnable", "as": "fn" }, "eq_runnable": { "from": "eq_runnable", "to": "fn_runnable", "as": "otherwise" }, "fn": { "from": "fn", "to": "fn_runnable", "as": "value" }, "fn_runnable": { "from": "fn_runnable", "to": "eq_fn_runnable", "as": "fn" }, "eq_fn_value": { "from": "eq_fn_value", "to": "eq_fn_runnable", "as": "a" }, "cached": { "from": "cached", "to": "eq_fn_runnable", "as": "b" }, "eq_fn_runnable": { "from": "eq_fn_runnable", "to": "eq_fn", "as": "runnable" }, "eq_fn_if": { "from": "eq_fn_if", "to": "if_eq_fn", "as": "pred" }, "eq_fn": { "from": "eq_fn", "to": "eq_fn_return_args", "as": "eq_fn" }, "yp2q57b": { "from": "yp2q57b", "to": "out", "as": "args" }, "tpe5t4z": { "from": "tpe5t4z", "to": "yp2q57b", "as": "_saved" }, "cy1tm8s": { "from": "cy1tm8s", "to": "out", "as": "value" }, "khdzxds": { "from": "khdzxds", "to": "cy1tm8s", "as": "reference" }, "savedArg": { "from": "savedArg", "to": "cy1tm8s", "as": "saved" }, "lv2gcpk": { "from": "lv2gcpk", "to": "cy1tm8s", "as": "value" } }, "category": "data" }, "@audio.tapbeat": { "edges": { "07e1bfn": { "as": "args", "from": "07e1bfn", "to": "j2hh8em" }, "113q4li": { "as": "deltas", "from": "113q4li", "to": "4dgggsq" }, "13e4el1": { "as": "height", "from": "13e4el1", "to": "v1az6xg" }, "1484wjz": { "as": "value", "from": "1484wjz", "to": "ekjdg2h" }, "151za0r": { "as": "value", "from": "151za0r", "to": "6qgqv3l" }, "1fuixnh": { "as": "fn", "from": "1fuixnh", "to": "wleyt8i" }, "1qcwz4u": { "as": "pred", "from": "1qcwz4u", "to": "ecro2kn" }, "1t3aqnb": { "as": "fn", "from": "1t3aqnb", "to": "kf98qgd" }, "1zhv7p5": { "as": "value", "from": "1zhv7p5", "to": "numz8ak" }, "201yzow": { "as": "args", "from": "201yzow", "to": "kf98qgd" }, "33dadts": { "as": "value", "from": "33dadts", "to": "l5h156b" }, "3bf8axp": { "as": "publish", "from": "3bf8axp", "to": "cx9aa91" }, "3y9h7wd": { "as": "run", "from": "3y9h7wd", "to": "wleyt8i" }, "4113r3s": { "as": "publish", "from": "4113r3s", "to": "w4gg9pv" }, "47b969g": { "as": "data", "from": "47b969g", "to": "wrnn8a5" }, "4dgggsq": { "as": "value", "from": "4dgggsq", "to": "hhtc498" }, "4j7h0bp": { "as": "fn", "from": "4j7h0bp", "to": "d3crr2f" }, "4q5sykk": { "as": "class", "from": "4q5sykk", "to": "i4hvk0h" }, "5cn0o7r": { "as": "arg2", "from": "5cn0o7r", "to": "vnxyyu1" }, "5oh2s6z": { "as": "arg1", "from": "5oh2s6z", "to": "n8ppok6" }, "6qgqv3l": { "as": "speed", "from": "6qgqv3l", "to": "hbkg26p" }, "6rtxmde": { "as": "args", "from": "6rtxmde", "to": "l0hqlvw" }, "70h3dpo": { "as": "100%", "from": "70h3dpo", "to": "tr1yujc" }, "7hx0d36": { "as": "arg3", "from": "7hx0d36", "to": "sa34rk4" }, "7jjupav": { "as": "fn", "from": "7jjupav", "to": "7hx0d36" }, "7m5r1ix": { "as": "arg1", "from": "7m5r1ix", "to": "vnxyyu1" }, "7zogdg5": { "as": "beatramp", "from": "7zogdg5", "to": "1qcwz4u" }, "804ufg4": { "as": "id", "from": "804ufg4", "to": "i4hvk0h" }, "8dy573e": { "as": "display", "from": "8dy573e", "to": "out" }, "8gtm109": { "as": "arg3", "from": "8gtm109", "to": "hbo5tmq" }, "8ywgts7": { "as": "time", "from": "8ywgts7", "to": "args" }, "9fogdzn": { "as": "children", "from": "9fogdzn", "to": "qgbinm2" }, "9ikgefi": { "as": "abstime", "from": "9ikgefi", "to": "args" }, "9vqinsg": { "as": "style", "from": "9vqinsg", "to": "ehximpo" }, "a14g4yc": { "as": "fn", "from": "a14g4yc", "to": "n2a984s" }, "args": { "as": "args", "from": "args", "to": "out" }, "b4nhbtt": { "as": "background-color", "from": "b4nhbtt", "to": "70h3dpo" }, "bftgd51": { "as": "args", "from": "bftgd51", "to": "7hx0d36" }, "bqz7j3e": { "as": "value", "from": "bqz7j3e", "to": "1qcwz4u" }, "byap9s1": { "as": "value", "from": "byap9s1", "to": "lozphpd" }, "cnsnetw": { "as": "beatramp", "from": "cnsnetw", "to": "args" }, "cubknyo": { "as": "otherwise", "from": "cubknyo", "to": "ekjdg2h" }, "cx9aa91": { "as": "taptime", "from": "cx9aa91", "to": "args" }, "d21woh4": { "as": "publish", "from": "d21woh4", "to": "kdsdigz" }, "d3crr2f": { "as": "arg1", "from": "d3crr2f", "to": "sa34rk4" }, "dcz42hs": { "as": "width", "from": "dcz42hs", "to": "v1az6xg" }, "dvvevhq": { "as": "value", "from": "dvvevhq", "to": "out" }, "dw8xjx3": { "as": "abstime", "from": "dw8xjx3", "to": "hbkg26p" }, "e1t6r15": { "as": "animation-name", "from": "e1t6r15", "to": "lnpoih5" }, "ecro2kn": { "as": "fn", "from": "ecro2kn", "to": "gov7mj3" }, "eemfhib": { "as": "value", "from": "eemfhib", "to": "8dy573e" }, "eh8vkbv": { "as": "css_object", "from": "eh8vkbv", "to": "getkche" }, "ehximpo": { "as": "props", "from": "ehximpo", "to": "qgbinm2" }, "ekjdg2h": { "as": "time", "from": "ekjdg2h", "to": "1zhv7p5" }, "fh7zimm": { "as": "time", "from": "fh7zimm", "to": "4dgggsq" }, "g19y12v": { "as": "value", "from": "g19y12v", "to": "s1g8j99" }, "g8c1ctx": { "as": "value", "from": "g8c1ctx", "to": "bftgd51" }, "getkche": { "as": "arg4", "from": "getkche", "to": "hbo5tmq" }, "ghdbxof": { "as": "arg4", "from": "ghdbxof", "to": "vnxyyu1" }, "gov7mj3": { "as": "arg0", "from": "gov7mj3", "to": "n8ppok6" }, "gz1klgh": { "as": "bpm", "from": "gz1klgh", "to": "dvvevhq" }, "hbkg26p": { "as": "value", "from": "hbkg26p", "to": "6rtxmde" }, "hbo5tmq": { "as": "children", "from": "hbo5tmq", "to": "8dy573e" }, "hhtc498": { "as": "args", "from": "hhtc498", "to": "wyuwdl4" }, "i38qweq": { "as": "userSelect", "from": "i38qweq", "to": "9vqinsg" }, "i4hvk0h": { "as": "props", "from": "i4hvk0h", "to": "8gtm109" }, "j2hh8em": { "as": "text", "from": "j2hh8em", "to": "lgx7u5i" }, "kdsdigz": { "as": "deltas", "from": "kdsdigz", "to": "args" }, "kf98qgd": { "as": "arg1", "from": "kf98qgd", "to": "si0nmli" }, "khnbkwz": { "as": "abstime", "from": "khnbkwz", "to": "g8c1ctx" }, "khukm2f": { "as": "arg1", "from": "khukm2f", "to": "hbo5tmq" }, "kogmro5": { "as": "bpm", "from": "kogmro5", "to": "oy88wxs" }, "l07y6lz": { "as": "background-color", "from": "l07y6lz", "to": "wds5v52" }, "l0hqlvw": { "as": "arg3", "from": "l0hqlvw", "to": "vnxyyu1" }, "l1zpo0i": { "as": "otherwise", "from": "l1zpo0i", "to": "s1g8j99" }, "l5h156b": { "as": "args", "from": "l5h156b", "to": "ghdbxof" }, "lex0hr5": { "as": "fn", "from": "lex0hr5", "to": "l0hqlvw" }, "lgx7u5i": { "as": "arg2", "from": "lgx7u5i", "to": "hbo5tmq" }, "lkpcx2e": { "as": "taptime", "from": "lkpcx2e", "to": "4dgggsq" }, "lm86y5w": { "as": "subscribe", "from": "lm86y5w", "to": "out" }, "lnpoih5": { "as": ".tapbeatbackground", "from": "lnpoih5", "to": "eh8vkbv" }, "lozphpd": { "as": "parameters", "from": "lozphpd", "to": "gov7mj3" }, "ls56kix": { "as": "bpm", "from": "ls56kix", "to": "1zhv7p5" }, "mq1crnf": { "as": "onpointerdown", "from": "mq1crnf", "to": "ehximpo" }, "mql26eq": { "as": "animation-iteration-count", "from": "mql26eq", "to": "lnpoih5" }, "n0mauz7": { "as": "animation-duration", "from": "n0mauz7", "to": "lnpoih5" }, "n2a984s": { "as": "onpointerup", "from": "n2a984s", "to": "ehximpo" }, "n8ppok6": { "as": "fn", "from": "n8ppok6", "to": "7m5r1ix" }, "nbvoq40": { "as": "animationframe", "from": "nbvoq40", "to": "lm86y5w" }, "numz8ak": { "as": "args", "from": "numz8ak", "to": "7m5r1ix" }, "nva890x": { "as": "arg11", "from": "nva890x", "to": "sa34rk4" }, "okonci6": { "as": "arg0", "from": "okonci6", "to": "sa34rk4" }, "oy88wxs": { "as": "value", "from": "oy88wxs", "to": "yd11ln1" }, "qgbinm2": { "as": "value", "from": "qgbinm2", "to": "khukm2f" }, "rwe5eea": { "as": "args", "from": "rwe5eea", "to": "khukm2f" }, "s1g8j99": { "as": "self", "from": "s1g8j99", "to": "j2hh8em" }, "sa34rk4": { "as": "fn", "from": "sa34rk4", "to": "mq1crnf" }, "segmfh9": { "as": "fn", "from": "segmfh9", "to": "wyuwdl4" }, "si0nmli": { "as": "fn", "from": "si0nmli", "to": "nva890x" }, "tqboq30": { "as": "bpm", "from": "tqboq30", "to": "n0mauz7" }, "tr1yujc": { "as": "@keyframes flash", "from": "tr1yujc", "to": "eh8vkbv" }, "v1az6xg": { "as": "style", "from": "v1az6xg", "to": "i4hvk0h" }, "vnxyyu1": { "as": "fn", "from": "vnxyyu1", "to": "nbvoq40" }, "vp3ljbr": { "as": "time", "from": "vp3ljbr", "to": "hbkg26p" }, "w4gg9pv": { "as": "bpm", "from": "w4gg9pv", "to": "args" }, "wds5v52": { "as": "0%", "from": "wds5v52", "to": "tr1yujc" }, "wleyt8i": { "as": "true", "from": "wleyt8i", "to": "ecro2kn" }, "wr1y755": { "as": "args", "from": "wr1y755", "to": "5cn0o7r" }, "wrnn8a5": { "as": "data", "from": "wrnn8a5", "to": "201yzow" }, "wt1sz85": { "as": "fn", "from": "wt1sz85", "to": "5cn0o7r" }, "wwj50tb": { "as": "deltas", "from": "wwj50tb", "to": "oy88wxs" }, "wyuwdl4": { "as": "fn", "from": "wyuwdl4", "to": "sa34rk4" }, "x2il2a2": { "as": "beatramp", "from": "x2il2a2", "to": "dvvevhq" }, "x9hdd1h": { "as": "beatramp", "from": "x9hdd1h", "to": "wr1y755" }, "ya1q4pd": { "as": "fn", "from": "ya1q4pd", "to": "ghdbxof" }, "yd11ln1": { "as": "args", "from": "yd11ln1", "to": "nva890x" }, "yxdrqfc": { "as": "arg0", "from": "yxdrqfc", "to": "si0nmli" } }, "id": "@audio.tapbeat", "name": "@audio.tapbeat", "nodes": { "07e1bfn": { "id": "07e1bfn", "value": "2" }, "113q4li": { "id": "113q4li", "ref": "arg", "value": "deltas.state" }, "13e4el1": { "id": "13e4el1", "value": "20px" }, "1484wjz": { "id": "1484wjz", "ref": "arg", "value": "time.value" }, "151za0r": { "id": "151za0r", "ref": "arg", "value": "speed" }, "1fuixnh": { "id": "1fuixnh", "ref": "@event.publish_event", "value": "tapbeatbeat" }, "1qcwz4u": { "id": "1qcwz4u", "ref": "@js.script", "value": "return beatramp.value >= value" }, "1t3aqnb": { "id": "1t3aqnb", "ref": "@event.publish_event", "value": "tapbeatbpmchange" }, "1zhv7p5": { "id": "1zhv7p5", "ref": "@js.script", "value": "const mspb = 60000 / (bpm ?? 120);\nconst dt = performance.now() - (time ?? 0);\nreturn (time % mspb) / mspb" }, "201yzow": { "id": "201yzow" }, "33dadts": { "id": "33dadts", "ref": "@js.script", "value": "return performance.now()" }, "3bf8axp": { "id": "3bf8axp", "value": "true" }, "3y9h7wd": { "id": "3y9h7wd", "value": "true" }, "4113r3s": { "id": "4113r3s", "value": "true" }, "47b969g": { "id": "47b969g", "ref": "arg", "value": "value" }, "4dgggsq": { "id": "4dgggsq", "ref": "@js.script", "value": "const delta = time - taptime;\nreturn delta > 2000 || isNaN(delta) ? (deltas ?? []) : deltas && Array.isArray(deltas) ? (deltas.length >= 4 && deltas.shift(), deltas.push(delta), deltas) : time ? [delta] : 0" }, "4j7h0bp": { "id": "4j7h0bp", "ref": "@js.script", "value": "const el = document.getElementById(\"tapbeatdisplay\"); \nconst newel = el.cloneNode();\nel.parentNode.replaceChild(newel, el);" }, "4q5sykk": { "id": "4q5sykk", "value": "tapbeatbackground" }, "5cn0o7r": { "id": "5cn0o7r", "ref": "@flow.ap" }, "5oh2s6z": { "id": "5oh2s6z", "ref": "arg", "value": "beatramp.set" }, "6qgqv3l": { "id": "6qgqv3l", "ref": "@js.script", "value": "return Math.pow(2, isNaN(value) ? 0 : Math.floor(value));" }, "6rtxmde": { "id": "6rtxmde", "ref": "extern", "value": "extern.data" }, "70h3dpo": { "id": "70h3dpo" }, "7hx0d36": { "id": "7hx0d36", "ref": "@flow.ap" }, "7jjupav": { "id": "7jjupav", "ref": "arg", "value": "taptime.set" }, "7m5r1ix": { "id": "7m5r1ix", "ref": "@flow.ap" }, "7zogdg5": { "id": "7zogdg5", "ref": "arg", "value": "beatramp" }, "804ufg4": { "id": "804ufg4", "value": "tapbeatdisplay" }, "8dy573e": { "id": "8dy573e", "ref": "@html.html_element" }, "8gtm109": { "id": "8gtm109", "ref": "@html.html_element" }, "8hy2e88": { "id": "8hy2e88" }, "8ywgts7": { "id": "8ywgts7", "ref": "@memory.reference" }, "9fogdzn": { "id": "9fogdzn", "ref": "@html.html_text", "value": "tap" }, "9ikgefi": { "id": "9ikgefi", "ref": "@memory.reference" }, "9vqinsg": { "id": "9vqinsg" }, "a14g4yc": { "id": "a14g4yc", "ref": "arg", "value": "ontap" }, "args": { "id": "args", "ref": "extern", "value": "extern.data" }, "b4nhbtt": { "id": "b4nhbtt", "value": "#ffffff" }, "bftgd51": { "id": "bftgd51" }, "bqz7j3e": { "id": "bqz7j3e", "ref": "arg", "value": "value" }, "byap9s1": { "id": "byap9s1" }, "cnsnetw": { "id": "cnsnetw", "ref": "@memory.reference" }, "cubknyo": { "id": "cubknyo", "ref": "arg", "value": "abstime.value" }, "cx9aa91": { "id": "cx9aa91", "ref": "@memory.state" }, "d21woh4": { "id": "d21woh4", "value": "true" }, "d3crr2f": { "id": "d3crr2f", "ref": "@flow.runnable" }, "dcz42hs": { "id": "dcz42hs", "value": "20px" }, "dvvevhq": { "id": "dvvevhq" }, "dw8xjx3": { "id": "dw8xjx3", "ref": "arg", "value": "abstime.value" }, "e1t6r15": { "id": "e1t6r15", "value": "flash" }, "ecro2kn": { "id": "ecro2kn", "ref": "@flow.if" }, "eemfhib": { "id": "eemfhib", "ref": "arg", "value": "bpm.state" }, "eh8vkbv": { "id": "eh8vkbv" }, "ehximpo": { "id": "ehximpo" }, "ekjdg2h": { "id": "ekjdg2h", "ref": "@flow.default" }, "fh7zimm": { "id": "fh7zimm", "ref": "arg", "value": "abstime.value" }, "g19y12v": { "id": "g19y12v", "ref": "arg", "value": "bpm.state" }, "g8c1ctx": { "id": "g8c1ctx", "ref": "@js.script", "value": "return abstime ?? 0" }, "getkche": { "id": "getkche", "ref": "@html.css_styles" }, "ghdbxof": { "id": "ghdbxof", "ref": "@flow.ap" }, "gov7mj3": { "id": "gov7mj3", "ref": "@flow.runnable" }, "gz1klgh": { "id": "gz1klgh", "ref": "arg", "value": "bpm" }, "hbkg26p": { "id": "hbkg26p", "ref": "@js.script", "value": "return (performance.now() - (abstime ?? 0)) * speed + (time ?? 0)" }, "hbo5tmq": { "id": "hbo5tmq", "ref": "@data.array" }, "hhtc498": { "id": "hhtc498" }, "i38qweq": { "id": "i38qweq", "value": "none" }, "i4hvk0h": { "id": "i4hvk0h" }, "j2hh8em": { "id": "j2hh8em", "ref": "@js.script", "value": "return self.toFixed(2)" }, "kdsdigz": { "id": "kdsdigz", "ref": "@memory.state" }, "kf98qgd": { "id": "kf98qgd", "ref": "@flow.ap" }, "khnbkwz": { "id": "khnbkwz", "ref": "arg", "value": "abstime.value" }, "khukm2f": { "id": "khukm2f", "ref": "return" }, "kogmro5": { "id": "kogmro5", "ref": "arg", "value": "bpm.state" }, "l07y6lz": { "id": "l07y6lz", "value": "#000000" }, "l0hqlvw": { "id": "l0hqlvw", "ref": "@flow.ap" }, "l1zpo0i": { "id": "l1zpo0i", "value": "120" }, "l5h156b": { "id": "l5h156b", "ref": "extern", "value": "extern.data" }, "lex0hr5": { "id": "lex0hr5", "ref": "arg", "value": "time.set" }, "lgx7u5i": { "id": "lgx7u5i", "ref": "@html.html_text" }, "lkpcx2e": { "id": "lkpcx2e", "ref": "arg", "value": "taptime.state" }, "lm86y5w": { "id": "lm86y5w", "ref": "extern", "value": "extern.data" }, "lnpoih5": { "id": "lnpoih5", "ref": "extern", "value": "extern.data" }, "lozphpd": { "id": "lozphpd", "ref": "extern", "value": "extern.data" }, "ls56kix": { "id": "ls56kix", "ref": "arg", "value": "bpm.state" }, "mq1crnf": { "id": "mq1crnf", "ref": "@flow.ap" }, "mql26eq": { "id": "mql26eq", "value": "infinite" }, "n0mauz7": { "id": "n0mauz7", "ref": "@js.script", "value": "return `${60/(isNaN(bpm)? 60 : bpm)}s`" }, "n2a984s": { "id": "n2a984s", "ref": "@flow.ap" }, "n8ppok6": { "id": "n8ppok6", "ref": "@data.array" }, "nbvoq40": { "id": "nbvoq40", "ref": "@flow.ap" }, "numz8ak": { "id": "numz8ak", "ref": "extern", "value": "extern.data" }, "nva890x": { "id": "nva890x", "ref": "@flow.ap" }, "okonci6": { "id": "okonci6", "ref": "@event.publish_event", "value": "tapbeattap" }, "out": { "id": "out", "name": "@audio.tapbeat", "ref": "return" }, "oy88wxs": { "id": "oy88wxs", "ref": "@js.script", "value": "return Array.isArray(deltas) ? 60000 * deltas.length / deltas.reduce((a, b) => a + b, 0) : 120;" }, "qgbinm2": { "id": "qgbinm2", "ref": "@html.html_element", "value": "button" }, "rwe5eea": { "id": "rwe5eea" }, "s1g8j99": { "id": "s1g8j99", "ref": "@flow.default" }, "sa34rk4": { "id": "sa34rk4", "ref": "@data.array" }, "segmfh9": { "id": "segmfh9", "ref": "arg", "value": "deltas.set" }, "si0nmli": { "id": "si0nmli", "ref": "@data.array" }, "tqboq30": { "id": "tqboq30", "ref": "arg", "value": "bpm.state" }, "tr1yujc": { "id": "tr1yujc" }, "v1az6xg": { "id": "v1az6xg" }, "vnxyyu1": { "id": "vnxyyu1", "ref": "@data.array" }, "vp3ljbr": { "id": "vp3ljbr", "ref": "arg", "value": "time.value" }, "w4gg9pv": { "id": "w4gg9pv", "ref": "@memory.state" }, "wds5v52": { "id": "wds5v52" }, "wleyt8i": { "id": "wleyt8i", "ref": "@flow.ap" }, "wr1y755": { "id": "wr1y755", "ref": "extern", "value": "extern.data" }, "wrnn8a5": { "id": "wrnn8a5" }, "wt1sz85": { "id": "wt1sz85", "ref": "arg", "value": "onframe" }, "wwj50tb": { "id": "wwj50tb", "ref": "arg", "value": "deltas.state" }, "wyuwdl4": { "id": "wyuwdl4", "ref": "@flow.ap" }, "x2il2a2": { "id": "x2il2a2", "ref": "arg", "value": "beatramp" }, "x9hdd1h": { "id": "x9hdd1h", "ref": "arg", "value": "beatramp.value" }, "ya1q4pd": { "id": "ya1q4pd", "ref": "arg", "value": "abstime.set" }, "yd11ln1": { "id": "yd11ln1" }, "yxdrqfc": { "id": "yxdrqfc", "ref": "arg", "value": "bpm.set" } }, "out": "out", "category": "templates" }, "@audio.analysis": {"edges":{"58h53vb":{"as":"value","from":"58h53vb","to":"out"},"8dy573e":{"as":"display","from":"8dy573e","to":"out"},"args":{"as":"args","from":"args","to":"out"},"ky27m6w":{"as":"subscribe","from":"ky27m6w","to":"out"},"zqxn95t":{"as":"animationframe","from":"zqxn95t","to":"ky27m6w"},"t4klpg0":{"as":"true","from":"t4klpg0","to":"zqxn95t"},"t80rvax":{"as":"pred","from":"t80rvax","to":"zqxn95t"},"p7pawkn":{"as":"arg0","from":"p7pawkn","to":"t80rvax"},"6g2x5co":{"as":"args","from":"6g2x5co","to":"t4klpg0"},"xgav7gf":{"as":"fn","from":"xgav7gf","to":"t4klpg0"},"j5hnwiu":{"as":"arg4","from":"j5hnwiu","to":"xgav7gf"},"jbgkmd0":{"as":"arg0","from":"jbgkmd0","to":"xgav7gf"},"kce6b36":{"as":"arg2","from":"kce6b36","to":"xgav7gf"},"vcji2y3":{"as":"arg3","from":"vcji2y3","to":"xgav7gf"},"yzm2544":{"as":"arg1","from":"yzm2544","to":"xgav7gf"},"enwnlrg":{"as":"fn","from":"enwnlrg","to":"yzm2544"},"k81ohi2":{"as":"self","from":"k81ohi2","to":"enwnlrg"},"n65ycpn":{"as":"sab","from":"n65ycpn","to":"enwnlrg"},"xms5jqu":{"as":"array","from":"xms5jqu","to":"enwnlrg"},"3cn9gm5":{"as":"reference","from":"3cn9gm5","to":"xms5jqu"},"yocyc7t":{"as":"reference","from":"yocyc7t","to":"n65ycpn"},"sm6i8iw":{"as":"fn","from":"sm6i8iw","to":"vcji2y3"},"y2eutqi":{"as":"args","from":"y2eutqi","to":"vcji2y3"},"o9owpg5":{"as":"value","from":"o9owpg5","to":"y2eutqi"},"bqy7vtn":{"as":"arr","from":"bqy7vtn","to":"o9owpg5"},"dyysbf2":{"as":"value","from":"dyysbf2","to":"bqy7vtn"},"pioqk5q":{"as":"reference","from":"pioqk5q","to":"dyysbf2"},"3bzpqfw":{"as":"fn","from":"3bzpqfw","to":"kce6b36"},"56a81ei":{"as":"fft","from":"56a81ei","to":"3bzpqfw"},"7re12iu":{"as":"reference","from":"7re12iu","to":"56a81ei"},"cjn10vv":{"as":"fn","from":"cjn10vv","to":"jbgkmd0"},"8b808yt":{"as":"self","from":"8b808yt","to":"cjn10vv"},"v8ku92e":{"as":"sab","from":"v8ku92e","to":"cjn10vv"},"vwrm74d":{"as":"array","from":"vwrm74d","to":"cjn10vv"},"k780ign":{"as":"reference","from":"k780ign","to":"vwrm74d"},"g9qk75n":{"as":"reference","from":"g9qk75n","to":"v8ku92e"},"l59vzq3":{"as":"true","from":"l59vzq3","to":"j5hnwiu"},"yleo130":{"as":"pred","from":"yleo130","to":"j5hnwiu"},"7zifjds":{"as":"fn","from":"7zifjds","to":"l59vzq3"},"ewwqt0v":{"as":"args","from":"ewwqt0v","to":"l59vzq3"},"1ot7z1u":{"as":"waveform","from":"1ot7z1u","to":"ewwqt0v"},"ld6qjwd":{"as":"fft","from":"ld6qjwd","to":"ewwqt0v"},"tqn91t0":{"as":"audio","from":"tqn91t0","to":"ewwqt0v"},"xwql547":{"as":"loudness","from":"xwql547","to":"ewwqt0v"},"699yxaa":{"as":"waveformsab","from":"699yxaa","to":"6g2x5co"},"bre7mzk":{"as":"fftsab","from":"bre7mzk","to":"6g2x5co"},"iqxfxoq":{"as":"loudness","from":"iqxfxoq","to":"6g2x5co"},"m7aljc9":{"as":"waveform","from":"m7aljc9","to":"6g2x5co"},"q72zw9n":{"as":"audio","from":"q72zw9n","to":"6g2x5co"},"yhuwqe9":{"as":"fft","from":"yhuwqe9","to":"6g2x5co"},"6isum4q":{"as":"_loudness","from":"6isum4q","to":"args"},"ecurm5q":{"as":"_fftsab","from":"ecurm5q","to":"args"},"kcvpnbr":{"as":"_fft","from":"kcvpnbr","to":"args"},"v7zp3ck":{"as":"_waveform","from":"v7zp3ck","to":"args"},"xfpzaer":{"as":"_audio","from":"xfpzaer","to":"args"},"xkie6he":{"as":"_waveformsab","from":"xkie6he","to":"args"},"x6kdwuo":{"as":"initial","from":"x6kdwuo","to":"xkie6he"},"v39ufo5":{"as":"fftSize","from":"v39ufo5","to":"x6kdwuo"},"1a660q9":{"as":"pred","from":"1a660q9","to":"v39ufo5"},"ujwfrm0":{"as":"true","from":"ujwfrm0","to":"v39ufo5"},"wi9qgl8":{"as":"false","from":"wi9qgl8","to":"v39ufo5"},"hvkhebd":{"as":"value","from":"hvkhebd","to":"xfpzaer"},"jwib1ka":{"as":"options","from":"jwib1ka","to":"hvkhebd"},"yi2ezh0":{"as":"audio","from":"yi2ezh0","to":"hvkhebd"},"lr9v8rm":{"as":"audioCtx","from":"lr9v8rm","to":"yi2ezh0"},"z6cwmqm":{"as":"media","from":"z6cwmqm","to":"yi2ezh0"},"nnembhj":{"as":"value","from":"nnembhj","to":"lr9v8rm"},"hcp14pq":{"as":"fftSize","from":"hcp14pq","to":"jwib1ka"},"sd1ge10":{"as":"smoothingTimeConstant","from":"sd1ge10","to":"jwib1ka"},"3mj0ula":{"as":"otherwise","from":"3mj0ula","to":"sd1ge10"},"j7nk0p6":{"as":"value","from":"j7nk0p6","to":"sd1ge10"},"56bla57":{"as":"value","from":"56bla57","to":"hcp14pq"},"avhgm5q":{"as":"otherwise","from":"avhgm5q","to":"hcp14pq"},"u9t3cmw":{"as":"initial","from":"u9t3cmw","to":"v7zp3ck"},"hkaby14":{"as":"fftSize","from":"hkaby14","to":"u9t3cmw"},"0wjbxex":{"as":"false","from":"0wjbxex","to":"hkaby14"},"bpdeixu":{"as":"true","from":"bpdeixu","to":"hkaby14"},"iinolva":{"as":"pred","from":"iinolva","to":"hkaby14"},"885ujhf":{"as":"initial","from":"885ujhf","to":"kcvpnbr"},"1rszkgx":{"as":"fftSize","from":"1rszkgx","to":"885ujhf"},"38hmav3":{"as":"pred","from":"38hmav3","to":"1rszkgx"},"mqnh6xj":{"as":"true","from":"mqnh6xj","to":"1rszkgx"},"xetlgtj":{"as":"false","from":"xetlgtj","to":"1rszkgx"},"8r9yvc2":{"as":"arg0","from":"8r9yvc2","to":"mqnh6xj"},"iok3jbv":{"as":"arg1","from":"iok3jbv","to":"mqnh6xj"},"vyeu6y1":{"as":"initial","from":"vyeu6y1","to":"ecurm5q"},"axaemzg":{"as":"fftSize","from":"axaemzg","to":"vyeu6y1"},"1e706z8":{"as":"true","from":"1e706z8","to":"axaemzg"},"cjhtr8w":{"as":"false","from":"cjhtr8w","to":"axaemzg"},"nme5fof":{"as":"pred","from":"nme5fof","to":"axaemzg"},"5wxfwyx":{"as":"arg0","from":"5wxfwyx","to":"1e706z8"},"gxulv7u":{"as":"arg1","from":"gxulv7u","to":"1e706z8"},"u781r0g":{"as":"publish","from":"u781r0g","to":"6isum4q"},"f9t73iw":{"as":"children","from":"f9t73iw","to":"8dy573e"},"i0ncdhp":{"as":"true","from":"i0ncdhp","to":"f9t73iw"},"itqudjx":{"as":"false","from":"itqudjx","to":"f9t73iw"},"n12sjrc":{"as":"pred","from":"n12sjrc","to":"f9t73iw"},"202qikg":{"as":"value","from":"202qikg","to":"n12sjrc"},"0omg02e":{"as":"props","from":"0omg02e","to":"itqudjx"},"32keuwb":{"as":"children","from":"32keuwb","to":"itqudjx"},"tjau54y":{"as":"onclick","from":"tjau54y","to":"0omg02e"},"z5v6iv9":{"as":"fn","from":"z5v6iv9","to":"tjau54y"},"tfv9ab6":{"as":"self","from":"tfv9ab6","to":"z5v6iv9"},"9asxtzl":{"as":"props","from":"9asxtzl","to":"i0ncdhp"},"k2n6i8q":{"as":"children","from":"k2n6i8q","to":"i0ncdhp"},"9pd2wms":{"as":"fn","from":"9pd2wms","to":"k2n6i8q"},"skf4gix":{"as":"array","from":"skf4gix","to":"k2n6i8q"},"ktnlz1i":{"as":"value","from":"ktnlz1i","to":"skf4gix"},"hkbnt7q":{"as":"reference","from":"hkbnt7q","to":"ktnlz1i"},"4ng68ah":{"as":"parameters","from":"4ng68ah","to":"9pd2wms"},"qgbinm2":{"as":"fn","from":"qgbinm2","to":"9pd2wms"},"ntdapts":{"as":"props","from":"ntdapts","to":"qgbinm2"},"5mrw162":{"as":"x","from":"5mrw162","to":"ntdapts"},"7d5e83b":{"as":"fill","from":"7d5e83b","to":"ntdapts"},"b7082vm":{"as":"height","from":"b7082vm","to":"ntdapts"},"crz99st":{"as":"width","from":"crz99st","to":"ntdapts"},"nkbkj1l":{"as":"style","from":"nkbkj1l","to":"ntdapts"},"q0ecpv8":{"as":"will-change","from":"q0ecpv8","to":"nkbkj1l"},"rbqic4e":{"as":"arg0","from":"rbqic4e","to":"crz99st"},"pobxuxo":{"as":"arg0","from":"pobxuxo","to":"rbqic4e"},"ngi7j97":{"as":"target","from":"ngi7j97","to":"pobxuxo"},"lokbjgu":{"as":"reference","from":"lokbjgu","to":"ngi7j97"},"152zzg7":{"as":"width","from":"152zzg7","to":"5mrw162"},"d2m13om":{"as":"arg0","from":"d2m13om","to":"5mrw162"},"zbybpru":{"as":"arg0","from":"zbybpru","to":"152zzg7"},"9y1uozt":{"as":"value","from":"9y1uozt","to":"zbybpru"},"6u4bthw":{"as":"arg0","from":"6u4bthw","to":"9y1uozt"},"n0zqs93":{"as":"target","from":"n0zqs93","to":"6u4bthw"},"lhm1ktw":{"as":"reference","from":"lhm1ktw","to":"n0zqs93"},"5clo4vh":{"as":"index","from":"5clo4vh","to":"4ng68ah"},"bpcb53a":{"as":"element","from":"bpcb53a","to":"4ng68ah"},"or2do3i":{"as":"id","from":"or2do3i","to":"9asxtzl"},"2nk866r":{"as":"waveform","from":"2nk866r","to":"58h53vb"},"8y1pfs1":{"as":"fft","from":"8y1pfs1","to":"58h53vb"},"bydhgr0":{"as":"audio","from":"bydhgr0","to":"58h53vb"},"seubbfl":{"as":"loudness","from":"seubbfl","to":"58h53vb"}},"id":"@audio.analysis","nodes":{"out":{"id":"out","name":"@audio.analysis","ref":"return"},"ky27m6w":{"id":"ky27m6w"},"zqxn95t":{"id":"zqxn95t","ref":"@flow.if"},"t80rvax":{"id":"t80rvax","ref":"@js.script","value":"return arg0 !== \"suspended\";"},"p7pawkn":{"id":"p7pawkn","ref":"arg","value":"_audio.context.state"},"t4klpg0":{"id":"t4klpg0","ref":"@flow.ap"},"xgav7gf":{"id":"xgav7gf","ref":"@data.array"},"yzm2544":{"id":"yzm2544","ref":"@flow.runnable"},"enwnlrg":{"id":"enwnlrg","ref":"@js.script","value":"self.getFloatTimeDomainData(array);\nsab.set(array);\nreturn array;"},"xms5jqu":{"id":"xms5jqu","ref":"@memory.readReference"},"3cn9gm5":{"id":"3cn9gm5","ref":"arg","value":"_waveform"},"n65ycpn":{"id":"n65ycpn","ref":"@memory.readReference"},"yocyc7t":{"id":"yocyc7t","ref":"arg","value":"_waveformsab"},"k81ohi2":{"id":"k81ohi2","ref":"arg","value":"_audio.analyser"},"vcji2y3":{"id":"vcji2y3","ref":"@flow.ap"},"y2eutqi":{"id":"y2eutqi"},"o9owpg5":{"id":"o9owpg5","ref":"@js.script","value":"return Math.sqrt(arr.reduce((a, v) => a + v * v, 0), arr.length)"},"bqy7vtn":{"id":"bqy7vtn","ref":"@debug.log","value":"waveform for loudness"},"dyysbf2":{"id":"dyysbf2","ref":"@memory.readReference"},"pioqk5q":{"id":"pioqk5q","ref":"arg","value":"_waveform"},"sm6i8iw":{"id":"sm6i8iw","ref":"arg","value":"_loudness.set"},"kce6b36":{"id":"kce6b36","ref":"@flow.runnable"},"3bzpqfw":{"id":"3bzpqfw","ref":"@js.script","value":"if(typeof document === \"undefined\") return\nconst el = document.getElementById(\"audio-listener\");\nconst center = true;\nif(el?.children){\n let val;\n for(let i = 0; i < el.children.length; i++) {\n val = fft[i];\n const height = Math.round(Math.max(0, Math.min(200, (val * 100))));\n el.children.item(i)\n .style.transform = \n `translate(0, ${100 - height * 2}px)\n scale(1, ${height * 4})`;\n \n /*center ? el.children.item(i)\n .setAttribute(\"scale\", `${100 - height * 0.5}px`) : el.children.item(i)\n .setAttribute(\"y\", `${0}px`);\n */ //el.children.item(i).setAttribute(\"height\", `${Math.round(Math.max(0, Math.min(200, (val + 90) * 2)))}px`);\n }\n}"},"56a81ei":{"id":"56a81ei","ref":"@memory.readReference"},"7re12iu":{"id":"7re12iu","ref":"arg","value":"_waveform"},"jbgkmd0":{"id":"jbgkmd0","ref":"@flow.runnable"},"cjn10vv":{"id":"cjn10vv","ref":"@js.script","value":"self.getFloatFrequencyData(array);\nsab.set(array);\nreturn array"},"vwrm74d":{"id":"vwrm74d","ref":"@memory.readReference"},"k780ign":{"id":"k780ign","ref":"arg","value":"_fft"},"v8ku92e":{"id":"v8ku92e","ref":"@memory.readReference"},"g9qk75n":{"id":"g9qk75n","ref":"arg","value":"_fftsab"},"8b808yt":{"id":"8b808yt","ref":"arg","value":"_audio.analyser"},"j5hnwiu":{"id":"j5hnwiu","ref":"@flow.if"},"yleo130":{"id":"yleo130","ref":"arg","value":"onframe"},"l59vzq3":{"id":"l59vzq3","ref":"@flow.ap"},"ewwqt0v":{"id":"ewwqt0v"},"xwql547":{"id":"xwql547","ref":"arg","value":"_loudness"},"tqn91t0":{"id":"tqn91t0","ref":"arg","value":"_audio"},"ld6qjwd":{"id":"ld6qjwd","ref":"arg","value":"_fft"},"1ot7z1u":{"id":"1ot7z1u","ref":"arg","value":"_waveform"},"7zifjds":{"id":"7zifjds","ref":"arg","value":"onframe"},"6g2x5co":{"id":"6g2x5co"},"yhuwqe9":{"id":"yhuwqe9","ref":"arg","value":"_fft"},"q72zw9n":{"id":"q72zw9n","ref":"arg","value":"_audio"},"m7aljc9":{"id":"m7aljc9","ref":"arg","value":"_waveform"},"iqxfxoq":{"id":"iqxfxoq","ref":"arg","value":"_loudness"},"bre7mzk":{"id":"bre7mzk","ref":"arg","value":"_fftsab"},"699yxaa":{"id":"699yxaa","ref":"arg","value":"_waveformsab"},"args":{"id":"args"},"xkie6he":{"id":"xkie6he","ref":"@memory.reference"},"x6kdwuo":{"id":"x6kdwuo","ref":"@js.script","value":"const sab = new SharedArrayBuffer(fftSize * 4);\nreturn new Float32Array(sab)"},"v39ufo5":{"id":"v39ufo5","ref":"@flow.if"},"wi9qgl8":{"id":"wi9qgl8","value":"1024"},"ujwfrm0":{"id":"ujwfrm0","ref":"arg","value":"fftSize"},"1a660q9":{"id":"1a660q9","ref":"arg","value":"fftSize"},"xfpzaer":{"id":"xfpzaer","ref":"@memory.cache"},"hvkhebd":{"id":"hvkhebd","ref":"@js.script","value":"const analyser = new AnalyserNode(audio.context, options);\naudio.source.connect(analyser)\nconsole.log(\"audio\", audio)\nreturn { ...audio, analyser}"},"yi2ezh0":{"id":"yi2ezh0","ref":"@js.script","value":"return {\n context: audioCtx,\n source: audioCtx.createMediaStreamSource(media)\n}"},"z6cwmqm":{"id":"z6cwmqm","ref":"@js.script","value":"return navigator.mediaDevices\n .getUserMedia({ audio: true })"},"lr9v8rm":{"id":"lr9v8rm","ref":"@memory.cache"},"nnembhj":{"id":"nnembhj","ref":"@js.new","value":"AudioContext"},"jwib1ka":{"id":"jwib1ka"},"sd1ge10":{"id":"sd1ge10","ref":"@flow.default"},"j7nk0p6":{"id":"j7nk0p6","ref":"arg","value":"smoothingTimeConstant"},"3mj0ula":{"id":"3mj0ula","value":"0.25"},"hcp14pq":{"id":"hcp14pq","ref":"@flow.default"},"avhgm5q":{"id":"avhgm5q","value":"1024"},"56bla57":{"id":"56bla57","ref":"arg","value":"fftSize"},"v7zp3ck":{"id":"v7zp3ck","ref":"@memory.reference"},"u9t3cmw":{"id":"u9t3cmw","ref":"@js.script","value":"return new Float32Array(fftSize)"},"hkaby14":{"id":"hkaby14","ref":"@flow.if"},"iinolva":{"id":"iinolva","ref":"arg","value":"fftSize"},"bpdeixu":{"id":"bpdeixu","ref":"arg","value":"fftSize"},"0wjbxex":{"id":"0wjbxex","value":"1024"},"kcvpnbr":{"id":"kcvpnbr","ref":"@memory.reference"},"885ujhf":{"id":"885ujhf","ref":"@js.script","value":"return new Float32Array(fftSize)"},"1rszkgx":{"id":"1rszkgx","ref":"@flow.if"},"xetlgtj":{"id":"xetlgtj","value":"128"},"mqnh6xj":{"id":"mqnh6xj","ref":"@math.mult"},"iok3jbv":{"id":"iok3jbv","value":"0.5"},"8r9yvc2":{"id":"8r9yvc2","ref":"arg","value":"fftSize"},"38hmav3":{"id":"38hmav3","ref":"arg","value":"fftSize"},"ecurm5q":{"id":"ecurm5q","ref":"@memory.reference"},"vyeu6y1":{"id":"vyeu6y1","ref":"@js.script","value":"const sab = new SharedArrayBuffer(fftSize * 4);\nreturn new Float32Array(sab)"},"axaemzg":{"id":"axaemzg","ref":"@flow.if"},"nme5fof":{"id":"nme5fof","ref":"arg","value":"fftSize"},"cjhtr8w":{"id":"cjhtr8w","value":"128"},"1e706z8":{"id":"1e706z8","ref":"@math.mult"},"gxulv7u":{"id":"gxulv7u","value":"0.5"},"5wxfwyx":{"id":"5wxfwyx","ref":"arg","value":"fftSize"},"6isum4q":{"id":"6isum4q","ref":"@memory.reference"},"u781r0g":{"id":"u781r0g","value":"true"},"8dy573e":{"id":"8dy573e","ref":"@html.html_element"},"f9t73iw":{"id":"f9t73iw","ref":"@flow.if"},"n12sjrc":{"id":"n12sjrc","ref":"@js.script","value":"console.log(\"val?\", value);\nreturn value !== \"suspended\""},"202qikg":{"id":"202qikg","ref":"arg","value":"_audio.context.state"},"itqudjx":{"id":"itqudjx","ref":"@html.html_element","value":"button"},"32keuwb":{"id":"32keuwb","ref":"@html.html_text","value":"listen"},"0omg02e":{"id":"0omg02e"},"tjau54y":{"id":"tjau54y","ref":"@flow.runnable"},"z5v6iv9":{"id":"z5v6iv9","ref":"@js.call","value":"resume"},"tfv9ab6":{"id":"tfv9ab6","ref":"arg","value":"_audio.context"},"i0ncdhp":{"id":"i0ncdhp","ref":"@html.html_element","value":"svg"},"k2n6i8q":{"id":"k2n6i8q","ref":"@data.map"},"skf4gix":{"id":"skf4gix","ref":"@debug.log","value":"fft"},"ktnlz1i":{"id":"ktnlz1i","ref":"@memory.readReference"},"hkbnt7q":{"id":"hkbnt7q","ref":"arg","value":"_waveform"},"9pd2wms":{"id":"9pd2wms","ref":"@flow.runnable"},"qgbinm2":{"id":"qgbinm2","ref":"@html.html_element","value":"rect"},"ntdapts":{"id":"ntdapts"},"nkbkj1l":{"id":"nkbkj1l"},"q0ecpv8":{"id":"q0ecpv8","value":"transform"},"crz99st":{"id":"crz99st","ref":"@js.script","value":"return 400 / arg0"},"rbqic4e":{"id":"rbqic4e","ref":"@js.script","value":"return isNaN(arg0) ? 1 : Math.min(64, Math.max(1, arg0)); "},"pobxuxo":{"id":"pobxuxo","ref":"@data.get","value":"length"},"ngi7j97":{"id":"ngi7j97","ref":"@memory.readReference"},"lokbjgu":{"id":"lokbjgu","ref":"arg","value":"_waveform"},"b7082vm":{"id":"b7082vm","value":"1px"},"7d5e83b":{"id":"7d5e83b","value":"white"},"5mrw162":{"id":"5mrw162","ref":"@math.mult"},"d2m13om":{"id":"d2m13om","ref":"arg","value":"index"},"152zzg7":{"id":"152zzg7","ref":"@js.script","value":"return 800 / (isNaN(arg0) || arg0 === 0 ? 1 : arg0)"},"zbybpru":{"id":"zbybpru","ref":"@debug.inputValue"},"9y1uozt":{"id":"9y1uozt","ref":"@js.script","value":"return isNaN(arg0) ? 1 : Math.max(1, arg0); "},"6u4bthw":{"id":"6u4bthw","ref":"@data.get","value":"length"},"n0zqs93":{"id":"n0zqs93","ref":"@memory.readReference"},"lhm1ktw":{"id":"lhm1ktw","ref":"arg","value":"_waveform"},"4ng68ah":{"id":"4ng68ah"},"bpcb53a":{"id":"bpcb53a"},"5clo4vh":{"id":"5clo4vh"},"9asxtzl":{"id":"9asxtzl"},"or2do3i":{"id":"or2do3i","value":"audio-listener"},"58h53vb":{"id":"58h53vb"},"seubbfl":{"id":"seubbfl","ref":"arg","value":"_loudness"},"bydhgr0":{"id":"bydhgr0","ref":"arg","value":"_audio"},"8y1pfs1":{"id":"8y1pfs1","ref":"arg","value":"_fftsab"},"2nk866r":{"id":"2nk866r","ref":"arg","value":"_waveformsab"}},"out":"out"}, "@math.noise": { "edges": { "18ft0o0": { "as": "random", "from": "18ft0o0", "to": "gna5hrg" }, "1es7qrh": { "as": "array", "from": "1es7qrh", "to": "caxm792" }, "2838i98": { "as": "lib", "from": "2838i98", "to": "qljoa2f" }, "2zfxujb": { "as": "dim", "from": "2zfxujb", "to": "dl8tqbw" }, "3fqdnh3": { "as": "dims", "from": "3fqdnh3", "to": "1es7qrh" }, "4qnsrir": { "as": "simplexNoise", "from": "4qnsrir", "to": "2838i98" }, "5p3hf1e": { "as": "false", "from": "5p3hf1e", "to": "d1mxhrc" }, "5suk5mt": { "as": "_random", "from": "5suk5mt", "to": "l4denbs" }, "76mvyzz": { "as": "noiseFn", "from": "76mvyzz", "to": "gna5hrg" }, "9dwbuh4": { "as": "fn", "from": "9dwbuh4", "to": "caxm792" }, "c14vq1u": { "as": "self", "from": "c14vq1u", "to": "i4vkq75" }, "caxm792": { "as": "true", "from": "caxm792", "to": "d1mxhrc" }, "d1mxhrc": { "as": "value", "from": "d1mxhrc", "to": "qljoa2f" }, "dl8tqbw": { "as": "_noiseFn", "from": "dl8tqbw", "to": "l4denbs" }, "gna5hrg": { "as": "fn", "from": "gna5hrg", "to": "9dwbuh4" }, "i4vkq75": { "as": "seed", "from": "i4vkq75", "to": "5suk5mt" }, "iodmksr": { "as": "random", "from": "iodmksr", "to": "5p3hf1e" }, "k4il51d": { "as": "rand", "from": "k4il51d", "to": "zzpqc3t" }, "l4denbs": { "as": "args", "from": "l4denbs", "to": "qljoa2f" }, "nzzp1an": { "as": "rand", "from": "nzzp1an", "to": "qm6xfhw" }, "q6kbpnl": { "as": "pred", "from": "q6kbpnl", "to": "d1mxhrc" }, "qm6xfhw": { "as": "seed", "from": "qm6xfhw", "to": "iodmksr" }, "rcjsw21": { "as": "noiseFn", "from": "rcjsw21", "to": "5p3hf1e" }, "un9yhxm": { "as": "sn", "from": "un9yhxm", "to": "dl8tqbw" }, "zxk2uuu": { "as": "value", "from": "zxk2uuu", "to": "4qnsrir" }, "zzpqc3t": { "as": "seed", "from": "zzpqc3t", "to": "18ft0o0" } }, "id": "@math.noise", "name": "@math.noise", "nodes": { "18ft0o0": { "id": "18ft0o0", "ref": "@math.random" }, "1es7qrh": { "id": "1es7qrh", "ref": "@js.script", "value": "return new Array(dims).fill(0)" }, "2838i98": { "id": "2838i98" }, "2zfxujb": { "id": "2zfxujb", "ref": "arg", "value": "dimensionsIn" }, "3fqdnh3": { "id": "3fqdnh3", "ref": "arg", "value": "dimensionsOut" }, "4qnsrir": { "id": "4qnsrir", "ref": "@memory.cache" }, "5p3hf1e": { "id": "5p3hf1e", "ref": "@js.script", "value": "return noiseFn(random)" }, "5suk5mt": { "id": "5suk5mt", "ref": "@math.random" }, "76mvyzz": { "id": "76mvyzz", "ref": "arg", "value": "_noiseFn" }, "9dwbuh4": { "id": "9dwbuh4", "ref": "@flow.runnable" }, "c14vq1u": { "id": "c14vq1u", "ref": "arg", "value": "seed" }, "caxm792": { "id": "caxm792", "ref": "@data.map" }, "d1mxhrc": { "id": "d1mxhrc", "ref": "@flow.if" }, "dl8tqbw": { "id": "dl8tqbw", "ref": "@js.script", "value": "return dim === 2 ? sn.createNoise2D : dim === 3 ? sn.createNoise3D : sn.createNoise4D" }, "gna5hrg": { "id": "gna5hrg", "ref": "@js.script", "value": "return noiseFn(random)" }, "i4vkq75": { "id": "i4vkq75", "ref": "@js.script", "value": "return !isNaN(self) ? self : typeof self === \"function\" ? self() : 108" }, "iodmksr": { "id": "iodmksr", "ref": "@math.random" }, "k4il51d": { "id": "k4il51d", "ref": "arg", "value": "_random" }, "l4denbs": { "id": "l4denbs" }, "nzzp1an": { "id": "nzzp1an", "ref": "arg", "value": "_random" }, "q6kbpnl": { "id": "q6kbpnl", "ref": "arg", "value": "dimensionsOut" }, "qljoa2f": { "id": "qljoa2f", "name": "@math.noise", "ref": "return" }, "qm6xfhw": { "id": "qm6xfhw", "ref": "@js.script", "value": "return rand() * Number.MAX_SAFE_INTEGER" }, "rcjsw21": { "id": "rcjsw21", "ref": "arg", "value": "_noiseFn" }, "un9yhxm": { "id": "un9yhxm", "ref": "arg", "value": "_lib.simplexNoise" }, "zxk2uuu": { "id": "zxk2uuu", "ref": "@js.import_module", "value": "https://cdn.skypack.dev/simplex-noise" }, "zzpqc3t": { "id": "zzpqc3t", "ref": "@js.script", "value": "return rand() * Number.MAX_SAFE_INTEGER" } }, "out": "qljoa2f" }, "@math.curlnoise": { "edges": { "0f3yvkt": { "as": "dimensionsOut", "from": "0f3yvkt", "to": "dy65zb2" }, "0wye9gb": { "as": "z", "from": "0wye9gb", "to": "xrxh9ci" }, "1dfm7ji": { "as": "elscale", "from": "1dfm7ji", "to": "v3ucnvc" }, "1qvyjit": { "as": "value", "from": "1qvyjit", "to": "sal16lj" }, "3w2mjzs": { "as": "args", "from": "3w2mjzs", "to": "r4iac0v" }, "4rfdldl": { "as": "otherwise", "from": "4rfdldl", "to": "bp1jp8w" }, "5iuypo6": { "as": "elementScale", "from": "5iuypo6", "to": "args" }, "7ddyvg5": { "as": "y", "from": "7ddyvg5", "to": "v3ucnvc" }, "7pazm63": { "as": "value", "from": "7pazm63", "to": "h5rpf0o" }, "9z5zasc": { "as": "x", "from": "9z5zasc", "to": "v3ucnvc" }, "args": { "as": "args", "from": "args", "to": "out" }, "bp1jp8w": { "as": "seed", "from": "bp1jp8w", "to": "dy65zb2" }, "coz46jt": { "as": "dimensionsIn", "from": "coz46jt", "to": "dy65zb2" }, "cy3xmxj": { "as": "_dimY", "from": "cy3xmxj", "to": "3w2mjzs" }, "dy65zb2": { "as": "_noise", "from": "dy65zb2", "to": "3w2mjzs" }, "gw4y5bs": { "as": "y", "from": "gw4y5bs", "to": "xrxh9ci" }, "h5rpf0o": { "as": "_dimX", "from": "h5rpf0o", "to": "3w2mjzs" }, "kf6fscw": { "as": "x", "from": "kf6fscw", "to": "xrxh9ci" }, "nk91iof": { "as": "time", "from": "nk91iof", "to": "xrxh9ci" }, "prsoiok": { "as": "noise", "from": "prsoiok", "to": "v3ucnvc" }, "r4iac0v": { "as": "value", "from": "r4iac0v", "to": "out" }, "ra9d520": { "as": "w", "from": "ra9d520", "to": "v3ucnvc" }, "sal16lj": { "as": "_dimZ", "from": "sal16lj", "to": "3w2mjzs" }, "tk5fa45": { "as": "dimZ", "from": "tk5fa45", "to": "v3ucnvc" }, "tuw52lr": { "as": "dimY", "from": "tuw52lr", "to": "v3ucnvc" }, "v3ucnvc": { "as": "fn", "from": "v3ucnvc", "to": "xbort73" }, "vktr3na": { "as": "z", "from": "vktr3na", "to": "v3ucnvc" }, "wim2g5q": { "as": "dimX", "from": "wim2g5q", "to": "v3ucnvc" }, "xbort73": { "as": "value", "from": "xbort73", "to": "r4iac0v" }, "xrxh9ci": { "as": "parameters", "from": "xrxh9ci", "to": "4y0zvwy" }, "ywvf7t4": { "as": "value", "from": "ywvf7t4", "to": "cy3xmxj" }, "zaqgks3": { "as": "value", "from": "zaqgks3", "to": "bp1jp8w" }, "zlojnd4": { "as": "elementScale", "from": "zlojnd4", "to": "xrxh9ci" } }, "id": "@math.curlnoise", "nodes": { "0f3yvkt": { "id": "0f3yvkt", "value": "3" }, "0wye9gb": { "id": "0wye9gb" }, "1dfm7ji": { "id": "1dfm7ji", "ref": "arg", "value": "elementScale" }, "1qvyjit": { "id": "1qvyjit", "value": "0" }, "3w2mjzs": { "id": "3w2mjzs" }, "4rfdldl": { "id": "4rfdldl", "value": "4" }, "4y0zvwy": { "id": "4y0zvwy", "ref": "@flow.runnable" }, "5iuypo6": { "id": "5iuypo6", "value": "1" }, "7ddyvg5": { "id": "7ddyvg5", "ref": "arg", "value": "y" }, "7pazm63": { "id": "7pazm63", "value": "0" }, "9z5zasc": { "id": "9z5zasc", "ref": "arg", "value": "x" }, "args": { "id": "args", "ref": "extern", "value": "extern.data" }, "bp1jp8w": { "id": "bp1jp8w", "ref": "@flow.default" }, "coz46jt": { "id": "coz46jt", "value": "4" }, "cy3xmxj": { "id": "cy3xmxj", "ref": "@memory.cache" }, "dy65zb2": { "id": "dy65zb2", "ref": "@math.noise" }, "gw4y5bs": { "id": "gw4y5bs" }, "h5rpf0o": { "id": "h5rpf0o", "ref": "@memory.cache" }, "jnnnm7v": { "id": "jnnnm7v", "value": "0" }, "kf6fscw": { "id": "kf6fscw" }, "nk91iof": { "id": "nk91iof" }, "out": { "id": "out", "name": "@math.curlnoise", "ref": "return" }, "prsoiok": { "id": "prsoiok", "ref": "arg", "value": "_noise" }, "r4iac0v": { "id": "r4iac0v", "ref": "return" }, "ra9d520": { "id": "ra9d520", "ref": "arg", "value": "time" }, "sal16lj": { "id": "sal16lj", "ref": "@memory.cache" }, "tk5fa45": { "id": "tk5fa45", "ref": "arg", "value": "_dimZ" }, "tuw52lr": { "id": "tuw52lr", "ref": "arg", "value": "_dimY" }, "v3ucnvc": { "id": "v3ucnvc", "ref": "@js.script", "value": "const delta = 0.0001;\nelscale = Math.max(elscale ?? 1, 0.001);\n\nconst sample3D = (x, y, z, w) => noise.map(nfn => nfn(x / elscale, y / elscale, z / elscale, w))\n\nconst slope = (dim) => {\n if(dim === 0) {\n dimX = 1;\n dimY = 0;\n dimZ = 0;\n }\n \n if(dim === 1) {\n dimX = 0;\n dimY = 1;\n dimZ = 0;\n }\n \n if(dim === 2) {\n dimX = 0;\n dimY = 0;\n dimZ = 1;\n }\n \n const n1 = sample3D(x - delta * dimX, y - delta * dimY, z - delta * dimZ, w);\n const n2 = sample3D(x + delta * dimX, y + delta * dimY, z + delta * dimZ, w);\n\n return [n1[0] - n2[0], n1[1] - n2[1], n1[2] - n2[2]]\n}\n\nconst dx = slope(0);\nconst dy = slope(1);\nconst dz = slope(2);\n\nconst grad = [slope(noise, 0), slope(noise, 1), slope(noise, 2)]\n\nconst curl = [(dy[2] - dz[1]) / (2 * delta), (dz[0] - dx[2]) / (2 * delta), (dx[1] - dy[0]) / (2 * delta)]\n\nconst sum = Math.sqrt(curl[0] * curl[0] + curl[1] * curl[1] + curl[2] * curl[2]);\nreturn curl.map(cv => cv / sum)" }, "vktr3na": { "id": "vktr3na", "ref": "arg", "value": "z" }, "wim2g5q": { "id": "wim2g5q", "ref": "arg", "value": "_dimX" }, "xbort73": { "id": "xbort73", "ref": "@js.create_fn" }, "xrxh9ci": { "id": "xrxh9ci" }, "ywvf7t4": { "id": "ywvf7t4", "value": "0" }, "zaqgks3": { "id": "zaqgks3", "ref": "arg", "value": "seed" }, "zlojnd4": { "id": "zlojnd4" } }, "out": "out" }, "@browser.writeClipboard": { "edges": { "output_val": { "as": "value", "from": "output_val", "to": "out" }, "u9vcri1": { "as": "text", "from": "u9vcri1", "to": "output_val" } }, "id": "@browser.writeClipboard", "nodes": { "out": { "id": "out", "name": "@browser.writeClipboard", "ref": "return" }, "output_val": { "id": "output_val", "ref": "@js.script", "value": "navigator.clipboard.writeText(typeof text === \"string\" ? text : JSON.stringify(text));\nreturn text;" }, "u9vcri1": { "id": "u9vcri1", "ref": "arg", "value": "text" } }, "out": "out" }, "@nodysseus.checkRefImportJSON": { "edges": { "akna0ig": { "as": "refs", "from": "akna0ig", "to": "va78wdx" }, "d6hbagr": { "as": "url", "from": "d6hbagr", "to": "tmj66vh" }, "jmq5y9e": { "as": "true", "from": "jmq5y9e", "to": "uzfo5bm" }, "ldk168m": { "as": "args", "from": "ldk168m", "to": "r5emxzc" }, "tmj66vh": { "as": "false", "from": "tmj66vh", "to": "uzfo5bm" }, "uzfo5bm": { "as": "value", "from": "uzfo5bm", "to": "r5emxzc" }, "va78wdx": { "as": "pred", "from": "va78wdx", "to": "uzfo5bm" }, "y5x546d": { "as": "checkRef", "from": "y5x546d", "to": "va78wdx" } }, "id": "@nodysseus.checkRefImportJSON", "name": "@nodysseus.checkRefImportJSON", "nodes": { "akna0ig": { "id": "akna0ig", "ref": "@js.script", "value": "return _lib.runtime.refs()" }, "d6hbagr": { "id": "d6hbagr", "ref": "arg", "value": "__graph_value" }, "jmq5y9e": { "id": "jmq5y9e", "ref": "arg", "value": "continue" }, "ldk168m": { "id": "ldk168m", "name": "a" }, "r5emxzc": { "id": "r5emxzc", "name": "@nodysseus.checkRefImportJSON", "ref": "return" }, "tmj66vh": { "id": "tmj66vh", "ref": "@nodysseus.importUrl" }, "uzfo5bm": { "id": "uzfo5bm", "ref": "@flow.if" }, "va78wdx": { "id": "va78wdx", "ref": "@js.script", "value": "return refs.includes(checkRef)" }, "y5x546d": { "id": "y5x546d", "ref": "arg", "value": "checkRef" } }, "out": "r5emxzc" }, "@nodysseus.graphDisplay": { "category": "templates", "edges": { "8dy573e": { "as": "display", "from": "8dy573e", "to": "out" }, "args": { "as": "args", "from": "args", "to": "out" }, "l0bwoyg": { "as": "graph", "from": "l0bwoyg", "to": "args" }, "wbxid6p": { "as": "children", "from": "wbxid6p", "to": "8dy573e" }, "ek4eavo": { "as": "arg1", "from": "ek4eavo", "to": "wbxid6p" }, "mg9an48": { "as": "arg0", "from": "mg9an48", "to": "wbxid6p" }, "4ugyo6z": { "as": "children", "from": "4ugyo6z", "to": "mg9an48" }, "rpxj4ki": { "as": "props", "from": "rpxj4ki", "to": "mg9an48" }, "3g6ii4f": { "as": "true", "from": "3g6ii4f", "to": "rpxj4ki" }, "h3b1zty": { "as": "pred", "from": "h3b1zty", "to": "rpxj4ki" }, "5312qb9": { "as": "style", "from": "5312qb9", "to": "3g6ii4f" }, "4apuf8v": { "as": "left", "from": "4apuf8v", "to": "5312qb9" }, "ckhbpn3": { "as": "height", "from": "ckhbpn3", "to": "5312qb9" }, "dppeunw": { "as": "z-index", "from": "dppeunw", "to": "5312qb9" }, "ockr8ja": { "as": "width", "from": "ockr8ja", "to": "5312qb9" }, "ycfa5m2": { "as": "position", "from": "ycfa5m2", "to": "5312qb9" }, "yurq1hy": { "as": "top", "from": "yurq1hy", "to": "5312qb9" }, "kwybbgt": { "as": "value", "from": "kwybbgt", "to": "4ugyo6z" }, "tqc1zt5": { "as": "fn", "from": "tqc1zt5", "to": "kwybbgt" }, "x73h5si": { "as": "run", "from": "x73h5si", "to": "kwybbgt" }, "qgbinm2": { "as": "value", "from": "qgbinm2", "to": "tqc1zt5" }, "2f2neul": { "as": "graph", "from": "2f2neul", "to": "qgbinm2" }, "r8rn59x": { "as": "output", "from": "r8rn59x", "to": "qgbinm2" }, "k2dsx1d": { "as": "value", "from": "k2dsx1d", "to": "2f2neul" }, "1p5xpme": { "as": "css_object", "from": "1p5xpme", "to": "ek4eavo" }, "524n1fd": { "as": "#node-info-wrapper", "from": "524n1fd", "to": "1p5xpme" }, "fa0r6ra": { "as": "#node-editor-result", "from": "fa0r6ra", "to": "1p5xpme" }, "gnpriwi": { "as": "#node-editor-editor", "from": "gnpriwi", "to": "1p5xpme" }, "bgmmz4g": { "as": "visibility", "from": "bgmmz4g", "to": "gnpriwi" }, "0vzo6wd": { "as": "z-index", "from": "0vzo6wd", "to": "fa0r6ra" }, "rbaam2i": { "as": "visibility", "from": "rbaam2i", "to": "524n1fd" } }, "id": "@nodysseus.graphDisplay", "nodes": { "out": { "id": "out", "name": "@nodysseus.graphDisplay", "ref": "return" }, "args": { "id": "args", "ref": "extern", "value": "extern.data" }, "l0bwoyg": { "id": "l0bwoyg", "ref": "@js.script", "value": "return new URLSearchParams(location.search).get(\"graph\");" }, "8dy573e": { "id": "8dy573e", "ref": "@html.html_element" }, "wbxid6p": { "id": "wbxid6p", "ref": "@data.array" }, "mg9an48": { "id": "mg9an48", "ref": "@html.html_element", "value": "div" }, "rpxj4ki": { "id": "rpxj4ki", "ref": "@flow.if" }, "h3b1zty": { "id": "h3b1zty", "ref": "arg", "value": "graph" }, "3g6ii4f": { "id": "3g6ii4f" }, "5312qb9": { "id": "5312qb9" }, "yurq1hy": { "id": "yurq1hy", "value": "0" }, "ycfa5m2": { "id": "ycfa5m2", "value": "fixed" }, "ockr8ja": { "id": "ockr8ja", "value": "100vw" }, "dppeunw": { "id": "dppeunw", "value": "5" }, "ckhbpn3": { "id": "ckhbpn3", "value": "100vh" }, "4apuf8v": { "id": "4apuf8v", "value": "0" }, "4ugyo6z": { "id": "4ugyo6z", "ref": "@debug.log", "value": "apresult" }, "kwybbgt": { "id": "kwybbgt", "ref": "@flow.ap" }, "x73h5si": { "id": "x73h5si", "value": "true" }, "tqc1zt5": { "id": "tqc1zt5", "ref": "@debug.log", "value": "const runnable" }, "qgbinm2": { "id": "qgbinm2", "ref": "@flow.graphRunnable" }, "r8rn59x": { "id": "r8rn59x", "value": "display" }, "2f2neul": { "id": "2f2neul", "ref": "@debug.log", "value": "got ref" }, "k2dsx1d": { "id": "k2dsx1d", "ref": "arg", "value": "graph" }, "ek4eavo": { "id": "ek4eavo", "ref": "@html.css_styles" }, "1p5xpme": { "id": "1p5xpme" }, "gnpriwi": { "id": "gnpriwi" }, "bgmmz4g": { "id": "bgmmz4g", "value": "hidden" }, "fa0r6ra": { "id": "fa0r6ra" }, "0vzo6wd": { "id": "0vzo6wd", "value": "5" }, "524n1fd": { "id": "524n1fd" }, "rbaam2i": { "id": "rbaam2i", "value": "hidden" } }, "out": "out" }, "@debug.editValue": {"edges":{"5a6pljw":{"as":"display","from":"5a6pljw","to":"out"},"hm2lkjh":{"as":"args","from":"hm2lkjh","to":"out"},"tk1f7i6":{"as":"metadata","from":"tk1f7i6","to":"out"},"ut9zq8n":{"as":"value","from":"ut9zq8n","to":"out"},"73asljg":{"as":"false","from":"73asljg","to":"ut9zq8n"},"bi1dbsb":{"as":"true","from":"bi1dbsb","to":"ut9zq8n"},"xzbcdnj":{"as":"pred","from":"xzbcdnj","to":"ut9zq8n"},"n028q0n":{"as":"stored","from":"n028q0n","to":"xzbcdnj"},"s7kudco":{"as":"value","from":"s7kudco","to":"xzbcdnj"},"zfl3aqg":{"as":"ischanged","from":"zfl3aqg","to":"xzbcdnj"},"1ovmmn3":{"as":"value","from":"1ovmmn3","to":"zfl3aqg"},"1c4vbjw":{"as":"arg0","from":"1c4vbjw","to":"bi1dbsb"},"3jphobh":{"as":"value","from":"3jphobh","to":"bi1dbsb"},"iego3bj":{"as":"fn","from":"iego3bj","to":"1c4vbjw"},"rg59xbc":{"as":"run","from":"rg59xbc","to":"1c4vbjw"},"wo0j48j":{"as":"args","from":"wo0j48j","to":"1c4vbjw"},"psog7hu":{"as":"value","from":"psog7hu","to":"wo0j48j"},"a8nnxeo":{"as":"spacer","from":"a8nnxeo","to":"psog7hu"},"xm523y9":{"as":"object","from":"xm523y9","to":"psog7hu"},"dqau7vz":{"as":"arg0","from":"dqau7vz","to":"iego3bj"},"q5j3cy9":{"as":"arg1","from":"q5j3cy9","to":"iego3bj"},"43yf13g":{"as":"pred","from":"43yf13g","to":"q5j3cy9"},"5pahzbv":{"as":"true","from":"5pahzbv","to":"q5j3cy9"},"ht98k5w":{"as":"codeEditor","from":"ht98k5w","to":"tk1f7i6"},"0b9y6nq":{"as":"language","from":"0b9y6nq","to":"ht98k5w"},"9bdwb13":{"as":"editorText","from":"9bdwb13","to":"ht98k5w"},"tm7ex1d":{"as":"onChange","from":"tm7ex1d","to":"ht98k5w"},"40kas2g":{"as":"fn","from":"40kas2g","to":"tm7ex1d"},"dvmzz12":{"as":"args","from":"dvmzz12","to":"tm7ex1d"},"gj85ycd":{"as":"value","from":"gj85ycd","to":"dvmzz12"},"5f8nhay":{"as":"value","from":"5f8nhay","to":"9bdwb13"},"ley9nd1":{"as":"otherwise","from":"ley9nd1","to":"9bdwb13"},"06sxntx":{"as":"_edited","from":"06sxntx","to":"hm2lkjh"},"9ukj84k":{"as":"_stored","from":"9ukj84k","to":"hm2lkjh"},"h8q885n":{"as":"publish","from":"h8q885n","to":"9ukj84k"},"rxdid56":{"as":"publish","from":"rxdid56","to":"06sxntx"},"ene3c37":{"as":"children","from":"ene3c37","to":"5a6pljw"},"5nf35nr":{"as":"arg1","from":"5nf35nr","to":"ene3c37"},"iwo5mye":{"as":"css_object","from":"iwo5mye","to":"5nf35nr"},"f9dqxdj":{"as":"#node-editor-code-editor","from":"f9dqxdj","to":"iwo5mye"},"vll53jm":{"as":"display","from":"vll53jm","to":"f9dqxdj"}},"id":"@debug.editValue","nodes":{"out":{"id":"out","name":"@debug.editValue","ref":"return","value":"{\n \"test\": 1,\n \"test2\": \"abc\",\n \"test3\": {\n \"a\": \"A\"\n },\n \"j\": 54\n}"},"ut9zq8n":{"id":"ut9zq8n","ref":"@flow.if"},"xzbcdnj":{"id":"xzbcdnj","ref":"@js.script","value":"return stored === undefined || ischanged;"},"zfl3aqg":{"id":"zfl3aqg","ref":"@data.ischanged"},"1ovmmn3":{"id":"1ovmmn3","ref":"arg","value":"value: default"},"s7kudco":{"id":"s7kudco","ref":"arg","value":"value: default"},"n028q0n":{"id":"n028q0n","ref":"arg","value":"_stored.value"},"bi1dbsb":{"id":"bi1dbsb","ref":"@js.script","value":"return value"},"3jphobh":{"id":"3jphobh","ref":"arg","value":"value: default"},"1c4vbjw":{"id":"1c4vbjw","ref":"@flow.ap"},"wo0j48j":{"id":"wo0j48j"},"psog7hu":{"id":"psog7hu","ref":"@js.script","value":"\nreturn JSON.stringify(object, (key, value) => typeof value === 'object' && value && !Array.isArray(value) && Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) ? Object.getPrototypeOf(value).constructor.name : value, 2)"},"xm523y9":{"id":"xm523y9","ref":"arg","value":"value: default"},"a8nnxeo":{"id":"a8nnxeo","value":"2"},"rg59xbc":{"id":"rg59xbc","value":"true"},"iego3bj":{"id":"iego3bj","ref":"@data.array"},"q5j3cy9":{"id":"q5j3cy9","ref":"@flow.if"},"5pahzbv":{"id":"5pahzbv","ref":"arg","value":"_edited.set"},"43yf13g":{"id":"43yf13g","ref":"arg","value":"_edited.state"},"dqau7vz":{"id":"dqau7vz","ref":"arg","value":"_stored.set"},"73asljg":{"id":"73asljg","ref":"arg","value":"value"},"tk1f7i6":{"id":"tk1f7i6"},"ht98k5w":{"id":"ht98k5w"},"tm7ex1d":{"id":"tm7ex1d","ref":"@flow.ap"},"dvmzz12":{"id":"dvmzz12"},"gj85ycd":{"id":"gj85ycd","ref":"arg","value":"editorText"},"40kas2g":{"id":"40kas2g","ref":"arg","value":"_edited.set"},"9bdwb13":{"id":"9bdwb13","ref":"@flow.default"},"ley9nd1":{"id":"ley9nd1","ref":"arg","value":"_stored.value"},"5f8nhay":{"id":"5f8nhay","ref":"arg","value":"_edited.state"},"0b9y6nq":{"id":"0b9y6nq","value":"json"},"hm2lkjh":{"id":"hm2lkjh"},"9ukj84k":{"id":"9ukj84k","ref":"@memory.reference"},"h8q885n":{"id":"h8q885n","value":"true"},"06sxntx":{"id":"06sxntx","ref":"@memory.state"},"rxdid56":{"id":"rxdid56","value":"true"},"5a6pljw":{"id":"5a6pljw","ref":"@html.html_element","value":"pre"},"ene3c37":{"id":"ene3c37","ref":"@data.array"},"5nf35nr":{"id":"5nf35nr","ref":"@html.css_styles"},"iwo5mye":{"id":"iwo5mye"},"f9dqxdj":{"id":"f9dqxdj"},"vll53jm":{"id":"vll53jm","value":"block"}},"out":"out"}, }, "edges": { } } export default generic