type-tls 2.6.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +86 -86
  3. package/dist/async.d.ts +28 -0
  4. package/dist/base.d.ts +261 -0
  5. package/dist/buffer.d.ts +1 -0
  6. package/dist/function.d.ts +49 -0
  7. package/dist/index.d.ts +5 -629
  8. package/dist/member.d.ts +21 -0
  9. package/dist/tsdoc-metadata.json +1 -1
  10. package/dist/type-tls.d.ts +30 -331
  11. package/dist/type-tls.iife.js +1 -1
  12. package/dist/type-tls.js +108 -0
  13. package/dist/type-tls.umd.cjs +1 -0
  14. package/doc/api/index.md +1 -1
  15. package/doc/api/type-tls.anyfunction.md +2 -2
  16. package/doc/api/type-tls.arrayitemtype.md +2 -2
  17. package/doc/api/type-tls.exacttype.md +3 -3
  18. package/doc/api/type-tls.exacttypename.md +3 -3
  19. package/doc/api/type-tls.getexacttypenameof.md +2 -2
  20. package/doc/api/type-tls.getexacttypeof.md +2 -2
  21. package/doc/api/type-tls.getnameoftype.md +2 -2
  22. package/doc/api/type-tls.gettypebyname.md +2 -2
  23. package/doc/api/type-tls.gettypenameof.md +2 -2
  24. package/doc/api/type-tls.gettypeof.md +2 -2
  25. package/doc/api/type-tls.isanonymousfunction.md +2 -2
  26. package/doc/api/type-tls.isarraylike.md +2 -2
  27. package/doc/api/type-tls.isarrowfunction.md +2 -2
  28. package/doc/api/type-tls.isasyncfunction.md +2 -2
  29. package/doc/api/type-tls.isasyncgeneratorfunction.md +2 -2
  30. package/doc/api/type-tls.isbasetype.md +2 -2
  31. package/doc/api/type-tls.isgeneratorfunction.md +2 -2
  32. package/doc/api/type-tls.isidentifier.md +2 -2
  33. package/doc/api/type-tls.isiterable.md +2 -2
  34. package/doc/api/type-tls.isiterator.md +2 -2
  35. package/doc/api/type-tls.isobject.md +2 -2
  36. package/doc/api/type-tls.keyofcontainsvalue.md +3 -3
  37. package/doc/api/type-tls.keyofnoncontainsvalue.md +3 -3
  38. package/doc/api/type-tls.keyofnonvalue.md +3 -3
  39. package/doc/api/type-tls.keyofvalue.md +3 -3
  40. package/doc/api/type-tls.loosetype.md +2 -2
  41. package/doc/api/type-tls.loosetypename.md +2 -2
  42. package/doc/api/type-tls.md +8 -49
  43. package/doc/api/type-tls.methodparams.md +3 -3
  44. package/doc/api/type-tls.methodreturntype.md +3 -3
  45. package/doc/api/type-tls.optional.md +2 -2
  46. package/doc/api/type-tls.optionalboolean.md +3 -3
  47. package/doc/api/type-tls.pickcontainsvalue.md +5 -5
  48. package/doc/api/type-tls.pickmethod.md +15 -0
  49. package/doc/api/type-tls.picknoncontainsvalue.md +5 -5
  50. package/doc/api/type-tls.picknonvalue.md +5 -5
  51. package/doc/api/type-tls.pickproperty.md +15 -0
  52. package/doc/api/type-tls.pickvalue.md +5 -5
  53. package/doc/api/type-tls.replace.md +2 -2
  54. package/doc/api/type-tls.replacenull.md +3 -3
  55. package/doc/api/type-tls.replaceundefined.md +3 -3
  56. package/doc/api/type-tls.replacevoid.md +3 -3
  57. package/doc/api/type-tls.resolvedata.md +2 -2
  58. package/doc/api/type-tls.twolayerpartial.md +20 -0
  59. package/doc/api/type-tls.typedarray.md +11 -0
  60. package/doc/api/type-tls.typeofreturntype.md +2 -2
  61. package/doc/api/type-tls.waitasyncable.md +2 -2
  62. package/doc/api/type-tls.waitasyncablecallback.md +3 -3
  63. package/doc/api/type-tls.waitasyncablereturn.md +2 -2
  64. package/doc//346/225/231/347/250/213.md +6 -6
  65. package/package.json +20 -11
  66. package/dist/type-tls.mjs +0 -214
  67. package/dist/type-tls.umd.js +0 -1
  68. package/doc/api/type-tls.axis.getcrossaxiss.md +0 -32
  69. package/doc/api/type-tls.axis.md +0 -22
  70. package/doc/api/type-tls.axis.toindex.md +0 -25
  71. package/doc/api/type-tls.axis.tokey.md +0 -25
  72. package/doc/api/type-tls.axis4.getcrossaxiss.md +0 -32
  73. package/doc/api/type-tls.axis4.md +0 -22
  74. package/doc/api/type-tls.axis4.toindex.md +0 -25
  75. package/doc/api/type-tls.axis4.tokey.md +0 -25
  76. package/doc/api/type-tls.axis4name.md +0 -13
  77. package/doc/api/type-tls.axisname.md +0 -13
  78. package/doc/api/type-tls.classtype._new_.md +0 -22
  79. package/doc/api/type-tls.classtype.md +0 -20
  80. package/doc/api/type-tls.createdefinemixin.md +0 -23
  81. package/doc/api/type-tls.createextendtarget.md +0 -30
  82. package/doc/api/type-tls.createmixintarget.md +0 -30
  83. package/doc/api/type-tls.createtargetextend.md +0 -30
  84. package/doc/api/type-tls.createtargetmixin.md +0 -30
  85. package/doc/api/type-tls.defineextend.md +0 -35
  86. package/doc/api/type-tls.definemixin.md +0 -31
  87. package/doc/api/type-tls.extendtarget.md +0 -31
  88. package/doc/api/type-tls.ivector.md +0 -15
  89. package/doc/api/type-tls.ivector2.md +0 -21
  90. package/doc/api/type-tls.ivector2.x.md +0 -11
  91. package/doc/api/type-tls.ivector2.y.md +0 -11
  92. package/doc/api/type-tls.ivector3.md +0 -21
  93. package/doc/api/type-tls.ivector3.z.md +0 -11
  94. package/doc/api/type-tls.ivector4.md +0 -21
  95. package/doc/api/type-tls.ivector4.w.md +0 -11
  96. package/doc/api/type-tls.mixin_4.md +0 -33
  97. package/doc/api/type-tls.mixintarget.md +0 -31
  98. package/doc/api/type-tls.privatememberofextend._constructor.md +0 -22
  99. package/doc/api/type-tls.privatememberofextend.md +0 -20
  100. package/doc/api/type-tls.targetextend.md +0 -31
  101. package/doc/api/type-tls.targetmixin.md +0 -31
