UNPKG

@js-basics/vector

Version:

A 3D Vector lib including arithmetic operator overloading (+ - * / % **).

12 lines (10 loc) 280 B
import { cachedValueOf, defineVectorLength } from './operator.js'; export const hijackDOMPoint = DOMPoint => { try { cachedValueOf(DOMPoint); defineVectorLength(DOMPoint, 4); } catch (e) { console.error('error while hijackDOMPoint'); console.error(e); } };