May 2019
Beginner to intermediate
650 pages
14h 50m
English
Besides event handlers, you will typically configure the extent of your zooming behaviors, since they are initially set for infinite scaling and translation. The following table contains the main configuration methods you are most likely to use. All methods return the current zoom behavior and can be chained:
|
Method |
Description |
|
on(types, listener) |
One or more type names can be provided (separated by spaces). They can be start, called after a mousedown (or touchstart); zoom, on mousemove, wheel, or touchmove; and end, on mouseup, touchend, or touchcancel. Each function receives the current datum, index, and nodes (which may be null if the object is not bound to a dataset). The current object can be accessed ... |
Read now
Unlock full access