@@ -6,10 +6,10 @@
6
6
 
7
7
  可将源类型 SourType 中的 null 替换为 新的类型 NewType
8
8
 
9
- <b>Signature:</b>
9
+ **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare type ReplaceNull<SourType, NewType> = Replace<SourType, null, NewType>;
12
+ export type ReplaceNull<SourType, NewType> = Replace<SourType, null, NewType>;
13
13
  ```
14
- <b>References:</b> [Replace](./type-tls.replace.md)
14
+ **References:** [Replace](./type-tls.replace.md)
15
15
 
@@ -6,10 +6,10 @@
6
6
 
7
7
  可将源类型 SourType 中的 undefined 替换为 新的类型 NewType
8
8
 
9
- <b>Signature:</b>
9
+ **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare type ReplaceUndefined<SourType, NewType> = Replace<SourType, undefined, NewType>;
12
+ export type ReplaceUndefined<SourType, NewType> = Replace<SourType, undefined, NewType>;
13
13
  ```
14
- <b>References:</b> [Replace](./type-tls.replace.md)
14
+ **References:** [Replace](./type-tls.replace.md)
15
15
 
@@ -6,10 +6,10 @@
6
6
 
7
7
  可将源类型 SourType 中的代表空的类型 void \| undefined \| null 替换为 新的类型 NewType
