tapspace
Version:
A zoomable user interface lib for web apps
21 lines (20 loc) • 492 B
JavaScript
module.exports = function () {
// @BlockComponent:atNorm(rx, ry)
// @BlockComponent:getNormalizedPoint
//
// **Subclasses must override this method.**
//
// Get a point by coordinates that are normalized over the width and height
// so that (0,0) means the top-left and (1,1) the bottom-right corner.
//
// Parameters:
// rx
// a number
// ry
// a number
//
// Return:
// a Point
//
throw new Error('Subclass must override atNorm method.')
}