UNPKG

@js-basics/vector

Version:

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

17 lines (16 loc) 430 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hijackDOMPoint = void 0; var _operator = require("./operator.js"); const hijackDOMPoint = DOMPoint => { try { (0, _operator.cachedValueOf)(DOMPoint); (0, _operator.defineVectorLength)(DOMPoint, 4); } catch (e) { console.error('error while hijackDOMPoint'); console.error(e); } }; exports.hijackDOMPoint = hijackDOMPoint;