Skip to content

节点目录:nodes-basic ​

共 16 个节点。以下内容由 scripts/gen-node-catalog.mjs 从 packages/nodes-basic/src/install.ts 提取。

槽位类型中的 number、string、boolean 等为普通数据端口,event 为事件端口;控件是绘制在节点上的交互组件,属性会随图一起序列化。

basic/CompareValues — GenericCompare ​

Compare *

  • 输入:A: any、B: any
  • 输出:true: boolean、false: boolean
  • 控件:Op.: combo
  • 属性:enabled、A、B、OP
  • 源码:GenericCompare.ts

basic/array[] — Array[i] ​

Returns an element from an array

  • 输入:array: array,table,string、index: number
  • 输出:value: any
  • 属性:index
  • 源码:ArrayElement.ts

basic/boolean — Const Boolean ​

Constant boolean

  • 输入:无
  • 输出:bool: boolean
  • 控件:value: toggle
  • 属性:value
  • 源码:ConstantBoolean.ts

basic/const — Const Number ​

Constant number

  • 输入:无
  • 输出:value: number
  • 控件:value: number
  • 属性:value
  • 源码:ConstantNumber.ts

basic/file — Const File ​

Fetches a file from an url

  • 输入:url: string
  • 输出:file: string
  • 控件:url: text
  • 属性:url、type
  • 源码:ConstantFile.ts

basic/integer — Const Integer ​

Constant integer

  • 输入:无
  • 输出:value: number
  • 控件:value: number
  • 属性:value
  • 源码:ConstantInteger.ts

basic/is_null — == Null ​

Returns true if input is null

  • 输入:in: *
  • 输出:is_null: boolean
  • 属性:strictEquality
  • 源码:IsNull.ts

basic/json — Const JSON ​

Parses a string to JSON object

  • 输入:无
  • 输出:data: object
  • 控件:json: text、value: text、type: text
  • 属性:json、value、type
  • 源码:ConstantJSON.ts

basic/null — Const Null ​

Constant null or undefined

  • 输入:无
  • 输出:null: *
  • 控件:value: toggle
  • 属性:value
  • 源码:ConstantNull.ts

basic/number — Const Number ​

Constant number

  • 输入:无
  • 输出:value: number
  • 控件:value: number
  • 属性:value
  • 源码:ConstantNumber.ts

basic/object — Const Object ​

Constant object

basic/reroute — Reroute ​

Simple pass-through for organization

basic/set_array — Set Array ​

Sets index of array

  • 输入:arr: array、value: any
  • 输出:arr: array
  • 控件:i: number
  • 属性:index
  • 源码:SetArray.ts

basic/string — Const String ​

Constant string

  • 输入:无
  • 输出:string: string
  • 控件:value: text
  • 属性:value
  • 源码:ConstantString.ts

basic/time — Time ​

Current time

  • 输入:无
  • 输出:in ms: number、in sec: number
  • 属性:enabled
  • 源码:Time.ts

basic/watch — Watch ​

Show value of input

  • 输入:value: any
  • 输出:无
  • 属性:value
  • 源码:Watch.ts

Released under the MIT License.