sync_limits: Sync layer limits

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/common-events.R

Description

The limits information is stored in the meta data as meta$limits, of which this function makes use to sync the limits of layers.

Usage

1

Arguments

meta

the meta data contains a matrix of limits in meta$limits

...

an arbitrary number of layers

Details

An event is attached to meta$limits so that whenever it is changed, the limits all the layers will be reset by the method layer$setLimits(), hence we only need to take care of meta$limits and this function will do the rest of work.

Besides, the size and position of the brush will be restored.

Value

NULL (an event is attached on meta$limits so that whenever the limits are changed, the layers will be updated using the new limits)

Note

You do not need to call qupdate to update the layers explicitly when meta$limits is changed, because layer$setLimits() will update the layers.

Author(s)

Yihui Xie <http://yihui.name>

Examples

1
## sync_limits(meta, layer1, layer2, layer3)

ggobi/cranvas documentation built on May 17, 2019, 3:10 a.m.