8
8
 
9
- <b>Signature:</b>
9
+ **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare type ReplaceVoid<SourType, NewType> = Replace<SourType, void | undefined | null, NewType>;
12
+ export type ReplaceVoid<SourType, NewType> = Replace<SourType, void | undefined | null, NewType>;
13
13
  ```
14
- <b>References:</b> [Replace](./type-tls.replace.md)
14
+ **References:** [Replace](./type-tls.replace.md)
15
15
 
@@ -6,10 +6,10 @@
6
6
 
7
7
  获取 Promise 解决的类型的值
8
8
 
9
- <b>Signature:</b>
9
+ **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare type ResolveData<P> = P extends Promise<infer D> ? D : P;
12
+ export type ResolveData<P> = P extends Promise<infer D> ? D : P;
13
13
  ```
14
14
 
15
15
  ## Remarks
@@ -0,0 +1,20 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [TwoLayerPartial](./type-tls.twolayerpartial.md)
4
+
5
+ ## TwoLayerPartial type
6
+
7
+ 将 T 及其对象成员属性值都改为 Partial 类型
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type TwoLayerPartial<T> = {
13
+ [P in keyof T]?: Partial<T[P]>;
14
+ };
15
+ ```
16
+
17
+ ## Remarks
18
+
19
+ 比 Partial 又深入的一层
20
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [TypedArray](./type-tls.typedarray.md)
4
+
5
+ ## TypedArray type
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | BigInt64Array | BigUint64Array | Float32Array | Float64Array;
11
+ ```
@@ -6,8 +6,8 @@
6
6
 
7
7
  typeof 的返回类型
8
8
 
9
- <b>Signature:</b>
9
+ **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare type TypeOfReturnType = "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
12
+ export type TypeOfReturnType = "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
13
13
  ```
@@ -6,7 +6,7 @@
6
6
 
7
7
  等待可异步的结果
8
8
 
9
- <b>Signature:</b>
9
+ **Signature:**
10
10
 
11
11
  ```typescript
12
12
  export declare function waitAsyncable<Result, Return>(asyncable: Result, callback: WaitAsyncableCallback<Result, Return>): WaitAsyncableReturn<Result, Return>;
