UNPKG

408 BJavaScriptView Raw
1import { arrToPres, Fluo } from '@palett/fluo';
2
3function fluoVector(vec, pres, wd) {
4 if (!(vec !== null && vec !== void 0 && vec.length)) return [];
5 if (!pres) return vec;
6 if (Array.isArray(pres)) pres = arrToPres(pres);
7 return new Fluo(pres).project(vec, wd, this === null || this === void 0 ? void 0 : this.mode, this === null || this === void 0 ? void 0 : this.mutate);
8}
9
10export { fluoVector };