@slimevr/common
Advanced tools
| { | ||
| "extends": "@slimevr/tsconfig/node-lib-cjs.json", | ||
| "include": ["src/**/*.ts"], | ||
| "exclude": ["dist", "build", "node_modules"], | ||
| "compilerOptions": { | ||
| "outDir": "dist/cjs" | ||
| } | ||
| } |
| { | ||
| "extends": "@slimevr/tsconfig/node-lib-esm.json", | ||
| "include": ["src/**/*.ts"], | ||
| "exclude": ["dist", "build", "node_modules"], | ||
| "compilerOptions": { | ||
| "outDir": "dist/esm", | ||
| "declarationDir": "dist/dts" | ||
| } | ||
| } |
+15
-15
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var _utils = require("./utils"); | ||
| Object.keys(_utils).forEach(function (key) { | ||
| if (key === "default" || key === "__esModule") return; | ||
| if (key in exports && exports[key] === _utils[key]) return; | ||
| Object.defineProperty(exports, key, { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _utils[key]; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| }); | ||
| }); | ||
| //# sourceMappingURL=index.js.map | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __exportStar(require("./utils.js"), exports); |
+100
-99
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| exports.formatMACAddressDigit = exports.Vector = exports.Quaternion = exports.MACAddress = void 0; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MACAddress = exports.formatMACAddressDigit = exports.Quaternion = exports.Vector = void 0; | ||
| class Vector { | ||
| constructor(x, y, z) { | ||
| this.x = x; | ||
| this.y = y; | ||
| this.z = z; | ||
| } | ||
| static from(init) { | ||
| if (Array.isArray(init)) { | ||
| return new Vector(init[0], init[1], init[2]); | ||
| } else { | ||
| return new Vector(init.x, init.y, init.z); | ||
| constructor(x, y, z) { | ||
| this.x = x; | ||
| this.y = y; | ||
| this.z = z; | ||
| } | ||
| } | ||
| static readFloatBE(buf, offset) { | ||
| return new Vector(buf.readFloatBE(offset), buf.readFloatBE(offset + 4), buf.readFloatBE(offset + 8)); | ||
| } | ||
| static readInt32BE(buf, offset) { | ||
| return new Vector(buf.readInt32BE(offset), buf.readInt32BE(offset + 4), buf.readInt32BE(offset + 8)); | ||
| } | ||
| writeFloatBE(buf, offset) { | ||
| buf.writeFloatBE(this.x, offset); | ||
| buf.writeFloatBE(this.y, offset + 4); | ||
| buf.writeFloatBE(this.z, offset + 8); | ||
| } | ||
| writeInt32BE(buf, offset) { | ||
| buf.writeInt32BE(this.x, offset); | ||
| buf.writeInt32BE(this.y, offset + 4); | ||
| buf.writeInt32BE(this.z, offset + 8); | ||
| } | ||
| static zero() { | ||
| return new Vector(0, 0, 0); | ||
| } | ||
| get byteLength() { | ||
| return 3 * 4; | ||
| } | ||
| get bytes() { | ||
| return [this.x, this.y, this.z]; | ||
| } | ||
| toString() { | ||
| return `(${this.x}, ${this.y}, ${this.z})`; | ||
| } | ||
| static from(init) { | ||
| if (Array.isArray(init)) { | ||
| return new Vector(init[0], init[1], init[2]); | ||
| } | ||
| else { | ||
| return new Vector(init.x, init.y, init.z); | ||
| } | ||
| } | ||
| static readFloatBE(buf, offset) { | ||
| return new Vector(buf.readFloatBE(offset), buf.readFloatBE(offset + 4), buf.readFloatBE(offset + 8)); | ||
| } | ||
| static readInt32BE(buf, offset) { | ||
| return new Vector(buf.readInt32BE(offset), buf.readInt32BE(offset + 4), buf.readInt32BE(offset + 8)); | ||
| } | ||
| writeFloatBE(buf, offset) { | ||
| buf.writeFloatBE(this.x, offset); | ||
| buf.writeFloatBE(this.y, offset + 4); | ||
| buf.writeFloatBE(this.z, offset + 8); | ||
| } | ||
| writeInt32BE(buf, offset) { | ||
| buf.writeInt32BE(this.x, offset); | ||
| buf.writeInt32BE(this.y, offset + 4); | ||
| buf.writeInt32BE(this.z, offset + 8); | ||
| } | ||
| static zero() { | ||
| return new Vector(0, 0, 0); | ||
| } | ||
| get byteLength() { | ||
| return 3 * 4; | ||
| } | ||
| get bytes() { | ||
| return [this.x, this.y, this.z]; | ||
| } | ||
| toString() { | ||
| return `(${this.x}, ${this.y}, ${this.z})`; | ||
| } | ||
| } | ||
| exports.Vector = Vector; | ||
| class Quaternion { | ||
| constructor(x, y, z, w) { | ||
| this.x = x; | ||
| this.y = y; | ||
| this.z = z; | ||
| this.w = w; | ||
| } | ||
| static from(init) { | ||
| if (Array.isArray(init)) { | ||
| return new Quaternion(init[0], init[1], init[2], init[3]); | ||
| } else { | ||
| return new Quaternion(init.x, init.y, init.z, init.w); | ||
| constructor(x, y, z, w) { | ||
| this.x = x; | ||
| this.y = y; | ||
| this.z = z; | ||
| this.w = w; | ||
| } | ||
| } | ||
| static read(buf, offset) { | ||
| return new Quaternion(buf.readFloatBE(offset), buf.readFloatBE(offset + 4), buf.readFloatBE(offset + 8), buf.readFloatBE(offset + 12)); | ||
| } | ||
| write(buf, offset) { | ||
| buf.writeFloatBE(this.x, offset); | ||
| buf.writeFloatBE(this.y, offset + 4); | ||
| buf.writeFloatBE(this.z, offset + 8); | ||
| buf.writeFloatBE(this.w, offset + 12); | ||
| } | ||
| static zero() { | ||
| return new Quaternion(0, 0, 0, 1); | ||
| } | ||
| isSimilarTo(q, e = 0.0001) { | ||
| return Math.abs(this.x - q.x) < e && Math.abs(this.y - q.y) < e && Math.abs(this.z - q.z) < e && Math.abs(this.w - q.w) < e; | ||
| } | ||
| get byteLength() { | ||
| return 4 * 4; | ||
| } | ||
| get bytes() { | ||
| return [this.x, this.y, this.z, this.w]; | ||
| } | ||
| toString() { | ||
| return `(${this.x}, ${this.y}, ${this.z}, ${this.w})`; | ||
| } | ||
| static from(init) { | ||
| if (Array.isArray(init)) { | ||
| return new Quaternion(init[0], init[1], init[2], init[3]); | ||
| } | ||
| else { | ||
| return new Quaternion(init.x, init.y, init.z, init.w); | ||
| } | ||
| } | ||
| static read(buf, offset) { | ||
| return new Quaternion(buf.readFloatBE(offset), buf.readFloatBE(offset + 4), buf.readFloatBE(offset + 8), buf.readFloatBE(offset + 12)); | ||
| } | ||
| write(buf, offset) { | ||
| buf.writeFloatBE(this.x, offset); | ||
| buf.writeFloatBE(this.y, offset + 4); | ||
| buf.writeFloatBE(this.z, offset + 8); | ||
| buf.writeFloatBE(this.w, offset + 12); | ||
| } | ||
| static zero() { | ||
| return new Quaternion(0, 0, 0, 1); | ||
| } | ||
| isSimilarTo(q, e = 0.0001) { | ||
| return (Math.abs(this.x - q.x) < e && | ||
| Math.abs(this.y - q.y) < e && | ||
| Math.abs(this.z - q.z) < e && | ||
| Math.abs(this.w - q.w) < e); | ||
| } | ||
| get byteLength() { | ||
| return 4 * 4; | ||
| } | ||
| get bytes() { | ||
| return [this.x, this.y, this.z, this.w]; | ||
| } | ||
| toString() { | ||
| return `(${this.x}, ${this.y}, ${this.z}, ${this.w})`; | ||
| } | ||
| } | ||
| exports.Quaternion = Quaternion; | ||
| const formatMACAddressDigit = mac => { | ||
| return mac.toString(16).padStart(2, '0').toUpperCase(); | ||
| const formatMACAddressDigit = (mac) => { | ||
| return mac.toString(16).padStart(2, '0').toUpperCase(); | ||
| }; | ||
| exports.formatMACAddressDigit = formatMACAddressDigit; | ||
| class MACAddress { | ||
| constructor(bytes) { | ||
| this.bytes = bytes; | ||
| } | ||
| write(buf, offset) { | ||
| for (let i = 0; i < this.bytes.length; i++) { | ||
| buf.writeUInt8(this.bytes[i], offset + i); | ||
| constructor(bytes) { | ||
| this.bytes = bytes; | ||
| } | ||
| } | ||
| toString() { | ||
| return this.bytes.map(formatMACAddressDigit).join(':'); | ||
| } | ||
| static zero() { | ||
| return new MACAddress([0, 0, 0, 0, 0, 0]); | ||
| } | ||
| static random() { | ||
| return new MACAddress(new Array(6).fill(0).map(() => Math.floor(Math.random() * 256))); | ||
| } | ||
| write(buf, offset) { | ||
| for (let i = 0; i < this.bytes.length; i++) { | ||
| buf.writeUInt8(this.bytes[i], offset + i); | ||
| } | ||
| } | ||
| toString() { | ||
| return this.bytes.map(exports.formatMACAddressDigit).join(':'); | ||
| } | ||
| static zero() { | ||
| return new MACAddress([0, 0, 0, 0, 0, 0]); | ||
| } | ||
| static random() { | ||
| return new MACAddress(new Array(6).fill(0).map(() => Math.floor(Math.random() * 256))); | ||
| } | ||
| } | ||
| exports.MACAddress = MACAddress; | ||
| //# sourceMappingURL=utils.js.map |
@@ -1,2 +0,2 @@ | ||
| export * from './utils'; | ||
| export * from './utils.js'; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"} |
@@ -1,2 +0,2 @@ | ||
| /// <reference types="node" /> | ||
| /// <reference types="node" resolution-mode="require"/> | ||
| export type VectorInit = [number, number, number] | { | ||
@@ -3,0 +3,0 @@ x: number; |
@@ -1,1 +0,1 @@ | ||
| export * from './utils'; | ||
| export * from './utils.js'; |
+12
-6
| { | ||
| "name": "@slimevr/common", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "license": "(MIT OR Apache-2.0)", | ||
| "main": "dist/cjs/index.js", | ||
| "types": "dist/dts/index.d.ts", | ||
| "module": "dist/esm/index.js", | ||
| "type": "module", | ||
| "main": "./dist/cjs/index.js", | ||
| "module": "./dist/esm/index.js", | ||
| "types": "./dist/dts/index.d.ts", | ||
| "exports": { | ||
| "require": "./dist/cjs/index.js", | ||
| "import": "./dist/esm/index.js", | ||
| "types": "./dist/dts/index.d.ts", | ||
| "default": "./dist/esm/index.js" | ||
| }, | ||
| "publishConfig": { | ||
@@ -18,4 +24,4 @@ "access": "public" | ||
| "build": "pnpm run build:esm && pnpm run build:cjs", | ||
| "build:esm": "tsc", | ||
| "build:cjs": "babel dist/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir dist/cjs --source-maps", | ||
| "build:esm": "tsc -p tsconfig.esm.json", | ||
| "build:cjs": "tsc -p tsconfig.cjs.json", | ||
| "dev": "pnpm build:esm -- -w", | ||
@@ -22,0 +28,0 @@ "clean": "rimraf dist" |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export * from './utils'; | ||
| export * from './utils.js'; |
| {"version":3,"file":"index.js","names":["_utils","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../esm/index.js"],"sourcesContent":["export * from './utils';\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]} |
| {"version":3,"file":"utils.js","names":["Vector","constructor","x","y","z","from","init","Array","isArray","readFloatBE","buf","offset","readInt32BE","writeFloatBE","writeInt32BE","zero","byteLength","bytes","toString","exports","Quaternion","w","read","write","isSimilarTo","q","e","Math","abs","formatMACAddressDigit","mac","padStart","toUpperCase","MACAddress","i","length","writeUInt8","map","join","random","fill","floor"],"sources":["../esm/utils.js"],"sourcesContent":["export class Vector {\n constructor(x, y, z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }\n static from(init) {\n if (Array.isArray(init)) {\n return new Vector(init[0], init[1], init[2]);\n }\n else {\n return new Vector(init.x, init.y, init.z);\n }\n }\n static readFloatBE(buf, offset) {\n return new Vector(buf.readFloatBE(offset), buf.readFloatBE(offset + 4), buf.readFloatBE(offset + 8));\n }\n static readInt32BE(buf, offset) {\n return new Vector(buf.readInt32BE(offset), buf.readInt32BE(offset + 4), buf.readInt32BE(offset + 8));\n }\n writeFloatBE(buf, offset) {\n buf.writeFloatBE(this.x, offset);\n buf.writeFloatBE(this.y, offset + 4);\n buf.writeFloatBE(this.z, offset + 8);\n }\n writeInt32BE(buf, offset) {\n buf.writeInt32BE(this.x, offset);\n buf.writeInt32BE(this.y, offset + 4);\n buf.writeInt32BE(this.z, offset + 8);\n }\n static zero() {\n return new Vector(0, 0, 0);\n }\n get byteLength() {\n return 3 * 4;\n }\n get bytes() {\n return [this.x, this.y, this.z];\n }\n toString() {\n return `(${this.x}, ${this.y}, ${this.z})`;\n }\n}\nexport class Quaternion {\n constructor(x, y, z, w) {\n this.x = x;\n this.y = y;\n this.z = z;\n this.w = w;\n }\n static from(init) {\n if (Array.isArray(init)) {\n return new Quaternion(init[0], init[1], init[2], init[3]);\n }\n else {\n return new Quaternion(init.x, init.y, init.z, init.w);\n }\n }\n static read(buf, offset) {\n return new Quaternion(buf.readFloatBE(offset), buf.readFloatBE(offset + 4), buf.readFloatBE(offset + 8), buf.readFloatBE(offset + 12));\n }\n write(buf, offset) {\n buf.writeFloatBE(this.x, offset);\n buf.writeFloatBE(this.y, offset + 4);\n buf.writeFloatBE(this.z, offset + 8);\n buf.writeFloatBE(this.w, offset + 12);\n }\n static zero() {\n return new Quaternion(0, 0, 0, 1);\n }\n isSimilarTo(q, e = 0.0001) {\n return (Math.abs(this.x - q.x) < e &&\n Math.abs(this.y - q.y) < e &&\n Math.abs(this.z - q.z) < e &&\n Math.abs(this.w - q.w) < e);\n }\n get byteLength() {\n return 4 * 4;\n }\n get bytes() {\n return [this.x, this.y, this.z, this.w];\n }\n toString() {\n return `(${this.x}, ${this.y}, ${this.z}, ${this.w})`;\n }\n}\nexport const formatMACAddressDigit = (mac) => {\n return mac.toString(16).padStart(2, '0').toUpperCase();\n};\nexport class MACAddress {\n constructor(bytes) {\n this.bytes = bytes;\n }\n write(buf, offset) {\n for (let i = 0; i < this.bytes.length; i++) {\n buf.writeUInt8(this.bytes[i], offset + i);\n }\n }\n toString() {\n return this.bytes.map(formatMACAddressDigit).join(':');\n }\n static zero() {\n return new MACAddress([0, 0, 0, 0, 0, 0]);\n }\n static random() {\n return new MACAddress(new Array(6).fill(0).map(() => Math.floor(Math.random() * 256)));\n }\n}\n"],"mappings":";;;;;;AAAO,MAAMA,MAAM,CAAC;EAChBC,WAAWA,CAACC,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAE;IACjB,IAAI,CAACF,CAAC,GAAGA,CAAC;IACV,IAAI,CAACC,CAAC,GAAGA,CAAC;IACV,IAAI,CAACC,CAAC,GAAGA,CAAC;EACd;EACA,OAAOC,IAAIA,CAACC,IAAI,EAAE;IACd,IAAIC,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;MACrB,OAAO,IAAIN,MAAM,CAACM,IAAI,CAAC,CAAC,CAAC,EAAEA,IAAI,CAAC,CAAC,CAAC,EAAEA,IAAI,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,MACI;MACD,OAAO,IAAIN,MAAM,CAACM,IAAI,CAACJ,CAAC,EAAEI,IAAI,CAACH,CAAC,EAAEG,IAAI,CAACF,CAAC,CAAC;IAC7C;EACJ;EACA,OAAOK,WAAWA,CAACC,GAAG,EAAEC,MAAM,EAAE;IAC5B,OAAO,IAAIX,MAAM,CAACU,GAAG,CAACD,WAAW,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may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
418
5.56%0
-100%15560
-33.68%