Skip to main content

Function: makeScrubbableEntries()

makeScrubbableEntries(container, scene, options?): Scrubbable[]

Defined in: src/interaction/Scrubbable.ts:296

Make every DecimalNumber inside a mobject scrubbable, for example the cells of a DecimalTable or a MobjectMatrix built from DecimalNumbers. Each number gets its own Scrubbable with the same options; use the decimal argument of onChange to tell the cells apart.

Parameters​

container​

Mobject

Any mobject. Its whole family is searched.

scene​

Scene

The scene that displays the container.

options?​

ScrubbableOptions

Options shared by every number.

Returns​

Scrubbable[]

One Scrubbable per DecimalNumber, in family order.

Post​

result.length === container.getFamily().filter(m => m instanceof DecimalNumber).length