plotomics
    Preparing search index...

    Function boundView

    • Keep view, a camera view of regl-scatterplot, inside the home view home, and change it in place. Returns whether it changed.

      A view scales the points by sx and sy and moves them by (tx, ty): its entries 0 and 5, and 12 and 13. A plot area aspect times as wide as it is high shows x from (-aspect - tx) / sx to (aspect - tx) / sx, and y from (-1 - ty) / sy to (1 - ty) / sy. The home view shows all the data, the start view right after a fit (see frameView).

      On each axis the scale stays from that of the home view to 1 / MIN_VIEW_SHARE times it, and the view stays inside the home view. An axis that shows all of the home view is centred on it. A turn of the view is taken out, as a turned view does not fit the home view. A scale within a millionth of the home view's is the home view's, written exactly, so a zoom back out ends at the home view. A view inside the bounds is left exactly as it is.

      Parameters

      Returns boolean