xiaohejs
Version:
🎈 小何同学的JavaScript工具箱
114 lines (113 loc) • 5.7 kB
TypeScript
import { isEmpty as isEmptyString } from "./string/isEmpty.js";
import { isNotEmpty as isNotEmptyString } from "./string/isNotEmpty.js";
import { DefaultSplitOptions, split } from "./string/split.js";
import { underline2hump } from "./string/underline2hump.js";
import { hump2underline } from "./string/hump2underline.js";
import { number2chinese } from "./string/number2chinese.js";
import { convertUrl, ConvertUrlConfig, DefaultConvertUrlOptions } from "./string/convertUrl.js";
import { DefaultUuidOptions, uuid } from "./string/uuid.js";
import { DefaultFormatFileSizeOptions, formatFileSize } from "./string/formatFileSize.js";
import { DefaultFlat2TreeOptions, flat2tree } from "./array/flat2tree.js";
import { DefaultTree2FlatOptions, tree2flat } from "./array/tree2flat.js";
import { DefaultRecursiveTraversalOptions, recursiveTraversal } from "./array/recursiveTraversal.js";
import { DegreeMetres, DegreeRadians, EarthRadiusMetres, PlaneAreaThreshold, RadianDegrees } from "./geometry/config.js";
import { point2array, points2array } from "./geometry/point2array.js";
import { planeCenter } from "./geometry/center.js";
import { angle, bearing } from "./geometry/angle.js";
import { area, planeArea, sphereArea } from "./geometry/area.js";
import { decimal, ha2mu, ha2sm, mu2ha, mu2sm, sm2ha, sm2mu } from "./geometry/convert.js";
declare const string: {
isEmpty: typeof isEmptyString;
isNotEmpty: typeof isNotEmptyString;
DefaultSplitOptions: import("./string/split.js").ISplitOptions;
split: typeof split;
underline2hump: typeof underline2hump;
hump2underline: typeof hump2underline;
number2chinese: typeof number2chinese;
ConvertUrlConfig: import("./string/convertUrl.js").IConvertUrlConfig;
DefaultConvertUrlOptions: import("./string/convertUrl.js").IConvertUrlOptions;
convertUrl: typeof convertUrl;
DefaultUuidOptions: import("./string/uuid.js").IUuidOptions;
uuid: typeof uuid;
DefaultFormatFileSizeOptions: import("./string/formatFileSize.js").IFormatFileSizeOptions;
formatFileSize: typeof formatFileSize;
};
declare const array: {
DefaultFlat2TreeOptions: import("./array/flat2tree.js").IFlat2TreeOptions<any>;
flat2tree: typeof flat2tree;
DefaultTree2FlatOptions: import("./array/tree2flat.js").ITree2FlatOptions<any>;
tree2flat: typeof tree2flat;
DefaultRecursiveTraversalOptions: import("./array/recursiveTraversal.js").IRecursiveTraversalOptions<any>;
recursiveTraversal: typeof recursiveTraversal;
};
declare const geometry: {
EarthRadiusMetres: number;
DegreeMetres: number;
DegreeRadians: number;
RadianDegrees: number;
PlaneAreaThreshold: number;
point2array: typeof point2array;
points2array: typeof points2array;
planeCenter: typeof planeCenter;
bearing: typeof bearing;
angle: typeof angle;
planeArea: typeof planeArea;
sphereArea: typeof sphereArea;
area: typeof area;
sm2mu: typeof sm2mu;
mu2sm: typeof mu2sm;
sm2ha: typeof sm2ha;
ha2sm: typeof ha2sm;
mu2ha: typeof mu2ha;
ha2mu: typeof ha2mu;
decimal: typeof decimal;
};
declare const xiaohejs: {
string: {
isEmpty: typeof isEmptyString;
isNotEmpty: typeof isNotEmptyString;
DefaultSplitOptions: import("./string/split.js").ISplitOptions;
split: typeof split;
underline2hump: typeof underline2hump;
hump2underline: typeof hump2underline;
number2chinese: typeof number2chinese;
ConvertUrlConfig: import("./string/convertUrl.js").IConvertUrlConfig;
DefaultConvertUrlOptions: import("./string/convertUrl.js").IConvertUrlOptions;
convertUrl: typeof convertUrl;
DefaultUuidOptions: import("./string/uuid.js").IUuidOptions;
uuid: typeof uuid;
DefaultFormatFileSizeOptions: import("./string/formatFileSize.js").IFormatFileSizeOptions;
formatFileSize: typeof formatFileSize;
};
array: {
DefaultFlat2TreeOptions: import("./array/flat2tree.js").IFlat2TreeOptions<any>;
flat2tree: typeof flat2tree;
DefaultTree2FlatOptions: import("./array/tree2flat.js").ITree2FlatOptions<any>;
tree2flat: typeof tree2flat;
DefaultRecursiveTraversalOptions: import("./array/recursiveTraversal.js").IRecursiveTraversalOptions<any>;
recursiveTraversal: typeof recursiveTraversal;
};
geometry: {
EarthRadiusMetres: number;
DegreeMetres: number;
DegreeRadians: number;
RadianDegrees: number;
PlaneAreaThreshold: number;
point2array: typeof point2array;
points2array: typeof points2array;
planeCenter: typeof planeCenter;
bearing: typeof bearing;
angle: typeof angle;
planeArea: typeof planeArea;
sphereArea: typeof sphereArea;
area: typeof area;
sm2mu: typeof sm2mu;
mu2sm: typeof mu2sm;
sm2ha: typeof sm2ha;
ha2sm: typeof ha2sm;
mu2ha: typeof mu2ha;
ha2mu: typeof ha2mu;
decimal: typeof decimal;
};
};
export { xiaohejs as default, string, array, geometry, isEmptyString, isNotEmptyString, DefaultSplitOptions, split, underline2hump, hump2underline, number2chinese, ConvertUrlConfig, DefaultConvertUrlOptions, convertUrl, DefaultUuidOptions, uuid, DefaultFormatFileSizeOptions, formatFileSize, DefaultFlat2TreeOptions, flat2tree, DefaultTree2FlatOptions, tree2flat, DefaultRecursiveTraversalOptions, recursiveTraversal, EarthRadiusMetres, DegreeMetres, DegreeRadians, RadianDegrees, PlaneAreaThreshold, point2array, points2array, planeCenter, bearing, angle, planeArea, sphereArea, area, sm2mu, mu2sm, sm2ha, ha2sm, mu2ha, ha2mu, decimal };