Skip to content

Latest commit

 

History

History

position

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Position

2D space (x, y) pair for Pencil.js.

Examples

import { Position } from "pencil.js";

const position = new Position(100, 200);
position.multiply(2); // position is mutated
const other = position.clone().add(10); // Return a new instance