@nativescript-community/ui-htmlcanvasapi
Version:
An HTML Canvas API implementation on top of android and iOS native APIs
18 lines • 434 B
JavaScript
class NSDOMPoint {
constructor() {
this.x = 0;
this.y = 0;
this.z = 0;
this.w = 1;
}
static fromPoint(sourcePoint) {
const point = new NSDOMPoint();
point.x = sourcePoint.x;
point.y = sourcePoint.y;
point.z = sourcePoint.z;
point.w = sourcePoint.w;
return point;
}
}
export { NSDOMPoint as DOMPoint };
//# sourceMappingURL=DOMPoint.js.map