UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

21 lines (19 loc) 507 B
/** * performs an OR logical operation between the inputs * * * */ import {JsConnectionPointType} from '../utils/io/connections/Js'; import {BaseLogicOperationJsNode, AllowedType} from './_BaseLogicOperation'; export class OrJsNode extends BaseLogicOperationJsNode { static override type() { return 'or'; } protected _expectedOutputName() { return 'or'; } protected _functionName(firstType: AllowedType) { return firstType == JsConnectionPointType.BOOLEAN ? 'orBooleans' : 'orArrays'; } }