Copyright © 2021 by K4.org
  (v.0.48.124)

This Design must be mixed into any Design which wants to support connections.

Index

Rules

__pos3

__pos3: String

Internal Use Only.

Flags : Cached (Note this is uncached)

Expression : this.parent.__pos3; return R.THREE.setPosition(this.renderName, this.connectorData, null, ...this.localTransform.m43());

connectorData

connectorData: Any

Internal Use Only.

Flags : Cached (Note this is uncached)

Expression : { connData: this.connectors, dragEnable: this.dragEnable, snapEnable: this.snapEnable }

connectors

connectors: Array

An array of Connector objects. If independent is true then the snapping is independent of the object being snapped to. Example:

[ {name: "s1", frameName: "socket1", keys: [{key: "brio", polarity: -1}]}, independent: true, offsetSnapGrid: { gridFrameName: "socket1", xStep: { size: 0.1}, yStep: { size: 0.1}}}]

Flags : Cached (Note this is uncached)

Expression : []

dragEnable

dragEnable: Boolean

Allow this to be positioned by dragging

Flags : Cached, Parameter (Note this is uncached)

Expression : this.connectors.length>0

showModel

showModel: String

This is a special version of the Render3Mixin rule, which ensures this is demanded if it has connectors.

Flags : Cached, External (Note this is uncached)

Expression : this.show ? R.THREE.showModel( this.renderName, this.__pos3, this.__mod3, this.__mat3, this.renderNode, this.connectors.length>0 ) : R.nullHandle

snapEnable

snapEnable: Boolean

Allow the connectors to be used for position by dragging

Flags : Cached, Parameter (Note this is uncached)

Expression : this.connectors.length>0