@@ -19,7 +19,7 @@ export declare function waitAsyncable<Result, Return>(asyncable: Result, callbac
19
19
  | asyncable | Result | 可异步的结果 |
20
20
  | callback | [WaitAsyncableCallback](./type-tls.waitasyncablecallback.md)<!-- -->&lt;Result, Return&gt; | |
21
21
 
22
- <b>Returns:</b>
22
+ **Returns:**
23
23
 
24
24
  [WaitAsyncableReturn](./type-tls.waitasyncablereturn.md)<!-- -->&lt;Result, Return&gt;
25
25
 
@@ -6,10 +6,10 @@
6
6
 
7
7
  waitAsyncable 的回调函数的类型
8
8
 
9
- <b>Signature:</b>
9
+ **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare type WaitAsyncableCallback<Result, Return> = (result: ResolveData<Result> | undefined, rejected: boolean, error: any) => Return;
12
+ export type WaitAsyncableCallback<Result, Return> = (result: ResolveData<Result> | undefined, rejected: boolean, error: any) => Return;
13
13
  ```
14
- <b>References:</b> [ResolveData](./type-tls.resolvedata.md)
14
+ **References:** [ResolveData](./type-tls.resolvedata.md)
15
15
 
@@ -6,8 +6,8 @@
6
6
 
7
7
  waitAsyncable 的返回值的类型
8
8
 
9
- <b>Signature:</b>
9
+ **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare type WaitAsyncableReturn<Result, Return> = Return extends Promise<any> ? Return : (Result extends Promise<any> ? Promise<Return> : Return);
12
+ export type WaitAsyncableReturn<Result, Return> = Return extends Promise<any> ? Return : (Result extends Promise<any> ? Promise<Return> : Return);
13
13
  ```
@@ -1,7 +1,7 @@
1
- [API接口文档]: ./api/index.md
2
-
3
- > 由于时间关系,暂时还未编写教程,以后会抽空补齐。详情可查看[API接口文档][]。
4
-
5
- > 开源不易,还望多多支持!💖 💖 💖
6
-
1
+ [API接口文档]: ./api/index.md
2
+
3
+ > 由于时间关系,暂时还未编写教程,以后会抽空补齐。详情可查看[API接口文档][]。
4
+
5
+ > 开源不易,还望多多支持!💖 💖 💖
6
+
7
7
  ![赞赏码](https://i.loli.net/2020/04/08/PGsAEqdJCin1oQL.jpg)
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "type-tls",
3
- "version": "2.6.0",
3
+ "version": "3.0.0",
4
4
  "description": "type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等",
5
- "main": "dist/type-tls.umd.js",
6
- "module": "dist/type-tls.mjs",
5
+ "main": "dist/type-tls.umd.cjs",
6
+ "module": "dist/type-tls.js",
7
+ "exports": {
8
+ "import": "./dist/type-tls.js",
9
+ "require": "./dist/type-tls.umd.cjs"
10
+ },
7
11
  "types": "dist/index.d.ts",
12
+ "type": "module",
8
13
  "sideEffects": false,
9
14
  "homepage": "https://github.com/GuoBinyong/type-tls#readme",
10
15
  "repository": {
@@ -34,20 +39,24 @@
34
39
  "doc/[^.]*"
35
40
  ],
36
41
  "devDependencies": {
37
- "@microsoft/api-documenter": "^7.17.15",
38
- "@microsoft/api-extractor": "^7.24.1",
39
- "build-tls": "^1.3.11",
40
- "dts-bundle-generator": "^6.12.0",
41
- "package-tls": "^1.3.1",
42
- "typescript": "^4.5.4",
43
- "vite": "^3.0.9"
42
+ "@microsoft/api-documenter": "^7.23.12",
43
+ "@microsoft/api-extractor": "^7.38.3",
44
+ "build-tls": "^1.3.14",
45
+ "dts-bundle-generator": "^9.0.0",
46
+ "package-tls": "^1.3.2",
47
+ "rollup-plugin-preserve-shebang": "^1.0.1",
48
+ "typescript": "^5.3.2",
49
+ "vite": "^5.0.4"
44
50
  },
45
51
  "scripts": {
46
52
  "dev": "vite",
47
53
  "build": "vite build",
48
54
  "bunch": "vite build --mode bunch",
55
+ "debug": "debug=true vite build",
56
+ "debug:bunch": "debug=true vite build --mode bunch",
49
57
  "preview": "vite preview",
50
58
  "api": "api-extractor run -c api-extractor.jsonc -l -v",
51
- "doc": "npm run api ; api-documenter markdown -i ./temp -o doc/api"
59
+ "doc": "api-documenter markdown -i ./temp -o doc/api",
60
+ "apidoc": "npm run api ; npm run doc"
52
61
  }
53
62
  }
package/dist/type-tls.mjs DELETED
@@ -1,214 +0,0 @@
1
- function T(n) {
2
- var t = typeof n;
3
- return n && (t === "object" || t === "function");
4
- }
5
- function d(n) {
6
- var t = n;
7
- return n != null && (t = n.constructor, t == null && (t = typeof n)), t;
8
- }
9
- function l(n) {
10
- switch (n) {
11
- case void 0:
12
- return "undefined";
13
- case null:
14
- return "null";
15
- }
16
- let t = typeof n;
17
- switch (t) {
18
- case "function":
19
- return n.name;
20
- case "string":
21
- return n;
22
- default:
23
- return t;
24
- }
25
- }
26
- function _(n) {
27
- return globalThis[n];
28
- }
29
- function $(n) {
30
- let t = d(n);
31
- return l(t);
32
- }
33
- function b(n) {
34
- return n == null || T(n) ? d(n) : typeof n;
35
- }
36
- function x(n) {
37
- var t = b(n);
38
- return l(t);
39
- }
40
- function I(n) {
41
- var t = typeof n;
42
- return n == null || t !== "object" && t !== "function";
43
- }
44
- function z(n) {
45
- let t = n && n.length;
46
- return Number.isInteger(n.length) && t >= 0;
47
- }
48
- function E(n) {
49
- return n && typeof n[Symbol.iterator] == "function";
50
- }
51
- function S(n) {
52
- return n && typeof n.next == "function";
53
- }
54
- function u(n, ...t) {
55
- for (const e of t) {
56
- const o = Object.getOwnPropertyDescriptors(e);
57
- Object.defineProperties(n, o);
58
- }
59
- return n;
60
- }
61
- function M(n, t) {
62
- return t;
63
- }
64
- function j() {
65
- return function(t, e) {
66
- return e;
67
- };
68
- }
69
- function G(n, t) {
70
- return u(n, t), t;
71
- }
72
- function N(n) {
73
- return function(e) {
74
- return u(n, e), e;
75
- };
76
- }
77
- function Z(n, t) {
78
- return u(n, t), n;
79
- }
80
- function C(n) {
81
- return function(e) {
82
- return u(n, e), n;
83
- };
84
- }
85
- function K(n, t) {
86
- return t;
87
- }
88
- function a(n, t) {
89
- var o;
90
- u(n.prototype, t);
91
- const e = t._constructor;
92
- if (typeof e == "function") {
93
- const r = n;
94
- ((o = r._constructors) != null ? o : r._constructors = []).push(e);
95
- }
96
- return t;
97
- }
98
- function D(n) {
99
- return function(e) {
100
- return a(n, e), e;
101
- };
102
- }
103
- function P(n, t) {
104
- return a(n, t), n;
105
- }
106
- function B(n) {
107
- return function(e) {
108
- return a(n, e), n;
109
- };
110
- }
111
- const F = /^[A-Za-z_$]+[\w$]*$/;
112
- function R(n) {
113
- return F.test(n);
114
- }
115
- const w = /(^\s*(async\s+)?\s*(\b[A-Za-z_$]+[\w$]*\b)\s*=>)|(^\s*(async\s+)?\s*\(\s*(\b[A-Za-z_$]+[\w$]*\b)?\s*(,\s*(\b[A-Za-z_$]+[\w$]*\b)\s*)*\)\s*=>)/;
116
- function L(n) {
117
- const t = n.toString();
118
- return w.test(t);
119
- }
120
- var y;
121
- const m = (y = globalThis.AsyncFunction) != null ? y : async function() {
122
- }.constructor;
123
- function q(n) {
124
- return n instanceof m;
125
- }
126
- var g;
127
- const h = (g = globalThis.GeneratorFunction) != null ? g : function* () {
128
- }.constructor;
129
- function H(n) {
130
- return n instanceof h;
131
- }
132
- var p;
133
- const v = (p = globalThis.AsyncGeneratorFunction) != null ? p : async function* () {
134
- }.constructor;
135
- function J(n) {
136
- return n instanceof v;
137
- }
138
- const O = /(^\s*(async\s+)?function\s*(\s|\*)\s*)[A-Za-z_$]+[\w$]*(\s*\()/;
139
- function Q(n) {
140
- if (n.name) {
141
- const t = n.toString();
142
- return !O.test(t);
143
- }
144
- return !0;
145
- }
146
- function U(n, t) {
147
- return n instanceof Promise ? n.then((e) => t(e, !1, void 0), (e) => t(void 0, !0, e)) : t(n, !1, void 0);
148
- }
149
- var f = /* @__PURE__ */ ((n) => (n[n.x = 0] = "x", n[n.y = 1] = "y", n[n.z = 2] = "z", n))(f || {});
150
- ((n) => {
151
- function t(r) {
152
- return n[r];
153
- }
154
- n.toKey = t;
155
- function e(r) {
156
- return n[r];
157
- }
158
- n.toIndex = e;
159
- function o(r) {
160
- const c = (r + 1) % 3, i = (r + 2) % 3;
161
- return [c, i];
162
- }
163
- n.getCrossAxiss = o;
164
- })(f || (f = {}));
165
- var s = /* @__PURE__ */ ((n) => (n[n.x = 0] = "x", n[n.y = 1] = "y", n[n.z = 2] = "z", n[n.w = 3] = "w", n))(s || {});
166
- ((n) => {
167
- function t(r) {
168
- return n[r];
169
- }
170
- n.toKey = t;
171
- function e(r) {
172
- return n[r];
173
- }
174
- n.toIndex = e;
175
- function o(r) {
176
- const c = (r + 1) % 4, i = (r + 2) % 4;
177
- return [c, i];
178
- }
179
- n.getCrossAxiss = o;
180
- })(s || (s = {}));
181
- export {
182
- f as Axis,
183
- s as Axis4,
184
- j as createDefineMixin,
185
- B as createExtendTarget,
186
- C as createMixinTarget,
187
- D as createTargetExtend,
188
- N as createTargetMixin,
189
- K as defineExtend,
190
- M as defineMixin,
191
- P as extendTarget,
192
- x as getExactTypeNameOf,
193
- b as getExactTypeOf,
194
- l as getNameOfType,
195
- _ as getTypeByName,
196
- $ as getTypeNameOf,
197
- d as getTypeOf,
198
- Q as isAnonymousFunction,
199
- z as isArrayLike,
200
- L as isArrowFunction,
201
- q as isAsyncFunction,
202
- J as isAsyncGeneratorFunction,
203
- I as isBaseType,
204
- H as isGeneratorFunction,
205
- R as isIdentifier,
206
- E as isIterable,
207
- S as isIterator,
208
- T as isObject,
209
- u as mixin,
210
- Z as mixinTarget,
211
- a as targetExtend,
212
- G as targetMixin,
213
- U as waitAsyncable
214
- };
@@ -1 +0,0 @@
1
- (function(e,c){typeof exports=="object"&&typeof module<"u"?c(exports):typeof define=="function"&&define.amd?define(["exports"],c):(e=typeof globalThis<"u"?globalThis:e||self,c(e.TypeTls={}))})(this,function(e){var T,l,m;"use strict";function c(n){var t=typeof n;return n&&(t==="object"||t==="function")}function a(n){var t=n;return n!=null&&(t=n.constructor,t==null&&(t=typeof n)),t}function y(n){switch(n){case void 0:return"undefined";case null:return"null"}let t=typeof n;switch(t){case"function":return n.name;case"string":return n;default:return t}}function b(n){return globalThis[n]}function F(n){let t=a(n);return y(t)}function d(n){return n==null||c(n)?a(n):typeof n}function O(n){var t=d(n);return y(t)}function w(n){var t=typeof n;return n==null||t!=="object"&&t!=="function"}function E(n){let t=n&&n.length;return Number.isInteger(n.length)&&t>=0}function h(n){return n&&typeof n[Symbol.iterator]=="function"}function M(n){return n&&typeof n.next=="function"}function o(n,...t){for(const r of t){const u=Object.getOwnPropertyDescriptors(r);Object.defineProperties(n,u)}return n}function I(n,t){return t}function _(){return function(t,r){return r}}function v(n,t){return o(n,t),t}function A(n){return function(r){return o(n,r),r}}function $(n,t){return o(n,t),n}function N(n){return function(r){return o(n,r),n}}function S(n,t){return t}function f(n,t){var u;o(n.prototype,t);const r=t._constructor;if(typeof r=="function"){const i=n;((u=i._constructors)!=null?u:i._constructors=[]).push(r)}return t}function j(n){return function(r){return f(n,r),r}}function z(n,t){return f(n,t),n}function G(n){return function(r){return f(n,r),n}}const p=/^[A-Za-z_$]+[\w$]*$/;function Z(n){return p.test(n)}const B=/(^\s*(async\s+)?\s*(\b[A-Za-z_$]+[\w$]*\b)\s*=>)|(^\s*(async\s+)?\s*\(\s*(\b[A-Za-z_$]+[\w$]*\b)?\s*(,\s*(\b[A-Za-z_$]+[\w$]*\b)\s*)*\)\s*=>)/;function C(n){const t=n.toString();return B.test(t)}const D=(T=globalThis.AsyncFunction)!=null?T:async function(){}.constructor;function K(n){return n instanceof D}const P=(l=globalThis.GeneratorFunction)!=null?l:function*(){}.constructor;function L(n){return n instanceof P}const R=(m=globalThis.AsyncGeneratorFunction)!=null?m:async function*(){}.constructor;function k(n){return n instanceof R}const q=/(^\s*(async\s+)?function\s*(\s|\*)\s*)[A-Za-z_$]+[\w$]*(\s*\()/;function H(n){if(n.name){const t=n.toString();return!q.test(t)}return!0}function J(n,t){return n instanceof Promise?n.then(r=>t(r,!1,void 0),r=>t(void 0,!0,r)):t(n,!1,void 0)}e.Axis=(n=>(n[n.x=0]="x",n[n.y=1]="y",n[n.z=2]="z",n))(e.Axis||{}),(n=>{function t(i){return n[i]}n.toKey=t;function r(i){return n[i]}n.toIndex=r;function u(i){const s=(i+1)%3,g=(i+2)%3;return[s,g]}n.getCrossAxiss=u})(e.Axis||(e.Axis={})),e.Axis4=(n=>(n[n.x=0]="x",n[n.y=1]="y",n[n.z=2]="z",n[n.w=3]="w",n))(e.Axis4||{}),(n=>{function t(i){return n[i]}n.toKey=t;function r(i){return n[i]}n.toIndex=r;function u(i){const s=(i+1)%4,g=(i+2)%4;return[s,g]}n.getCrossAxiss=u})(e.Axis4||(e.Axis4={})),e.createDefineMixin=_,e.createExtendTarget=G,e.createMixinTarget=N,e.createTargetExtend=j,e.createTargetMixin=A,e.defineExtend=S,e.defineMixin=I,e.extendTarget=z,e.getExactTypeNameOf=O,e.getExactTypeOf=d,e.getNameOfType=y,e.getTypeByName=b,e.getTypeNameOf=F,e.getTypeOf=a,e.isAnonymousFunction=H,e.isArrayLike=E,e.isArrowFunction=C,e.isAsyncFunction=K,e.isAsyncGeneratorFunction=k,e.isBaseType=w,e.isGeneratorFunction=L,e.isIdentifier=Z,e.isIterable=h,e.isIterator=M,e.isObject=c,e.mixin=o,e.mixinTarget=$,e.targetExtend=f,e.targetMixin=v,e.waitAsyncable=J,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,32 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis](./type-tls.axis.md) &gt; [getCrossAxiss](./type-tls.axis.getcrossaxiss.md)
4
-
5
- ## Axis.getCrossAxiss() function
6
-
7
- 获取剩余的另外两个轴
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- function getCrossAxiss(axis: Axis): [
13
- Axis,
14
- Axis
15
- ];
16
- ```
17
-
18
- ## Parameters
19
-
20
- | Parameter | Type | Description |
21
- | --- | --- | --- |
22
- | axis | [Axis](./type-tls.axis.md) | |
23
-
24
- <b>Returns:</b>
25
-
26
- \[ [Axis](./type-tls.axis.md)<!-- -->, [Axis](./type-tls.axis.md) \]
27
-
28
-
29
- ## Remarks
30
-
31
- 获取除 axis 之外的另外两个轴,且这两轴的顺序符合叉乘得 axis 轴的顺序
32
-
@@ -1,22 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis](./type-tls.axis.md)
4
-
5
- ## Axis namespace
6
-
7
- 轴的方法
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- export declare namespace Axis
13
- ```
14
-
15
- ## Functions
16
-
17
- | Function | Description |
18
- | --- | --- |
19
- | [getCrossAxiss(axis)](./type-tls.axis.getcrossaxiss.md) | 获取剩余的另外两个轴 |
20
- | [toIndex(name)](./type-tls.axis.toindex.md) | 将轴名字转为轴索引 |
21
- | [toKey(index)](./type-tls.axis.tokey.md) | 将轴索引转为轴名字 |
22
-
@@ -1,25 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis](./type-tls.axis.md) &gt; [toIndex](./type-tls.axis.toindex.md)
4
-
5
- ## Axis.toIndex() function
6
-
7
- 将轴名字转为轴索引
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- function toIndex(name: AxisName): Axis;
13
- ```
14
-
15
- ## Parameters
16
-
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | name | [AxisName](./type-tls.axisname.md) | |
20
-
21
- <b>Returns:</b>
22
-
23
- [Axis](./type-tls.axis.md)
24
-
25
-
@@ -1,25 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis](./type-tls.axis.md) &gt; [toKey](./type-tls.axis.tokey.md)
4
-
5
- ## Axis.toKey() function
6
-
7
- 将轴索引转为轴名字
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- function toKey(index: Axis): AxisName;
13
- ```
14
-
15
- ## Parameters
16
-
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | index | [Axis](./type-tls.axis.md) | 索引 |
20
-
21
- <b>Returns:</b>
22
-
23
- [AxisName](./type-tls.axisname.md)
24
-
25
-
@@ -1,32 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis4](./type-tls.axis4.md) &gt; [getCrossAxiss](./type-tls.axis4.getcrossaxiss.md)
4
-
5
- ## Axis4.getCrossAxiss() function
6
-
7
- 获取剩余的另外两个轴
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- function getCrossAxiss(axis: Axis4): [
13
- Axis4,
14
- Axis4
15
- ];
16
- ```
17
-
18
- ## Parameters
19
-
20
- | Parameter | Type | Description |
21
- | --- | --- | --- |
22
- | axis | [Axis4](./type-tls.axis4.md) | |
23
-
24
- <b>Returns:</b>
25
-
26
- \[ [Axis4](./type-tls.axis4.md)<!-- -->, [Axis4](./type-tls.axis4.md) \]
27
-
28
-
29
- ## Remarks
30
-
31
- 获取除 axis 之外的另外两个轴,且这两轴的顺序符合叉乘得 axis 轴的顺序
32
-
@@ -1,22 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis4](./type-tls.axis4.md)
4
-
5
- ## Axis4 namespace
6
-
7
- 四维轴的方法
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- export declare namespace Axis4
13
- ```
14
-
15
- ## Functions
16
-
17
- | Function | Description |
18
- | --- | --- |
19
- | [getCrossAxiss(axis)](./type-tls.axis4.getcrossaxiss.md) | 获取剩余的另外两个轴 |
20
- | [toIndex(name)](./type-tls.axis4.toindex.md) | 将轴名字转为轴索引 |
21
- | [toKey(index)](./type-tls.axis4.tokey.md) | 将轴索引转为轴名字 |
22
-
@@ -1,25 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis4](./type-tls.axis4.md) &gt; [toIndex](./type-tls.axis4.toindex.md)
4
-
5
- ## Axis4.toIndex() function
6
-
7
- 将轴名字转为轴索引
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- function toIndex(name: Axis4Name): Axis4;
13
- ```
14
-
15
- ## Parameters
16
-
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | name | [Axis4Name](./type-tls.axis4name.md) | |
20
-
21
- <b>Returns:</b>
22
-
23
- [Axis4](./type-tls.axis4.md)
24
-
25
-
@@ -1,25 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis4](./type-tls.axis4.md) &gt; [toKey](./type-tls.axis4.tokey.md)
4
-
5
- ## Axis4.toKey() function
6
-
7
- 将轴索引转为轴名字
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- function toKey(index: Axis4): Axis4Name;
13
- ```
14
-
15
- ## Parameters
16
-
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | index | [Axis4](./type-tls.axis4.md) | 索引 |
20
-
21
- <b>Returns:</b>
22
-
23
- [Axis4Name](./type-tls.axis4name.md)
24
-
25
-
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [Axis4Name](./type-tls.axis4name.md)
4
-
5
- ## Axis4Name type
6
-
7
- 四维轴的名字
8
-
9
- <b>Signature:</b>
10
-
11
- ```typescript
12
- export declare type Axis4Name = "x" | "y" | "z";
13
- ```