Zoom

<script src="./point_src/zoom"></script>

Scale a set of points in a zooming method, relative to an origin point.

Apply a set of points to an instance of Zoom, then apply an update().

const zoom = new Zoom(stage, pointList)

const origin = {x: 100, y: 100}
    , factor = 1.5 // 50% bigger.

// run `update` when a change occurs.
zoom.update(origin, factor)

// Draw points.
zoom.zoomPoints.pen.indicators(ctx, { color: 'gray', width: 1})
Meta Data
title Zoom
dependencies ()
unused_keys ()
unknown_keys ('category',)
category ['zoom', 'scale']
filepath_exists True
path zoom
filepath zoom.js
clean_files ()

Method List

comment.html|safe
comment.html|safe
  • method_kind

    method_name

    (
    param_name = param.default_value ,
    )
    from class_name
    comment.html|safe
    comment.html|safe