Skip to main content

Function: makeTangle()

makeTangle(tex, scene, options?): Tangle

Defined in: src/interaction/Tangle.ts:658

Make a TangleTex interactive: drag numbers, click to type them, hover or tap matrices to expand them.

Parameters​

tex​

TangleTex

The formula. Add it to the scene as usual.

scene​

Scene

The scene whose canvas receives the pointer events.

options?​

TangleOptions

Editor, expansion and callback options.

Returns​

Tangle

The Tangle behavior. Call dispose() to remove it.