@ud-viz/utils_shared
@ud-viz/utils_shared is a collection of shared-realted functions (interpretable by nodeJS and browser enviromnent). These utility functions are designed to facilitate various data manipulation and processing tasks in JavaScript applications.
Installation
You can install @ud-viz/utils_shared via npm:
npm install @ud-viz/utils_shared
Usage
Transform coordinates:
rotate2DCoord: rotate a 2D point around origin related to an angle.
Geometric computation:
polygon2DArea: compute area of 2D polygon.
Throtlle:
throttle: limit a function's execution frequency.
Check data:
isNumeric: check if a string is a number.
Extract data:
vector3ArrayFromURIComponentandeulerArrayFromURIComponentextract arrays of string from URI's components.
Convert data:
objectToInt32Array,int32ArrayToObjectanddataUriToBuffer.
Geometric data conversion:
vector3ToLabelto convert 3D vectors into strings formatted as labels.
Arrays/objects operation:
objectEquals,objectOverWrite,objectParse,objectParseNumeric,arrayEquals,removeFromArray,arrayPushOnceperform various operations on objects and arrays, such as compare, merge, transform and modify.
String operation:
insert,round,computeFileFormat,computeFilenameFromPathperform various operations on strings, such as inserting, rounding and extracting information from file names.
Documentation
Contributing
Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests on the GitHub repository. See Contributing.md.
License
This package is licensed under the GNU Lesser General Public License Version 2.1, with copyright attributed to the University of Lyon.
Credits
@ud-viz/utils_shared is developed and maintained by VCityTeam. See Contributors.md.