diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 00000000..e2ac6616 --- /dev/null +++ b/docs/.nojekyll @@ -0,0 +1 @@ +TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/docs/.typedoc-plugin-versions b/docs/.typedoc-plugin-versions new file mode 100644 index 00000000..fcbd628a --- /dev/null +++ b/docs/.typedoc-plugin-versions @@ -0,0 +1 @@ +{"versions":["v1.0.0-beta01"],"stable":"v1.0.0-beta01","dev":"v1.0.0-beta01"} diff --git a/datas/README.md b/docs/datas/README.md similarity index 100% rename from datas/README.md rename to docs/datas/README.md diff --git a/datas/moo-css.json b/docs/datas/moo-css.json similarity index 100% rename from datas/moo-css.json rename to docs/datas/moo-css.json diff --git a/datas/regex.json b/docs/datas/regex.json similarity index 100% rename from datas/regex.json rename to docs/datas/regex.json diff --git a/datas/tools.json b/docs/datas/tools.json similarity index 100% rename from datas/tools.json rename to docs/datas/tools.json diff --git a/docs/dev b/docs/dev new file mode 120000 index 00000000..7773aaa1 --- /dev/null +++ b/docs/dev @@ -0,0 +1 @@ +/home/runner/work/fe-tools/fe-tools/docs/v1.0.0-beta01 \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..a850b02a --- /dev/null +++ b/docs/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/stable b/docs/stable new file mode 120000 index 00000000..7773aaa1 --- /dev/null +++ b/docs/stable @@ -0,0 +1 @@ +/home/runner/work/fe-tools/fe-tools/docs/v1.0.0-beta01 \ No newline at end of file diff --git a/docs/v1.0 b/docs/v1.0 new file mode 120000 index 00000000..7773aaa1 --- /dev/null +++ b/docs/v1.0 @@ -0,0 +1 @@ +/home/runner/work/fe-tools/fe-tools/docs/v1.0.0-beta01 \ No newline at end of file diff --git a/docs/v1.0.0-beta01/data/Array.Function.allEqual.json b/docs/v1.0.0-beta01/data/Array.Function.allEqual.json new file mode 100644 index 00000000..268637ae --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.allEqual.json @@ -0,0 +1 @@ +{"id":301,"name":"allEqual","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":77,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L77"}],"signatures":[{"id":302,"name":"allEqual","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"allEqual"}]},{"tag":"@description","content":[{"kind":"text","text":"判断数组中所有项是否都相等。(NaN !== NaN)"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否所有项都相等, 空数组返回true"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nallEqual([0, 1, 2]); // false\r\nallEqual([2, 2, 2]); // true\r\nallEqual([2, 2, '2']); // false\r\nallEqual([NaN, NaN, NaN]); // false\n```"}]}]},"parameters":[{"id":303,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Array.Function.allEqual","hash":"allEqual"},"text":{"comment":"
Function:

allEqual

\n
Description:

判断数组中所有项是否都相等。(NaN !== NaN)

\n
Returns:

是否所有项都相等, 空数组返回true

\n
Example:
allEqual([0, 1, 2]); // false\nallEqual([2, 2, 2]); // true\nallEqual([2, 2, '2']); // false\nallEqual([NaN, NaN, NaN]); // false\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":77,"character":24,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L77"}],"parentId":301}],"is":{"declaration":true},"location":{"query":"Array.Function.allEqual","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.arrayAverage.json b/docs/v1.0.0-beta01/data/Array.Function.arrayAverage.json new file mode 100644 index 00000000..94f191d2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.arrayAverage.json @@ -0,0 +1 @@ +{"id":161,"name":"arrayAverage","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":49,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L49"}],"signatures":[{"id":162,"name":"arrayAverage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arrayAverage"}]},{"tag":"@description","content":[{"kind":"text","text":"求数组平均值"}]},{"tag":"@returns","content":[{"kind":"text","text":"数组平均值, 数组为空返回0"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> 0\r\narrayMax([1, 2, 3]); // -> 2\n```"}]}]},"parameters":[{"id":163,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{"comment":"

数字数组

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.arrayAverage","hash":"arrayAverage"},"text":{"comment":"
Function:

arrayAverage

\n
Description:

求数组平均值

\n
Returns:

数组平均值, 数组为空返回0

\n
Example:
arrayMax([1, 2, 3, 0, -1, -5]); // -> 0\narrayMax([1, 2, 3]); // -> 2\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":49,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L49"}],"parentId":161}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayAverage","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.arrayMax.json b/docs/v1.0.0-beta01/data/Array.Function.arrayMax.json new file mode 100644 index 00000000..54d9e8a7 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.arrayMax.json @@ -0,0 +1 @@ +{"id":155,"name":"arrayMax","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L23"}],"signatures":[{"id":156,"name":"arrayMax","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arrayMax"}]},{"tag":"@description","content":[{"kind":"text","text":"求数组最大值"}]},{"tag":"@returns","content":[{"kind":"text","text":"数组最大值, 数组为空返回-Infinity, 数组中有非数字项返回NaN"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> 3\r\narrayMax([1, 2, 3]); // -> 3\n```"}]}]},"parameters":[{"id":157,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"reference","id":299,"name":"NumberArr"},"text":{"comment":"

数字数组

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.arrayMax","hash":"arrayMax"},"text":{"comment":"
Function:

arrayMax

\n
Description:

求数组最大值

\n
Returns:

数组最大值, 数组为空返回-Infinity, 数组中有非数字项返回NaN

\n
Example:
arrayMax([1, 2, 3, 0, -1, -5]); // -> 3\narrayMax([1, 2, 3]); // -> 3\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L23"}],"parentId":155}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayMax","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.arrayMin.json b/docs/v1.0.0-beta01/data/Array.Function.arrayMin.json new file mode 100644 index 00000000..c99b2335 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.arrayMin.json @@ -0,0 +1 @@ +{"id":158,"name":"arrayMin","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":36,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L36"}],"signatures":[{"id":159,"name":"arrayMin","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arrayMin"}]},{"tag":"@description","content":[{"kind":"text","text":"求数组最小值"}]},{"tag":"@returns","content":[{"kind":"text","text":"数组最小值, 数组为空返回Infinity, 数组中有非数字项返回NaN"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> -5\r\narrayMax([1, 2, 3]); // -> 1\n```"}]}]},"parameters":[{"id":160,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"reference","id":299,"name":"NumberArr"},"text":{"comment":"

数字数组

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.arrayMin","hash":"arrayMin"},"text":{"comment":"
Function:

arrayMin

\n
Description:

求数组最小值

\n
Returns:

数组最小值, 数组为空返回Infinity, 数组中有非数字项返回NaN

\n
Example:
arrayMax([1, 2, 3, 0, -1, -5]); // -> -5\narrayMax([1, 2, 3]); // -> 1\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":36,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L36"}],"parentId":158}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayMin","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.arraySum.json b/docs/v1.0.0-beta01/data/Array.Function.arraySum.json new file mode 100644 index 00000000..5edb96ac --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.arraySum.json @@ -0,0 +1 @@ +{"id":164,"name":"arraySum","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":62,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L62"}],"signatures":[{"id":165,"name":"arraySum","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arraySum"}]},{"tag":"@description","content":[{"kind":"text","text":"数组求和"}]},{"tag":"@returns","content":[{"kind":"text","text":"数组求和, 数组为空返回0"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3]); // -> 6\r\narrayMax([-1, 2, 3]); // -> 4\n```"}]}]},"parameters":[{"id":166,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{"comment":"

数字数组

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.arraySum","hash":"arraySum"},"text":{"comment":"
Function:

arraySum

\n
Description:

数组求和

\n
Returns:

数组求和, 数组为空返回0

\n
Example:
arrayMax([1, 2, 3]); // -> 6\narrayMax([-1, 2, 3]); // -> 4\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":62,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L62"}],"parentId":164}],"is":{"declaration":true},"location":{"query":"Array.Function.arraySum","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.arrayToCSV.json b/docs/v1.0.0-beta01/data/Array.Function.arrayToCSV.json new file mode 100644 index 00000000..07516d64 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.arrayToCSV.json @@ -0,0 +1 @@ +{"id":170,"name":"arrayToCSV","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":125,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L125"}],"signatures":[{"id":171,"name":"arrayToCSV","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arrayToCSV"}]},{"tag":"@description","content":[{"kind":"text","text":"二维数据转csv字符串"}]},{"tag":"@returns","content":[{"kind":"text","text":"csv字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayToCSV([['a', 'b'], ['c', 'd']], ','); // '\"a\",\"b\"\\n\"c\",\"d\"'\n```"}]}]},"parameters":[{"id":172,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"二维数组"}]},"type":{"type":"array","elementType":{"type":"reference","id":300,"name":"AnyArr"}},"text":{"comment":"

二维数组

\n"}},{"id":173,"name":"delimiter","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"分隔符"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"','","text":{"comment":"

分隔符

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Array.Function.arrayToCSV","hash":"arrayToCSV"},"text":{"comment":"
Function:

arrayToCSV

\n
Description:

二维数据转csv字符串

\n
Returns:

csv字符串

\n
Example:
arrayToCSV([['a', 'b'], ['c', 'd']], ','); // '\"a\",\"b\"\\n\"c\",\"d\"'\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":125,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L125"}],"parentId":170}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayToCSV","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.castArray.json b/docs/v1.0.0-beta01/data/Array.Function.castArray.json new file mode 100644 index 00000000..102ab6e8 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.castArray.json @@ -0,0 +1 @@ +{"id":174,"name":"castArray","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":138,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L138"}],"signatures":[{"id":175,"name":"castArray","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"castArray"}]},{"tag":"@description","content":[{"kind":"text","text":"未知类型的数据val转数组"}]},{"tag":"@returns","content":[{"kind":"text","text":"数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncastArray('foo'); // ['foo']\r\ncastArray([1]); // [1]\n```"}]}]},"typeParameter":[{"id":176,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":177,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"未知类型的数据"}]},"type":{"type":"union","types":[{"type":"reference","id":176,"name":"T"},{"type":"array","elementType":{"type":"reference","id":176,"name":"T"}}]},"text":{"comment":"

未知类型的数据

\n"}}],"type":{"type":"array","elementType":{"type":"reference","id":176,"name":"T"}},"is":{"declaration":false},"location":{"query":"Array.Function.castArray","hash":"castArray"},"text":{"comment":"
Function:

castArray

\n
Description:

未知类型的数据val转数组

\n
Returns:

数组

\n
Example:
castArray('foo'); // ['foo']\ncastArray([1]); // [1]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":138,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L138"}],"parentId":174}],"is":{"declaration":true},"location":{"query":"Array.Function.castArray","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.chunk.json b/docs/v1.0.0-beta01/data/Array.Function.chunk.json new file mode 100644 index 00000000..3bcc933a --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.chunk.json @@ -0,0 +1 @@ +{"id":178,"name":"chunk","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":153,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L153"}],"signatures":[{"id":179,"name":"chunk","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"chunk"}]},{"tag":"@description","content":[{"kind":"text","text":"数组分片。"}]},{"tag":"@returns","content":[{"kind":"text","text":"分片后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nchunk([1,2,3,4,5], 3); // [[1,2,3],[4,5]]\r\nchunk([1,2,3,4,5], 2); // [[1,2],[3,4],[5]]\r\nchunk([1,2,3,4,5], 1); // [[1],[2],[3],[4],[5]]\n```"}]}]},"typeParameter":[{"id":180,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":181,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"array","elementType":{"type":"reference","id":180,"name":"T"}},"text":{"comment":"

数组

\n"}},{"id":182,"name":"size","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"分片大小"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

分片大小

\n"}}],"type":{"type":"array","elementType":{"type":"array","elementType":{"type":"reference","id":180,"name":"T"}}},"is":{"declaration":false},"location":{"query":"Array.Function.chunk","hash":"chunk"},"text":{"comment":"
Function:

chunk

\n
Description:

数组分片。

\n
Returns:

分片后的数组

\n
Example:
chunk([1,2,3,4,5], 3);  // [[1,2,3],[4,5]]\nchunk([1,2,3,4,5], 2);  // [[1,2],[3,4],[5]]\nchunk([1,2,3,4,5], 1);  // [[1],[2],[3],[4],[5]]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":153,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L153"}],"parentId":178}],"is":{"declaration":true},"location":{"query":"Array.Function.chunk","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.compact.json b/docs/v1.0.0-beta01/data/Array.Function.compact.json new file mode 100644 index 00000000..5db9fd95 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.compact.json @@ -0,0 +1 @@ +{"id":183,"name":"compact","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":171,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L171"}],"signatures":[{"id":184,"name":"compact","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"compact"}]},{"tag":"@description","content":[{"kind":"text","text":"数组筛选出“真”值项。(false、0、NaN、Undefined、null非真)"}]},{"tag":"@returns","content":[{"kind":"text","text":"筛选后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncompact([0, 1, false, 2, '', 3]); // -> [1, 2, 3]\r\ncompact([0, 1, false, 2, '', 3, null, undefined, NaN]); // -> [1, 2, 3]\n```"}]}]},"typeParameter":[{"id":185,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":186,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"array","elementType":{"type":"reference","id":185,"name":"T"}},"text":{"comment":"

数组

\n"}}],"type":{"type":"array","elementType":{"type":"reference","id":185,"name":"T"}},"is":{"declaration":false},"location":{"query":"Array.Function.compact","hash":"compact"},"text":{"comment":"
Function:

compact

\n
Description:

数组筛选出“真”值项。(false、0、NaN、Undefined、null非真)

\n
Returns:

筛选后的数组

\n
Example:
compact([0, 1, false, 2, '', 3]);  // -> [1, 2, 3]\ncompact([0, 1, false, 2, '', 3, null, undefined, NaN]);  // -> [1, 2, 3]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":171,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L171"}],"parentId":183}],"is":{"declaration":true},"location":{"query":"Array.Function.compact","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.countOccurrences.json b/docs/v1.0.0-beta01/data/Array.Function.countOccurrences.json new file mode 100644 index 00000000..0fded893 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.countOccurrences.json @@ -0,0 +1 @@ +{"id":187,"name":"countOccurrences","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":185,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L185"}],"signatures":[{"id":188,"name":"countOccurrences","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"countOccurrences"}]},{"tag":"@description","content":[{"kind":"text","text":"计算数据val在数组arr中出现的次数"}]},{"tag":"@returns","content":[{"kind":"text","text":"数据val在数组arr中出现的次数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncountOccurrences([1,2,4,5,2,6,3], 2); // -> 2\r\n countOccurrences([1,2,4,5,2,6,3], 3); // -> 1\n```"}]}]},"typeParameter":[{"id":189,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":190,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"array","elementType":{"type":"reference","id":189,"name":"T"}},"text":{"comment":"

数组

\n"}},{"id":191,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数据"}]},"type":{"type":"reference","id":189,"name":"T"},"text":{"comment":"

数据

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.countOccurrences","hash":"countOccurrences"},"text":{"comment":"
Function:

countOccurrences

\n
Description:

计算数据val在数组arr中出现的次数

\n
Returns:

数据val在数组arr中出现的次数

\n
Example:
countOccurrences([1,2,4,5,2,6,3], 2);  // -> 2\n countOccurrences([1,2,4,5,2,6,3], 3);  // -> 1\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":185,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L185"}],"parentId":187}],"is":{"declaration":true},"location":{"query":"Array.Function.countOccurrences","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.deepFlatten.json b/docs/v1.0.0-beta01/data/Array.Function.deepFlatten.json new file mode 100644 index 00000000..c7d92f27 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.deepFlatten.json @@ -0,0 +1 @@ +{"id":192,"name":"deepFlatten","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":197,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L197"}],"signatures":[{"id":193,"name":"deepFlatten","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"deepFlatten"}]},{"tag":"@description","content":[{"kind":"text","text":"数组深度扁平化。(无ES5兼容要求的话可以直接用数组原型上的flat(deep)方法)"}]},{"tag":"@returns","content":[{"kind":"text","text":"扁平化后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndeepFlatten([[1, 2, 3], 4, [5, 6, [7, 8, [9]]]]); // -> [1, 2, 3, 4, 5, 6, 7, 8, 9]\n```"}]}]},"parameters":[{"id":194,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"text":{"comment":"

数组

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.deepFlatten","hash":"deepFlatten"},"text":{"comment":"
Function:

deepFlatten

\n
Description:

数组深度扁平化。(无ES5兼容要求的话可以直接用数组原型上的flat(deep)方法)

\n
Returns:

扁平化后的数组

\n
Example:
deepFlatten([[1, 2, 3], 4, [5, 6, [7, 8, [9]]]]);  // -> [1, 2, 3, 4, 5, 6, 7, 8, 9]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":197,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L197"}],"parentId":192}],"is":{"declaration":true},"location":{"query":"Array.Function.deepFlatten","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.difference.json b/docs/v1.0.0-beta01/data/Array.Function.difference.json new file mode 100644 index 00000000..e77eabe4 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.difference.json @@ -0,0 +1 @@ +{"id":199,"name":"difference","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":230,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L230"}],"signatures":[{"id":200,"name":"difference","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"difference"}]},{"tag":"@description","content":[{"kind":"text","text":"判断两个数组项是否相同"}]},{"tag":"@returns","content":[{"kind":"text","text":"两个数组项是否相同"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndifference([1, 2, 3], [1, 1, 2, 2, 3]); // -> false\r\ndifference([1, 2, 3], [1, 2, 3, 4]); // -> false\r\ndifference([1, 2, 3], [1, 2, 3]); // -> true\n```"}]}]},"parameters":[{"id":201,"name":"arr1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"第一个数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

第一个数组

\n"}},{"id":202,"name":"arr2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"第二个数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

第二个数组

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.difference","hash":"difference"},"text":{"comment":"
Function:

difference

\n
Description:

判断两个数组项是否相同

\n
Returns:

两个数组项是否相同

\n
Example:
difference([1, 2, 3], [1, 1, 2, 2, 3]);  // -> false\ndifference([1, 2, 3], [1, 2, 3, 4]);  // -> false\ndifference([1, 2, 3], [1, 2, 3]);  // -> true\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":230,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L230"}],"parentId":199}],"is":{"declaration":true},"location":{"query":"Array.Function.difference","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.differenceBy.json b/docs/v1.0.0-beta01/data/Array.Function.differenceBy.json new file mode 100644 index 00000000..692cf8a2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.differenceBy.json @@ -0,0 +1 @@ +{"id":203,"name":"differenceBy","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":246,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L246"}],"signatures":[{"id":204,"name":"differenceBy","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"differenceBy"}]},{"tag":"@description","content":[{"kind":"text","text":"每项比较通过方法fn进行判断,判断两个数组项是否相同"}]},{"tag":"@returns","content":[{"kind":"text","text":"两个数组项是否相同"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndifferenceBy([1, 2, 3], [2, 4, 6], x => x > 0); // -> false\r\n differenceBy([1, 2, 3], [2, 4, 6], x => x > 1); // -> true\n```"}]}]},"parameters":[{"id":205,"name":"arr1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"第一个数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

第一个数组

\n"}},{"id":206,"name":"arr2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"第二个数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

第二个数组

\n"}},{"id":207,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"比较方法"}]},"type":{"type":"reflection","declaration":{"id":208,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/array.ts","line":246,"character":61,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L246"}],"signatures":[{"id":209,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":210,"name":"v","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{"comment":"

比较方法

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.differenceBy","hash":"differenceBy"},"text":{"comment":"
Function:

differenceBy

\n
Description:

每项比较通过方法fn进行判断,判断两个数组项是否相同

\n
Returns:

两个数组项是否相同

\n
Example:
differenceBy([1, 2, 3], [2, 4, 6], x => x > 0);  // -> false\n differenceBy([1, 2, 3], [2, 4, 6], x => x > 1);  // -> true\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":246,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L246"}],"parentId":203}],"is":{"declaration":true},"location":{"query":"Array.Function.differenceBy","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.digitize.json b/docs/v1.0.0-beta01/data/Array.Function.digitize.json new file mode 100644 index 00000000..5370c5ba --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.digitize.json @@ -0,0 +1 @@ +{"id":290,"name":"digitize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":490,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L490"}],"signatures":[{"id":291,"name":"digitize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@funciton","content":[{"kind":"text","text":"digitize"}]},{"tag":"@description","content":[{"kind":"text","text":"数字分隔为数字列表"}]},{"tag":"@returns","content":[{"kind":"text","text":"数字列表"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndigitize(12345); // [1, 2, 3, 4, 5]\n```"}]}]},"parameters":[{"id":292,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"is":{"declaration":false},"location":{"query":"Array.Function.digitize","hash":"digitize"},"text":{"comment":"
Funciton:

digitize

\n
Description:

数字分隔为数字列表

\n
Returns:

数字列表

\n
Example:
digitize(12345); // [1, 2, 3, 4, 5]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":490,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L490"}],"parentId":290}],"is":{"declaration":true},"location":{"query":"Array.Function.digitize","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.drop.json b/docs/v1.0.0-beta01/data/Array.Function.drop.json new file mode 100644 index 00000000..6fb1b459 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.drop.json @@ -0,0 +1 @@ +{"id":211,"name":"drop","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":262,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L262"}],"signatures":[{"id":212,"name":"drop","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"drop"}]},{"tag":"@description","content":[{"kind":"text","text":"数组arr去掉前itemsCount项"}]},{"tag":"@returns","content":[{"kind":"text","text":"去掉前itemsCount项后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndrop([1, 2, 3], 1); // -> [2, 3]\r\ndrop([1, 2, 3], 0); // -> [1, 2, 3]\r\ndrop([1, 2, 3], 4); // -> []\n```"}]}]},"typeParameter":[{"id":213,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":214,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"typeOperator","operator":"readonly","target":{"type":"array","elementType":{"type":"reference","id":213,"name":"T"}}},"text":{"comment":"

数组

\n"}},{"id":215,"name":"itemsCount","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"去掉的项数"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

去掉的项数

\n"}}],"type":{"type":"array","elementType":{"type":"reference","id":213,"name":"T"}},"is":{"declaration":false},"location":{"query":"Array.Function.drop","hash":"drop"},"text":{"comment":"
Function:

drop

\n
Description:

数组arr去掉前itemsCount项

\n
Returns:

去掉前itemsCount项后的数组

\n
Example:
drop([1, 2, 3], 1);  // -> [2, 3]\ndrop([1, 2, 3], 0);  // -> [1, 2, 3]\ndrop([1, 2, 3], 4);  // -> []\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":262,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L262"}],"parentId":211}],"is":{"declaration":true},"location":{"query":"Array.Function.drop","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.dropWhile.json b/docs/v1.0.0-beta01/data/Array.Function.dropWhile.json new file mode 100644 index 00000000..762115be --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.dropWhile.json @@ -0,0 +1 @@ +{"id":216,"name":"dropWhile","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":277,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L277"}],"signatures":[{"id":217,"name":"dropWhile","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"dropWhile"}]},{"tag":"@description","content":[{"kind":"text","text":"数组arr通过fn处理进行遍历"}]},{"tag":"@returns","content":[{"kind":"text","text":"遍历后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndropWhile([1, 2, 3, 4], n => n >= 3); // -> [3, 4]\n```"}]}]},"typeParameter":[{"id":218,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":219,"name":"_arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"array","elementType":{"type":"reference","id":218,"name":"T"}},"text":{"comment":"

数组

\n"}},{"id":220,"name":"canContinueDropping","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"遍历方法"}]},"type":{"type":"reflection","declaration":{"id":221,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/array.ts","line":277,"character":61,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L277"}],"signatures":[{"id":222,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":223,"name":"item","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":218,"name":"T"}}],"type":{"type":"intrinsic","name":"boolean"}}]}},"text":{"comment":"

遍历方法

\n"}}],"type":{"type":"array","elementType":{"type":"reference","id":218,"name":"T"}},"is":{"declaration":false},"location":{"query":"Array.Function.dropWhile","hash":"dropWhile"},"text":{"comment":"
Function:

dropWhile

\n
Description:

数组arr通过fn处理进行遍历

\n
Returns:

遍历后的数组

\n
Example:
dropWhile([1, 2, 3, 4], n => n >= 3);  // -> [3, 4]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":277,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L277"}],"parentId":216}],"is":{"declaration":true},"location":{"query":"Array.Function.dropWhile","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.everyNth.json b/docs/v1.0.0-beta01/data/Array.Function.everyNth.json new file mode 100644 index 00000000..1f4d3f06 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.everyNth.json @@ -0,0 +1 @@ +{"id":268,"name":"everyNth","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":418,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L418"}],"signatures":[{"id":269,"name":"everyNth","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"everyNth"}]},{"tag":"@description","content":[{"kind":"text","text":"数组arr间隔取值"}]},{"tag":"@returns","content":[{"kind":"text","text":"间隔取值后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\neveryNth([1,2,3,4,5,6], 2); // [1,3,5]\n```"}]}]},"parameters":[{"id":270,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组

\n"}},{"id":271,"name":"nth","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"间隔"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

间隔

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.everyNth","hash":"everyNth"},"text":{"comment":"
Function:

everyNth

\n
Description:

数组arr间隔取值

\n
Returns:

间隔取值后的数组

\n
Example:
everyNth([1,2,3,4,5,6], 2);  // [1,3,5]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":418,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L418"}],"parentId":268}],"is":{"declaration":true},"location":{"query":"Array.Function.everyNth","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.fibonacci.json b/docs/v1.0.0-beta01/data/Array.Function.fibonacci.json new file mode 100644 index 00000000..0a99cf45 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.fibonacci.json @@ -0,0 +1 @@ +{"id":293,"name":"fibonacci","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":502,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L502"}],"signatures":[{"id":294,"name":"fibonacci","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"fibonacci"}]},{"tag":"@description","content":[{"kind":"text","text":"斐波那次序列"}]},{"tag":"@returns","content":[{"kind":"text","text":"斐波那次序列"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfibonacci(5); // [0, 1, 1, 2, 3]\n```"}]}]},"parameters":[{"id":295,"name":"n","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字

\n"}}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"Array.Function.fibonacci","hash":"fibonacci"},"text":{"comment":"
Function:

fibonacci

\n
Description:

斐波那次序列

\n
Returns:

斐波那次序列

\n
Example:
fibonacci(5); // [0, 1, 1, 2, 3]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":502,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L502"}],"parentId":293}],"is":{"declaration":true},"location":{"query":"Array.Function.fibonacci","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.filterNonUnique.json b/docs/v1.0.0-beta01/data/Array.Function.filterNonUnique.json new file mode 100644 index 00000000..31e1e8c5 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.filterNonUnique.json @@ -0,0 +1 @@ +{"id":275,"name":"filterNonUnique","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":442,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L442"}],"signatures":[{"id":276,"name":"filterNonUnique","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"filterNonUnique"}]},{"tag":"@description","content":[{"kind":"text","text":"筛选出数组中没有重复数字的数据项"}]},{"tag":"@returns","content":[{"kind":"text","text":"筛选后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfilterNonUnique([1,2,2,3,4,4,5]); // [1,3,5]\n```"}]}]},"parameters":[{"id":277,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.filterNonUnique","hash":"filterNonUnique"},"text":{"comment":"
Function:

filterNonUnique

\n
Description:

筛选出数组中没有重复数字的数据项

\n
Returns:

筛选后的数组

\n
Example:
filterNonUnique([1,2,2,3,4,4,5]);  // [1,3,5]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":442,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L442"}],"parentId":275}],"is":{"declaration":true},"location":{"query":"Array.Function.filterNonUnique","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.flatten.json b/docs/v1.0.0-beta01/data/Array.Function.flatten.json new file mode 100644 index 00000000..b612f7ec --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.flatten.json @@ -0,0 +1 @@ +{"id":195,"name":"flatten","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":211,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L211"}],"signatures":[{"id":196,"name":"flatten","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"flatten"}]},{"tag":"@description","content":[{"kind":"text","text":"可控制扁平化深度depth的数组扁平化"}]},{"tag":"@returns","content":[{"kind":"text","text":"扁平化后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nflatten([1, 2, [3, 4, [5, 6]]]); // -> [1, 2, 3, 4, [5, 6]]\r\nflatten([1, 2, [3, 4, [5, 6]]], 2); // -> [1, 2, 3, 4, 5, 6]\n```"}]}]},"parameters":[{"id":197,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组

\n"}},{"id":198,"name":"depth","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"深度"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{"comment":"

深度

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.flatten","hash":"flatten"},"text":{"comment":"
Function:

flatten

\n
Description:

可控制扁平化深度depth的数组扁平化

\n
Returns:

扁平化后的数组

\n
Example:
flatten([1, 2, [3, 4, [5, 6]]]); // -> [1, 2, 3, 4, [5, 6]]\nflatten([1, 2, [3, 4, [5, 6]]], 2); // -> [1, 2, 3, 4, 5, 6]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":211,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L211"}],"parentId":195}],"is":{"declaration":true},"location":{"query":"Array.Function.flatten","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.indexOfAll.json b/docs/v1.0.0-beta01/data/Array.Function.indexOfAll.json new file mode 100644 index 00000000..3a7aea10 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.indexOfAll.json @@ -0,0 +1 @@ +{"id":224,"name":"indexOfAll","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":295,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L295"}],"signatures":[{"id":225,"name":"indexOfAll","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"indexOfAll"}]},{"tag":"@description","content":[{"kind":"text","text":"查找数据val在数组arr中出现的所有位置"}]},{"tag":"@returns","content":[{"kind":"text","text":"数据val在数组arr中出现的所有位置"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nindexOfAll([1,2,3,4,2,2], 2); // -> [1, 4, 5]\r\nindexOfAll([1,2,3,4,2,2], 5); // -> []\n```"}]}]},"parameters":[{"id":226,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}},"text":{"comment":"

数组

\n"}},{"id":227,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数据"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

数据

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.indexOfAll","hash":"indexOfAll"},"text":{"comment":"
Function:

indexOfAll

\n
Description:

查找数据val在数组arr中出现的所有位置

\n
Returns:

数据val在数组arr中出现的所有位置

\n
Example:
indexOfAll([1,2,3,4,2,2], 2);  // -> [1, 4, 5]\nindexOfAll([1,2,3,4,2,2], 5);  // -> []\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":295,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L295"}],"parentId":224}],"is":{"declaration":true},"location":{"query":"Array.Function.indexOfAll","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.initializeArrayWithValues.json b/docs/v1.0.0-beta01/data/Array.Function.initializeArrayWithValues.json new file mode 100644 index 00000000..172d3479 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.initializeArrayWithValues.json @@ -0,0 +1 @@ +{"id":278,"name":"initializeArrayWithValues","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":456,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L456"}],"signatures":[{"id":279,"name":"initializeArrayWithValues","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"initializeArrayWithValues"}]},{"tag":"@description","content":[{"kind":"text","text":"初始化数组"}]},{"tag":"@returns","content":[{"kind":"text","text":"初始化后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ninitializeArrayWithValues(5, 2); // [2,2,2,2,2]\r\ninitializeArrayWithValues(5); // [0,0,0,0,0]\n```"}]}]},"parameters":[{"id":280,"name":"len","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"长度"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

长度

\n"}},{"id":281,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"值"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0","text":{"comment":"

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}},"is":{"declaration":false},"location":{"query":"Array.Function.initializeArrayWithValues","hash":"initializeArrayWithValues"},"text":{"comment":"
Function:

initializeArrayWithValues

\n
Description:

初始化数组

\n
Returns:

初始化后的数组

\n
Example:
initializeArrayWithValues(5, 2);  // [2,2,2,2,2]\ninitializeArrayWithValues(5);  // [0,0,0,0,0]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":456,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L456"}],"parentId":278}],"is":{"declaration":true},"location":{"query":"Array.Function.initializeArrayWithValues","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.intersection.json b/docs/v1.0.0-beta01/data/Array.Function.intersection.json new file mode 100644 index 00000000..1cab4813 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.intersection.json @@ -0,0 +1 @@ +{"id":228,"name":"intersection","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":309,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L309"}],"signatures":[{"id":229,"name":"intersection","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"intersection"}]},{"tag":"@description","content":[{"kind":"text","text":"在数组arr1中筛选出arr2也包含的数据项。"}]},{"tag":"@returns","content":[{"kind":"text","text":"筛选后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nintersection([1, 2, 3, 4], [1, 2]); // => [1, 2]\r\nintersection([1, 2, 3, 4], [1, 5]); // => [1]\n```"}]}]},"parameters":[{"id":230,"name":"arr1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组1"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组1

\n"}},{"id":231,"name":"arr2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组2"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组2

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.intersection","hash":"intersection"},"text":{"comment":"
Function:

intersection

\n
Description:

在数组arr1中筛选出arr2也包含的数据项。

\n
Returns:

筛选后的数组

\n
Example:
intersection([1, 2, 3, 4], [1, 2]);  // => [1, 2]\nintersection([1, 2, 3, 4], [1, 5]);  // => [1]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":309,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L309"}],"parentId":228}],"is":{"declaration":true},"location":{"query":"Array.Function.intersection","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.intersectionBy.json b/docs/v1.0.0-beta01/data/Array.Function.intersectionBy.json new file mode 100644 index 00000000..b5f4f804 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.intersectionBy.json @@ -0,0 +1 @@ +{"id":232,"name":"intersectionBy","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":324,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L324"}],"signatures":[{"id":233,"name":"intersectionBy","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"intersectionBy"}]},{"tag":"@description","content":[{"kind":"text","text":"在数组arr1中筛选出arr2也包含的数据项,通过方法fn进行筛选判断。"}]},{"tag":"@returns","content":[{"kind":"text","text":"筛选后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nintersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [2.1]\n```"}]}]},"parameters":[{"id":234,"name":"arr1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组1"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组1

\n"}},{"id":235,"name":"arr2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组2"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组2

\n"}},{"id":236,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"比较方法"}]},"type":{"type":"reflection","declaration":{"id":237,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/array.ts","line":324,"character":63,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L324"}],"signatures":[{"id":238,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":239,"name":"v","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{"comment":"

比较方法

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.intersectionBy","hash":"intersectionBy"},"text":{"comment":"
Function:

intersectionBy

\n
Description:

在数组arr1中筛选出arr2也包含的数据项,通过方法fn进行筛选判断。

\n
Returns:

筛选后的数组

\n
Example:
intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);  // [2.1]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":324,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L324"}],"parentId":232}],"is":{"declaration":true},"location":{"query":"Array.Function.intersectionBy","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.intersectionWith.json b/docs/v1.0.0-beta01/data/Array.Function.intersectionWith.json new file mode 100644 index 00000000..c11f675a --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.intersectionWith.json @@ -0,0 +1 @@ +{"id":240,"name":"intersectionWith","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":339,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L339"}],"signatures":[{"id":241,"name":"intersectionWith","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"intersectionWith"}]},{"tag":"@description","content":[{"kind":"text","text":"在数组arr1中筛选出arr2也包含的数据项,通过方法fn进行筛选判断。"}]},{"tag":"@returns","content":[{"kind":"text","text":"筛选后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nintersectionWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b)); // [1.5, 3, 0]\n```"}]}]},"parameters":[{"id":242,"name":"arr1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组1"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组1

\n"}},{"id":243,"name":"arr2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组2"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组2

\n"}},{"id":244,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"比较方法"}]},"type":{"type":"reflection","declaration":{"id":245,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/array.ts","line":342,"character":6,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L342"}],"signatures":[{"id":246,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":247,"name":"v","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"unknown"}},{"id":248,"name":"k","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{"comment":"

比较方法

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.intersectionWith","hash":"intersectionWith"},"text":{"comment":"
Function:

intersectionWith

\n
Description:

在数组arr1中筛选出arr2也包含的数据项,通过方法fn进行筛选判断。

\n
Returns:

筛选后的数组

\n
Example:
intersectionWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b));  // [1.5, 3, 0]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":339,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L339"}],"parentId":240}],"is":{"declaration":true},"location":{"query":"Array.Function.intersectionWith","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.median.json b/docs/v1.0.0-beta01/data/Array.Function.median.json new file mode 100644 index 00000000..ac3bd57d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.median.json @@ -0,0 +1 @@ +{"id":296,"name":"median","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":517,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L517"}],"signatures":[{"id":297,"name":"median","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"median"}]},{"tag":"@description","content":[{"kind":"text","text":"找中位数"}]},{"tag":"@returns","content":[{"kind":"text","text":"中位数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nmedian([1, 2, 3, 4, 5]); // 3\r\nmedian([1, 2, 3, 4, 5, 6]); // 3.5\n```"}]}]},"parameters":[{"id":298,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"reference","id":299,"name":"NumberArr"},"text":{"comment":"

数字数组

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.median","hash":"median"},"text":{"comment":"
Function:

median

\n
Description:

找中位数

\n
Returns:

中位数

\n
Example:
median([1, 2, 3, 4, 5]); // 3\nmedian([1, 2, 3, 4, 5, 6]); // 3.5\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":517,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L517"}],"parentId":296}],"is":{"declaration":true},"location":{"query":"Array.Function.median","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.negate.json b/docs/v1.0.0-beta01/data/Array.Function.negate.json new file mode 100644 index 00000000..c697ae96 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.negate.json @@ -0,0 +1 @@ +{"id":249,"name":"negate","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":356,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L356"}],"signatures":[{"id":250,"name":"negate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"negate"}]},{"tag":"@description","content":[{"kind":"text","text":"反向筛选"}]},{"tag":"@returns","content":[{"kind":"text","text":"反向筛选方法"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\n[1, 2, 3, 4, 5].filter(negate(n => n % 2 === 0)); // [1,2,3]\r\n[1, 2, 3, 4, 5].filter(negate(n => n % 2 === 1)); // [2,4]\n```"}]}]},"parameters":[{"id":251,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":252,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/array.ts","line":356,"character":27,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L356"}],"signatures":[{"id":253,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":254,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{}}],"type":{"type":"reflection","declaration":{"id":255,"name":"negate","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/array.ts","line":357,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L357"}],"signatures":[{"id":256,"name":"negate","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":257,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"text":{}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Array.Function.negate","hash":"negate.__type"},"text":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":357,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L357"}],"parentId":249}],"location":{"query":"Array.Function.negate","hash":"negate"}}},"is":{"declaration":false},"location":{"query":"Array.Function.negate","hash":"negate"},"text":{"comment":"
Function:

negate

\n
Description:

反向筛选

\n
Returns:

反向筛选方法

\n
Example:
[1, 2, 3, 4, 5].filter(negate(n => n % 2 === 0)); // [1,2,3]\n[1, 2, 3, 4, 5].filter(negate(n => n % 2 === 1)); // [2,4]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":356,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L356"}],"parentId":249}],"is":{"declaration":true},"location":{"query":"Array.Function.negate","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.remove.json b/docs/v1.0.0-beta01/data/Array.Function.remove.json new file mode 100644 index 00000000..9e474283 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.remove.json @@ -0,0 +1 @@ +{"id":282,"name":"remove","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":470,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L470"}],"signatures":[{"id":283,"name":"remove","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"remove"}]},{"tag":"@description","content":[{"kind":"text","text":"筛选数组"}]},{"tag":"@returns","content":[{"kind":"text","text":"筛选后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst arr = [1,2,3,4,5]\r\nremove(arr, (v) => v % 2 === 0); // [2,4] (arr变成了[1,3,5])\n```"}]}]},"typeParameter":[{"id":284,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":285,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"array","elementType":{"type":"reference","id":284,"name":"T"}},"text":{"comment":"

数组

\n"}},{"id":286,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":287,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/array.ts","line":470,"character":40,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L470"}],"signatures":[{"id":288,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":289,"name":"v","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":284,"name":"T"}}],"type":{"type":"intrinsic","name":"boolean"}}]}},"text":{}}],"type":{"type":"array","elementType":{"type":"reference","id":284,"name":"T"}},"is":{"declaration":false},"location":{"query":"Array.Function.remove","hash":"remove"},"text":{"comment":"
Function:

remove

\n
Description:

筛选数组

\n
Returns:

筛选后的数组

\n
Example:
const arr = [1,2,3,4,5]\nremove(arr, (v) => v % 2 === 0);  // [2,4] (arr变成了[1,3,5])\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":470,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L470"}],"parentId":282}],"is":{"declaration":true},"location":{"query":"Array.Function.remove","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.sample.json b/docs/v1.0.0-beta01/data/Array.Function.sample.json new file mode 100644 index 00000000..5482386d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.sample.json @@ -0,0 +1 @@ +{"id":258,"name":"sample","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":370,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L370"}],"signatures":[{"id":259,"name":"sample","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"sample"}]},{"tag":"@description","content":[{"kind":"text","text":"从数组arr中随机取一项"}]},{"tag":"@returns","content":[{"kind":"text","text":"随机取的一项"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nsample([3, 7, 9, 11]); // -> 9(randomly)\n```"}]}]},"parameters":[{"id":260,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组

\n"}}],"type":{"type":"intrinsic","name":"unknown"},"is":{"declaration":false},"location":{"query":"Array.Function.sample","hash":"sample"},"text":{"comment":"
Function:

sample

\n
Description:

从数组arr中随机取一项

\n
Returns:

随机取的一项

\n
Example:
sample([3, 7, 9, 11]);  // -> 9(randomly)\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":370,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L370"}],"parentId":258}],"is":{"declaration":true},"location":{"query":"Array.Function.sample","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.sampleSize.json b/docs/v1.0.0-beta01/data/Array.Function.sampleSize.json new file mode 100644 index 00000000..b7b70d9e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.sampleSize.json @@ -0,0 +1 @@ +{"id":261,"name":"sampleSize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":383,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L383"}],"signatures":[{"id":262,"name":"sampleSize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"sampleSize"}]},{"tag":"@description","content":[{"kind":"text","text":"从数组arr中随机取几项"}]},{"tag":"@returns","content":[{"kind":"text","text":"随机取的几项"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nsampleSize([1, 2, 3], 2); // [3,1] (randomly)\n```"}]}]},"parameters":[{"id":263,"name":"param0","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"originalName":"__namedParameters","type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}},"text":{"comment":"

数组

\n"}},{"id":264,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"取几项"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{"comment":"

取几项

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}},"is":{"declaration":false},"location":{"query":"Array.Function.sampleSize","hash":"sampleSize"},"text":{"comment":"
Function:

sampleSize

\n
Description:

从数组arr中随机取几项

\n
Returns:

随机取的几项

\n
Example:
sampleSize([1, 2, 3], 2);  // [3,1] (randomly)\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":383,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L383"}],"parentId":261}],"is":{"declaration":true},"location":{"query":"Array.Function.sampleSize","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.shuffle.json b/docs/v1.0.0-beta01/data/Array.Function.shuffle.json new file mode 100644 index 00000000..1b8e95be --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.shuffle.json @@ -0,0 +1 @@ +{"id":265,"name":"shuffle","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":400,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L400"}],"signatures":[{"id":266,"name":"shuffle","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"shuffle"}]},{"tag":"@description","content":[{"kind":"text","text":"数组arr数据项打乱"}]},{"tag":"@returns","content":[{"kind":"text","text":"打乱后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nshuffle([1, 2, 3]); // [2,3,1] (randomly)\n```"}]}]},"parameters":[{"id":267,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"originalName":"__namedParameters","type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}},"text":{"comment":"

数组

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}},"is":{"declaration":false},"location":{"query":"Array.Function.shuffle","hash":"shuffle"},"text":{"comment":"
Function:

shuffle

\n
Description:

数组arr数据项打乱

\n
Returns:

打乱后的数组

\n
Example:
shuffle([1, 2, 3]);  // [2,3,1] (randomly)\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":400,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L400"}],"parentId":265}],"is":{"declaration":true},"location":{"query":"Array.Function.shuffle","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.size.json b/docs/v1.0.0-beta01/data/Array.Function.size.json new file mode 100644 index 00000000..b6b7897e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.size.json @@ -0,0 +1 @@ +{"id":167,"name":"size","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":105,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L105"}],"signatures":[{"id":168,"name":"size","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"size"}]},{"tag":"@description","content":[{"kind":"text","text":"获取数组/字符串/Map/Set/对象属性/Blob对象数量"}]},{"tag":"@returns","content":[{"kind":"text","text":"数量"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst arr = [1, 2, 3, 4, 5];\r\nconst arrSize = size(arr); // 5\r\n\nconst str = 'Hello, world!';\r\nconst strSize = size(str); // 14\r\n\nconst myMap = new Map();\r\nmyMap.set('key1', 'value1');\r\nmyMap.set('key2', 'value2');\r\nconst mapSize = size(myMap); // 2\r\n\nconst mySet = new Set([1, 2, 3, 4, 5]);\r\nconst setSize = size(mySet); // 5\r\n\nconst obj = { a: 1, b: 2, c: 3 };\r\nconst objSize = size(obj); // 3\r\n\nconst blob = new Blob(['Hello, world!'], { type: 'text/plain' });\r\nconst blobSize = size(blob); // 13\n```"}]}]},"parameters":[{"id":169,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组/字符串/Map/Set/对象属性/Blob对象"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

数组/字符串/Map/Set/对象属性/Blob对象

\n"}}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"Array.Function.size","hash":"size"},"text":{"comment":"
Function:

size

\n
Description:

获取数组/字符串/Map/Set/对象属性/Blob对象数量

\n
Returns:

数量

\n
Example:
const arr = [1, 2, 3, 4, 5];\nconst arrSize = size(arr); // 5\n\nconst str = 'Hello, world!';\nconst strSize = size(str); // 14\n\nconst myMap = new Map();\nmyMap.set('key1', 'value1');\nmyMap.set('key2', 'value2');\nconst mapSize = size(myMap); // 2\n\nconst mySet = new Set([1, 2, 3, 4, 5]);\nconst setSize = size(mySet); // 5\n\nconst obj = { a: 1, b: 2, c: 3 };\nconst objSize = size(obj); // 3\n\nconst blob = new Blob(['Hello, world!'], { type: 'text/plain' });\nconst blobSize = size(blob); // 13\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":105,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L105"}],"parentId":167}],"is":{"declaration":true},"location":{"query":"Array.Function.size","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.Function.unique.json b/docs/v1.0.0-beta01/data/Array.Function.unique.json new file mode 100644 index 00000000..35c5716d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.Function.unique.json @@ -0,0 +1 @@ +{"id":272,"name":"unique","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":430,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L430"}],"signatures":[{"id":273,"name":"unique","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"unique"}]},{"tag":"@description","content":[{"kind":"text","text":"数组去重"}]},{"tag":"@returns","content":[{"kind":"text","text":"去重后的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nunique([1,2,2,3,4,4,5]); // [1,2,3,4,5]\n```"}]}]},"parameters":[{"id":274,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"reference","id":300,"name":"AnyArr"},"text":{"comment":"

数组

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":false},"location":{"query":"Array.Function.unique","hash":"unique"},"text":{"comment":"
Function:

unique

\n
Description:

数组去重

\n
Returns:

去重后的数组

\n
Example:
unique([1,2,2,3,4,4,5]);  // [1,2,3,4,5]\n
\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":430,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L430"}],"parentId":272}],"is":{"declaration":true},"location":{"query":"Array.Function.unique","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.TypeAlias.AnyArr.json b/docs/v1.0.0-beta01/data/Array.TypeAlias.AnyArr.json new file mode 100644 index 00000000..b241c172 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.TypeAlias.AnyArr.json @@ -0,0 +1 @@ +{"id":300,"name":"AnyArr","kind":4194304,"kindString":"Type alias","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":12,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L12"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"is":{"declaration":true},"location":{"query":"Array.TypeAlias.AnyArr","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/Array.TypeAlias.NumberArr.json b/docs/v1.0.0-beta01/data/Array.TypeAlias.NumberArr.json new file mode 100644 index 00000000..23515349 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Array.TypeAlias.NumberArr.json @@ -0,0 +1 @@ +{"id":299,"name":"NumberArr","kind":4194304,"kindString":"Type alias","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":10,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L10"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"is":{"declaration":true},"location":{"query":"Array.TypeAlias.NumberArr","hash":""},"text":{},"parentId":154} diff --git a/docs/v1.0.0-beta01/data/CSS.Function.getElementSize.json b/docs/v1.0.0-beta01/data/CSS.Function.getElementSize.json new file mode 100644 index 00000000..77babc6c --- /dev/null +++ b/docs/v1.0.0-beta01/data/CSS.Function.getElementSize.json @@ -0,0 +1 @@ +{"id":983,"name":"getElementSize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":77,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L77"}],"signatures":[{"id":984,"name":"getElementSize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getElementSize"}]},{"tag":"@description","content":[{"kind":"text","text":"**getElementStyle(el, property)** 获取元素的尺寸数据、如width/height"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回尺寸数值"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst bodyWidth = getElementStyle(document.querySelector('body'), 'width')\n```"}]}]},"parameters":[{"id":985,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM元素"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

DOM元素

\n"}},{"id":986,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"css属性"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

css属性

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"CSS.Function.getElementSize","hash":"getElementSize"},"text":{"comment":"
Function:

getElementSize

\n
Description:

getElementStyle(el, property) 获取元素的尺寸数据、如width/height

\n
Returns:

返回尺寸数值

\n
Example:
const bodyWidth = getElementStyle(document.querySelector('body'), 'width')\n
\n"},"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":77,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L77"}],"parentId":983}],"is":{"declaration":true},"location":{"query":"CSS.Function.getElementSize","hash":""},"text":{},"parentId":976} diff --git a/docs/v1.0.0-beta01/data/CSS.Function.getPrefix.json b/docs/v1.0.0-beta01/data/CSS.Function.getPrefix.json new file mode 100644 index 00000000..59006694 --- /dev/null +++ b/docs/v1.0.0-beta01/data/CSS.Function.getPrefix.json @@ -0,0 +1 @@ +{"id":977,"name":"getPrefix","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":30,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L30"}],"signatures":[{"id":978,"name":"getPrefix","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getPrefix"}]},{"tag":"@description","content":[{"kind":"text","text":"可以用于判断当前浏览器是否需要添加 CSS3 属性的前缀,例如,在实现某些动画效果时,不同浏览器可能需要不同的前缀。"}]},{"tag":"@returns","content":[{"kind":"text","text":"css前缀,'webkit'/'o'/''"}]},{"tag":"@example","content":[{"kind":"text","text":"const prefix = getPrefix();\r\nconst testEl = document.createElement('div');\r\n\n// 设置 transform 样式\r\ntestEl.style["},{"kind":"code","text":"`${prefix}Transform`"},{"kind":"text","text":" as keyof CSSStyleDeclaration] = 'translate3d(0,0,0)';\r\n\n// 设置 transition 样式\r\ntestEl.style["},{"kind":"code","text":"`${prefix}Transition`"},{"kind":"text","text":" as keyof CSSStyleDeclaration] = 'all 0.3s ease-in-out';\r\n\n// 绑定事件\r\ndocument.addEventListener("},{"kind":"code","text":"`${prefix}AnimationStart`"},{"kind":"text","text":", () => console.log("},{"kind":"code","text":"`${prefix}AnimationStart event triggered`"},{"kind":"text","text":"));\r\n\n// 解绑事件\r\ndocument.removeEventListener("},{"kind":"code","text":"`${prefix}AnimationStart`"},{"kind":"text","text":", () => console.log("},{"kind":"code","text":"`${prefix}AnimationStart event triggered`"},{"kind":"text","text":"));"}]}]},"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"CSS.Function.getPrefix","hash":"getPrefix"},"text":{"comment":"
Function:

getPrefix

\n
Description:

可以用于判断当前浏览器是否需要添加 CSS3 属性的前缀,例如,在实现某些动画效果时,不同浏览器可能需要不同的前缀。

\n
Returns:

css前缀,'webkit'/'o'/''

\n
Example:

const prefix = getPrefix();\nconst testEl = document.createElement('div');

\n

// 设置 transform 样式\ntestEl.style[${prefix}Transform as keyof CSSStyleDeclaration] = 'translate3d(0,0,0)';

\n

// 设置 transition 样式\ntestEl.style[${prefix}Transition as keyof CSSStyleDeclaration] = 'all 0.3s ease-in-out';

\n

// 绑定事件\ndocument.addEventListener(${prefix}AnimationStart, () => console.log(${prefix}AnimationStart event triggered));

\n

// 解绑事件\ndocument.removeEventListener(${prefix}AnimationStart, () => console.log(${prefix}AnimationStart event triggered));

\n"},"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":30,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L30"}],"parentId":977}],"is":{"declaration":true},"location":{"query":"CSS.Function.getPrefix","hash":""},"text":{},"parentId":976} diff --git a/docs/v1.0.0-beta01/data/CSS.Function.getStyle.json b/docs/v1.0.0-beta01/data/CSS.Function.getStyle.json new file mode 100644 index 00000000..030906c1 --- /dev/null +++ b/docs/v1.0.0-beta01/data/CSS.Function.getStyle.json @@ -0,0 +1 @@ +{"id":979,"name":"getStyle","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":59,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L59"}],"signatures":[{"id":980,"name":"getStyle","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getStyle"}]},{"tag":"@description","content":[{"kind":"text","text":"**getStyle(el, property)** get DOM style(获取指定元素的 CSS 样式属性值)"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回属性值"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\n// 获取元素宽度:\r\nconst element = document.getElementById('my-element');\r\nconst width = getStyle(element, 'width');\n```"}]}]},"parameters":[{"id":981,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM元素(为了IE不能用Element)"}]},"type":{"type":"intrinsic","name":"any"},"text":{"comment":"

DOM元素(为了IE不能用Element)

\n"}},{"id":982,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"css属性"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

css属性

\n"}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"intrinsic","name":"number"}]},"is":{"declaration":false},"location":{"query":"CSS.Function.getStyle","hash":"getStyle"},"text":{"comment":"
Function:

getStyle

\n
Description:

getStyle(el, property) get DOM style(获取指定元素的 CSS 样式属性值)

\n
Returns:

返回属性值

\n
Example:
// 获取元素宽度:\nconst element = document.getElementById('my-element');\nconst width = getStyle(element, 'width');\n
\n"},"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":59,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L59"}],"parentId":979}],"is":{"declaration":true},"location":{"query":"CSS.Function.getStyle","hash":""},"text":{},"parentId":976} diff --git a/docs/v1.0.0-beta01/data/Check.Function.isBankCard.json b/docs/v1.0.0-beta01/data/Check.Function.isBankCard.json new file mode 100644 index 00000000..3b0868a0 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.Function.isBankCard.json @@ -0,0 +1 @@ +{"id":343,"name":"isBankCard","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":106,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L106"}],"signatures":[{"id":344,"name":"isBankCard","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isBankCard"}]},{"tag":"@description","content":[{"kind":"text","text":"校验银行卡号"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为银行卡号"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisBankCard('6222600584855931'); // true\r\nisBankCard('023456789012345'); // false\r\nisBankCard('1234567890123456'); // true\r\nisBankCard('12345678901234'); // false\n```"}]}]},"parameters":[{"id":345,"name":"bankCard","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"银行卡号"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

银行卡号

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Check.Function.isBankCard","hash":"isBankCard"},"text":{"comment":"
Function:

isBankCard

\n
Description:

校验银行卡号

\n
Returns:

是否为银行卡号

\n
Example:
isBankCard('6222600584855931'); // true\nisBankCard('023456789012345'); // false\nisBankCard('1234567890123456'); // true\nisBankCard('12345678901234'); // false\n
\n"},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":106,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L106"}],"parentId":343}],"is":{"declaration":true},"location":{"query":"Check.Function.isBankCard","hash":""},"text":{},"parentId":327} diff --git a/docs/v1.0.0-beta01/data/Check.Function.isEmail.json b/docs/v1.0.0-beta01/data/Check.Function.isEmail.json new file mode 100644 index 00000000..bd91eec2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.Function.isEmail.json @@ -0,0 +1 @@ +{"id":328,"name":"isEmail","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":22,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L22"}],"signatures":[{"id":329,"name":"isEmail","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isEmail"}]},{"tag":"@description","content":[{"kind":"text","text":"验证电子邮件地址的格式"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为电子邮件地址"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisEmail('example@domain.com'); // true\r\nisEmail('example@'); // false\r\nisEmail('example@domain'); // false\r\nisEmail('example@domain.'); // false\r\nisEmail('example@domain..com'); // false\n```"}]}]},"parameters":[{"id":330,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"电子邮件地址"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

电子邮件地址

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Check.Function.isEmail","hash":"isEmail"},"text":{"comment":"
Function:

isEmail

\n
Description:

验证电子邮件地址的格式

\n
Returns:

是否为电子邮件地址

\n
Example:
isEmail('example@domain.com'); // true\nisEmail('example@');  // false\nisEmail('example@domain'); // false\nisEmail('example@domain.'); // false\nisEmail('example@domain..com'); // false\n
\n"},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":22,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L22"}],"parentId":328}],"is":{"declaration":true},"location":{"query":"Check.Function.isEmail","hash":""},"text":{},"parentId":327} diff --git a/docs/v1.0.0-beta01/data/Check.Function.isIdCard.json b/docs/v1.0.0-beta01/data/Check.Function.isIdCard.json new file mode 100644 index 00000000..28b74495 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.Function.isIdCard.json @@ -0,0 +1 @@ +{"id":331,"name":"isIdCard","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":39,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L39"}],"signatures":[{"id":332,"name":"isIdCard","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isIdCard"}]},{"tag":"@description","content":[{"kind":"text","text":"中国大陆身份证验证。简单验证,如仔细验证可用check.plus.ts/checkIdcard()"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为身份证号码"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisIdCard('610527199201015209'); // true\r\nisIdCard('11010519491231002X'); // true\r\nisIdCard('1101051949123100'); // false\r\nisIdCard('11010519490231123X'); // false\r\nisIdCard('11010519491231002A'); // false\r\nisIdCard('123456789012345'); // false\n```"}]}]},"parameters":[{"id":333,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"身份证号码"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

身份证号码

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Check.Function.isIdCard","hash":"isIdCard"},"text":{"comment":"
Function:

isIdCard

\n
Description:

中国大陆身份证验证。简单验证,如仔细验证可用check.plus.ts/checkIdcard()

\n
Returns:

是否为身份证号码

\n
Example:
isIdCard('610527199201015209'); // true\nisIdCard('11010519491231002X'); // true\nisIdCard('1101051949123100'); // false\nisIdCard('11010519490231123X'); // false\nisIdCard('11010519491231002A'); // false\nisIdCard('123456789012345'); // false\n
\n"},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":39,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L39"}],"parentId":331}],"is":{"declaration":true},"location":{"query":"Check.Function.isIdCard","hash":""},"text":{},"parentId":327} diff --git a/docs/v1.0.0-beta01/data/Check.Function.isPhoneNumber.json b/docs/v1.0.0-beta01/data/Check.Function.isPhoneNumber.json new file mode 100644 index 00000000..c5f43991 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.Function.isPhoneNumber.json @@ -0,0 +1 @@ +{"id":337,"name":"isPhoneNumber","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":76,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L76"}],"signatures":[{"id":338,"name":"isPhoneNumber","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isPhoneNumber"}]},{"tag":"@description","content":[{"kind":"text","text":"中国大陆手机号验证。(如果要国际通用请用三方库或/^\\+?\\d+$/)"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为手机号码"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisPhoneNumber('08613812345678'); // true\r\nisPhoneNumber('8613812345678'); // true\r\nisPhoneNumber('013812345678'); // true\r\nisPhoneNumber('13812345678'); // true\r\nisPhoneNumber('008613812345678'); // true\r\nisPhoneNumber('086138123456789'); //false\r\nisPhoneNumber('86-13812345678'); // false\r\nisPhoneNumber('13812345'); //false\n```"}]}]},"parameters":[{"id":339,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"手机号码"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

手机号码

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Check.Function.isPhoneNumber","hash":"isPhoneNumber"},"text":{"comment":"
Function:

isPhoneNumber

\n
Description:

中国大陆手机号验证。(如果要国际通用请用三方库或/^+?\\d+$/)

\n
Returns:

是否为手机号码

\n
Example:
isPhoneNumber('08613812345678'); // true\nisPhoneNumber('8613812345678'); // true\nisPhoneNumber('013812345678'); // true\nisPhoneNumber('13812345678'); // true\nisPhoneNumber('008613812345678'); // true\nisPhoneNumber('086138123456789'); //false\nisPhoneNumber('86-13812345678'); // false\nisPhoneNumber('13812345'); //false\n
\n"},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":76,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L76"}],"parentId":337}],"is":{"declaration":true},"location":{"query":"Check.Function.isPhoneNumber","hash":""},"text":{},"parentId":327} diff --git a/docs/v1.0.0-beta01/data/Check.Function.isPostalCode.json b/docs/v1.0.0-beta01/data/Check.Function.isPostalCode.json new file mode 100644 index 00000000..a4dafa85 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.Function.isPostalCode.json @@ -0,0 +1 @@ +{"id":340,"name":"isPostalCode","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":91,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L91"}],"signatures":[{"id":341,"name":"isPostalCode","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isPostalCode"}]},{"tag":"@description","content":[{"kind":"text","text":"校验(中国)邮政编码"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为邮政编码"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisPostalCode('311100'); // true\r\nisPostalCode('31110'); // false\r\nisPostalCode('3111000'); // false\r\nisPostalCode('031110'); // false\n```"}]}]},"parameters":[{"id":342,"name":"postalCode","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"邮政编码"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

邮政编码

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Check.Function.isPostalCode","hash":"isPostalCode"},"text":{"comment":"
Function:

isPostalCode

\n
Description:

校验(中国)邮政编码

\n
Returns:

是否为邮政编码

\n
Example:
isPostalCode('311100'); // true\nisPostalCode('31110'); // false\nisPostalCode('3111000'); // false\nisPostalCode('031110'); // false\n
\n"},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":91,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L91"}],"parentId":340}],"is":{"declaration":true},"location":{"query":"Check.Function.isPostalCode","hash":""},"text":{},"parentId":327} diff --git a/docs/v1.0.0-beta01/data/Check.Function.isUrl.json b/docs/v1.0.0-beta01/data/Check.Function.isUrl.json new file mode 100644 index 00000000..9932615b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.Function.isUrl.json @@ -0,0 +1 @@ +{"id":334,"name":"isUrl","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":57,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L57"}],"signatures":[{"id":335,"name":"isUrl","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isUrl"}]},{"tag":"@description","content":[{"kind":"text","text":"检查是否能够正确地验证 URL 的格式"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为url地址"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisUrl('https://www.example.com'); // true\r\nisUrl('https://subdomain.example.com/path/page.html?query=string'); // true\r\nisUrl('ftp://ftp.example.com'); // true\r\nisUrl('example.com'); // true\r\nisUrl('http://example'); // false\n```"}]}]},"parameters":[{"id":336,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"url地址"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

url地址

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Check.Function.isUrl","hash":"isUrl"},"text":{"comment":"
Function:

isUrl

\n
Description:

检查是否能够正确地验证 URL 的格式

\n
Returns:

是否为url地址

\n
Example:
isUrl('https://www.example.com');  // true\nisUrl('https://subdomain.example.com/path/page.html?query=string'); // true\nisUrl('ftp://ftp.example.com'); // true\nisUrl('example.com'); // true\nisUrl('http://example'); // false\n
\n"},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":57,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L57"}],"parentId":334}],"is":{"declaration":true},"location":{"query":"Check.Function.isUrl","hash":""},"text":{},"parentId":327} diff --git a/docs/v1.0.0-beta01/data/Check.Module.plus.json b/docs/v1.0.0-beta01/data/Check.Module.plus.json new file mode 100644 index 00000000..85ef797b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.Module.plus.json @@ -0,0 +1 @@ +{"id":312,"name":"Check.plus","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"check password functions"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:22:23"}]}]},"originalName":"utils/src/check.plus","children":[],"groups":[{"title":"Functions","children":[323,319,316,313]}],"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L23"}],"is":{"declaration":true},"location":{"query":"Check.Module.plus","hash":""},"text":{"comment":"
Description:

check password functions

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-08-25 13:22:23

\n"}} diff --git a/docs/v1.0.0-beta01/data/Check.plus.Function.checkIdcard.json b/docs/v1.0.0-beta01/data/Check.plus.Function.checkIdcard.json new file mode 100644 index 00000000..5e27a921 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.plus.Function.checkIdcard.json @@ -0,0 +1 @@ +{"id":323,"name":"checkIdcard","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":175,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L175"}],"signatures":[{"id":324,"name":"checkIdcard","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"checkIdcard"}]},{"tag":"@description","content":[{"kind":"text","text":"身份证正确性校验"}]},{"tag":"@returns","content":[{"kind":"text","text":"身份证验证结果"}]}]},"parameters":[{"id":325,"name":"idcard","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"身份证号码"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

身份证号码

\n"}},{"id":326,"name":"TipEnum","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"提示信息"}]},"type":{"type":"query","queryType":{"type":"reference","name":"DefaultIdcardTips"}},"defaultValue":"DefaultIdcardTips","text":{"comment":"

提示信息

\n"}}],"type":{"type":"reference","name":"DefaultIdcardTips"},"is":{"declaration":false},"location":{"query":"Check.plus.Function.checkIdcard","hash":"checkIdcard"},"text":{"comment":"
Function:

checkIdcard

\n
Description:

身份证正确性校验

\n
Returns:

身份证验证结果

\n"},"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":175,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L175"}],"parentId":323}],"is":{"declaration":true},"location":{"query":"Check.plus.Function.checkIdcard","hash":""},"text":{},"parentId":312} diff --git a/docs/v1.0.0-beta01/data/Check.plus.Function.checkPwdStrength.json b/docs/v1.0.0-beta01/data/Check.plus.Function.checkPwdStrength.json new file mode 100644 index 00000000..750ce1da --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.plus.Function.checkPwdStrength.json @@ -0,0 +1 @@ +{"id":319,"name":"checkPwdStrength","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":82,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L82"}],"signatures":[{"id":320,"name":"checkPwdStrength","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"checkPwdStrength"}]},{"tag":"@description","content":[{"kind":"text","text":"检验密码强度(数字+字母+符号)"}]},{"tag":"@returns","content":[{"kind":"text","text":"密码强度类型或提示信息"}]}]},"parameters":[{"id":321,"name":"pwd","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"待检查的密码"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

待检查的密码

\n"}},{"id":322,"name":"tips","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"自定义密码强度提示信息"}]},"type":{"type":"reference","name":"PwdStrengthTips"},"defaultValue":"DEFAULT_PWD_STRENGTH_TIPS","text":{"comment":"

自定义密码强度提示信息

\n"}}],"type":{"type":"union","types":[{"type":"reference","name":"PwdStrengthTypes"},{"type":"intrinsic","name":"string"}]},"is":{"declaration":false},"location":{"query":"Check.plus.Function.checkPwdStrength","hash":"checkPwdStrength"},"text":{"comment":"
Function:

checkPwdStrength

\n
Description:

检验密码强度(数字+字母+符号)

\n
Returns:

密码强度类型或提示信息

\n"},"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":82,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L82"}],"parentId":319}],"is":{"declaration":true},"location":{"query":"Check.plus.Function.checkPwdStrength","hash":""},"text":{},"parentId":312} diff --git a/docs/v1.0.0-beta01/data/Check.plus.Function.validateLicensePlate.json b/docs/v1.0.0-beta01/data/Check.plus.Function.validateLicensePlate.json new file mode 100644 index 00000000..c8b703da --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.plus.Function.validateLicensePlate.json @@ -0,0 +1 @@ +{"id":316,"name":"validateLicensePlate","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":40,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L40"}],"signatures":[{"id":317,"name":"validateLicensePlate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"validateLicensePlate"}]},{"tag":"@description","content":[{"kind":"text","text":"(中国)车牌号校验"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为车牌号"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nvalidateLicensePlate('A12345X'); // true\r\nvalidateLicensePlate('京A12345'); // true\r\nvalidateLicensePlate('A12345'); // false\r\nvalidateLicensePlate('浙123456'); // false\n```"}]}]},"parameters":[{"id":318,"name":"licensePlate","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"车牌号"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

车牌号

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Check.plus.Function.validateLicensePlate","hash":"validateLicensePlate"},"text":{"comment":"
Function:

validateLicensePlate

\n
Description:

(中国)车牌号校验

\n
Returns:

是否为车牌号

\n
Example:
validateLicensePlate('A12345X'); // true\nvalidateLicensePlate('京A12345'); // true\nvalidateLicensePlate('A12345'); // false\nvalidateLicensePlate('浙123456'); // false\n
\n"},"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":40,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L40"}],"parentId":316}],"is":{"declaration":true},"location":{"query":"Check.plus.Function.validateLicensePlate","hash":""},"text":{},"parentId":312} diff --git a/docs/v1.0.0-beta01/data/Check.plus.Function.validatePassport.json b/docs/v1.0.0-beta01/data/Check.plus.Function.validatePassport.json new file mode 100644 index 00000000..13b7caa6 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Check.plus.Function.validatePassport.json @@ -0,0 +1 @@ +{"id":313,"name":"validatePassport","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L23"}],"signatures":[{"id":314,"name":"validatePassport","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"validatePassport"}]},{"tag":"@description","content":[{"kind":"text","text":"(中国)护照号码校验"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为护照号码"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nvalidatePassport('G12345678'); // false\r\nvalidatePassport('D012345678'); // true\r\nvalidatePassport('140123456'); // true\r\nvalidatePassport('A12345678'); // false\r\nvalidatePassport('111234567'); // false\r\nvalidatePassport('G1234567'); // false\r\nvalidatePassport('G1234567A'); // false\n```"}]}]},"parameters":[{"id":315,"name":"passport","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"护照号码"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

护照号码

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Check.plus.Function.validatePassport","hash":"validatePassport"},"text":{"comment":"
Function:

validatePassport

\n
Description:

(中国)护照号码校验

\n
Returns:

是否为护照号码

\n
Example:
validatePassport('G12345678'); // false\nvalidatePassport('D012345678'); // true\nvalidatePassport('140123456'); // true\nvalidatePassport('A12345678'); // false\nvalidatePassport('111234567'); // false\nvalidatePassport('G1234567'); // false\nvalidatePassport('G1234567A'); // false\n
\n"},"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L23"}],"parentId":313}],"is":{"declaration":true},"location":{"query":"Check.plus.Function.validatePassport","hash":""},"text":{},"parentId":312} diff --git a/docs/v1.0.0-beta01/data/Color.Function.getColorRgbArr.json b/docs/v1.0.0-beta01/data/Color.Function.getColorRgbArr.json new file mode 100644 index 00000000..865b5d8b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Color.Function.getColorRgbArr.json @@ -0,0 +1 @@ +{"id":349,"name":"getColorRgbArr","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":28,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L28"}],"signatures":[{"id":350,"name":"getColorRgbArr","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getColorRgbArr"}]},{"tag":"@description","content":[{"kind":"text","text":"颜色格式转换。hexadecimal color to 255.#ff0000 -> [255, 0, 0];"}]},{"tag":"@returns","content":[{"kind":"text","text":"转换后的颜色值"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetColorRgbArr('#ff0000'); // [255,0,0]\r\ngetColorRgbArr('#f00'); // [255,0,0]\n```"}]}]},"parameters":[{"id":351,"name":"color","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"原始十六进制颜色值"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

原始十六进制颜色值

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"is":{"declaration":false},"location":{"query":"Color.Function.getColorRgbArr","hash":"getColorRgbArr"},"text":{"comment":"
Function:

getColorRgbArr

\n
Description:

颜色格式转换。hexadecimal color to 255.#ff0000 -> [255, 0, 0];

\n
Returns:

转换后的颜色值

\n
Example:
getColorRgbArr('#ff0000'); // [255,0,0]\ngetColorRgbArr('#f00'); // [255,0,0]\n
\n"},"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":28,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L28"}],"parentId":349}],"is":{"declaration":true},"location":{"query":"Color.Function.getColorRgbArr","hash":""},"text":{},"parentId":346} diff --git a/docs/v1.0.0-beta01/data/Color.Function.getColorRgba.json b/docs/v1.0.0-beta01/data/Color.Function.getColorRgba.json new file mode 100644 index 00000000..1e969bdf --- /dev/null +++ b/docs/v1.0.0-beta01/data/Color.Function.getColorRgba.json @@ -0,0 +1 @@ +{"id":352,"name":"getColorRgba","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":59,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L59"}],"signatures":[{"id":353,"name":"getColorRgba","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getColorRgba"}]},{"tag":"@description","content":[{"kind":"text","text":"hexadecimal color string -> rgba"}]},{"tag":"@returns","content":[{"kind":"text","text":"rgba颜色值,如'rgba(255,0,0,0.5)'"}]},{"tag":"@need","content":[{"kind":"text","text":"getColorRgb"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetColorRgba('#ff0000', 0.5); // 'rgba(255,0,0,0.5)'\r\ngetColorRgba('#ff0000'); // 'rgba(255,0,0,1)'\n```"}]}]},"parameters":[{"id":354,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"原始十六进制颜色值"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

原始十六进制颜色值

\n"}},{"id":355,"name":"rate","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"透明度,默认为1,取值范围[0,1]"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{"comment":"

透明度,默认为1,取值范围[0,1]

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Color.Function.getColorRgba","hash":"getColorRgba"},"text":{"comment":"
Function:

getColorRgba

\n
Description:

hexadecimal color string -> rgba

\n
Returns:

rgba颜色值,如'rgba(255,0,0,0.5)'

\n
Need:

getColorRgb

\n
Example:
getColorRgba('#ff0000', 0.5); // 'rgba(255,0,0,0.5)'\ngetColorRgba('#ff0000'); // 'rgba(255,0,0,1)'\n
\n"},"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":59,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L59"}],"parentId":352}],"is":{"declaration":true},"location":{"query":"Color.Function.getColorRgba","hash":""},"text":{},"parentId":346} diff --git a/docs/v1.0.0-beta01/data/Color.Function.isTransparentColor.json b/docs/v1.0.0-beta01/data/Color.Function.isTransparentColor.json new file mode 100644 index 00000000..ef5f01c7 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Color.Function.isTransparentColor.json @@ -0,0 +1 @@ +{"id":356,"name":"isTransparentColor","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":75,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L75"}],"signatures":[{"id":357,"name":"isTransparentColor","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isTransparentColor"}]},{"tag":"@description","content":[{"kind":"text","text":"rgb/rgba色值是否为透明色"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为透明色"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisTransparentColor('rgba(0, 0, 0, 0)'); // true\r\nisTransparentColor('rgba(255, 255, 255, 1)'); // false\r\nisTransparentColor('rgba(255, 255, 255, 0)'); // true\n```"}]}]},"parameters":[{"id":358,"name":"colorStr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"颜色值"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

颜色值

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Color.Function.isTransparentColor","hash":"isTransparentColor"},"text":{"comment":"
Function:

isTransparentColor

\n
Description:

rgb/rgba色值是否为透明色

\n
Returns:

是否为透明色

\n
Example:
isTransparentColor('rgba(0, 0, 0, 0)'); // true\nisTransparentColor('rgba(255, 255, 255, 1)'); // false\nisTransparentColor('rgba(255, 255, 255, 0)'); // true\n
\n"},"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":75,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L75"}],"parentId":356}],"is":{"declaration":true},"location":{"query":"Color.Function.isTransparentColor","hash":""},"text":{},"parentId":346} diff --git a/docs/v1.0.0-beta01/data/Color.Function.randomHexColor.json b/docs/v1.0.0-beta01/data/Color.Function.randomHexColor.json new file mode 100644 index 00000000..b678d22d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Color.Function.randomHexColor.json @@ -0,0 +1 @@ +{"id":347,"name":"randomHexColor","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":15,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L15"}],"signatures":[{"id":348,"name":"randomHexColor","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"randomHexColor"}]},{"tag":"@description","content":[{"kind":"text","text":"生成随机十六进制颜色"}]},{"tag":"@returns","content":[{"kind":"text","text":"随机颜色值"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nrandomHexColor(); // '#ff0000'(randomly)\n```"}]}]},"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Color.Function.randomHexColor","hash":"randomHexColor"},"text":{"comment":"
Function:

randomHexColor

\n
Description:

生成随机十六进制颜色

\n
Returns:

随机颜色值

\n
Example:
randomHexColor(); // '#ff0000'(randomly)\n
\n"},"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":15,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L15"}],"parentId":347}],"is":{"declaration":true},"location":{"query":"Color.Function.randomHexColor","hash":""},"text":{},"parentId":346} diff --git a/docs/v1.0.0-beta01/data/Cookie.Function.delCookie.json b/docs/v1.0.0-beta01/data/Cookie.Function.delCookie.json new file mode 100644 index 00000000..4ad4a8ee --- /dev/null +++ b/docs/v1.0.0-beta01/data/Cookie.Function.delCookie.json @@ -0,0 +1 @@ +{"id":973,"name":"delCookie","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":77,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L77"}],"signatures":[{"id":974,"name":"delCookie","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"delCookie"}]},{"tag":"@description","content":[{"kind":"text","text":"根据name删除指定cookie"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndelCookie('name');\n```"}]}]},"parameters":[{"id":975,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"cookie名称"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

cookie名称

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"Cookie.Function.delCookie","hash":"delCookie"},"text":{"comment":"
Function:

delCookie

\n
Description:

根据name删除指定cookie

\n
Example:
delCookie('name');\n
\n"},"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":77,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L77"}],"parentId":973}],"is":{"declaration":true},"location":{"query":"Cookie.Function.delCookie","hash":""},"text":{},"parentId":962} diff --git a/docs/v1.0.0-beta01/data/Cookie.Function.getCookie.json b/docs/v1.0.0-beta01/data/Cookie.Function.getCookie.json new file mode 100644 index 00000000..7984b0bf --- /dev/null +++ b/docs/v1.0.0-beta01/data/Cookie.Function.getCookie.json @@ -0,0 +1 @@ +{"id":963,"name":"getCookie","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":19,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L19"}],"signatures":[{"id":964,"name":"getCookie","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getCookie"}]},{"tag":"@description","content":[{"kind":"text","text":"根据name获取对应cookie"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回cookie值,没有则返回null"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetCookie('name');\n```"}]}]},"parameters":[{"id":965,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"cookie名称"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

cookie名称

\n"}}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"}]},"is":{"declaration":false},"location":{"query":"Cookie.Function.getCookie","hash":"getCookie"},"text":{"comment":"
Function:

getCookie

\n
Description:

根据name获取对应cookie

\n
Returns:

返回cookie值,没有则返回null

\n
Example:
getCookie('name');\n
\n"},"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":19,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L19"}],"parentId":963}],"is":{"declaration":true},"location":{"query":"Cookie.Function.getCookie","hash":""},"text":{},"parentId":962} diff --git a/docs/v1.0.0-beta01/data/Cookie.Function.setCookie.json b/docs/v1.0.0-beta01/data/Cookie.Function.setCookie.json new file mode 100644 index 00000000..22112189 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Cookie.Function.setCookie.json @@ -0,0 +1 @@ +{"id":966,"name":"setCookie","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":61,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L61"}],"signatures":[{"id":967,"name":"setCookie","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"setCookie"}]},{"tag":"@description","content":[{"kind":"text","text":"设置cookie"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nsetCookie('username', 'Wayne');\r\nsetCookie('token', 'abcdefghijk', '1d', '.example.com', '/');\r\nsetCookie('name', 'value', 's20');\r\nsetCookie('name2', 'value2', 'h12');\n```"}]}]},"parameters":[{"id":968,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"cookie名称"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

cookie名称

\n"}},{"id":969,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"cookie值"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

cookie值

\n"}},{"id":970,"name":"time","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"过期时间,默认是一天,单位:s秒,h小时,d天,格式:'s20','h12','d30'"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

过期时间,默认是一天,单位:s秒,h小时,d天,格式:'s20','h12','d30'

\n"}},{"id":971,"name":"domain","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"域名"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"''","text":{"comment":"

域名

\n"}},{"id":972,"name":"path","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"路径"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"''","text":{"comment":"

路径

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"Cookie.Function.setCookie","hash":"setCookie"},"text":{"comment":"
Function:

setCookie

\n
Description:

设置cookie

\n
Example:
setCookie('username', 'Wayne');\nsetCookie('token', 'abcdefghijk', '1d', '.example.com', '/');\nsetCookie('name', 'value', 's20');\nsetCookie('name2', 'value2', 'h12');\n
\n"},"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":61,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L61"}],"parentId":966}],"is":{"declaration":true},"location":{"query":"Cookie.Function.setCookie","hash":""},"text":{},"parentId":962} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.addClass.json b/docs/v1.0.0-beta01/data/DOM.Function.addClass.json new file mode 100644 index 00000000..5cc48697 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.addClass.json @@ -0,0 +1 @@ +{"id":996,"name":"addClass","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":76,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L76"}],"signatures":[{"id":997,"name":"addClass","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"addClass"}]},{"tag":"@description","content":[{"kind":"text","text":"给DOM节点elem添加class"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst div = document.createElement('div');\r\ndiv.className = 'foo';\r\naddClass(div, 'bar');\n```"}]}]},"parameters":[{"id":998,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM节点"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

DOM节点

\n"}},{"id":999,"name":"className","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"样式类名"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

样式类名

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.addClass","hash":"addClass"},"text":{"comment":"
Function:

addClass

\n
Description:

给DOM节点elem添加class

\n
Example:
const div = document.createElement('div');\ndiv.className = 'foo';\naddClass(div, 'bar');\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":76,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L76"}],"parentId":996}],"is":{"declaration":true},"location":{"query":"DOM.Function.addClass","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.animateScrollTo.json b/docs/v1.0.0-beta01/data/DOM.Function.animateScrollTo.json new file mode 100644 index 00000000..22b14d8c --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.animateScrollTo.json @@ -0,0 +1 @@ +{"id":1047,"name":"animateScrollTo","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":353,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L353"}],"signatures":[{"id":1048,"name":"animateScrollTo","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"animateScrollTo"}]},{"tag":"@description","content":[{"kind":"text","text":"在${duration}时间内,滚动条平滑滚动到${to}指定位置\r\n (need getScrollTop, setScrollTop,requestAnimFrame)"}]}]},"parameters":[{"id":1049,"name":"to","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"滚动高度"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

滚动高度

\n"}},{"id":1050,"name":"duration","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"滚动时间"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

滚动时间

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.animateScrollTo","hash":"animateScrollTo"},"text":{"comment":"
Function:

animateScrollTo

\n
Description:

在${duration}时间内,滚动条平滑滚动到${to}指定位置\n (need getScrollTop, setScrollTop,requestAnimFrame)

\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":353,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L353"}],"parentId":1047}],"is":{"declaration":true},"location":{"query":"DOM.Function.animateScrollTo","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.disableCopy.json b/docs/v1.0.0-beta01/data/DOM.Function.disableCopy.json new file mode 100644 index 00000000..f4588eb6 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.disableCopy.json @@ -0,0 +1 @@ +{"id":1054,"name":"disableCopy","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":393,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L393"}],"signatures":[{"id":1055,"name":"disableCopy","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"disableCopy"}]},{"tag":"@description","content":[{"kind":"text","text":"禁止网页复制粘贴"}]}]},"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.disableCopy","hash":"disableCopy"},"text":{"comment":"
Function:

disableCopy

\n
Description:

禁止网页复制粘贴

\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":393,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L393"}],"parentId":1054}],"is":{"declaration":true},"location":{"query":"DOM.Function.disableCopy","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.elementContains.json b/docs/v1.0.0-beta01/data/DOM.Function.elementContains.json new file mode 100644 index 00000000..252a01a0 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.elementContains.json @@ -0,0 +1 @@ +{"id":1012,"name":"elementContains","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":159,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L159"}],"signatures":[{"id":1013,"name":"elementContains","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"elementContains"}]},{"tag":"@description","content":[{"kind":"text","text":"检查是否包含子元素"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否包含子元素"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst parent = document.getElementById('parent');\r\nconst child = document.getElementById('child');\r\nif (elementContains(parent, child)) {\r\n console.log('Parent contains child');\r\n} else {\r\n console.log('Parent does not contain child');\r\n}\n```"}]}]},"parameters":[{"id":1014,"name":"parent","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"父元素"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

父元素

\n"}},{"id":1015,"name":"child","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"子元素"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

子元素

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"DOM.Function.elementContains","hash":"elementContains"},"text":{"comment":"
Function:

elementContains

\n
Description:

检查是否包含子元素

\n
Returns:

是否包含子元素

\n
Example:
const parent = document.getElementById('parent');\nconst child = document.getElementById('child');\nif (elementContains(parent, child)) {\n console.log('Parent contains child');\n} else {\n console.log('Parent does not contain child');\n}\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":159,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L159"}],"parentId":1012}],"is":{"declaration":true},"location":{"query":"DOM.Function.elementContains","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.escapeHTML.json b/docs/v1.0.0-beta01/data/DOM.Function.escapeHTML.json new file mode 100644 index 00000000..9af50a8e --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.escapeHTML.json @@ -0,0 +1 @@ +{"id":1027,"name":"escapeHTML","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":241,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L241"}],"signatures":[{"id":1028,"name":"escapeHTML","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"escapeHTML"}]},{"tag":"@description","content":[{"kind":"text","text":"将字符串中的 HTML 特殊字符转义成对应的实体字符,以避免 XSS 攻击等问题。"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst inputBox = document.getElementById('input-box');\r\n const outputBox = document.getElementById('output-box');\r\n\n inputBox.addEventListener('input', () => {\r\n const escapedText = escapeHTML(inputBox.value);\r\n outputBox.innerText = escapedText;\r\n });\n```"}]}]},"parameters":[{"id":1029,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"需要转义的字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

需要转义的字符串

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"DOM.Function.escapeHTML","hash":"escapeHTML"},"text":{"comment":"
Function:

escapeHTML

\n
Description:

将字符串中的 HTML 特殊字符转义成对应的实体字符,以避免 XSS 攻击等问题。

\n
Example:
const inputBox = document.getElementById('input-box');\n const outputBox = document.getElementById('output-box');\n\n inputBox.addEventListener('input', () => {\n   const escapedText = escapeHTML(inputBox.value);\n   outputBox.innerText = escapedText;\n });\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":241,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L241"}],"parentId":1027}],"is":{"declaration":true},"location":{"query":"DOM.Function.escapeHTML","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.getOffsetPos.json b/docs/v1.0.0-beta01/data/DOM.Function.getOffsetPos.json new file mode 100644 index 00000000..b2e41326 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.getOffsetPos.json @@ -0,0 +1 @@ +{"id":1030,"name":"getOffsetPos","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":269,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L269"}],"signatures":[{"id":1031,"name":"getOffsetPos","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getOffsetPos"}]},{"tag":"@description","content":[{"kind":"text","text":"获取一个元素的距离文档(document)左上角的位置,类似jQ中的offset()"}]},{"tag":"@returns","content":[{"kind":"text","text":"元素的位置"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst elem = document.getElementById('my-elem');\r\nconst offsetPos = getOffsetPos(elem);\r\nconsole.log(offsetPos.left, offsetPos.top);\n```"}]}]},"parameters":[{"id":1032,"name":"elem","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"父节点"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

父节点

\n"}}],"type":{"type":"reflection","declaration":{"id":1033,"name":"getOffsetPos","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1034,"name":"left","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":271,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L271"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"0","is":{"declaration":true},"location":{"query":"DOM.Function.getOffsetPos","hash":"getOffsetPos.left"},"text":{},"parentId":1030},{"id":1035,"name":"top","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":272,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L272"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"0","is":{"declaration":true},"location":{"query":"DOM.Function.getOffsetPos","hash":"getOffsetPos.top"},"text":{},"parentId":1030}],"groups":[{"title":"Properties","children":[1034,1035]}],"sources":[{"fileName":"web-utils/src/dom.ts","line":270,"character":14,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L270"}],"location":{"query":"DOM.Function.getOffsetPos","hash":"getOffsetPos"}}},"is":{"declaration":false},"location":{"query":"DOM.Function.getOffsetPos","hash":"getOffsetPos"},"text":{"comment":"
Function:

getOffsetPos

\n
Description:

获取一个元素的距离文档(document)左上角的位置,类似jQ中的offset()

\n
Returns:

元素的位置

\n
Example:
const elem = document.getElementById('my-elem');\nconst offsetPos = getOffsetPos(elem);\nconsole.log(offsetPos.left, offsetPos.top);\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":269,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L269"}],"parentId":1030}],"is":{"declaration":true},"location":{"query":"DOM.Function.getOffsetPos","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.getScrollPosition.json b/docs/v1.0.0-beta01/data/DOM.Function.getScrollPosition.json new file mode 100644 index 00000000..2c5dc095 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.getScrollPosition.json @@ -0,0 +1 @@ +{"id":1038,"name":"getScrollPosition","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":306,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L306"}],"signatures":[{"id":1039,"name":"getScrollPosition","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getScrollPosition"}]},{"tag":"@description","content":[{"kind":"text","text":"获取文档滚动的位置"}]},{"tag":"@returns","content":[{"kind":"text","text":"滚动的位置"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst scrollPos = getScrollPosition();\r\nconsole.log(scrollPos.x, scrollPos.y);\n```"}]}]},"parameters":[{"id":1040,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"滚动的元素"}]},"type":{"type":"intersection","types":[{"type":"reference","name":"Window","qualifiedName":"Window","package":"typescript"},{"type":"query","queryType":{"type":"reference","name":"globalThis"}}]},"defaultValue":"window","text":{"comment":"

滚动的元素

\n"}}],"type":{"type":"reflection","declaration":{"id":1041,"name":"getScrollPosition","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1042,"name":"x","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":308,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L308"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"...","is":{"declaration":true},"location":{"query":"DOM.Function.getScrollPosition","hash":"getScrollPosition.x"},"text":{},"parentId":1038},{"id":1043,"name":"y","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":309,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L309"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"...","is":{"declaration":true},"location":{"query":"DOM.Function.getScrollPosition","hash":"getScrollPosition.y"},"text":{},"parentId":1038}],"groups":[{"title":"Properties","children":[1042,1043]}],"sources":[{"fileName":"web-utils/src/dom.ts","line":307,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L307"}],"location":{"query":"DOM.Function.getScrollPosition","hash":"getScrollPosition"}}},"is":{"declaration":false},"location":{"query":"DOM.Function.getScrollPosition","hash":"getScrollPosition"},"text":{"comment":"
Function:

getScrollPosition

\n
Description:

获取文档滚动的位置

\n
Returns:

滚动的位置

\n
Example:
const scrollPos = getScrollPosition();\nconsole.log(scrollPos.x, scrollPos.y);\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":306,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L306"}],"parentId":1038}],"is":{"declaration":true},"location":{"query":"DOM.Function.getScrollPosition","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.getScrollTop.json b/docs/v1.0.0-beta01/data/DOM.Function.getScrollTop.json new file mode 100644 index 00000000..14f5764b --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.getScrollTop.json @@ -0,0 +1 @@ +{"id":1036,"name":"getScrollTop","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":293,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L293"}],"signatures":[{"id":1037,"name":"getScrollTop","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getScrollTop"}]},{"tag":"@description","content":[{"kind":"text","text":"获取滚动条距顶部的距离"}]},{"tag":"@returns","content":[{"kind":"text","text":"滚动高度"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst scrollTop = getScrollTop();\r\nconsole.log(scrollTop);\n```"}]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"DOM.Function.getScrollTop","hash":"getScrollTop"},"text":{"comment":"
Function:

getScrollTop

\n
Description:

获取滚动条距顶部的距离

\n
Returns:

滚动高度

\n
Example:
const scrollTop = getScrollTop();\nconsole.log(scrollTop);\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":293,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L293"}],"parentId":1036}],"is":{"declaration":true},"location":{"query":"DOM.Function.getScrollTop","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.hasClass.json b/docs/v1.0.0-beta01/data/DOM.Function.hasClass.json new file mode 100644 index 00000000..4e2115b1 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.hasClass.json @@ -0,0 +1 @@ +{"id":992,"name":"hasClass","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":62,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L62"}],"signatures":[{"id":993,"name":"hasClass","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"hasClass"}]},{"tag":"@description","content":[{"kind":"text","text":"判断节点elem是否包含某个class"}]},{"tag":"@returns","content":[{"kind":"text","text":"节点是否包含对应类名"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\n// 测试用例1:测试样式类名存在情况\r\nconst elem = document.createElement('div');\r\nelem.className = 'test-class';\r\nconst result1 = hasClass(elem, 'test-class'); // true\r\nconst result2 = hasClass(elem, 'other-class'); // false\r\n\n// 测试用例2:测试样式类名前后有其他类名情况\r\nelem.className = 'prev-class test-class next-class';\r\nconst result3 = hasClass(elem, 'test-class'); // true\r\nconst result4 = hasClass(elem, 'prev-class'); // false\r\nconst result5 = hasClass(elem, 'next-class'); // false\r\n\n// 测试用例3:测试样式类名前后有多余空格情况\r\nelem.className = ' test-class ';\r\nconst result6 = hasClass(elem, 'test-class'); // true\r\nconst result7 = hasClass(elem, ' test-class '); // false\r\nconst result8 = hasClass(elem, 'test-class '); // false\n```"}]}]},"parameters":[{"id":994,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM节点"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

DOM节点

\n"}},{"id":995,"name":"className","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"样式类名"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

样式类名

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"DOM.Function.hasClass","hash":"hasClass"},"text":{"comment":"
Function:

hasClass

\n
Description:

判断节点elem是否包含某个class

\n
Returns:

节点是否包含对应类名

\n
Example:
// 测试用例1:测试样式类名存在情况\nconst elem = document.createElement('div');\nelem.className = 'test-class';\nconst result1 = hasClass(elem, 'test-class'); // true\nconst result2 = hasClass(elem, 'other-class'); // false\n\n// 测试用例2:测试样式类名前后有其他类名情况\nelem.className = 'prev-class test-class next-class';\nconst result3 = hasClass(elem, 'test-class'); // true\nconst result4 = hasClass(elem, 'prev-class'); // false\nconst result5 = hasClass(elem, 'next-class'); // false\n\n// 测试用例3:测试样式类名前后有多余空格情况\nelem.className = '  test-class  ';\nconst result6 = hasClass(elem, 'test-class'); // true\nconst result7 = hasClass(elem, '  test-class  '); // false\nconst result8 = hasClass(elem, 'test-class  '); // false\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":62,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L62"}],"parentId":992}],"is":{"declaration":true},"location":{"query":"DOM.Function.hasClass","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.hide.json b/docs/v1.0.0-beta01/data/DOM.Function.hide.json new file mode 100644 index 00000000..d5044281 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.hide.json @@ -0,0 +1 @@ +{"id":1016,"name":"hide","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":171,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L171"}],"signatures":[{"id":1017,"name":"hide","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"hide"}]},{"tag":"@description","content":[{"kind":"text","text":"隐藏元素"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst elementsToHide = document.querySelectorAll('.hide-me');\r\nhide(...elementsToHide);\n```"}]}]},"parameters":[{"id":1018,"name":"elems","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"DOM节点列表"}]},"type":{"type":"array","elementType":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"}},"text":{"comment":"

DOM节点列表

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.hide","hash":"hide"},"text":{"comment":"
Function:

hide

\n
Description:

隐藏元素

\n
Example:
const elementsToHide = document.querySelectorAll('.hide-me');\nhide(...elementsToHide);\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":171,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L171"}],"parentId":1016}],"is":{"declaration":true},"location":{"query":"DOM.Function.hide","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.insertAfter.json b/docs/v1.0.0-beta01/data/DOM.Function.insertAfter.json new file mode 100644 index 00000000..d6611232 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.insertAfter.json @@ -0,0 +1 @@ +{"id":1004,"name":"insertAfter","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":118,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L118"}],"signatures":[{"id":1005,"name":"insertAfter","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"insertAfter"}]},{"tag":"@description","content":[{"kind":"text","text":"在指定元素之后插入新元素"}]},{"tag":"@returns","content":[{"kind":"text","text":"插入的元素"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\n// 在一个元素之后插入一个新元素\r\nconst parent = document.getElementById('parent');\r\nconst newElem = document.createElement('div');\r\nnewElem.textContent = 'Inserted after parent';\r\ninsertAfter(parent, newElem.outerHTML);\r\n\n// 在一个元素之后插入 HTML 字符串\r\nconst target = document.getElementById('target');\r\nconst html = '
Inserted after target
';\r\ninsertAfter(target, html);\n```"}]}]},"parameters":[{"id":1006,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM节点"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

DOM节点

\n"}},{"id":1007,"name":"htmlString","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"HTML字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

HTML字符串

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.insertAfter","hash":"insertAfter"},"text":{"comment":"
Function:

insertAfter

\n
Description:

在指定元素之后插入新元素

\n
Returns:

插入的元素

\n
Example:
// 在一个元素之后插入一个新元素\nconst parent = document.getElementById('parent');\nconst newElem = document.createElement('div');\nnewElem.textContent = 'Inserted after parent';\ninsertAfter(parent, newElem.outerHTML);\n\n// 在一个元素之后插入 HTML 字符串\nconst target = document.getElementById('target');\nconst html = '<div>Inserted after target</div>';\ninsertAfter(target, html);\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":118,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L118"}],"parentId":1004}],"is":{"declaration":true},"location":{"query":"DOM.Function.insertAfter","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.insertBefore.json b/docs/v1.0.0-beta01/data/DOM.Function.insertBefore.json new file mode 100644 index 00000000..1c15e27d --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.insertBefore.json @@ -0,0 +1 @@ +{"id":1008,"name":"insertBefore","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":140,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L140"}],"signatures":[{"id":1009,"name":"insertBefore","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"insertBefore"}]},{"tag":"@description","content":[{"kind":"text","text":"在指定元素之前插入新元素"}]},{"tag":"@returns","content":[{"kind":"text","text":"插入的元素\r\n *"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\n// 在一个元素之前插入一个新元素\r\nconst parent = document.getElementById('parent');\r\nconst newElem = document.createElement('div');\r\nnewElem.textContent = 'Inserted before parent';\r\ninsertBefore(parent, newElem.outerHTML);\r\n\n// 在一个元素之谦插入 HTML 字符串\r\nconst target = document.getElementById('target');\r\nconst html = '
Inserted before target
';\r\ninsertBefore(target, html);\n```"}]}]},"parameters":[{"id":1010,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM节点"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

DOM节点

\n"}},{"id":1011,"name":"htmlString","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"HTML字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

HTML字符串

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.insertBefore","hash":"insertBefore"},"text":{"comment":"
Function:

insertBefore

\n
Description:

在指定元素之前插入新元素

\n
Returns:

插入的元素\n *

\n
Example:
// 在一个元素之前插入一个新元素\nconst parent = document.getElementById('parent');\nconst newElem = document.createElement('div');\nnewElem.textContent = 'Inserted before parent';\ninsertBefore(parent, newElem.outerHTML);\n\n// 在一个元素之谦插入 HTML 字符串\nconst target = document.getElementById('target');\nconst html = '<div>Inserted before target</div>';\ninsertBefore(target, html);\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":140,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L140"}],"parentId":1008}],"is":{"declaration":true},"location":{"query":"DOM.Function.insertBefore","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.isBrowser.json b/docs/v1.0.0-beta01/data/DOM.Function.isBrowser.json new file mode 100644 index 00000000..cc13f810 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.isBrowser.json @@ -0,0 +1 @@ +{"id":988,"name":"isBrowser","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":20,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L20"}],"signatures":[{"id":989,"name":"isBrowser","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isBrowser"}]},{"tag":"@description","content":[{"kind":"text","text":"当前页面是否在浏览器环境下"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否在浏览器环境下"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nif (isBrowser()) {\r\n console.log('在浏览器环境下');\r\n} else {\r\n console.log('可能在Nodejs环境下')\r\n}\n```"}]}]},"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"DOM.Function.isBrowser","hash":"isBrowser"},"text":{"comment":"
Function:

isBrowser

\n
Description:

当前页面是否在浏览器环境下

\n
Returns:

是否在浏览器环境下

\n
Example:
if (isBrowser()) {\n  console.log('在浏览器环境下');\n} else {\n  console.log('可能在Nodejs环境下')\n}\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":20,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L20"}],"parentId":988}],"is":{"declaration":true},"location":{"query":"DOM.Function.isBrowser","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.isBrowserTab.json b/docs/v1.0.0-beta01/data/DOM.Function.isBrowserTab.json new file mode 100644 index 00000000..92e36468 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.isBrowserTab.json @@ -0,0 +1 @@ +{"id":990,"name":"isBrowserTab","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":33,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L33"}],"signatures":[{"id":991,"name":"isBrowserTab","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isBrowserTab"}]},{"tag":"@description","content":[{"kind":"text","text":"当前页面是否为显示状态"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为显示状态"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nif (!isBrowserTab()) {\r\n // 取消一些请求事件等处理\r\n}\n```"}]}]},"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"DOM.Function.isBrowserTab","hash":"isBrowserTab"},"text":{"comment":"
Function:

isBrowserTab

\n
Description:

当前页面是否为显示状态

\n
Returns:

是否为显示状态

\n
Example:
if (!isBrowserTab()) {\n // 取消一些请求事件等处理\n}\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":33,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L33"}],"parentId":990}],"is":{"declaration":true},"location":{"query":"DOM.Function.isBrowserTab","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.nodeListToArray.json b/docs/v1.0.0-beta01/data/DOM.Function.nodeListToArray.json new file mode 100644 index 00000000..2568dac8 --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.nodeListToArray.json @@ -0,0 +1 @@ +{"id":1019,"name":"nodeListToArray","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":192,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L192"}],"signatures":[{"id":1020,"name":"nodeListToArray","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"nodeListToArray"}]},{"tag":"@description","content":[{"kind":"text","text":"dom列表伪数组转为数组"}]},{"tag":"@returns","content":[{"kind":"text","text":"DOM节点数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\n// 获取所有 div 元素,得到的是一个类数组对象 NodeList\r\nconst divs = document.querySelectorAll('div');\r\n\n// 调用函数将 NodeList 转换为数组\r\nconst divArray = nodeListToArray(divs);\r\n\n// 现在可以使用数组的方法对 divArray 进行操作了\r\ndivArray.forEach(div => {\r\n // ...\r\n});\n```"}]}]},"parameters":[{"id":1021,"name":"nodeList","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM节点列表"}]},"type":{"type":"array","elementType":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"}},"text":{"comment":"

DOM节点列表

\n"}}],"type":{"type":"array","elementType":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"}},"is":{"declaration":false},"location":{"query":"DOM.Function.nodeListToArray","hash":"nodeListToArray"},"text":{"comment":"
Function:

nodeListToArray

\n
Description:

dom列表伪数组转为数组

\n
Returns:

DOM节点数组

\n
Example:
// 获取所有 div 元素,得到的是一个类数组对象 NodeList\nconst divs = document.querySelectorAll('div');\n\n// 调用函数将 NodeList 转换为数组\nconst divArray = nodeListToArray(divs);\n\n// 现在可以使用数组的方法对 divArray 进行操作了\ndivArray.forEach(div => {\n // ...\n});\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":192,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L192"}],"parentId":1019}],"is":{"declaration":true},"location":{"query":"DOM.Function.nodeListToArray","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.removeClass.json b/docs/v1.0.0-beta01/data/DOM.Function.removeClass.json new file mode 100644 index 00000000..5dcded2b --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.removeClass.json @@ -0,0 +1 @@ +{"id":1000,"name":"removeClass","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":93,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L93"}],"signatures":[{"id":1001,"name":"removeClass","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"removeClass"}]},{"tag":"@description","content":[{"kind":"text","text":"移除DOM节点的某个class"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst elem = document.createElement('div');\r\nelem.className = 'foo bar';\r\nremoveClass(elem, 'foo');\r\nconsole.log(elem.className); // 'bar'\n```"}]}]},"parameters":[{"id":1002,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM节点"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

DOM节点

\n"}},{"id":1003,"name":"className","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"样式类名"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

样式类名

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.removeClass","hash":"removeClass"},"text":{"comment":"
Function:

removeClass

\n
Description:

移除DOM节点的某个class

\n
Example:
const elem = document.createElement('div');\nelem.className = 'foo bar';\nremoveClass(elem, 'foo');\nconsole.log(elem.className); // 'bar'\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":93,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L93"}],"parentId":1000}],"is":{"declaration":true},"location":{"query":"DOM.Function.removeClass","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.requestAnimFrame.json b/docs/v1.0.0-beta01/data/DOM.Function.requestAnimFrame.json new file mode 100644 index 00000000..cc26a5ff --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.requestAnimFrame.json @@ -0,0 +1 @@ +{"id":1056,"name":"requestAnimFrame","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":332,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L332"}],"signatures":[{"id":1057,"name":"requestAnimFrame","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1058,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":1059,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","line":341,"character":29,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L341"}],"signatures":[{"id":1060,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1061,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"intrinsic","name":"void"}]},"is":{"declaration":false},"location":{"query":"DOM.Function.requestAnimFrame","hash":"requestAnimFrame"},"text":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":341,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L341"}],"parentId":1056}],"is":{"declaration":true},"location":{"query":"DOM.Function.requestAnimFrame","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.setAttribute.json b/docs/v1.0.0-beta01/data/DOM.Function.setAttribute.json new file mode 100644 index 00000000..d3b0700d --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.setAttribute.json @@ -0,0 +1 @@ +{"id":1022,"name":"setAttribute","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":209,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L209"}],"signatures":[{"id":1023,"name":"setAttribute","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"setAttribute"}]},{"tag":"@description","content":[{"kind":"text","text":"设置指定 DOM 元素的属性值"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst elem = document.getElementById('myElement');\r\nsetAttribute(elem, 'style', 'color: red; font-size: 16px;');\r\n\nconst elem = document.getElementById('myInput');\r\nsetAttribute(elem, 'value', 'hello world');\n```"}]}]},"parameters":[{"id":1024,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM节点"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{"comment":"

DOM节点

\n"}},{"id":1025,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"属性名"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

属性名

\n"}},{"id":1026,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"属性值"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

属性值

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.setAttribute","hash":"setAttribute"},"text":{"comment":"
Function:

setAttribute

\n
Description:

设置指定 DOM 元素的属性值

\n
Example:
const elem = document.getElementById('myElement');\nsetAttribute(elem, 'style', 'color: red; font-size: 16px;');\n\nconst elem = document.getElementById('myInput');\nsetAttribute(elem, 'value', 'hello world');\n
\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":209,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L209"}],"parentId":1022}],"is":{"declaration":true},"location":{"query":"DOM.Function.setAttribute","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.setScrollTop.json b/docs/v1.0.0-beta01/data/DOM.Function.setScrollTop.json new file mode 100644 index 00000000..bf1638ef --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.setScrollTop.json @@ -0,0 +1 @@ +{"id":1044,"name":"setScrollTop","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":319,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L319"}],"signatures":[{"id":1045,"name":"setScrollTop","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"setScrollTop"}]},{"tag":"@description","content":[{"kind":"text","text":"设置滚动条距顶部的距离"}]},{"tag":"@returns","content":[{"kind":"text","text":"滚动高度"}]}]},"parameters":[{"id":1046,"name":"height","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"滚动高度"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

滚动高度

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"DOM.Function.setScrollTop","hash":"setScrollTop"},"text":{"comment":"
Function:

setScrollTop

\n
Description:

设置滚动条距顶部的距离

\n
Returns:

滚动高度

\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":319,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L319"}],"parentId":1044}],"is":{"declaration":true},"location":{"query":"DOM.Function.setScrollTop","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/DOM.Function.smoothScroll.json b/docs/v1.0.0-beta01/data/DOM.Function.smoothScroll.json new file mode 100644 index 00000000..387bd15a --- /dev/null +++ b/docs/v1.0.0-beta01/data/DOM.Function.smoothScroll.json @@ -0,0 +1 @@ +{"id":1051,"name":"smoothScroll","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":383,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L383"}],"signatures":[{"id":1052,"name":"smoothScroll","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"smoothScroll"}]},{"tag":"@description","content":[{"kind":"text","text":"指定元素滚动到可视区域"}]}]},"parameters":[{"id":1053,"name":"elemSelector","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"DOM元素"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

DOM元素

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"DOM.Function.smoothScroll","hash":"smoothScroll"},"text":{"comment":"
Function:

smoothScroll

\n
Description:

指定元素滚动到可视区域

\n"},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":383,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L383"}],"parentId":1051}],"is":{"declaration":true},"location":{"query":"DOM.Function.smoothScroll","hash":""},"text":{},"parentId":987} diff --git a/docs/v1.0.0-beta01/data/Date.Function.dayOfYear.json b/docs/v1.0.0-beta01/data/Date.Function.dayOfYear.json new file mode 100644 index 00000000..d83a228b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Date.Function.dayOfYear.json @@ -0,0 +1 @@ +{"id":360,"name":"dayOfYear","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":18,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L18"}],"signatures":[{"id":361,"name":"dayOfYear","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"dayOfYear"}]},{"tag":"@description","content":[{"kind":"text","text":"此日期是当年中的第几天"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回天数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndayOfYear(new Date('2022/02/20')); // 51\r\ndayOfYear(new Date('2024/12/31')); // 366\n```"}]}]},"parameters":[{"id":362,"name":"date","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"日期"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"defaultValue":"...","text":{"comment":"

日期

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Date.Function.dayOfYear","hash":"dayOfYear"},"text":{"comment":"
Function:

dayOfYear

\n
Description:

此日期是当年中的第几天

\n
Returns:

返回天数

\n
Example:
dayOfYear(new Date('2022/02/20')); // 51\ndayOfYear(new Date('2024/12/31')); // 366\n
\n"},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":18,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L18"}],"parentId":360}],"is":{"declaration":true},"location":{"query":"Date.Function.dayOfYear","hash":""},"text":{},"parentId":359} diff --git a/docs/v1.0.0-beta01/data/Date.Function.daysLater.json b/docs/v1.0.0-beta01/data/Date.Function.daysLater.json new file mode 100644 index 00000000..8b50db8f --- /dev/null +++ b/docs/v1.0.0-beta01/data/Date.Function.daysLater.json @@ -0,0 +1 @@ +{"id":378,"name":"daysLater","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":90,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L90"}],"signatures":[{"id":379,"name":"daysLater","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"daysLater"}]},{"tag":"@description","content":[{"kind":"text","text":"获取几天后的日期"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回日期"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst date = new Date('2023-01-01');\r\nconst days = 5;\r\ndaysLater(date, days); // '2023-01-06'\n```"}]}]},"parameters":[{"id":380,"name":"date","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"日期"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"defaultValue":"...","text":{"comment":"

日期

\n"}},{"id":381,"name":"days","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"天数,默认为1"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{"comment":"

天数,默认为1

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Date.Function.daysLater","hash":"daysLater"},"text":{"comment":"
Function:

daysLater

\n
Description:

获取几天后的日期

\n
Returns:

返回日期

\n
Example:
const date = new Date('2023-01-01');\nconst days = 5;\ndaysLater(date, days); // '2023-01-06'\n
\n"},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":90,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L90"}],"parentId":378}],"is":{"declaration":true},"location":{"query":"Date.Function.daysLater","hash":""},"text":{},"parentId":359} diff --git a/docs/v1.0.0-beta01/data/Date.Function.getColonTimeFromDate.json b/docs/v1.0.0-beta01/data/Date.Function.getColonTimeFromDate.json new file mode 100644 index 00000000..7883427d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Date.Function.getColonTimeFromDate.json @@ -0,0 +1 @@ +{"id":363,"name":"getColonTimeFromDate","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":32,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L32"}],"signatures":[{"id":364,"name":"getColonTimeFromDate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getColonTimeFromDate"}]},{"tag":"@description","content":[{"kind":"text","text":"获取hh:mm:ss时间"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回时间"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetColonTimeFromDate(new Date()); // '15:58:40'\r\ngetColonTimeFromDate(); // '15:58:40'\r\ngetColonTimeFromDate(new Date('2022-02-20 11:10:20')); // '11:10:20'\n```"}]}]},"parameters":[{"id":365,"name":"date","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"日期"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"defaultValue":"...","text":{"comment":"

日期

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Date.Function.getColonTimeFromDate","hash":"getColonTimeFromDate"},"text":{"comment":"
Function:

getColonTimeFromDate

\n
Description:

获取hh:mm:ss时间

\n
Returns:

返回时间

\n
Example:
getColonTimeFromDate(new Date()); // '15:58:40'\ngetColonTimeFromDate(); // '15:58:40'\ngetColonTimeFromDate(new Date('2022-02-20 11:10:20')); // '11:10:20'\n
\n"},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":32,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L32"}],"parentId":363}],"is":{"declaration":true},"location":{"query":"Date.Function.getColonTimeFromDate","hash":""},"text":{},"parentId":359} diff --git a/docs/v1.0.0-beta01/data/Date.Function.getDaysDiffBetweenDates.json b/docs/v1.0.0-beta01/data/Date.Function.getDaysDiffBetweenDates.json new file mode 100644 index 00000000..c2794107 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Date.Function.getDaysDiffBetweenDates.json @@ -0,0 +1 @@ +{"id":366,"name":"getDaysDiffBetweenDates","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":47,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L47"}],"signatures":[{"id":367,"name":"getDaysDiffBetweenDates","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getDaysDiffBetweenDates"}]},{"tag":"@description","content":[{"kind":"text","text":"判断两个日期差了几天"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst dateInitial = new Date('2023-01-01');\r\nconst dateFinal = new Date('2023-01-05');\r\ngetDaysDiffBetweenDates(dateInitial, dateFinal); // 4\n```"}]}]},"parameters":[{"id":368,"name":"dateInitial","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"开始日期"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"text":{"comment":"

开始日期

\n"}},{"id":369,"name":"dateFinal","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"结束日期"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"text":{"comment":"

结束日期

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Date.Function.getDaysDiffBetweenDates","hash":"getDaysDiffBetweenDates"},"text":{"comment":"
Function:

getDaysDiffBetweenDates

\n
Description:

判断两个日期差了几天

\n
Returns:
Example:
const dateInitial = new Date('2023-01-01');\nconst dateFinal = new Date('2023-01-05');\ngetDaysDiffBetweenDates(dateInitial, dateFinal);  // 4\n
\n"},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":47,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L47"}],"parentId":366}],"is":{"declaration":true},"location":{"query":"Date.Function.getDaysDiffBetweenDates","hash":""},"text":{},"parentId":359} diff --git a/docs/v1.0.0-beta01/data/Date.Function.getFormattedRemainTime.json b/docs/v1.0.0-beta01/data/Date.Function.getFormattedRemainTime.json new file mode 100644 index 00000000..6d792708 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Date.Function.getFormattedRemainTime.json @@ -0,0 +1 @@ +{"id":382,"name":"getFormattedRemainTime","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":106,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L106"}],"signatures":[{"id":383,"name":"getFormattedRemainTime","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getFormattedRemainTime"}]},{"tag":"@description","content":[{"kind":"text","text":"该函数的作用是计算两个日期之间的时间差,并返回以日、小时、分钟和秒为单位的格式化结果"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回格式化后的时间"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst dateInitial = new Date('2023-03-22T08:00:00.000Z');\r\nconst dateFinal = new Date('2023-03-23T14:15:30.000Z');\r\ngetFormattedRemainTime(dateInitial, dateFinal); // { day: 1, hour: 6, minute: 15, second: 30, }\n```"}]}]},"parameters":[{"id":384,"name":"dateInitial","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"开始日期"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"text":{"comment":"

开始日期

\n"}},{"id":385,"name":"dateFinal","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"结束日期"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"text":{"comment":"

结束日期

\n"}}],"type":{"type":"reflection","declaration":{"id":386,"name":"getFormattedRemainTime","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":387,"name":"day","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":120,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L120"}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":true},"location":{"query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime.day"},"text":{},"parentId":382},{"id":388,"name":"hour","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":121,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L121"}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":true},"location":{"query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime.hour"},"text":{},"parentId":382},{"id":389,"name":"minute","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":122,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L122"}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":true},"location":{"query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime.minute"},"text":{},"parentId":382},{"id":390,"name":"second","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":123,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L123"}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":true},"location":{"query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime.second"},"text":{},"parentId":382}],"groups":[{"title":"Properties","children":[387,388,389,390]}],"sources":[{"fileName":"utils/src/date.ts","line":119,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L119"}],"location":{"query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime"}}},"is":{"declaration":false},"location":{"query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime"},"text":{"comment":"
Function:

getFormattedRemainTime

\n
Description:

该函数的作用是计算两个日期之间的时间差,并返回以日、小时、分钟和秒为单位的格式化结果

\n
Returns:

返回格式化后的时间

\n
Example:
const dateInitial = new Date('2023-03-22T08:00:00.000Z');\nconst dateFinal = new Date('2023-03-23T14:15:30.000Z');\ngetFormattedRemainTime(dateInitial, dateFinal); // { day: 1, hour: 6, minute: 15, second: 30, }\n
\n"},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":106,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L106"}],"parentId":382}],"is":{"declaration":true},"location":{"query":"Date.Function.getFormattedRemainTime","hash":""},"text":{},"parentId":359} diff --git a/docs/v1.0.0-beta01/data/Date.Function.isAfterDate.json b/docs/v1.0.0-beta01/data/Date.Function.isAfterDate.json new file mode 100644 index 00000000..a03ffc3d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Date.Function.isAfterDate.json @@ -0,0 +1 @@ +{"id":370,"name":"isAfterDate","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":61,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L61"}],"signatures":[{"id":371,"name":"isAfterDate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isAfterDate"}]},{"tag":"@description","content":[{"kind":"text","text":"判断dateA是否在dateB之后"}]},{"tag":"@returns","content":[{"kind":"text","text":"日期A是否在日期B之后"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisAfterDate(new Date('2023-01-01'), new Date('2023-01-02')); // false\r\nisAfterDate(new Date('2023-01-01'), new Date('2022-01-02')); // true\n```"}]}]},"parameters":[{"id":372,"name":"dateA","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"日期A"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"text":{"comment":"

日期A

\n"}},{"id":373,"name":"dateB","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"日期B"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"defaultValue":"...","text":{"comment":"

日期B

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Date.Function.isAfterDate","hash":"isAfterDate"},"text":{"comment":"
Function:

isAfterDate

\n
Description:

判断dateA是否在dateB之后

\n
Returns:

日期A是否在日期B之后

\n
Example:
isAfterDate(new Date('2023-01-01'), new Date('2023-01-02')); // false\nisAfterDate(new Date('2023-01-01'), new Date('2022-01-02')); // true\n
\n"},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":61,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L61"}],"parentId":370}],"is":{"declaration":true},"location":{"query":"Date.Function.isAfterDate","hash":""},"text":{},"parentId":359} diff --git a/docs/v1.0.0-beta01/data/Date.Function.isBeforeDate.json b/docs/v1.0.0-beta01/data/Date.Function.isBeforeDate.json new file mode 100644 index 00000000..d16fa5fe --- /dev/null +++ b/docs/v1.0.0-beta01/data/Date.Function.isBeforeDate.json @@ -0,0 +1 @@ +{"id":374,"name":"isBeforeDate","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":75,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L75"}],"signatures":[{"id":375,"name":"isBeforeDate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isBeforeDate"}]},{"tag":"@description","content":[{"kind":"text","text":"判断date1是否在date2之前"}]},{"tag":"@returns","content":[{"kind":"text","text":"日期A是否在日期B之前"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisBeforeDate(new Date('2023-01-01'), new Date('2023-01-02')); // true\r\nisBeforeDate(new Date('2023-01-01'), new Date('2022-01-02')); // false\n```"}]}]},"parameters":[{"id":376,"name":"dateA","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"日期A"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"text":{"comment":"

日期A

\n"}},{"id":377,"name":"dateB","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"日期B"}]},"type":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"},"defaultValue":"...","text":{"comment":"

日期B

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Date.Function.isBeforeDate","hash":"isBeforeDate"},"text":{"comment":"
Function:

isBeforeDate

\n
Description:

判断date1是否在date2之前

\n
Returns:

日期A是否在日期B之前

\n
Example:
isBeforeDate(new Date('2023-01-01'), new Date('2023-01-02')); // true\nisBeforeDate(new Date('2023-01-01'), new Date('2022-01-02')); // false\n
\n"},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":75,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L75"}],"parentId":374}],"is":{"declaration":true},"location":{"query":"Date.Function.isBeforeDate","hash":""},"text":{},"parentId":359} diff --git a/docs/v1.0.0-beta01/data/Easing.TypeAlias.EasingFunction.json b/docs/v1.0.0-beta01/data/Easing.TypeAlias.EasingFunction.json new file mode 100644 index 00000000..a13ce711 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Easing.TypeAlias.EasingFunction.json @@ -0,0 +1 @@ +{"id":2,"name":"EasingFunction","kind":4194304,"kindString":"Type alias","flags":{},"children":[],"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":8,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L8"}],"type":{"type":"reflection","declaration":{"id":3,"name":"EasingFunction","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":8,"character":29,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L8"}],"signatures":[{"id":4,"name":"EasingFunction","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":5,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.EasingFunction.TypeLiteral.__type","hash":"__type"},"text":{},"parentId":3}],"location":{"query":"Easing.TypeAlias.EasingFunction","hash":""}}},"is":{"declaration":true},"location":{"query":"Easing.TypeAlias.EasingFunction","hash":""},"text":{},"parentId":1} diff --git a/docs/v1.0.0-beta01/data/Easing.Variable.default.json b/docs/v1.0.0-beta01/data/Easing.Variable.default.json new file mode 100644 index 00000000..b75967a2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Easing.Variable.default.json @@ -0,0 +1 @@ +{"id":6,"name":"default","kind":32,"kindString":"Variable","flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"The Ease class provides a collection of easing functions for use with tween.js."}],"blockTags":[{"tag":"@see","content":[{"kind":"text","text":"https://www.febucci.com/2018/08/easing-functions/"}]}]},"children":[],"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":14,"character":6,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L14"}],"type":{"type":"reflection","declaration":{"id":7,"name":"default","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":126,"name":"Back","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":160,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L160"}],"type":{"type":"reflection","declaration":{"id":127,"name":"Back","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":128,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":161,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L161"}],"type":{"type":"reflection","declaration":{"id":129,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":161,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L161"}],"signatures":[{"id":130,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":131,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Back.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":161,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L161"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Back.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Back.In"},"text":{},"parentId":6},{"id":136,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":169,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L169"}],"type":{"type":"reflection","declaration":{"id":137,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":169,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L169"}],"signatures":[{"id":138,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":139,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Back.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":169,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L169"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Back.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Back.InOut"},"text":{},"parentId":6},{"id":132,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":165,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L165"}],"type":{"type":"reflection","declaration":{"id":133,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":165,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L165"}],"signatures":[{"id":134,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":135,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Back.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":165,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L165"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Back.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Back.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[128,136,132]}],"sources":[{"fileName":"utils/src/Easing.ts","line":160,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L160"}],"location":{"query":"Easing.Variable.default","hash":"Back"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Back"},"text":{},"parentId":6},{"id":140,"name":"Bounce","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":177,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L177"}],"type":{"type":"reflection","declaration":{"id":141,"name":"Bounce","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":142,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":178,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L178"}],"type":{"type":"reflection","declaration":{"id":143,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":178,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L178"}],"signatures":[{"id":144,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":145,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Bounce.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":178,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L178"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Bounce.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Bounce.In"},"text":{},"parentId":6},{"id":150,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":192,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L192"}],"type":{"type":"reflection","declaration":{"id":151,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":192,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L192"}],"signatures":[{"id":152,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":153,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Bounce.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":192,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L192"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Bounce.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Bounce.InOut"},"text":{},"parentId":6},{"id":146,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":181,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L181"}],"type":{"type":"reflection","declaration":{"id":147,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":181,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L181"}],"signatures":[{"id":148,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":149,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Bounce.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":181,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L181"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Bounce.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Bounce.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[142,150,146]}],"sources":[{"fileName":"utils/src/Easing.ts","line":177,"character":10,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L177"}],"location":{"query":"Easing.Variable.default","hash":"Bounce"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Bounce"},"text":{},"parentId":6},{"id":98,"name":"Circular","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":110,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L110"}],"type":{"type":"reflection","declaration":{"id":99,"name":"Circular","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":100,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":111,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L111"}],"type":{"type":"reflection","declaration":{"id":101,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":111,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L111"}],"signatures":[{"id":102,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":103,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Circular.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":111,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L111"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Circular.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Circular.In"},"text":{},"parentId":6},{"id":108,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":113,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L113"}],"type":{"type":"reflection","declaration":{"id":109,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":113,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L113"}],"signatures":[{"id":110,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":111,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Circular.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":113,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L113"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Circular.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Circular.InOut"},"text":{},"parentId":6},{"id":104,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":112,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L112"}],"type":{"type":"reflection","declaration":{"id":105,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":112,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L112"}],"signatures":[{"id":106,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":107,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Circular.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":112,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L112"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Circular.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Circular.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[100,108,104]}],"sources":[{"fileName":"utils/src/Easing.ts","line":110,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L110"}],"location":{"query":"Easing.Variable.default","hash":"Circular"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Circular"},"text":{},"parentId":6},{"id":28,"name":"Cubic","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":35,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L35"}],"type":{"type":"reflection","declaration":{"id":29,"name":"Cubic","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":30,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":37,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L37"}],"type":{"type":"reflection","declaration":{"id":31,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":37,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L37"}],"signatures":[{"id":32,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":33,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Cubic.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":37,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L37"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Cubic.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Cubic.In"},"text":{},"parentId":6},{"id":38,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":41,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L41"}],"type":{"type":"reflection","declaration":{"id":39,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":41,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L41"}],"signatures":[{"id":40,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":41,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Cubic.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":41,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L41"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Cubic.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Cubic.InOut"},"text":{},"parentId":6},{"id":34,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":39,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L39"}],"type":{"type":"reflection","declaration":{"id":35,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":39,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L39"}],"signatures":[{"id":36,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":37,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Cubic.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":39,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L39"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Cubic.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Cubic.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[30,38,34]}],"sources":[{"fileName":"utils/src/Easing.ts","line":35,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L35"}],"location":{"query":"Easing.Variable.default","hash":"Cubic"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Cubic"},"text":{},"parentId":6},{"id":112,"name":"Elastic","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":120,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L120"}],"type":{"type":"reflection","declaration":{"id":113,"name":"Elastic","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":114,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":121,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L121"}],"type":{"type":"reflection","declaration":{"id":115,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":121,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L121"}],"signatures":[{"id":116,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":117,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Elastic.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":121,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L121"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Elastic.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Elastic.In"},"text":{},"parentId":6},{"id":122,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":142,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L142"}],"type":{"type":"reflection","declaration":{"id":123,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":142,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L142"}],"signatures":[{"id":124,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":125,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Elastic.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":142,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L142"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Elastic.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Elastic.InOut"},"text":{},"parentId":6},{"id":118,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":132,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L132"}],"type":{"type":"reflection","declaration":{"id":119,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":132,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L132"}],"signatures":[{"id":120,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":121,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Elastic.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":132,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L132"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Elastic.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Elastic.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[114,122,118]}],"sources":[{"fileName":"utils/src/Easing.ts","line":120,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L120"}],"location":{"query":"Easing.Variable.default","hash":"Elastic"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Elastic"},"text":{},"parentId":6},{"id":84,"name":"Exponential","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":88,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L88"}],"type":{"type":"reflection","declaration":{"id":85,"name":"Exponential","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":86,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":90,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L90"}],"type":{"type":"reflection","declaration":{"id":87,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":90,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L90"}],"signatures":[{"id":88,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":89,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Exponential.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":90,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L90"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Exponential.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Exponential.In"},"text":{},"parentId":6},{"id":94,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":94,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L94"}],"type":{"type":"reflection","declaration":{"id":95,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":94,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L94"}],"signatures":[{"id":96,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":97,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Exponential.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":94,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L94"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Exponential.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Exponential.InOut"},"text":{},"parentId":6},{"id":90,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":92,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L92"}],"type":{"type":"reflection","declaration":{"id":91,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":92,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L92"}],"signatures":[{"id":92,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":93,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Exponential.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":92,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L92"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Exponential.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Exponential.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[86,94,90]}],"sources":[{"fileName":"utils/src/Easing.ts","line":88,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L88"}],"location":{"query":"Easing.Variable.default","hash":"Exponential"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Exponential"},"text":{},"parentId":6},{"id":8,"name":"Linear","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":16,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L16"}],"type":{"type":"reflection","declaration":{"id":9,"name":"Linear","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":10,"name":"None","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":17,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L17"}],"type":{"type":"reflection","declaration":{"id":11,"name":"None","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":17,"character":10,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L17"}],"signatures":[{"id":12,"name":"None","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":13,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Linear.None.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":17,"character":10,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L17"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Linear.None"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Linear.None"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[10]}],"sources":[{"fileName":"utils/src/Easing.ts","line":16,"character":10,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L16"}],"location":{"query":"Easing.Variable.default","hash":"Linear"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Linear"},"text":{},"parentId":6},{"id":14,"name":"Quadratic","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":20,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L20"}],"type":{"type":"reflection","declaration":{"id":15,"name":"Quadratic","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":16,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":22,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L22"}],"type":{"type":"reflection","declaration":{"id":17,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":22,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L22"}],"signatures":[{"id":18,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":19,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quadratic.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":22,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L22"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quadratic.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quadratic.In"},"text":{},"parentId":6},{"id":24,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":26,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L26"}],"type":{"type":"reflection","declaration":{"id":25,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":26,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L26"}],"signatures":[{"id":26,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":27,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quadratic.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":26,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L26"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quadratic.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quadratic.InOut"},"text":{},"parentId":6},{"id":20,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":24,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L24"}],"type":{"type":"reflection","declaration":{"id":21,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":24,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L24"}],"signatures":[{"id":22,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":23,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quadratic.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":24,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L24"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quadratic.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quadratic.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[16,24,20]}],"sources":[{"fileName":"utils/src/Easing.ts","line":20,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L20"}],"location":{"query":"Easing.Variable.default","hash":"Quadratic"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quadratic"},"text":{},"parentId":6},{"id":42,"name":"Quartic","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":49,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L49"}],"type":{"type":"reflection","declaration":{"id":43,"name":"Quartic","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":44,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":51,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L51"}],"type":{"type":"reflection","declaration":{"id":45,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":51,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L51"}],"signatures":[{"id":46,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":47,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quartic.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":51,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L51"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quartic.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quartic.In"},"text":{},"parentId":6},{"id":52,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":55,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L55"}],"type":{"type":"reflection","declaration":{"id":53,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":55,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L55"}],"signatures":[{"id":54,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":55,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quartic.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":55,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L55"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quartic.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quartic.InOut"},"text":{},"parentId":6},{"id":48,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":53,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L53"}],"type":{"type":"reflection","declaration":{"id":49,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":53,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L53"}],"signatures":[{"id":50,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":51,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quartic.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":53,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L53"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quartic.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quartic.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[44,52,48]}],"sources":[{"fileName":"utils/src/Easing.ts","line":49,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L49"}],"location":{"query":"Easing.Variable.default","hash":"Quartic"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quartic"},"text":{},"parentId":6},{"id":56,"name":"Quintic","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":64,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L64"}],"type":{"type":"reflection","declaration":{"id":57,"name":"Quintic","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":58,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":66,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L66"}],"type":{"type":"reflection","declaration":{"id":59,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":66,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L66"}],"signatures":[{"id":60,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":61,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quintic.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":66,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L66"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quintic.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quintic.In"},"text":{},"parentId":6},{"id":66,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":70,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L70"}],"type":{"type":"reflection","declaration":{"id":67,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":70,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L70"}],"signatures":[{"id":68,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":69,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quintic.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":70,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L70"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quintic.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quintic.InOut"},"text":{},"parentId":6},{"id":62,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":68,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L68"}],"type":{"type":"reflection","declaration":{"id":63,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":68,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L68"}],"signatures":[{"id":64,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":65,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Quintic.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":68,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L68"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Quintic.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quintic.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[58,66,62]}],"sources":[{"fileName":"utils/src/Easing.ts","line":64,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L64"}],"location":{"query":"Easing.Variable.default","hash":"Quintic"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Quintic"},"text":{},"parentId":6},{"id":70,"name":"Sinusoidal","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":79,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L79"}],"type":{"type":"reflection","declaration":{"id":71,"name":"Sinusoidal","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":72,"name":"In","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":81,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L81"}],"type":{"type":"reflection","declaration":{"id":73,"name":"In","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":81,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L81"}],"signatures":[{"id":74,"name":"In","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":75,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.In.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":81,"character":8,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L81"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.In"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.In"},"text":{},"parentId":6},{"id":80,"name":"InOut","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":85,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L85"}],"type":{"type":"reflection","declaration":{"id":81,"name":"InOut","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":85,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L85"}],"signatures":[{"id":82,"name":"InOut","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":83,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.InOut.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":85,"character":11,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L85"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.InOut"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.InOut"},"text":{},"parentId":6},{"id":76,"name":"Out","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":83,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L83"}],"type":{"type":"reflection","declaration":{"id":77,"name":"Out","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","line":83,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L83"}],"signatures":[{"id":78,"name":"Out","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":79,"name":"amount","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.Out.__type"},"text":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":83,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L83"}],"parentId":6}],"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.Out"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Sinusoidal.Out"},"text":{},"parentId":6}],"groups":[{"title":"Methods","children":[72,80,76]}],"sources":[{"fileName":"utils/src/Easing.ts","line":79,"character":14,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L79"}],"location":{"query":"Easing.Variable.default","hash":"Sinusoidal"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":"Sinusoidal"},"text":{},"parentId":6}],"groups":[{"title":"Properties","children":[126,140,98,28,112,84,8,14,42,56,70]}],"sources":[{"fileName":"utils/src/Easing.ts","line":14,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L14"}],"location":{"query":"Easing.Variable.default","hash":""}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Easing.Variable.default","hash":""},"text":{"comment":"

The Ease class provides a collection of easing functions for use with tween.js.

\n
See:

https://www.febucci.com/2018/08/easing-functions/

\n"},"parentId":1} diff --git a/docs/v1.0.0-beta01/data/Function.Function.NOOP.json b/docs/v1.0.0-beta01/data/Function.Function.NOOP.json new file mode 100644 index 00000000..84fb08de --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.NOOP.json @@ -0,0 +1 @@ +{"id":510,"name":"NOOP","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":13,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L13"}],"signatures":[{"id":511,"name":"NOOP","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"NOOP"}]},{"tag":"@description","content":[{"kind":"text","text":"空函数(常用于默认函数)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Function.Function.NOOP","hash":"NOOP"},"text":{"comment":"
Function:

NOOP

\n
Description:

空函数(常用于默认函数)

\n
Returns:
"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":13,"character":20,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L13"}],"parentId":510}],"is":{"declaration":true},"location":{"query":"Function.Function.NOOP","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.attempt.json b/docs/v1.0.0-beta01/data/Function.Function.attempt.json new file mode 100644 index 00000000..26560cb2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.attempt.json @@ -0,0 +1 @@ +{"id":392,"name":"attempt","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":25,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L25"}],"signatures":[{"id":393,"name":"attempt","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@funciton","content":[{"kind":"text","text":"attempt"}]},{"tag":"@description","content":[{"kind":"text","text":"试执行传入的函数 fn,并返回其执行结果。"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回执行结果或者错误"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nattempt((a, b) => a + b, 1, 2); // 3\r\nattempt((a, b) => a + b, 1); // Error: Expected 2 arguments, but got 1.\n```"}]}]},"typeParameter":[{"id":394,"name":"T","kind":131072,"kindString":"Type parameter","flags":{},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}},{"id":395,"name":"R","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":396,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要执行的函数"}]},"type":{"type":"reflection","declaration":{"id":397,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":25,"character":52,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L25"}],"signatures":[{"id":398,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":399,"name":"fnArgs","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"reference","id":394,"name":"T"}}],"type":{"type":"reference","id":395,"name":"R"}}]}},"text":{"comment":"

要执行的函数

\n"}},{"id":400,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"函数的参数"}]},"type":{"type":"reference","id":394,"name":"T"},"text":{"comment":"

函数的参数

\n"}}],"type":{"type":"union","types":[{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"},{"type":"reference","id":395,"name":"R"}]},"is":{"declaration":false},"location":{"query":"Function.Function.attempt","hash":"attempt"},"text":{"comment":"
Funciton:

attempt

\n
Description:

试执行传入的函数 fn,并返回其执行结果。

\n
Returns:

返回执行结果或者错误

\n
Example:
attempt((a, b) => a + b, 1, 2); // 3\nattempt((a, b) => a + b, 1); // Error: Expected 2 arguments, but got 1.\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":25,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L25"}],"parentId":392}],"is":{"declaration":true},"location":{"query":"Function.Function.attempt","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.chainAsync.json b/docs/v1.0.0-beta01/data/Function.Function.chainAsync.json new file mode 100644 index 00000000..76042862 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.chainAsync.json @@ -0,0 +1 @@ +{"id":440,"name":"chainAsync","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":151,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L151"}],"signatures":[{"id":441,"name":"chainAsync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"chainAsync"}]},{"tag":"@description","content":[{"kind":"text","text":"链式执行函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nchainAsync([next => { console.log(1); setTimeout(next, 1000)}, next => { console.log(2);} ])\n```"}]}]},"parameters":[{"id":442,"name":"fns","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"函数数组"}]},"type":{"type":"array","elementType":{"type":"reflection","declaration":{"id":443,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":151,"character":38,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L151"}],"signatures":[{"id":444,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":445,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"intrinsic","name":"unknown"}}]}}},"text":{"comment":"

函数数组

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"Function.Function.chainAsync","hash":"chainAsync"},"text":{"comment":"
Function:

chainAsync

\n
Description:

链式执行函数

\n
Example:
chainAsync([next => { console.log(1); setTimeout(next, 1000)}, next => { console.log(2);} ])\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":151,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L151"}],"parentId":440}],"is":{"declaration":true},"location":{"query":"Function.Function.chainAsync","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.compose.json b/docs/v1.0.0-beta01/data/Function.Function.compose.json new file mode 100644 index 00000000..6b0f5699 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.compose.json @@ -0,0 +1 @@ +{"id":446,"name":"compose","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":168,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L168"}],"signatures":[{"id":447,"name":"compose","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"compose"}]},{"tag":"@description","content":[{"kind":"text","text":"组合函数"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个组合函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst add5 = x => x + 5;\r\nconst multiply = (x, y) => x * y;\r\nconst multiplyAndAdd5 = compose(add5, multiply);\r\nmultiplyAndAdd5(5, 2);\n```"}]}]},"typeParameter":[{"id":448,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":449,"name":"fns","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"函数数组"}]},"type":{"type":"array","elementType":{"type":"reflection","declaration":{"id":450,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":168,"character":41,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L168"}],"signatures":[{"id":451,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":452,"name":"arg","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"reference","id":448,"name":"T"}}}],"type":{"type":"reference","id":448,"name":"T"}}]}}},"text":{"comment":"

函数数组

\n"}}],"type":{"type":"reflection","declaration":{"id":453,"name":"compose","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":168,"character":63,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L168"}],"signatures":[{"id":454,"name":"compose","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":455,"name":"arg","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":448,"name":"T"},"text":{}}],"type":{"type":"reference","id":448,"name":"T"},"is":{"declaration":false},"location":{"query":"Function.Function.compose","hash":"compose.__type"},"text":{},"parentId":446}],"location":{"query":"Function.Function.compose","hash":"compose"}}},"is":{"declaration":false},"location":{"query":"Function.Function.compose","hash":"compose"},"text":{"comment":"
Function:

compose

\n
Description:

组合函数

\n
Returns:

返回一个组合函数

\n
Example:
const add5 = x => x + 5;\nconst multiply = (x, y) => x * y;\nconst multiplyAndAdd5 = compose(add5, multiply);\nmultiplyAndAdd5(5, 2);\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":168,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L168"}],"parentId":446}],"is":{"declaration":true},"location":{"query":"Function.Function.compose","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.curry.json b/docs/v1.0.0-beta01/data/Function.Function.curry.json new file mode 100644 index 00000000..378eece0 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.curry.json @@ -0,0 +1 @@ +{"id":512,"name":"curry","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":228,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L228"}],"signatures":[{"id":513,"name":"curry","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"curry"}]},{"tag":"@description","content":[{"kind":"text","text":"函数柯里化"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个柯里化函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncurry(Math.pow)(2)(10); // 1024\r\ncurry(Math.pow)(2, 10); // 1024\r\ncurry((a, b) => a + b)(1)(2); // 3\n```"}]}]},"typeParameter":[{"id":514,"name":"T1","kind":131072,"kindString":"Type parameter","flags":{}},{"id":515,"name":"R","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":516,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要柯里化的函数"}]},"type":{"type":"reflection","declaration":{"id":517,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":213,"character":14,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L213"}],"signatures":[{"id":518,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":519,"name":"t1","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":514,"name":"T1"}}],"type":{"type":"reference","id":515,"name":"R"}}]}},"text":{"comment":"

要柯里化的函数

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"reference","id":514,"name":"T1"},{"type":"reference","id":515,"name":"R"}],"name":"Curry1"},"is":{"declaration":false},"location":{"query":"Function.Function.curry","hash":"curry"},"text":{"comment":"
Function:

curry

\n
Description:

函数柯里化

\n
Returns:

返回一个柯里化函数

\n
Example:
curry(Math.pow)(2)(10); // 1024\ncurry(Math.pow)(2, 10); // 1024\ncurry((a, b) => a + b)(1)(2); // 3\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":213,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L213"}],"parentId":512},{"id":520,"name":"curry","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"curry"}]},{"tag":"@description","content":[{"kind":"text","text":"函数柯里化"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个柯里化函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncurry(Math.pow)(2)(10); // 1024\r\ncurry(Math.pow)(2, 10); // 1024\r\ncurry((a, b) => a + b)(1)(2); // 3\n```"}]}]},"typeParameter":[{"id":521,"name":"T1","kind":131072,"kindString":"Type parameter","flags":{}},{"id":522,"name":"T2","kind":131072,"kindString":"Type parameter","flags":{}},{"id":523,"name":"R","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":524,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要柯里化的函数"}]},"type":{"type":"reflection","declaration":{"id":525,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":214,"character":18,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L214"}],"signatures":[{"id":526,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":527,"name":"t1","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":521,"name":"T1"}},{"id":528,"name":"t2","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":522,"name":"T2"}}],"type":{"type":"reference","id":523,"name":"R"}}]}},"text":{"comment":"

要柯里化的函数

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"reference","id":521,"name":"T1"},{"type":"reference","id":522,"name":"T2"},{"type":"reference","id":523,"name":"R"}],"name":"Curry2"},"is":{"declaration":false},"location":{"query":"Function.Function.curry","hash":"curry"},"text":{"comment":"
Function:

curry

\n
Description:

函数柯里化

\n
Returns:

返回一个柯里化函数

\n
Example:
curry(Math.pow)(2)(10); // 1024\ncurry(Math.pow)(2, 10); // 1024\ncurry((a, b) => a + b)(1)(2); // 3\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":214,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L214"}],"parentId":512},{"id":529,"name":"curry","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"curry"}]},{"tag":"@description","content":[{"kind":"text","text":"函数柯里化"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个柯里化函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncurry(Math.pow)(2)(10); // 1024\r\ncurry(Math.pow)(2, 10); // 1024\r\ncurry((a, b) => a + b)(1)(2); // 3\n```"}]}]},"typeParameter":[{"id":530,"name":"T1","kind":131072,"kindString":"Type parameter","flags":{}},{"id":531,"name":"T2","kind":131072,"kindString":"Type parameter","flags":{}},{"id":532,"name":"T3","kind":131072,"kindString":"Type parameter","flags":{}},{"id":533,"name":"R","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":534,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要柯里化的函数"}]},"type":{"type":"reflection","declaration":{"id":535,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":215,"character":22,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L215"}],"signatures":[{"id":536,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":537,"name":"t1","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":530,"name":"T1"}},{"id":538,"name":"t2","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":531,"name":"T2"}},{"id":539,"name":"t3","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":532,"name":"T3"}}],"type":{"type":"reference","id":533,"name":"R"}}]}},"text":{"comment":"

要柯里化的函数

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"reference","id":530,"name":"T1"},{"type":"reference","id":531,"name":"T2"},{"type":"reference","id":532,"name":"T3"},{"type":"reference","id":533,"name":"R"}],"name":"Curry3"},"is":{"declaration":false},"location":{"query":"Function.Function.curry","hash":"curry"},"text":{"comment":"
Function:

curry

\n
Description:

函数柯里化

\n
Returns:

返回一个柯里化函数

\n
Example:
curry(Math.pow)(2)(10); // 1024\ncurry(Math.pow)(2, 10); // 1024\ncurry((a, b) => a + b)(1)(2); // 3\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":215,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L215"}],"parentId":512}],"is":{"declaration":true},"location":{"query":"Function.Function.curry","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.debounce.json b/docs/v1.0.0-beta01/data/Function.Function.debounce.json new file mode 100644 index 00000000..e51ed882 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.debounce.json @@ -0,0 +1 @@ +{"id":502,"name":"debounce","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":353,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L353"}],"signatures":[{"id":503,"name":"debounce","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"debounce"}]},{"tag":"@description","content":[{"kind":"text","text":"防抖函数"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个防抖函数"}]},{"tag":"@example","content":[{"kind":"text","text":"function search(query: string) {\r\n // 发送请求,搜索指定的查询字符串\r\n console.log("},{"kind":"code","text":"`Searching for \"${query}\"...`"},{"kind":"text","text":");\r\n}\r\n\nconst searchDebounced = debounce(search, 500);\r\n\n// 用户连续输入时,只会在最后一次输入后 500ms 执行搜索\r\nsearchDebounced('JavaScript'); // 不会执行\r\nsearchDebounced('TypeScript'); // 不会执行\r\nsearchDebounced('React'); // 不会执行\r\nsetTimeout(() => searchDebounced('Redux'), 600); // 执行搜索"}]}]},"typeParameter":[{"id":504,"name":"T","kind":131072,"kindString":"Type parameter","flags":{},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"parameters":[{"id":505,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要执行的函数"}]},"type":{"type":"reflection","declaration":{"id":506,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":354,"character":6,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L354"}],"signatures":[{"id":507,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":508,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"reference","id":504,"name":"T"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{"comment":"

要执行的函数

\n"}},{"id":509,"name":"intervalTime","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"间隔时间"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"DEFAULT_INTERVAL","text":{"comment":"

间隔时间

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"reference","id":504,"name":"T"}],"name":"DebouncedFn"},"is":{"declaration":false},"location":{"query":"Function.Function.debounce","hash":"debounce"},"text":{"comment":"
Function:

debounce

\n
Description:

防抖函数

\n
Returns:

返回一个防抖函数

\n
Example:

function search(query: string) {\n // 发送请求,搜索指定的查询字符串\n console.log(Searching for "${query}"...);\n}

\n

const searchDebounced = debounce(search, 500);

\n

// 用户连续输入时,只会在最后一次输入后 500ms 执行搜索\nsearchDebounced('JavaScript'); // 不会执行\nsearchDebounced('TypeScript'); // 不会执行\nsearchDebounced('React'); // 不会执行\nsetTimeout(() => searchDebounced('Redux'), 600); // 执行搜索

\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":353,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L353"}],"parentId":502}],"is":{"declaration":true},"location":{"query":"Function.Function.debounce","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.defer.json b/docs/v1.0.0-beta01/data/Function.Function.defer.json new file mode 100644 index 00000000..30218002 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.defer.json @@ -0,0 +1 @@ +{"id":401,"name":"defer","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":51,"character":22,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L51"}],"signatures":[{"id":402,"name":"defer","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"defer"}]},{"tag":"@description","content":[{"kind":"text","text":"将指定的函数延迟执行,将其放到事件队列的最后,等待当前执行栈中的代码全部执行完毕后再执行"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个定时器的ID"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfunction printHello() {\r\n console.log('Hello, world!');\r\n}\r\n\ndefer(printHello);\r\nconsole.log('This is printed first.');\r\n\n// 输出:\r\n// This is printed first.\r\n// Hello, world!\n```"}]}]},"parameters":[{"id":403,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要延迟执行的函数"}]},"type":{"type":"reflection","declaration":{"id":404,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":51,"character":32,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L51"}],"signatures":[{"id":405,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":406,"name":"arg","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{"comment":"

要延迟执行的函数

\n"}},{"id":407,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"函数的参数"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"text":{"comment":"

函数的参数

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"Function.Function.defer","hash":"defer"},"text":{"comment":"
Function:

defer

\n
Description:

将指定的函数延迟执行,将其放到事件队列的最后,等待当前执行栈中的代码全部执行完毕后再执行

\n
Returns:

返回一个定时器的ID

\n
Example:
function printHello() {\n console.log('Hello, world!');\n}\n\ndefer(printHello);\nconsole.log('This is printed first.');\n\n// 输出:\n// This is printed first.\n// Hello, world!\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":51,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L51"}],"parentId":401}],"is":{"declaration":true},"location":{"query":"Function.Function.defer","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.functionName.json b/docs/v1.0.0-beta01/data/Function.Function.functionName.json new file mode 100644 index 00000000..e4d57977 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.functionName.json @@ -0,0 +1 @@ +{"id":466,"name":"functionName","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":250,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L250"}],"signatures":[{"id":467,"name":"functionName","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"functionName"}]},{"tag":"@description","content":[{"kind":"text","text":"打印函数名称"}]},{"tag":"@returns","content":[{"kind":"text","text":"函数名称,如果没有则返回null"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfunction add(a: number, b: number) {\r\n return a + b;\r\n}\r\n\nfunctionName(add);\n```"}]}]},"typeParameter":[{"id":471,"name":"T","kind":131072,"kindString":"Type parameter","flags":{},"type":{"type":"reflection","declaration":{"id":468,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":250,"character":39,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L250"}],"signatures":[{"id":469,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":470,"name":"ks","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"intrinsic","name":"unknown"}}]}}}],"parameters":[{"id":472,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"函数"}]},"type":{"type":"reference","id":471,"name":"T"},"text":{"comment":"

函数

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Function.Function.functionName","hash":"functionName"},"text":{"comment":"
Function:

functionName

\n
Description:

打印函数名称

\n
Returns:

函数名称,如果没有则返回null

\n
Example:
function add(a: number, b: number) {\n return a + b;\n}\n\nfunctionName(add);\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":250,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L250"}],"parentId":466}],"is":{"declaration":true},"location":{"query":"Function.Function.functionName","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.memoize.json b/docs/v1.0.0-beta01/data/Function.Function.memoize.json new file mode 100644 index 00000000..5edf1149 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.memoize.json @@ -0,0 +1 @@ +{"id":421,"name":"memoize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":114,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L114"}],"signatures":[{"id":422,"name":"memoize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"memoize"}]},{"tag":"@description","content":[{"kind":"text","text":"缓存函数"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个缓存函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfunction expensiveCalculation(n: number) {\r\n console.log('Calculating...');\r\n return n * 2;\r\n}\r\nconst cachedCalculation = memoize(expensiveCalculation);\r\n\nconsole.log(cachedCalculation(5)); // 输出 \"Calculating... 10\"\r\nconsole.log(cachedCalculation(5)); // 输出 \"10\",没有输出 \"Calculating...\"\n```"}]}]},"parameters":[{"id":423,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要缓存的函数"}]},"type":{"type":"reflection","declaration":{"id":424,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":114,"character":28,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L114"}],"signatures":[{"id":425,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":426,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{"comment":"

要缓存的函数

\n"}}],"type":{"type":"reflection","declaration":{"id":427,"name":"memoize","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":428,"name":"cache","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":119,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L119"}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"},{"type":"intrinsic","name":"any"}],"name":"Map","qualifiedName":"Map","package":"typescript"},"is":{"declaration":true},"location":{"query":"Function.Function.memoize","hash":"memoize.cache"},"text":{},"parentId":421}],"groups":[{"title":"Properties","children":[428]}],"sources":[{"fileName":"utils/src/function.ts","line":116,"character":17,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L116"}],"signatures":[{"id":429,"name":"memoize","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":430,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"unknown"},"text":{}}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"Function.Function.memoize","hash":"memoize.__type"},"text":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":116,"character":17,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L116"}],"parentId":421}],"location":{"query":"Function.Function.memoize","hash":"memoize"}}},"is":{"declaration":false},"location":{"query":"Function.Function.memoize","hash":"memoize"},"text":{"comment":"
Function:

memoize

\n
Description:

缓存函数

\n
Returns:

返回一个缓存函数

\n
Example:
function expensiveCalculation(n: number) {\n console.log('Calculating...');\n return n * 2;\n}\nconst cachedCalculation = memoize(expensiveCalculation);\n\nconsole.log(cachedCalculation(5)); // 输出 \"Calculating... 10\"\nconsole.log(cachedCalculation(5)); // 输出 \"10\",没有输出 \"Calculating...\"\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":114,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L114"}],"parentId":421}],"is":{"declaration":true},"location":{"query":"Function.Function.memoize","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.once.json b/docs/v1.0.0-beta01/data/Function.Function.once.json new file mode 100644 index 00000000..1bdc3885 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.once.json @@ -0,0 +1 @@ +{"id":431,"name":"once","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":134,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L134"}],"signatures":[{"id":432,"name":"once","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"once"}]},{"tag":"@description","content":[{"kind":"text","text":"单例执行的函数处理"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个只执行一次的函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfunction log () { console.log('log'); }\r\nconst logOnce = once(log);\r\nlogOnce(); // 'log'\r\nlogOnce(); // 无日志\n```"}]}]},"parameters":[{"id":433,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要执行的函数"}]},"type":{"type":"reflection","declaration":{"id":434,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":134,"character":25,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L134"}],"signatures":[{"id":435,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":436,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{"comment":"

要执行的函数

\n"}}],"type":{"type":"reflection","declaration":{"id":437,"name":"once","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":136,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L136"}],"signatures":[{"id":438,"name":"once","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":439,"name":"argus","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"Function.Function.once","hash":"once.__type"},"text":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":136,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L136"}],"parentId":431}],"location":{"query":"Function.Function.once","hash":"once"}}},"is":{"declaration":false},"location":{"query":"Function.Function.once","hash":"once"},"text":{"comment":"
Function:

once

\n
Description:

单例执行的函数处理

\n
Returns:

返回一个只执行一次的函数

\n
Example:
function log () { console.log('log'); }\nconst logOnce = once(log);\nlogOnce();  // 'log'\nlogOnce();  // 无日志\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":134,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L134"}],"parentId":431}],"is":{"declaration":true},"location":{"query":"Function.Function.once","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.pipe.json b/docs/v1.0.0-beta01/data/Function.Function.pipe.json new file mode 100644 index 00000000..3fd909f9 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.pipe.json @@ -0,0 +1 @@ +{"id":456,"name":"pipe","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":187,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L187"}],"signatures":[{"id":457,"name":"pipe","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"pipe"}]},{"tag":"@description","content":[{"kind":"text","text":"管道执行函数"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个管道函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst add = (x, y) => x + y;\r\nconst multiply2 = (x) => x * 2;\r\nconst multiplyAndAdd = pipe(add, multiply2);\r\nmultiplyAndAdd(5, 2);\n```"}]}]},"typeParameter":[{"id":458,"name":"T","kind":131072,"kindString":"Type parameter","flags":{},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"parameters":[{"id":459,"name":"fns","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"函数数组"}]},"type":{"type":"array","elementType":{"type":"reflection","declaration":{"id":460,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":187,"character":56,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L187"}],"signatures":[{"id":461,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":462,"name":"arg","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"any"}}]}}},"text":{"comment":"

函数数组

\n"}}],"type":{"type":"reflection","declaration":{"id":463,"name":"pipe","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":187,"character":56,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L187"}],"signatures":[{"id":464,"name":"pipe","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":465,"name":"arg","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}},"text":{}}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"Function.Function.pipe","hash":"pipe.__type"},"text":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":187,"character":56,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L187"}],"parentId":456}],"location":{"query":"Function.Function.pipe","hash":"pipe"}}},"is":{"declaration":false},"location":{"query":"Function.Function.pipe","hash":"pipe"},"text":{"comment":"
Function:

pipe

\n
Description:

管道执行函数

\n
Returns:

返回一个管道函数

\n
Example:
const add = (x, y) => x + y;\nconst multiply2 = (x) => x * 2;\nconst multiplyAndAdd = pipe(add, multiply2);\nmultiplyAndAdd(5, 2);\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":187,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L187"}],"parentId":456}],"is":{"declaration":true},"location":{"query":"Function.Function.pipe","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.promisify.json b/docs/v1.0.0-beta01/data/Function.Function.promisify.json new file mode 100644 index 00000000..c1f44479 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.promisify.json @@ -0,0 +1 @@ +{"id":473,"name":"promisify","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":270,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L270"}],"signatures":[{"id":474,"name":"promisify","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"promisify"}]},{"tag":"@description","content":[{"kind":"text","text":"函数执行promise化"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个promise函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nimport fs from 'fs';\r\nconst readFileAsync = promisify(fs.readFile);\r\n\nasync function main() {\r\n const data = await readFileAsync('file.txt', 'utf8');\r\n console.log(data);\r\n}\r\nmain();\n```"}]}]},"typeParameter":[{"id":475,"name":"T","kind":131072,"kindString":"Type parameter","flags":{},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}},{"id":476,"name":"R","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":477,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要promise化的函数"}]},"type":{"type":"reflection","declaration":{"id":478,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":271,"character":6,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L271"}],"signatures":[{"id":479,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":480,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"tuple","elements":[{"type":"named-tuple-member","name":"args","isOptional":false,"element":{"type":"reference","id":475,"name":"T"}},{"type":"named-tuple-member","name":"errHandler","isOptional":true,"element":{"type":"reflection","declaration":{"id":481,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":271,"character":39,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L271"}],"signatures":[{"id":482,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":483,"name":"err","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]}},{"id":484,"name":"result","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","id":476,"name":"R"}}],"type":{"type":"intrinsic","name":"void"}}]}}}]}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{"comment":"

要promise化的函数

\n"}}],"type":{"type":"reflection","declaration":{"id":485,"name":"promisify","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":272,"character":3,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L272"}],"signatures":[{"id":486,"name":"promisify","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":487,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"reference","id":475,"name":"T"},"text":{}}],"type":{"type":"reference","typeArguments":[{"type":"reference","id":476,"name":"R"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"Function.Function.promisify","hash":"promisify.__type"},"text":{},"parentId":473}],"location":{"query":"Function.Function.promisify","hash":"promisify"}}},"is":{"declaration":false},"location":{"query":"Function.Function.promisify","hash":"promisify"},"text":{"comment":"
Function:

promisify

\n
Description:

函数执行promise化

\n
Returns:

返回一个promise函数

\n
Example:
import fs from 'fs';\nconst readFileAsync = promisify(fs.readFile);\n\nasync function main() {\n const data = await readFileAsync('file.txt', 'utf8');\n console.log(data);\n}\nmain();\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":270,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L270"}],"parentId":473}],"is":{"declaration":true},"location":{"query":"Function.Function.promisify","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.runPromisesInSeries.json b/docs/v1.0.0-beta01/data/Function.Function.runPromisesInSeries.json new file mode 100644 index 00000000..aed0dc57 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.runPromisesInSeries.json @@ -0,0 +1 @@ +{"id":408,"name":"runPromisesInSeries","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":74,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L74"}],"signatures":[{"id":409,"name":"runPromisesInSeries","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"runPromisesInSeries"}]},{"tag":"@description","content":[{"kind":"text","text":"队列执行promise"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个promise"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nasync function fetchData(url: string) {\r\n const response = await fetch(url);\r\n const data = await response.json();\r\n return data;\r\n}\r\n\nconst urls = ['https://api.example.com/data1', 'https://api.example.com/data2', 'https://api.example.com/data3'];\r\n\nrunPromisesInSeries(urls.map(url => () => fetchData(url)))\r\n .then(results => console.log(results))\r\n .catch(error => console.error(error));\n```"}]}]},"parameters":[{"id":410,"name":"ps","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"promise数组"}]},"type":{"type":"array","elementType":{"type":"reflection","declaration":{"id":411,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":74,"character":46,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L74"}],"signatures":[{"id":412,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":413,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]}}},"text":{"comment":"

promise数组

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"Function.Function.runPromisesInSeries","hash":"runPromisesInSeries"},"text":{"comment":"
Function:

runPromisesInSeries

\n
Description:

队列执行promise

\n
Returns:

返回一个promise

\n
Example:
async function fetchData(url: string) {\n const response = await fetch(url);\n const data = await response.json();\n return data;\n}\n\nconst urls = ['https://api.example.com/data1', 'https://api.example.com/data2', 'https://api.example.com/data3'];\n\nrunPromisesInSeries(urls.map(url => () => fetchData(url)))\n .then(results => console.log(results))\n .catch(error => console.error(error));\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":74,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L74"}],"parentId":408}],"is":{"declaration":true},"location":{"query":"Function.Function.runPromisesInSeries","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.sleep.json b/docs/v1.0.0-beta01/data/Function.Function.sleep.json new file mode 100644 index 00000000..b1dfaec9 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.sleep.json @@ -0,0 +1 @@ +{"id":488,"name":"sleep","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":294,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L294"}],"signatures":[{"id":489,"name":"sleep","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"sleep"}]},{"tag":"@description","content":[{"kind":"text","text":"延迟ms执行"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个promise"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nasync function main() {\r\n console.log(\"Doing something...\");\r\n await sleep(5000);\r\n console.log(\"Doing something else...\");\r\n}\r\nmain();\n```"}]}]},"parameters":[{"id":490,"name":"ms","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"延迟时间"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

延迟时间

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"Function.Function.sleep","hash":"sleep"},"text":{"comment":"
Function:

sleep

\n
Description:

延迟ms执行

\n
Returns:

返回一个promise

\n
Example:
async function main() {\n console.log(\"Doing something...\");\n await sleep(5000);\n console.log(\"Doing something else...\");\n}\nmain();\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":294,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L294"}],"parentId":488}],"is":{"declaration":true},"location":{"query":"Function.Function.sleep","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.throttle.json b/docs/v1.0.0-beta01/data/Function.Function.throttle.json new file mode 100644 index 00000000..989e32a6 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.throttle.json @@ -0,0 +1 @@ +{"id":491,"name":"throttle","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":315,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L315"}],"signatures":[{"id":492,"name":"throttle","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"throttle"}]},{"tag":"@description","content":[{"kind":"text","text":"节流函数"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个节流函数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfunction log(message: string) {\r\n console.log(message);\r\n}\r\nconst logThrottled = throttle(log, 1000);\r\n\n// 在 1 秒内连续调用函数,只会执行一次,并在 1 秒后再次执行\r\nsetInterval(() => logThrottled('Hello, world!'), 200);\n```"}]}]},"typeParameter":[{"id":496,"name":"F","kind":131072,"kindString":"Type parameter","flags":{},"type":{"type":"reflection","declaration":{"id":493,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":315,"character":35,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L315"}],"signatures":[{"id":494,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":495,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"any"}}]}}}],"parameters":[{"id":497,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要执行的函数"}]},"type":{"type":"reference","id":496,"name":"F"},"text":{"comment":"

要执行的函数

\n"}},{"id":498,"name":"intervalTime","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"间隔时间"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"DEFAULT_INTERVAL","text":{"comment":"

间隔时间

\n"}}],"type":{"type":"reflection","declaration":{"id":499,"name":"throttle","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":318,"character":3,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L318"}],"signatures":[{"id":500,"name":"throttle","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":501,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"reference","typeArguments":[{"type":"reference","id":496,"name":"F"}],"name":"Parameters","qualifiedName":"Parameters","package":"typescript"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"Function.Function.throttle","hash":"throttle.__type"},"text":{},"parentId":491}],"location":{"query":"Function.Function.throttle","hash":"throttle"}}},"is":{"declaration":false},"location":{"query":"Function.Function.throttle","hash":"throttle"},"text":{"comment":"
Function:

throttle

\n
Description:

节流函数

\n
Returns:

返回一个节流函数

\n
Example:
function log(message: string) {\n console.log(message);\n}\nconst logThrottled = throttle(log, 1000);\n\n// 在 1 秒内连续调用函数,只会执行一次,并在 1 秒后再次执行\nsetInterval(() => logThrottled('Hello, world!'), 200);\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":315,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L315"}],"parentId":491}],"is":{"declaration":true},"location":{"query":"Function.Function.throttle","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Function.Function.timeTaken.json b/docs/v1.0.0-beta01/data/Function.Function.timeTaken.json new file mode 100644 index 00000000..52e22ca6 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Function.Function.timeTaken.json @@ -0,0 +1 @@ +{"id":414,"name":"timeTaken","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":92,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L92"}],"signatures":[{"id":415,"name":"timeTaken","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"timeTaken"}]},{"tag":"@description","content":[{"kind":"text","text":"测量执行一个函数所需要的时间"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回函数执行的结果"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nasync function fetchData(url: string) {\r\n const response = await fetch(url);\r\n const data = await response.json();\r\n return data;\r\n}\r\n\nawait timeTaken(fetchData, 'https://api.example.com/data');\n```"}]}]},"parameters":[{"id":416,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要执行的函数"}]},"type":{"type":"reflection","declaration":{"id":417,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/function.ts","line":92,"character":30,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L92"}],"signatures":[{"id":418,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":419,"name":"ks","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}}],"type":{"type":"intrinsic","name":"unknown"}}]}},"text":{"comment":"

要执行的函数

\n"}},{"id":420,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}},"text":{}}],"type":{"type":"intrinsic","name":"unknown"},"is":{"declaration":false},"location":{"query":"Function.Function.timeTaken","hash":"timeTaken"},"text":{"comment":"
Function:

timeTaken

\n
Description:

测量执行一个函数所需要的时间

\n
Returns:

返回函数执行的结果

\n
Example:
async function fetchData(url: string) {\n const response = await fetch(url);\n const data = await response.json();\n return data;\n}\n\nawait timeTaken(fetchData, 'https://api.example.com/data');\n
\n"},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":92,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L92"}],"parentId":414}],"is":{"declaration":true},"location":{"query":"Function.Function.timeTaken","hash":""},"text":{},"parentId":391} diff --git a/docs/v1.0.0-beta01/data/Image.Function.compressImage.json b/docs/v1.0.0-beta01/data/Image.Function.compressImage.json new file mode 100644 index 00000000..21636bad --- /dev/null +++ b/docs/v1.0.0-beta01/data/Image.Function.compressImage.json @@ -0,0 +1 @@ +{"id":1098,"name":"compressImage","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":144,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L144"}],"signatures":[{"id":1099,"name":"compressImage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"compressImage"}]},{"tag":"@description","content":[{"kind":"text","text":"进行图片压缩并输出base64"}]},{"tag":"@returns","content":[{"kind":"text","text":"base64图片"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst img = new Image();\r\n img.src = 'https://blog.michealwayne.cn/favicon.png';\r\n img.onload = () => console.log(compressImage(img, 0.3)); // 输出压缩后的base64\n```"}]}]},"parameters":[{"id":1100,"name":"img","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"HTMLImageElement","qualifiedName":"HTMLImageElement","package":"typescript"},"text":{}},{"id":1101,"name":"rate","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Image.Function.compressImage","hash":"compressImage"},"text":{"comment":"
Function:

compressImage

\n
Description:

进行图片压缩并输出base64

\n
Returns:

base64图片

\n
Example:
const img = new Image();\n  img.src = 'https://blog.michealwayne.cn/favicon.png';\n  img.onload = () => console.log(compressImage(img, 0.3)); // 输出压缩后的base64\n
\n"},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":144,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L144"}],"parentId":1098}],"is":{"declaration":true},"location":{"query":"Image.Function.compressImage","hash":""},"text":{},"parentId":1082} diff --git a/docs/v1.0.0-beta01/data/Image.Function.cropImage.json b/docs/v1.0.0-beta01/data/Image.Function.cropImage.json new file mode 100644 index 00000000..b1ada295 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Image.Function.cropImage.json @@ -0,0 +1 @@ +{"id":1091,"name":"cropImage","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":113,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L113"}],"signatures":[{"id":1092,"name":"cropImage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"imageToBlob"}]},{"tag":"@description","content":[{"kind":"text","text":"将图片转为Blob对象,可用于上传"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\n// 从一个图片元素中裁剪出一个 100x100 大小的矩形,起始坐标为 (50, 50)\r\nconst image = document.querySelector('img');\r\nconst croppedCanvas = cropImage(image, 50, 50, 100, 100);\r\n\n// 将裁剪后的 canvas 元素插入到页面中\r\ndocument.body.appendChild(croppedCanvas);\r\n\n// 从一个 canvas 元素中裁剪出一个 200x100 大小的矩形,起始坐标为 (0, 0)\r\nconst canvas = document.querySelector('canvas');\r\nconst croppedCanvas = cropImage(canvas, 0, 0, 200, 100);\r\n\n// 将裁剪后的 canvas 元素插入到页面中\r\ndocument.body.appendChild(croppedCanvas);\n```"}]}]},"parameters":[{"id":1093,"name":"src","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"图片/canvase元素"}]},"type":{"type":"union","types":[{"type":"reference","name":"HTMLCanvasElement","qualifiedName":"HTMLCanvasElement","package":"typescript"},{"type":"reference","name":"HTMLImageElement","qualifiedName":"HTMLImageElement","package":"typescript"}]},"text":{"comment":"

图片/canvase元素

\n"}},{"id":1094,"name":"x","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"位置x,裁剪图片起始坐标"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

位置x,裁剪图片起始坐标

\n"}},{"id":1095,"name":"y","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"位置y,裁剪图片起始坐标"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

位置y,裁剪图片起始坐标

\n"}},{"id":1096,"name":"width","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"裁剪图片宽度"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

裁剪图片宽度

\n"}},{"id":1097,"name":"height","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"裁剪图片高度"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

裁剪图片高度

\n"}}],"type":{"type":"reference","name":"HTMLCanvasElement","qualifiedName":"HTMLCanvasElement","package":"typescript"},"is":{"declaration":false},"location":{"query":"Image.Function.cropImage","hash":"cropImage"},"text":{"comment":"
Function:

imageToBlob

\n
Description:

将图片转为Blob对象,可用于上传

\n
Example:
// 从一个图片元素中裁剪出一个 100x100 大小的矩形,起始坐标为 (50, 50)\nconst image = document.querySelector('img');\nconst croppedCanvas = cropImage(image, 50, 50, 100, 100);\n\n// 将裁剪后的 canvas 元素插入到页面中\ndocument.body.appendChild(croppedCanvas);\n\n// 从一个 canvas 元素中裁剪出一个 200x100 大小的矩形,起始坐标为 (0, 0)\nconst canvas = document.querySelector('canvas');\nconst croppedCanvas = cropImage(canvas, 0, 0, 200, 100);\n\n// 将裁剪后的 canvas 元素插入到页面中\ndocument.body.appendChild(croppedCanvas);\n
\n"},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":113,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L113"}],"parentId":1091}],"is":{"declaration":true},"location":{"query":"Image.Function.cropImage","hash":""},"text":{},"parentId":1082} diff --git a/docs/v1.0.0-beta01/data/Image.Function.getImageSize.json b/docs/v1.0.0-beta01/data/Image.Function.getImageSize.json new file mode 100644 index 00000000..287c34e7 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Image.Function.getImageSize.json @@ -0,0 +1 @@ +{"id":1086,"name":"getImageSize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":52,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L52"}],"signatures":[{"id":1087,"name":"getImageSize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getImageSize"}]},{"tag":"@description","content":[{"kind":"text","text":"获取图片的原始尺寸大小(用了naturalWidth/naturalHeight)"}]},{"tag":"@returns","content":[{"kind":"text","text":"图片尺寸"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetImageSize('https://example.com/image.jpg')\r\n .then(function(result) {\r\n console.log('图片大小:', result.width, 'x', result.height);\r\n })\r\n .catch(function(error) {\r\n console.log('无法获取图片大小:', error);\r\n });\n```"}]}]},"parameters":[{"id":1088,"name":"imgUrl","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"图片地址"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

图片地址

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"Image.Function.getImageSize","hash":"getImageSize"},"text":{"comment":"
Function:

getImageSize

\n
Description:

获取图片的原始尺寸大小(用了naturalWidth/naturalHeight)

\n
Returns:

图片尺寸

\n
Example:
getImageSize('https://example.com/image.jpg')\n .then(function(result) {\n   console.log('图片大小:', result.width, 'x', result.height);\n })\n .catch(function(error) {\n   console.log('无法获取图片大小:', error);\n });\n
\n"},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":52,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L52"}],"parentId":1086}],"is":{"declaration":true},"location":{"query":"Image.Function.getImageSize","hash":""},"text":{},"parentId":1082} diff --git a/docs/v1.0.0-beta01/data/Image.Function.isImageLoaded.json b/docs/v1.0.0-beta01/data/Image.Function.isImageLoaded.json new file mode 100644 index 00000000..659731cb --- /dev/null +++ b/docs/v1.0.0-beta01/data/Image.Function.isImageLoaded.json @@ -0,0 +1 @@ +{"id":1083,"name":"isImageLoaded","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L23"}],"signatures":[{"id":1084,"name":"isImageLoaded","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isImageLoaded"}]},{"tag":"@description","content":[{"kind":"text","text":"加载图片(通常用于预加载)"}]},{"tag":"@returns","content":[{"kind":"text","text":"图片加载状态"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisImageLoaded('https://example.com/image.jpg')\r\n .then(function(result) {\r\n console.log('图片加载完成');\r\n console.log(result);\r\n })\r\n .catch(function(result) {\r\n console.log('图片加载失败');\r\n console.log(result);\r\n });\n```"}]}]},"parameters":[{"id":1085,"name":"imgUrl","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"图片地址"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

图片地址

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"Image.Function.isImageLoaded","hash":"isImageLoaded"},"text":{"comment":"
Function:

isImageLoaded

\n
Description:

加载图片(通常用于预加载)

\n
Returns:

图片加载状态

\n
Example:
isImageLoaded('https://example.com/image.jpg')\n .then(function(result) {\n   console.log('图片加载完成');\n   console.log(result);\n })\n .catch(function(result) {\n   console.log('图片加载失败');\n   console.log(result);\n });\n
\n"},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L23"}],"parentId":1083}],"is":{"declaration":true},"location":{"query":"Image.Function.isImageLoaded","hash":""},"text":{},"parentId":1082} diff --git a/docs/v1.0.0-beta01/data/Image.Function.isSupportWebP.json b/docs/v1.0.0-beta01/data/Image.Function.isSupportWebP.json new file mode 100644 index 00000000..4a159013 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Image.Function.isSupportWebP.json @@ -0,0 +1 @@ +{"id":1089,"name":"isSupportWebP","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":83,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L83"}],"signatures":[{"id":1090,"name":"isSupportWebP","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isSupportWebP"}]},{"tag":"@description","content":[{"kind":"text","text":"页面当前所处环境是否支持webp格式图片"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否支持webp格式图片"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst imgEl = document.createElement('img');\r\nif (isSupportWebP()) {\r\n imgEl.src = 'image.webp';\r\n} else {\r\n imgEl.src = 'image.png';\r\n}\r\ndocument.body.appendChild(imgEl);\n```"}]}]},"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Image.Function.isSupportWebP","hash":"isSupportWebP"},"text":{"comment":"
Function:

isSupportWebP

\n
Description:

页面当前所处环境是否支持webp格式图片

\n
Returns:

是否支持webp格式图片

\n
Example:
const imgEl = document.createElement('img');\nif (isSupportWebP()) {\n imgEl.src = 'image.webp';\n} else {\n imgEl.src = 'image.png';\n}\ndocument.body.appendChild(imgEl);\n
\n"},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":83,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L83"}],"parentId":1089}],"is":{"declaration":true},"location":{"query":"Image.Function.isSupportWebP","hash":""},"text":{},"parentId":1082} diff --git a/docs/v1.0.0-beta01/data/Math.Function.factorial.json b/docs/v1.0.0-beta01/data/Math.Function.factorial.json new file mode 100644 index 00000000..a61aa0bd --- /dev/null +++ b/docs/v1.0.0-beta01/data/Math.Function.factorial.json @@ -0,0 +1 @@ +{"id":542,"name":"factorial","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":17,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L17"}],"signatures":[{"id":543,"name":"factorial","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"factorial"}]},{"tag":"@description","content":[{"kind":"text","text":"获取斐波那契数列第n项的值"}]},{"tag":"@returns","content":[{"kind":"text","text":"阶乘结果"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfactorial(5); // 120\r\nfactorial(0); // 1\n```"}]}]},"parameters":[{"id":544,"name":"n","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"阶乘数"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

阶乘数

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Math.Function.factorial","hash":"factorial"},"text":{"comment":"
Function:

factorial

\n
Description:

获取斐波那契数列第n项的值

\n
Returns:

阶乘结果

\n
Example:
factorial(5); // 120\nfactorial(0); // 1\n
\n"},"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":17,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L17"}],"parentId":542}],"is":{"declaration":true},"location":{"query":"Math.Function.factorial","hash":""},"text":{},"parentId":541} diff --git a/docs/v1.0.0-beta01/data/Math.Function.gcd.json b/docs/v1.0.0-beta01/data/Math.Function.gcd.json new file mode 100644 index 00000000..717f7241 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Math.Function.gcd.json @@ -0,0 +1 @@ +{"id":545,"name":"gcd","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":39,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L39"}],"signatures":[{"id":546,"name":"gcd","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"gcd"}]},{"tag":"@description","content":[{"kind":"text","text":"计算两个数的最大公约数"}]},{"tag":"@returns","content":[{"kind":"text","text":"最大公约数,如果y为0,则返回x"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngcd(12, 18); // 6\r\ngcd(12, 0); // 12\r\ngcd(1, 1); // 1\n```"}]}]},"parameters":[{"id":547,"name":"x","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字x"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字x

\n"}},{"id":548,"name":"y","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字y"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字y

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Math.Function.gcd","hash":"gcd"},"text":{"comment":"
Function:

gcd

\n
Description:

计算两个数的最大公约数

\n
Returns:

最大公约数,如果y为0,则返回x

\n
Example:
gcd(12, 18); // 6\ngcd(12, 0); // 12\ngcd(1, 1); // 1\n
\n"},"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":39,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L39"}],"parentId":545}],"is":{"declaration":true},"location":{"query":"Math.Function.gcd","hash":""},"text":{},"parentId":541} diff --git a/docs/v1.0.0-beta01/data/Math.Function.isDivisible.json b/docs/v1.0.0-beta01/data/Math.Function.isDivisible.json new file mode 100644 index 00000000..76177c3b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Math.Function.isDivisible.json @@ -0,0 +1 @@ +{"id":549,"name":"isDivisible","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":53,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L53"}],"signatures":[{"id":550,"name":"isDivisible","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isDivisible"}]},{"tag":"@description","content":[{"kind":"text","text":"检查一个数是否可以被另一个数整除"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否可以整除"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisDivisible(12, 3); // true\r\nisDivisible(12, 5); // false\n```"}]}]},"parameters":[{"id":551,"name":"dividend","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"被除数"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

被除数

\n"}},{"id":552,"name":"divisor","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"除数"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

除数

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Math.Function.isDivisible","hash":"isDivisible"},"text":{"comment":"
Function:

isDivisible

\n
Description:

检查一个数是否可以被另一个数整除

\n
Returns:

是否可以整除

\n
Example:
isDivisible(12, 3); // true\nisDivisible(12, 5); // false\n
\n"},"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":53,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L53"}],"parentId":549}],"is":{"declaration":true},"location":{"query":"Math.Function.isDivisible","hash":""},"text":{},"parentId":541} diff --git a/docs/v1.0.0-beta01/data/Math.Function.lcm.json b/docs/v1.0.0-beta01/data/Math.Function.lcm.json new file mode 100644 index 00000000..5ef8ecab --- /dev/null +++ b/docs/v1.0.0-beta01/data/Math.Function.lcm.json @@ -0,0 +1 @@ +{"id":553,"name":"lcm","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":68,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L68"}],"signatures":[{"id":554,"name":"lcm","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"lcm"}]},{"tag":"@description","content":[{"kind":"text","text":"用于计算两个数字的最小公倍数"}]},{"tag":"@need","content":[{"kind":"text","text":"gcd"}]},{"tag":"@returns","content":[{"kind":"text","text":"最小公倍数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nlcm(12, 18); // 36\r\nlcm(12, 0); // 0\n```"}]}]},"parameters":[{"id":555,"name":"x","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字x"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字x

\n"}},{"id":556,"name":"y","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字y"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字y

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Math.Function.lcm","hash":"lcm"},"text":{"comment":"
Function:

lcm

\n
Description:

用于计算两个数字的最小公倍数

\n
Need:

gcd

\n
Returns:

最小公倍数

\n
Example:
lcm(12, 18); // 36\nlcm(12, 0); // 0\n
\n"},"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":68,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L68"}],"parentId":553}],"is":{"declaration":true},"location":{"query":"Math.Function.lcm","hash":""},"text":{},"parentId":541} diff --git a/docs/v1.0.0-beta01/data/Module.Array.json b/docs/v1.0.0-beta01/data/Module.Array.json new file mode 100644 index 00000000..c4ef8bab --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Array.json @@ -0,0 +1 @@ +{"id":154,"name":"Array","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"array functions"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-12-22 09:47:07"}]}]},"originalName":"utils/src/array","children":[],"groups":[{"title":"Type Aliases","children":[300,299]},{"title":"Functions","children":[301,161,155,158,164,170,174,178,183,187,192,199,203,290,211,216,268,293,275,195,224,278,228,232,240,296,249,282,258,261,265,167,272]}],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":8,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L8"}],"is":{"declaration":true},"location":{"query":"Module.Array","hash":""},"text":{"comment":"
Description:

array functions

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-12-22 09:47:07

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.CSS.json b/docs/v1.0.0-beta01/data/Module.CSS.json new file mode 100644 index 00000000..e3fe2b71 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.CSS.json @@ -0,0 +1 @@ +{"id":976,"name":"CSS","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 10:14:19"}]}]},"originalName":"web-utils/src/css","children":[],"groups":[{"title":"Functions","children":[983,977,979]}],"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":8,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L8"}],"is":{"declaration":true},"location":{"query":"Module.CSS","hash":""},"text":{"comment":"
Author:

Wayne

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-08-25 10:14:19

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Check.json b/docs/v1.0.0-beta01/data/Module.Check.json new file mode 100644 index 00000000..7e1370dc --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Check.json @@ -0,0 +1 @@ +{"id":327,"name":"Check","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"check functions"}]},{"tag":"@notice","content":[{"kind":"text","text":"其他判断可见check.plus.ts,或工具中regex.json"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:23:11"}]}]},"originalName":"utils/src/check","children":[],"groups":[{"title":"Functions","children":[343,328,331,337,340,334]}],"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":22,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L22"}],"is":{"declaration":true},"location":{"query":"Module.Check","hash":""},"text":{"comment":"
Description:

check functions

\n
Notice:

其他判断可见check.plus.ts,或工具中regex.json

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-08-25 13:23:11

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Color.json b/docs/v1.0.0-beta01/data/Module.Color.json new file mode 100644 index 00000000..b65ddf14 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Color.json @@ -0,0 +1 @@ +{"id":346,"name":"Color","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"handle color format"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:24:54"}]}]},"originalName":"utils/src/color","children":[],"groups":[{"title":"Functions","children":[349,352,356,347]}],"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":15,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L15"}],"is":{"declaration":true},"location":{"query":"Module.Color","hash":""},"text":{"comment":"
Description:

handle color format

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-08-25 13:24:54

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Cookie.json b/docs/v1.0.0-beta01/data/Module.Cookie.json new file mode 100644 index 00000000..18503339 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Cookie.json @@ -0,0 +1 @@ +{"id":962,"name":"Cookie","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@note","content":[{"kind":"text","text":"目前不建议操作cookie,可见google Chrome《为停用第三方 Cookie 做好准备》:https://developers.google.com/privacy-sandbox/3pcd?hl=zh-cn"}]},{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:53:56"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 10:00:55"}]}]},"originalName":"web-utils/src/cookies","children":[],"groups":[{"title":"Functions","children":[973,963,966]}],"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":19,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L19"}],"is":{"declaration":true},"location":{"query":"Module.Cookie","hash":""},"text":{"comment":"
Note:

目前不建议操作cookie,可见google Chrome《为停用第三方 Cookie 做好准备》:https://developers.google.com/privacy-sandbox/3pcd?hl=zh-cn

\n
Author:

Wayne

\n
Date:

2020-04-11 21:53:56

\n
Lastedittime:

2024-08-25 10:00:55

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.DOM.json b/docs/v1.0.0-beta01/data/Module.DOM.json new file mode 100644 index 00000000..9203af70 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.DOM.json @@ -0,0 +1 @@ +{"id":987,"name":"DOM","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 10:14:25"}]}]},"originalName":"web-utils/src/dom","children":[],"groups":[{"title":"Functions","children":[996,1047,1054,1012,1027,1030,1038,1036,992,1016,1004,1008,988,990,1019,1000,1056,1022,1044,1051]}],"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":7,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L7"}],"is":{"declaration":true},"location":{"query":"Module.DOM","hash":""},"text":{"comment":"
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-08-25 10:14:25

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Date.json b/docs/v1.0.0-beta01/data/Module.Date.json new file mode 100644 index 00000000..de95dc29 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Date.json @@ -0,0 +1 @@ +{"id":359,"name":"Date","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"date functions."}]},{"tag":"@notice","content":[{"kind":"text","text":"存在复杂的日期处理场景建议直接使用date-fns"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:27:43"}]}]},"originalName":"utils/src/date","children":[],"groups":[{"title":"Functions","children":[360,378,363,366,382,370,374]}],"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":18,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L18"}],"is":{"declaration":true},"location":{"query":"Module.Date","hash":""},"text":{"comment":"
Description:

date functions.

\n
Notice:

存在复杂的日期处理场景建议直接使用date-fns

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-08-25 13:27:43

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Easing.json b/docs/v1.0.0-beta01/data/Module.Easing.json new file mode 100644 index 00000000..28e9d83b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Easing.json @@ -0,0 +1 @@ +{"id":1,"name":"Easing","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"Animation easing functions"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2023-06-17 14:15:52"}]}]},"originalName":"utils/src/Easing","children":[],"groups":[{"title":"Type Aliases","children":[2]},{"title":"Variables","children":[6]}],"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":8,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L8"}],"is":{"declaration":true},"location":{"query":"Module.Easing","hash":""},"text":{"comment":"
Description:

Animation easing functions

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2023-06-17 14:15:52

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Function.json b/docs/v1.0.0-beta01/data/Module.Function.json new file mode 100644 index 00000000..a8497b08 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Function.json @@ -0,0 +1 @@ +{"id":391,"name":"Function","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@createTime","content":[{"kind":"text","text":"2022-03-12 14:44:00"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:37:59"}]}]},"originalName":"utils/src/function","children":[],"groups":[{"title":"Functions","children":[510,392,440,446,512,502,401,466,421,431,456,473,408,488,491,414]}],"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":13,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L13"}],"is":{"declaration":true},"location":{"query":"Module.Function","hash":""},"text":{"comment":"
Author:

Wayne

\n
Createtime:

2022-03-12 14:44:00

\n
Lastedittime:

2024-08-25 13:37:59

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Image.json b/docs/v1.0.0-beta01/data/Module.Image.json new file mode 100644 index 00000000..52d30eb2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Image.json @@ -0,0 +1 @@ +{"id":1082,"name":"Image","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 10:14:40"}]}]},"originalName":"web-utils/src/image","children":[],"groups":[{"title":"Functions","children":[1098,1091,1086,1083,1089]}],"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L23"}],"is":{"declaration":true},"location":{"query":"Module.Image","hash":""},"text":{"comment":"
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-08-25 10:14:40

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Math.json b/docs/v1.0.0-beta01/data/Module.Math.json new file mode 100644 index 00000000..a8fa21d7 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Math.json @@ -0,0 +1 @@ +{"id":541,"name":"Math","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"math functions"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:44:02"}]}]},"originalName":"utils/src/math","children":[],"groups":[{"title":"Functions","children":[542,545,549,553]}],"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":17,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L17"}],"is":{"declaration":true},"location":{"query":"Module.Math","hash":""},"text":{"comment":"
Description:

math functions

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-08-25 13:44:02

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Number.json b/docs/v1.0.0-beta01/data/Module.Number.json new file mode 100644 index 00000000..694436fd --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Number.json @@ -0,0 +1 @@ +{"id":557,"name":"Number","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"number functions"}]},{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2023-02-09 15:08:11"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:50:37"}]}]},"originalName":"utils/src/number","children":[],"groups":[{"title":"Functions","children":[569,592,564,600,597,558,561,580,572,576,585,589]}],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":9,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L9"}],"is":{"declaration":true},"location":{"query":"Module.Number","hash":""},"text":{"comment":"
Description:

number functions

\n
Author:

Wayne

\n
Date:

2023-02-09 15:08:11

\n
Lastedittime:

2024-08-25 13:50:37

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Object.json b/docs/v1.0.0-beta01/data/Module.Object.json new file mode 100644 index 00000000..5b6bbfca --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Object.json @@ -0,0 +1 @@ +{"id":603,"name":"Object","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"object functions"}]},{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2022-07-05 13:53:42"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:52:25"}]}]},"originalName":"utils/src/object","children":[],"groups":[{"title":"Type Aliases","children":[639]},{"title":"Functions","children":[604,631,636,616,613,627]}],"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":9,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L9"}],"is":{"declaration":true},"location":{"query":"Module.Object","hash":""},"text":{"comment":"
Description:

object functions

\n
Author:

Wayne

\n
Date:

2022-07-05 13:53:42

\n
Lastedittime:

2024-08-25 13:52:25

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Others.json b/docs/v1.0.0-beta01/data/Module.Others.json new file mode 100644 index 00000000..f2ab7027 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Others.json @@ -0,0 +1 @@ +{"id":643,"name":"Others","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2023-02-06 21:17:44"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-12-22 11:19:14"}]}]},"originalName":"utils/src/others","children":[],"groups":[{"title":"Functions","children":[644,648]}],"sources":[{"fileName":"utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/others.ts","line":31,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/others.ts#L31"}],"is":{"declaration":true},"location":{"query":"Module.Others","hash":""},"text":{"comment":"
Author:

Wayne

\n
Date:

2023-02-06 21:17:44

\n
Lastedittime:

2024-12-22 11:19:14

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Platform.json b/docs/v1.0.0-beta01/data/Module.Platform.json new file mode 100644 index 00000000..f3e95e75 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Platform.json @@ -0,0 +1 @@ +{"id":1138,"name":"Platform","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@notice","content":[{"kind":"text","text":"存在复杂的判断场景可以直接使用ua-parser-js / mobile-detect.js"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-12-01 11:06:34"}]}]},"originalName":"web-utils/src/platform","children":[],"groups":[{"title":"Variables","children":[1154]},{"title":"Functions","children":[1152,1147,1145,1141,1143,1139]}],"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":13,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L13"}],"is":{"declaration":true},"location":{"query":"Module.Platform","hash":""},"text":{"comment":"
Notice:

存在复杂的判断场景可以直接使用ua-parser-js / mobile-detect.js

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2024-12-01 11:06:34

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Screen.json b/docs/v1.0.0-beta01/data/Module.Screen.json new file mode 100644 index 00000000..75b5c17c --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Screen.json @@ -0,0 +1 @@ +{"id":1159,"name":"Screen","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2022-08-31 16:05:14"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 10:19:02"}]}]},"originalName":"web-utils/src/screen","children":[],"groups":[{"title":"Functions","children":[1164,1167,1169,1171,1160,1162]}],"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":15,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L15"}],"is":{"declaration":true},"location":{"query":"Module.Screen","hash":""},"text":{"comment":"
Author:

Wayne

\n
Date:

2022-08-31 16:05:14

\n
Lastedittime:

2024-08-25 10:19:02

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.String.json b/docs/v1.0.0-beta01/data/Module.String.json new file mode 100644 index 00000000..6b25a010 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.String.json @@ -0,0 +1 @@ +{"id":651,"name":"String","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2022-07-11 13:34:54"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:54:44"}]}]},"originalName":"utils/src/string","children":[],"groups":[{"title":"Functions","children":[652,687,655,658,661,673,684,670,677,664,667,680]}],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":18,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L18"}],"is":{"declaration":true},"location":{"query":"Module.String","hash":""},"text":{"comment":"
Author:

Wayne

\n
Date:

2022-07-11 13:34:54

\n
Lastedittime:

2024-08-25 13:54:44

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Trade.json b/docs/v1.0.0-beta01/data/Module.Trade.json new file mode 100644 index 00000000..5f843860 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Trade.json @@ -0,0 +1 @@ +{"id":690,"name":"Trade","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"trade functions"}]},{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2022-04-11 21:45:54"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 13:55:11"}]}]},"originalName":"utils/src/trade","children":[],"groups":[{"title":"Functions","children":[691,694]}],"sources":[{"fileName":"utils/src/trade.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/trade.ts","line":19,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/trade.ts#L19"}],"is":{"declaration":true},"location":{"query":"Module.Trade","hash":""},"text":{"comment":"
Description:

trade functions

\n
Author:

Wayne

\n
Date:

2022-04-11 21:45:54

\n
Lastedittime:

2024-08-25 13:55:11

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Type.json b/docs/v1.0.0-beta01/data/Module.Type.json new file mode 100644 index 00000000..a7cea035 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Type.json @@ -0,0 +1 @@ +{"id":699,"name":"Type","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"value type functions"}]},{"tag":"@Date","content":[{"kind":"text","text":"2020-04-11 21:55:46"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2023-06-17 10:26:44"}]}]},"originalName":"utils/src/type","children":[],"groups":[{"title":"Functions","children":[718,722,729,715,709,712,725,706,703,700]}],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L23"}],"is":{"declaration":true},"location":{"query":"Module.Type","hash":""},"text":{"comment":"
Description:

value type functions

\n
Date:

2020-04-11 21:55:46

\n
Lastedittime:

2023-06-17 10:26:44

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.Url.json b/docs/v1.0.0-beta01/data/Module.Url.json new file mode 100644 index 00000000..28f7c2fb --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.Url.json @@ -0,0 +1 @@ +{"id":1192,"name":"Url","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@notice","content":[{"kind":"text","text":"如无兼容要求,可直接用URL对象进行处理"}]},{"tag":"@Date","content":[{"kind":"text","text":"2022-08-24 14:18:25"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 10:21:38"}]}]},"originalName":"web-utils/src/url","children":[],"groups":[{"title":"Functions","children":[1212,1215,1196,1203,1206,1193,1218]}],"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":17,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L17"}],"is":{"declaration":true},"location":{"query":"Module.Url","hash":""},"text":{"comment":"
Notice:

如无兼容要求,可直接用URL对象进行处理

\n
Date:

2022-08-24 14:18:25

\n
Lastedittime:

2024-08-25 10:21:38

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.ai-utils/src.json b/docs/v1.0.0-beta01/data/Module.ai-utils/src.json new file mode 100644 index 00000000..acf423ae --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.ai-utils/src.json @@ -0,0 +1 @@ +{"id":1222,"name":"ai-utils/src","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Functions","children":[1865,1850,1861,1868,1847,1858,1854]}],"sources":[{"fileName":"ai-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/index.ts","line":7,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/index.ts#L7"}],"is":{"declaration":true},"location":{"query":"Module.ai-utils/src","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.canvas-utils/src.json b/docs/v1.0.0-beta01/data/Module.canvas-utils/src.json new file mode 100644 index 00000000..bd6f80df --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.canvas-utils/src.json @@ -0,0 +1 @@ +{"id":1221,"name":"canvas-utils/src","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Interfaces","children":[1835]},{"title":"Type Aliases","children":[1839,1838,1843]},{"title":"Variables","children":[1711,1714,1712,1713]},{"title":"Functions","children":[1732,1832,1798,1734,1723,1807,1778,1773,1784,1792,1715,1742,1759,1762,1815,1769,1739,1745,1749,1766,1756,1753,1818,1803,1824,1827,1727]}],"sources":[{"fileName":"canvas-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/index.ts","line":7,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/index.ts#L7"}],"is":{"declaration":true},"location":{"query":"Module.canvas-utils/src","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.keyboard.json b/docs/v1.0.0-beta01/data/Module.keyboard.json new file mode 100644 index 00000000..00fe6992 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.keyboard.json @@ -0,0 +1 @@ +{"id":1103,"name":"keyboard","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2024-04-07 13:45:27"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 10:14:47"}]}]},"originalName":"web-utils/src/keyboard","children":[],"groups":[{"title":"Functions","children":[1104]}],"sources":[{"fileName":"web-utils/src/keyboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/keyboard.ts","line":12,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/keyboard.ts#L12"}],"is":{"declaration":true},"location":{"query":"Module.keyboard","hash":""},"text":{"comment":"
Author:

Wayne

\n
Date:

2024-04-07 13:45:27

\n
Lastedittime:

2024-08-25 10:14:47

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.loadAssets.json b/docs/v1.0.0-beta01/data/Module.loadAssets.json new file mode 100644 index 00000000..49f6c781 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.loadAssets.json @@ -0,0 +1 @@ +{"id":1107,"name":"loadAssets","kind":2,"kindString":"Module","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2024-04-07 13:45:27"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2024-08-25 10:14:05"}]}]},"originalName":"web-utils/src/loadAssets","children":[],"groups":[{"title":"Functions","children":[1129,1117,1120,1123,1126,1108,1112]}],"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":8,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L8"}],"is":{"declaration":true},"location":{"query":"Module.loadAssets","hash":""},"text":{"comment":"
Author:

Wayne

\n
Date:

2024-04-07 13:45:27

\n
Lastedittime:

2024-08-25 10:14:05

\n"}} diff --git a/docs/v1.0.0-beta01/data/Module.node-img-build/src/handleImg.json b/docs/v1.0.0-beta01/data/Module.node-img-build/src/handleImg.json new file mode 100644 index 00000000..67811a5e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.node-img-build/src/handleImg.json @@ -0,0 +1 @@ +{"id":1223,"name":"node-img-build/src/handleImg","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Variables","children":[1259]},{"title":"Functions","children":[1224,1254,1246,1242,1233]}],"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":6,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L6"}],"is":{"declaration":true},"location":{"query":"Module.node-img-build/src/handleImg","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.node-utils/src.json b/docs/v1.0.0-beta01/data/Module.node-utils/src.json new file mode 100644 index 00000000..b8856e72 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.node-utils/src.json @@ -0,0 +1 @@ +{"id":732,"name":"node-utils/src","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Variables","children":[1564,1643,1557,1423,1468,1530,1596,733]}],"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":6,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L6"}],"is":{"declaration":true},"location":{"query":"Module.node-utils/src","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.utils/src.json b/docs/v1.0.0-beta01/data/Module.utils/src.json new file mode 100644 index 00000000..a9d87de8 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.utils/src.json @@ -0,0 +1 @@ +{"id":540,"name":"utils/src","kind":2,"kindString":"Module","flags":{},"children":[{"id":1334,"name":"AnyArr","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":12,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L12"}],"target":300,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"AnyArr"},"text":{},"parentId":540},{"id":1357,"name":"EasingFunction","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/Easing.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/Easing.ts","line":8,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/Easing.ts#L8"}],"target":2,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"EasingFunction"},"text":{},"parentId":540},{"id":1372,"name":"NOOP","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":13,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L13"}],"target":510,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"NOOP"},"text":{},"parentId":540},{"id":1333,"name":"NumberArr","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":10,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L10"}],"target":299,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"NumberArr"},"text":{},"parentId":540},{"id":1396,"name":"PlainObject","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":11,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L11"}],"target":639,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"PlainObject"},"text":{},"parentId":540},{"id":1335,"name":"allEqual","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":77,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L77"}],"target":301,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"allEqual"},"text":{},"parentId":540},{"id":1303,"name":"arrayAverage","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":49,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L49"}],"target":161,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"arrayAverage"},"text":{},"parentId":540},{"id":1301,"name":"arrayMax","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L23"}],"target":155,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"arrayMax"},"text":{},"parentId":540},{"id":1302,"name":"arrayMin","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":36,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L36"}],"target":158,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"arrayMin"},"text":{},"parentId":540},{"id":1304,"name":"arraySum","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":62,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L62"}],"target":164,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"arraySum"},"text":{},"parentId":540},{"id":1306,"name":"arrayToCSV","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":125,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L125"}],"target":170,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"arrayToCSV"},"text":{},"parentId":540},{"id":1358,"name":"attempt","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":25,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L25"}],"target":392,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"attempt"},"text":{},"parentId":540},{"id":1381,"name":"average","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":99,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L99"}],"target":569,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"average"},"text":{},"parentId":540},{"id":1399,"name":"byteSize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":18,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L18"}],"target":652,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"byteSize"},"text":{},"parentId":540},{"id":1410,"name":"camelize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":207,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L207"}],"target":687,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"camelize"},"text":{},"parentId":540},{"id":1400,"name":"capitalize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":32,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L32"}],"target":655,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"capitalize"},"text":{},"parentId":540},{"id":1401,"name":"capitalizeEveryWord","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":45,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L45"}],"target":658,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"capitalizeEveryWord"},"text":{},"parentId":540},{"id":1307,"name":"castArray","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":138,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L138"}],"target":174,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"castArray"},"text":{},"parentId":540},{"id":1364,"name":"chainAsync","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":151,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L151"}],"target":440,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"chainAsync"},"text":{},"parentId":540},{"id":1339,"name":"checkIdcard","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":175,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L175"}],"target":323,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"checkIdcard"},"text":{},"parentId":540},{"id":1338,"name":"checkPwdStrength","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":82,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L82"}],"target":319,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"checkPwdStrength"},"text":{},"parentId":540},{"id":1308,"name":"chunk","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":153,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L153"}],"target":178,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"chunk"},"text":{},"parentId":540},{"id":1387,"name":"clamp","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":184,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L184"}],"target":592,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"clamp"},"text":{},"parentId":540},{"id":1309,"name":"compact","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":171,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L171"}],"target":183,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"compact"},"text":{},"parentId":540},{"id":1397,"name":"compareVersion","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/others.ts","line":31,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/others.ts#L31"}],"target":644,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"compareVersion"},"text":{},"parentId":540},{"id":1365,"name":"compose","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":168,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L168"}],"target":446,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"compose"},"text":{},"parentId":540},{"id":1310,"name":"countOccurrences","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":185,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L185"}],"target":187,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"countOccurrences"},"text":{},"parentId":540},{"id":1373,"name":"curry","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":228,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L228"}],"target":512,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"curry"},"text":{},"parentId":540},{"id":1350,"name":"dayOfYear","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":18,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L18"}],"target":360,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"dayOfYear"},"text":{},"parentId":540},{"id":1355,"name":"daysLater","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":90,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L90"}],"target":378,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"daysLater"},"text":{},"parentId":540},{"id":1371,"name":"debounce","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":353,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L353"}],"target":502,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"debounce"},"text":{},"parentId":540},{"id":1402,"name":"decapitalize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":59,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L59"}],"target":661,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"decapitalize"},"text":{},"parentId":540},{"id":1311,"name":"deepFlatten","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":197,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L197"}],"target":192,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"deepFlatten"},"text":{},"parentId":540},{"id":1359,"name":"defer","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":51,"character":22,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L51"}],"target":401,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"defer"},"text":{},"parentId":540},{"id":1313,"name":"difference","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":230,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L230"}],"target":199,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"difference"},"text":{},"parentId":540},{"id":1314,"name":"differenceBy","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":246,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L246"}],"target":203,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"differenceBy"},"text":{},"parentId":540},{"id":1398,"name":"digitUppercase","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/others.ts","line":57,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/others.ts#L57"}],"target":648,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"digitUppercase"},"text":{},"parentId":540},{"id":1330,"name":"digitize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":490,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L490"}],"target":290,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"digitize"},"text":{},"parentId":540},{"id":1315,"name":"drop","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":262,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L262"}],"target":211,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"drop"},"text":{},"parentId":540},{"id":1316,"name":"dropWhile","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":277,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L277"}],"target":216,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"dropWhile"},"text":{},"parentId":540},{"id":1419,"name":"equals","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":164,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L164"}],"target":718,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"equals"},"text":{},"parentId":540},{"id":1325,"name":"everyNth","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":418,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L418"}],"target":268,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"everyNth"},"text":{},"parentId":540},{"id":1374,"name":"factorial","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":17,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L17"}],"target":542,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"factorial"},"text":{},"parentId":540},{"id":1331,"name":"fibonacci","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":502,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L502"}],"target":293,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"fibonacci"},"text":{},"parentId":540},{"id":1327,"name":"filterNonUnique","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":442,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L442"}],"target":275,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"filterNonUnique"},"text":{},"parentId":540},{"id":1312,"name":"flatten","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":211,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L211"}],"target":195,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"flatten"},"text":{},"parentId":540},{"id":1390,"name":"forOwn","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":25,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L25"}],"target":604,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"forOwn"},"text":{},"parentId":540},{"id":1406,"name":"fromCamelCase","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":119,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L119"}],"target":673,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"fromCamelCase"},"text":{},"parentId":540},{"id":1367,"name":"functionName","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":250,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L250"}],"target":466,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"functionName"},"text":{},"parentId":540},{"id":1375,"name":"gcd","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":39,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L39"}],"target":545,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"gcd"},"text":{},"parentId":540},{"id":1351,"name":"getColonTimeFromDate","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":32,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L32"}],"target":363,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"getColonTimeFromDate"},"text":{},"parentId":540},{"id":1347,"name":"getColorRgbArr","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":28,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L28"}],"target":349,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"getColorRgbArr"},"text":{},"parentId":540},{"id":1348,"name":"getColorRgba","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":59,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L59"}],"target":352,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"getColorRgba"},"text":{},"parentId":540},{"id":1352,"name":"getDaysDiffBetweenDates","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":47,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L47"}],"target":366,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"getDaysDiffBetweenDates"},"text":{},"parentId":540},{"id":1356,"name":"getFormattedRemainTime","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":106,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L106"}],"target":382,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"getFormattedRemainTime"},"text":{},"parentId":540},{"id":1394,"name":"hasOwnProperty","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":98,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L98"}],"target":631,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"hasOwnProperty"},"text":{},"parentId":540},{"id":1317,"name":"indexOfAll","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":295,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L295"}],"target":224,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"indexOfAll"},"text":{},"parentId":540},{"id":1328,"name":"initializeArrayWithValues","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":456,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L456"}],"target":278,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"initializeArrayWithValues"},"text":{},"parentId":540},{"id":1318,"name":"intersection","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":309,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L309"}],"target":228,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"intersection"},"text":{},"parentId":540},{"id":1319,"name":"intersectionBy","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":324,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L324"}],"target":232,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"intersectionBy"},"text":{},"parentId":540},{"id":1320,"name":"intersectionWith","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":339,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L339"}],"target":240,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"intersectionWith"},"text":{},"parentId":540},{"id":1353,"name":"isAfterDate","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":61,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L61"}],"target":370,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isAfterDate"},"text":{},"parentId":540},{"id":1380,"name":"isApproximatelyEqual","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":87,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L87"}],"target":564,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isApproximatelyEqual"},"text":{},"parentId":540},{"id":1420,"name":"isArray","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":53,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L53"}],"target":722,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isArray"},"text":{},"parentId":540},{"id":1345,"name":"isBankCard","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":106,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L106"}],"target":343,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isBankCard"},"text":{},"parentId":540},{"id":1354,"name":"isBeforeDate","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/date.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/date.ts","line":75,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/date.ts#L75"}],"target":374,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isBeforeDate"},"text":{},"parentId":540},{"id":1409,"name":"isChinese","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":167,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L167"}],"target":684,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isChinese"},"text":{},"parentId":540},{"id":1422,"name":"isDate","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":149,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L149"}],"target":729,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isDate"},"text":{},"parentId":540},{"id":1376,"name":"isDivisible","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":53,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L53"}],"target":549,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isDivisible"},"text":{},"parentId":540},{"id":1340,"name":"isEmail","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":22,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L22"}],"target":328,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isEmail"},"text":{},"parentId":540},{"id":1395,"name":"isEmptyObj","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":117,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L117"}],"target":636,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isEmptyObj"},"text":{},"parentId":540},{"id":1389,"name":"isFloat","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":55,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L55"}],"target":600,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isFloat"},"text":{},"parentId":540},{"id":1418,"name":"isFunction","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":118,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L118"}],"target":715,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isFunction"},"text":{},"parentId":540},{"id":1341,"name":"isIdCard","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":39,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L39"}],"target":331,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isIdCard"},"text":{},"parentId":540},{"id":1388,"name":"isInt","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":23,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L23"}],"target":597,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isInt"},"text":{},"parentId":540},{"id":1416,"name":"isNumber","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":87,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L87"}],"target":709,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isNumber"},"text":{},"parentId":540},{"id":1417,"name":"isObject","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":102,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L102"}],"target":712,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isObject"},"text":{},"parentId":540},{"id":1378,"name":"isOdd","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":38,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L38"}],"target":558,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isOdd"},"text":{},"parentId":540},{"id":1343,"name":"isPhoneNumber","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":76,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L76"}],"target":337,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isPhoneNumber"},"text":{},"parentId":540},{"id":1344,"name":"isPostalCode","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":91,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L91"}],"target":340,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isPostalCode"},"text":{},"parentId":540},{"id":1421,"name":"isPrimitive","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":133,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L133"}],"target":725,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isPrimitive"},"text":{},"parentId":540},{"id":1415,"name":"isString","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":66,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L66"}],"target":706,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isString"},"text":{},"parentId":540},{"id":1349,"name":"isTransparentColor","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":75,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L75"}],"target":356,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isTransparentColor"},"text":{},"parentId":540},{"id":1414,"name":"isUndefined","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":38,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L38"}],"target":703,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isUndefined"},"text":{},"parentId":540},{"id":1342,"name":"isUrl","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.ts","line":57,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.ts#L57"}],"target":334,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isUrl"},"text":{},"parentId":540},{"id":1379,"name":"isValidNumber","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":70,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L70"}],"target":561,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"isValidNumber"},"text":{},"parentId":540},{"id":1377,"name":"lcm","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/math.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/math.ts","line":68,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/math.ts#L68"}],"target":553,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"lcm"},"text":{},"parentId":540},{"id":1411,"name":"luhnCheck","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/trade.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/trade.ts","line":19,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/trade.ts#L19"}],"target":691,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"luhnCheck"},"text":{},"parentId":540},{"id":1392,"name":"mapObject","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":58,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L58"}],"target":616,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"mapObject"},"text":{},"parentId":540},{"id":1332,"name":"median","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":517,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L517"}],"target":296,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"median"},"text":{},"parentId":540},{"id":1362,"name":"memoize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":114,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L114"}],"target":421,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"memoize"},"text":{},"parentId":540},{"id":1321,"name":"negate","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":356,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L356"}],"target":249,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"negate"},"text":{},"parentId":540},{"id":1391,"name":"objectFromPairs","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":41,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L41"}],"target":613,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"objectFromPairs"},"text":{},"parentId":540},{"id":1363,"name":"once","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":134,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L134"}],"target":431,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"once"},"text":{},"parentId":540},{"id":1405,"name":"palindrome","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":103,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L103"}],"target":670,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"palindrome"},"text":{},"parentId":540},{"id":1393,"name":"pick","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":79,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L79"}],"target":627,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"pick"},"text":{},"parentId":540},{"id":1366,"name":"pipe","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":187,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L187"}],"target":456,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"pipe"},"text":{},"parentId":540},{"id":1368,"name":"promisify","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":270,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L270"}],"target":473,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"promisify"},"text":{},"parentId":540},{"id":1346,"name":"randomHexColor","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/color.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/color.ts","line":15,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/color.ts#L15"}],"target":347,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"randomHexColor"},"text":{},"parentId":540},{"id":1384,"name":"randomIntArrayInRange","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":139,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L139"}],"target":580,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"randomIntArrayInRange"},"text":{},"parentId":540},{"id":1382,"name":"randomIntegerInRange","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":112,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L112"}],"target":572,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"randomIntegerInRange"},"text":{},"parentId":540},{"id":1383,"name":"randomNumberInRange","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":125,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L125"}],"target":576,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"randomNumberInRange"},"text":{},"parentId":540},{"id":1329,"name":"remove","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":470,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L470"}],"target":282,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"remove"},"text":{},"parentId":540},{"id":1407,"name":"reverseString","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":136,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L136"}],"target":677,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"reverseString"},"text":{},"parentId":540},{"id":1385,"name":"round","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":155,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L155"}],"target":585,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"round"},"text":{},"parentId":540},{"id":1360,"name":"runPromisesInSeries","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":74,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L74"}],"target":408,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"runPromisesInSeries"},"text":{},"parentId":540},{"id":1322,"name":"sample","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":370,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L370"}],"target":258,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"sample"},"text":{},"parentId":540},{"id":1323,"name":"sampleSize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":383,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L383"}],"target":261,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"sampleSize"},"text":{},"parentId":540},{"id":1324,"name":"shuffle","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":400,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L400"}],"target":265,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"shuffle"},"text":{},"parentId":540},{"id":1305,"name":"size","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":105,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L105"}],"target":167,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"size"},"text":{},"parentId":540},{"id":1369,"name":"sleep","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":294,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L294"}],"target":488,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"sleep"},"text":{},"parentId":540},{"id":1403,"name":"splitLines","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":74,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L74"}],"target":664,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"splitLines"},"text":{},"parentId":540},{"id":1404,"name":"stripHTMLTags","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":88,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L88"}],"target":667,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"stripHTMLTags"},"text":{},"parentId":540},{"id":1386,"name":"sum","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":168,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L168"}],"target":589,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"sum"},"text":{},"parentId":540},{"id":1370,"name":"throttle","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":315,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L315"}],"target":491,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"throttle"},"text":{},"parentId":540},{"id":1361,"name":"timeTaken","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/function.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/function.ts","line":92,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/function.ts#L92"}],"target":414,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"timeTaken"},"text":{},"parentId":540},{"id":1412,"name":"toCurrency","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/trade.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/trade.ts","line":42,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/trade.ts#L42"}],"target":694,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"toCurrency"},"text":{},"parentId":540},{"id":1408,"name":"truncateString","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":151,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L151"}],"target":680,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"truncateString"},"text":{},"parentId":540},{"id":1413,"name":"type","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L23"}],"target":700,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"type"},"text":{},"parentId":540},{"id":1326,"name":"unique","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":430,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L430"}],"target":272,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"unique"},"text":{},"parentId":540},{"id":1337,"name":"validateLicensePlate","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":40,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L40"}],"target":316,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"validateLicensePlate"},"text":{},"parentId":540},{"id":1336,"name":"validatePassport","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/check.plus.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/check.plus.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/check.plus.ts#L23"}],"target":313,"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":"validatePassport"},"text":{},"parentId":540}],"groups":[{"title":"References","children":[1334,1357,1372,1333,1396,1335,1303,1301,1302,1304,1306,1358,1381,1399,1410,1400,1401,1307,1364,1339,1338,1308,1387,1309,1397,1365,1310,1373,1350,1355,1371,1402,1311,1359,1313,1314,1398,1330,1315,1316,1419,1325,1374,1331,1327,1312,1390,1406,1367,1375,1351,1347,1348,1352,1356,1394,1317,1328,1318,1319,1320,1353,1380,1420,1345,1354,1409,1422,1376,1340,1395,1389,1418,1341,1388,1416,1417,1378,1343,1344,1421,1415,1349,1414,1342,1379,1377,1411,1392,1332,1362,1321,1391,1363,1405,1393,1366,1368,1346,1384,1382,1383,1329,1407,1385,1360,1322,1323,1324,1305,1369,1403,1404,1386,1370,1361,1412,1408,1413,1326,1337,1336]}],"sources":[{"fileName":"utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/index.ts","line":7,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/index.ts#L7"}],"is":{"declaration":true},"location":{"query":"Module.utils/src","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.utils/src/await-to.json b/docs/v1.0.0-beta01/data/Module.utils/src/await-to.json new file mode 100644 index 00000000..41b303a2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.utils/src/await-to.json @@ -0,0 +1 @@ +{"id":304,"name":"utils/src/await-to","kind":2,"kindString":"Module","flags":{},"children":[{"id":311,"name":"default","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"utils/src/await-to.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/await-to.ts","line":38,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/await-to.ts#L38"}],"target":305,"is":{"declaration":true},"location":{"query":"Module.utils/src/await-to","hash":"default"},"text":{},"parentId":304}],"groups":[{"title":"References","children":[311]},{"title":"Functions","children":[305]}],"sources":[{"fileName":"utils/src/await-to.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/await-to.ts","line":22,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/await-to.ts#L22"}],"is":{"declaration":true},"location":{"query":"Module.utils/src/await-to","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.web-utils/src.json b/docs/v1.0.0-beta01/data/Module.web-utils/src.json new file mode 100644 index 00000000..0895007d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.web-utils/src.json @@ -0,0 +1 @@ +{"id":1102,"name":"web-utils/src","kind":2,"kindString":"Module","flags":{},"children":[{"id":1655,"name":"addClass","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":76,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L76"}],"target":996,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"addClass"},"text":{},"parentId":1102},{"id":1668,"name":"animateScrollTo","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":353,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L353"}],"target":1047,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"animateScrollTo"},"text":{},"parentId":1102},{"id":1681,"name":"compressImage","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":144,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L144"}],"target":1098,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"compressImage"},"text":{},"parentId":1102},{"id":1651,"name":"copyToClipboard","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/clipboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/clipboard.ts","line":34,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/clipboard.ts#L34"}],"target":959,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"copyToClipboard"},"text":{},"parentId":1102},{"id":1680,"name":"cropImage","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":113,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L113"}],"target":1091,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"cropImage"},"text":{},"parentId":1102},{"id":1646,"name":"delCookie","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":77,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L77"}],"target":973,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"delCookie"},"text":{},"parentId":1102},{"id":1670,"name":"disableCopy","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":393,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L393"}],"target":1054,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"disableCopy"},"text":{},"parentId":1102},{"id":1674,"name":"downloadFile","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":52,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L52"}],"target":1069,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"downloadFile"},"text":{},"parentId":1102},{"id":1675,"name":"downloadImageFileByUrl","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":77,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L77"}],"target":1074,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"downloadImageFileByUrl"},"text":{},"parentId":1102},{"id":1659,"name":"elementContains","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":159,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L159"}],"target":1012,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"elementContains"},"text":{},"parentId":1102},{"id":1699,"name":"enterFullscreen","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":62,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L62"}],"target":1164,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"enterFullscreen"},"text":{},"parentId":1102},{"id":1663,"name":"escapeHTML","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":241,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L241"}],"target":1027,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"escapeHTML"},"text":{},"parentId":1102},{"id":1700,"name":"exitFullscreen","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":83,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L83"}],"target":1167,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"exitFullscreen"},"text":{},"parentId":1102},{"id":1707,"name":"getBaseUrl","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":79,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L79"}],"target":1212,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getBaseUrl"},"text":{},"parentId":1102},{"id":1701,"name":"getClientHeight","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":15,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L15"}],"target":1169,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getClientHeight"},"text":{},"parentId":1102},{"id":1702,"name":"getClientWidth","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":25,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L25"}],"target":1171,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getClientWidth"},"text":{},"parentId":1102},{"id":1644,"name":"getCookie","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":19,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L19"}],"target":963,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getCookie"},"text":{},"parentId":1102},{"id":1649,"name":"getElementSize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":77,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L77"}],"target":983,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getElementSize"},"text":{},"parentId":1102},{"id":1676,"name":"getFileExtension","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":114,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L114"}],"target":1079,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getFileExtension"},"text":{},"parentId":1102},{"id":1678,"name":"getImageSize","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":52,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L52"}],"target":1086,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getImageSize"},"text":{},"parentId":1102},{"id":1682,"name":"getKeyName","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/keyboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/keyboard.ts","line":124,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/keyboard.ts#L124"}],"target":1104,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getKeyName"},"text":{},"parentId":1102},{"id":1695,"name":"getMobileBrandIdentify","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":148,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L148"}],"target":1152,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getMobileBrandIdentify"},"text":{},"parentId":1102},{"id":1694,"name":"getMobileOS","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":124,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L124"}],"target":1147,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getMobileOS"},"text":{},"parentId":1102},{"id":1693,"name":"getMobilePlatform","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":108,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L108"}],"target":1145,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getMobilePlatform"},"text":{},"parentId":1102},{"id":1664,"name":"getOffsetPos","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":269,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L269"}],"target":1030,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getOffsetPos"},"text":{},"parentId":1102},{"id":1691,"name":"getPcExplore","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":43,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L43"}],"target":1141,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getPcExplore"},"text":{},"parentId":1102},{"id":1647,"name":"getPrefix","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":30,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L30"}],"target":977,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getPrefix"},"text":{},"parentId":1102},{"id":1666,"name":"getScrollPosition","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":306,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L306"}],"target":1038,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getScrollPosition"},"text":{},"parentId":1102},{"id":1665,"name":"getScrollTop","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":293,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L293"}],"target":1036,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getScrollTop"},"text":{},"parentId":1102},{"id":1648,"name":"getStyle","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/css.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/css.ts","line":59,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/css.ts#L59"}],"target":979,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getStyle"},"text":{},"parentId":1102},{"id":1692,"name":"getSystemOS","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":86,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L86"}],"target":1143,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getSystemOS"},"text":{},"parentId":1102},{"id":1708,"name":"getUrlDomain","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":90,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L90"}],"target":1215,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getUrlDomain"},"text":{},"parentId":1102},{"id":1704,"name":"getUrlParam","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":37,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L37"}],"target":1196,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"getUrlParam"},"text":{},"parentId":1102},{"id":1654,"name":"hasClass","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":62,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L62"}],"target":992,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"hasClass"},"text":{},"parentId":1102},{"id":1660,"name":"hide","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":171,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L171"}],"target":1016,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"hide"},"text":{},"parentId":1102},{"id":1705,"name":"httpsRedirect","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":101,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L101"}],"target":1203,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"httpsRedirect"},"text":{},"parentId":1102},{"id":1657,"name":"insertAfter","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":118,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L118"}],"target":1004,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"insertAfter"},"text":{},"parentId":1102},{"id":1658,"name":"insertBefore","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":140,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L140"}],"target":1008,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"insertBefore"},"text":{},"parentId":1102},{"id":1710,"name":"isBase64","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/others.ts","line":13,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/others.ts#L13"}],"target":1135,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"isBase64"},"text":{},"parentId":1102},{"id":1652,"name":"isBrowser","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":20,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L20"}],"target":988,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"isBrowser"},"text":{},"parentId":1102},{"id":1653,"name":"isBrowserTab","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":33,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L33"}],"target":990,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"isBrowserTab"},"text":{},"parentId":1102},{"id":1697,"name":"isFullScreen","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":33,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L33"}],"target":1160,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"isFullScreen"},"text":{},"parentId":1102},{"id":1698,"name":"isFullScreenEnabled","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":47,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L47"}],"target":1162,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"isFullScreenEnabled"},"text":{},"parentId":1102},{"id":1677,"name":"isImageLoaded","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L23"}],"target":1083,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"isImageLoaded"},"text":{},"parentId":1102},{"id":1690,"name":"isPC","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":24,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L24"}],"target":1139,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"isPC"},"text":{},"parentId":1102},{"id":1679,"name":"isSupportWebP","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/image.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/image.ts","line":83,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/image.ts#L83"}],"target":1089,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"isSupportWebP"},"text":{},"parentId":1102},{"id":1689,"name":"loadCSV","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":141,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L141"}],"target":1129,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"loadCSV"},"text":{},"parentId":1102},{"id":1685,"name":"loadCss","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":63,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L63"}],"target":1117,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"loadCss"},"text":{},"parentId":1102},{"id":1686,"name":"loadCssList","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":97,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L97"}],"target":1120,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"loadCssList"},"text":{},"parentId":1102},{"id":1687,"name":"loadImage","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":111,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L111"}],"target":1123,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"loadImage"},"text":{},"parentId":1102},{"id":1688,"name":"loadImageList","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":130,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L130"}],"target":1126,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"loadImageList"},"text":{},"parentId":1102},{"id":1683,"name":"loadScript","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":22,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L22"}],"target":1108,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"loadScript"},"text":{},"parentId":1102},{"id":1684,"name":"loadScriptList","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":48,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L48"}],"target":1112,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"loadScriptList"},"text":{},"parentId":1102},{"id":1661,"name":"nodeListToArray","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":192,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L192"}],"target":1019,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"nodeListToArray"},"text":{},"parentId":1102},{"id":1706,"name":"paramsJoinUrl","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":59,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L59"}],"target":1206,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"paramsJoinUrl"},"text":{},"parentId":1102},{"id":1703,"name":"parseQueryString","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":17,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L17"}],"target":1193,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"parseQueryString"},"text":{},"parentId":1102},{"id":1650,"name":"readClipboardText","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/clipboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/clipboard.ts","line":12,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/clipboard.ts#L12"}],"target":957,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"readClipboardText"},"text":{},"parentId":1102},{"id":1672,"name":"readFile","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":14,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L14"}],"target":1063,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"readFile"},"text":{},"parentId":1102},{"id":1673,"name":"readFileAsDataURL","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":33,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L33"}],"target":1066,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"readFileAsDataURL"},"text":{},"parentId":1102},{"id":1656,"name":"removeClass","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":93,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L93"}],"target":1000,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"removeClass"},"text":{},"parentId":1102},{"id":1671,"name":"requestAnimFrame","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":332,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L332"}],"target":1056,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"requestAnimFrame"},"text":{},"parentId":1102},{"id":1662,"name":"setAttribute","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":209,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L209"}],"target":1022,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"setAttribute"},"text":{},"parentId":1102},{"id":1645,"name":"setCookie","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/cookies.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/cookies.ts","line":61,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/cookies.ts#L61"}],"target":966,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"setCookie"},"text":{},"parentId":1102},{"id":1667,"name":"setScrollTop","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":319,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L319"}],"target":1044,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"setScrollTop"},"text":{},"parentId":1102},{"id":1669,"name":"smoothScroll","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/dom.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/dom.ts","line":383,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/dom.ts#L383"}],"target":1051,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"smoothScroll"},"text":{},"parentId":1102},{"id":1696,"name":"ua","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":13,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L13"}],"target":1154,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"ua"},"text":{},"parentId":1102},{"id":1709,"name":"uniqueSlash","kind":8388608,"kindString":"Reference","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":117,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L117"}],"target":1218,"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":"uniqueSlash"},"text":{},"parentId":1102}],"groups":[{"title":"References","children":[1655,1668,1681,1651,1680,1646,1670,1674,1675,1659,1699,1663,1700,1707,1701,1702,1644,1649,1676,1678,1682,1695,1694,1693,1664,1691,1647,1666,1665,1648,1692,1708,1704,1654,1660,1705,1657,1658,1710,1652,1653,1697,1698,1677,1690,1679,1689,1685,1686,1687,1688,1683,1684,1661,1706,1703,1650,1672,1673,1656,1671,1662,1645,1667,1669,1696,1709]}],"sources":[{"fileName":"web-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/index.ts","line":7,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/index.ts#L7"}],"is":{"declaration":true},"location":{"query":"Module.web-utils/src","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.web-utils/src/clipboard.json b/docs/v1.0.0-beta01/data/Module.web-utils/src/clipboard.json new file mode 100644 index 00000000..fe2f215f --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.web-utils/src/clipboard.json @@ -0,0 +1 @@ +{"id":956,"name":"web-utils/src/clipboard","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Functions","children":[959,957]}],"sources":[{"fileName":"web-utils/src/clipboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/clipboard.ts","line":12,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/clipboard.ts#L12"}],"is":{"declaration":true},"location":{"query":"Module.web-utils/src/clipboard","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.web-utils/src/file.json b/docs/v1.0.0-beta01/data/Module.web-utils/src/file.json new file mode 100644 index 00000000..f38bfff0 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.web-utils/src/file.json @@ -0,0 +1 @@ +{"id":1062,"name":"web-utils/src/file","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Functions","children":[1069,1074,1079,1063,1066]}],"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":14,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L14"}],"is":{"declaration":true},"location":{"query":"Module.web-utils/src/file","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.web-utils/src/others.json b/docs/v1.0.0-beta01/data/Module.web-utils/src/others.json new file mode 100644 index 00000000..a2d6199e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.web-utils/src/others.json @@ -0,0 +1 @@ +{"id":1134,"name":"web-utils/src/others","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Functions","children":[1135]}],"sources":[{"fileName":"web-utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/others.ts","line":13,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/others.ts#L13"}],"is":{"declaration":true},"location":{"query":"Module.web-utils/src/others","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.web-utils/src/rem.json b/docs/v1.0.0-beta01/data/Module.web-utils/src/rem.json new file mode 100644 index 00000000..3e766f7b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.web-utils/src/rem.json @@ -0,0 +1 @@ +{"id":1155,"name":"web-utils/src/rem","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Interfaces","children":[1156]}],"sources":[{"fileName":"web-utils/src/rem.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/rem.ts","line":11,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/rem.ts#L11"}],"is":{"declaration":true},"location":{"query":"Module.web-utils/src/rem","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Module.web-utils/src/storage.json b/docs/v1.0.0-beta01/data/Module.web-utils/src/storage.json new file mode 100644 index 00000000..bc45f73e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Module.web-utils/src/storage.json @@ -0,0 +1 @@ +{"id":1173,"name":"web-utils/src/storage","kind":2,"kindString":"Module","flags":{},"children":[],"groups":[{"title":"Functions","children":[1174]}],"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":7,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L7"}],"is":{"declaration":true},"location":{"query":"Module.web-utils/src/storage","hash":""},"text":{}} diff --git a/docs/v1.0.0-beta01/data/Number.Function.average.json b/docs/v1.0.0-beta01/data/Number.Function.average.json new file mode 100644 index 00000000..7fc4f4db --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.average.json @@ -0,0 +1 @@ +{"id":569,"name":"average","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":99,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L99"}],"signatures":[{"id":570,"name":"average","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"average"}]},{"tag":"@description","content":[{"kind":"text","text":"计算平均数"}]},{"tag":"@returns","content":[{"kind":"text","text":"平均数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\naverage(1, 2, 3); // 2\n```"}]}]},"parameters":[{"id":571,"name":"nums","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{"comment":"

数字数组

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Number.Function.average","hash":"average"},"text":{"comment":"
Function:

average

\n
Description:

计算平均数

\n
Returns:

平均数

\n
Example:
average(1, 2, 3); // 2\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":99,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L99"}],"parentId":569}],"is":{"declaration":true},"location":{"query":"Number.Function.average","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.clamp.json b/docs/v1.0.0-beta01/data/Number.Function.clamp.json new file mode 100644 index 00000000..f91d97e2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.clamp.json @@ -0,0 +1 @@ +{"id":592,"name":"clamp","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":184,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L184"}],"signatures":[{"id":593,"name":"clamp","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"clamp"}]},{"tag":"@description","content":[{"kind":"text","text":"通过区间约束范围值"}]},{"tag":"@returns","content":[{"kind":"text","text":"约束后的数字"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nclamp(5, 0, 10); // 5\r\nclamp(-5, 0, 10); // 0\r\nclamp(15, 0, 10); // 10\n```"}]}]},"parameters":[{"id":594,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字

\n"}},{"id":595,"name":"min","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"最小值"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

最小值

\n"}},{"id":596,"name":"max","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"最大值"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

最大值

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Number.Function.clamp","hash":"clamp"},"text":{"comment":"
Function:

clamp

\n
Description:

通过区间约束范围值

\n
Returns:

约束后的数字

\n
Example:
clamp(5, 0, 10); // 5\nclamp(-5, 0, 10); // 0\nclamp(15, 0, 10); // 10\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":184,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L184"}],"parentId":592}],"is":{"declaration":true},"location":{"query":"Number.Function.clamp","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.isApproximatelyEqual.json b/docs/v1.0.0-beta01/data/Number.Function.isApproximatelyEqual.json new file mode 100644 index 00000000..1e886083 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.isApproximatelyEqual.json @@ -0,0 +1 @@ +{"id":564,"name":"isApproximatelyEqual","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":87,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L87"}],"signatures":[{"id":565,"name":"isApproximatelyEqual","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isApproximatelyEqual"}]},{"tag":"@description","content":[{"kind":"text","text":"两个数字是否约等于"}]},{"tag":"@returns","content":[{"kind":"text","text":"两个数字是否约等于"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst val1 = 0.1 + 0.2;\r\nconst val2 = 0.3;\r\nisApproximatelyEqual(val1, val2); // true\r\nisApproximatelyEqual(val1, val2, 0.0001); // false\n```"}]}]},"parameters":[{"id":566,"name":"val1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字1"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字1

\n"}},{"id":567,"name":"val2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字2"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字2

\n"}},{"id":568,"name":"epsilon","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"误差范围,默认为0.001"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0.001","text":{"comment":"

误差范围,默认为0.001

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Number.Function.isApproximatelyEqual","hash":"isApproximatelyEqual"},"text":{"comment":"
Function:

isApproximatelyEqual

\n
Description:

两个数字是否约等于

\n
Returns:

两个数字是否约等于

\n
Example:
const val1 = 0.1 + 0.2;\nconst val2 = 0.3;\nisApproximatelyEqual(val1, val2); // true\nisApproximatelyEqual(val1, val2, 0.0001); // false\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":87,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L87"}],"parentId":564}],"is":{"declaration":true},"location":{"query":"Number.Function.isApproximatelyEqual","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.isFloat.json b/docs/v1.0.0-beta01/data/Number.Function.isFloat.json new file mode 100644 index 00000000..ba9f6126 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.isFloat.json @@ -0,0 +1 @@ +{"id":600,"name":"isFloat","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":55,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L55"}],"signatures":[{"id":601,"name":"isFloat","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isFloat"}]},{"tag":"@description","content":[{"kind":"text","text":"判断是否为浮点数"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为浮点数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisFloat(3.14); // true\r\nisFloat(-0.5); // true\r\nisFloat(2); // false\r\nisFloat('3.14'); // false\r\nisFloat(null); // false\r\nisFloat(undefined); // false\n```"}]}]},"parameters":[{"id":602,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"任意值"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

任意值

\n"}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"intrinsic","name":"number"}},"is":{"declaration":false},"location":{"query":"Number.Function.isFloat","hash":"isFloat"},"text":{"comment":"
Function:

isFloat

\n
Description:

判断是否为浮点数

\n
Returns:

是否为浮点数

\n
Example:
isFloat(3.14); // true\nisFloat(-0.5); // true\nisFloat(2); // false\nisFloat('3.14'); // false\nisFloat(null); // false\nisFloat(undefined); // false\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":55,"character":23,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L55"}],"parentId":600}],"is":{"declaration":true},"location":{"query":"Number.Function.isFloat","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.isInt.json b/docs/v1.0.0-beta01/data/Number.Function.isInt.json new file mode 100644 index 00000000..441e021e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.isInt.json @@ -0,0 +1 @@ +{"id":597,"name":"isInt","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":23,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L23"}],"signatures":[{"id":598,"name":"isInt","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isInt"}]},{"tag":"@description","content":[{"kind":"text","text":"判断是否为整数"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为整数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisInt(5); // true\r\nisInt(2.5); // false\r\nisInt('3'); // false\r\nisInt(null); // false\r\nisInt(undefined); // false\n```"}]}]},"parameters":[{"id":599,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"任意值"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

任意值

\n"}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"intrinsic","name":"number"}},"is":{"declaration":false},"location":{"query":"Number.Function.isInt","hash":"isInt"},"text":{"comment":"
Function:

isInt

\n
Description:

判断是否为整数

\n
Returns:

是否为整数

\n
Example:
isInt(5); // true\nisInt(2.5); // false\nisInt('3'); // false\nisInt(null); // false\nisInt(undefined); // false\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":23,"character":21,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L23"}],"parentId":597}],"is":{"declaration":true},"location":{"query":"Number.Function.isInt","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.isOdd.json b/docs/v1.0.0-beta01/data/Number.Function.isOdd.json new file mode 100644 index 00000000..e196830b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.isOdd.json @@ -0,0 +1 @@ +{"id":558,"name":"isOdd","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":38,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L38"}],"signatures":[{"id":559,"name":"isOdd","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isOdd"}]},{"tag":"@description","content":[{"kind":"text","text":"判断一个数字是不是偶数"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为偶数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisOdd(2); // true\r\nisOdd(0); // true\r\nisOdd(1); // false\r\nisOdd(-2); // true\n```"}]}]},"parameters":[{"id":560,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Number.Function.isOdd","hash":"isOdd"},"text":{"comment":"
Function:

isOdd

\n
Description:

判断一个数字是不是偶数

\n
Returns:

是否为偶数

\n
Example:
isOdd(2); // true\nisOdd(0); // true\nisOdd(1); // false\nisOdd(-2); // true\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":38,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L38"}],"parentId":558}],"is":{"declaration":true},"location":{"query":"Number.Function.isOdd","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.isValidNumber.json b/docs/v1.0.0-beta01/data/Number.Function.isValidNumber.json new file mode 100644 index 00000000..ff76f939 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.isValidNumber.json @@ -0,0 +1 @@ +{"id":561,"name":"isValidNumber","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":70,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L70"}],"signatures":[{"id":562,"name":"isValidNumber","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isValidNumber"}]},{"tag":"@description","content":[{"kind":"text","text":"是否是合法的数字"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否是合法的数字"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisValidNumber(1); // true\r\nisValidNumber('1'); // false\r\nisValidNumber(NaN); // false\r\nisValidNumber(Infinity); // false\n```"}]}]},"parameters":[{"id":563,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"任意值"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

任意值

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Number.Function.isValidNumber","hash":"isValidNumber"},"text":{"comment":"
Function:

isValidNumber

\n
Description:

是否是合法的数字

\n
Returns:

是否是合法的数字

\n
Example:
isValidNumber(1); // true\nisValidNumber('1'); // false\nisValidNumber(NaN); // false\nisValidNumber(Infinity); // false\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":70,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L70"}],"parentId":561}],"is":{"declaration":true},"location":{"query":"Number.Function.isValidNumber","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.randomIntArrayInRange.json b/docs/v1.0.0-beta01/data/Number.Function.randomIntArrayInRange.json new file mode 100644 index 00000000..6bada7f5 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.randomIntArrayInRange.json @@ -0,0 +1 @@ +{"id":580,"name":"randomIntArrayInRange","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":139,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L139"}],"signatures":[{"id":581,"name":"randomIntArrayInRange","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"randomIntArrayInRange"}]},{"tag":"@description","content":[{"kind":"text","text":"求范围中的随机整数数组"}]},{"tag":"@returns","content":[{"kind":"text","text":"随机整数数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nrandomIntArrayInRange(1, 10, 2); // [一个1~10的随机数, 另一个1~10的随机数]\n```"}]}]},"parameters":[{"id":582,"name":"min","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"范围最小值"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

范围最小值

\n"}},{"id":583,"name":"max","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"范围最大值"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

范围最大值

\n"}},{"id":584,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组长度"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{"comment":"

数组长度

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"is":{"declaration":false},"location":{"query":"Number.Function.randomIntArrayInRange","hash":"randomIntArrayInRange"},"text":{"comment":"
Function:

randomIntArrayInRange

\n
Description:

求范围中的随机整数数组

\n
Returns:

随机整数数组

\n
Example:
randomIntArrayInRange(1, 10, 2); // [一个1~10的随机数, 另一个1~10的随机数]\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":139,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L139"}],"parentId":580}],"is":{"declaration":true},"location":{"query":"Number.Function.randomIntArrayInRange","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.randomIntegerInRange.json b/docs/v1.0.0-beta01/data/Number.Function.randomIntegerInRange.json new file mode 100644 index 00000000..a99a4a9c --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.randomIntegerInRange.json @@ -0,0 +1 @@ +{"id":572,"name":"randomIntegerInRange","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":112,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L112"}],"signatures":[{"id":573,"name":"randomIntegerInRange","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"randomIntegerInRange"}]},{"tag":"@description","content":[{"kind":"text","text":"求范围中的随机整数"}]},{"tag":"@returns","content":[{"kind":"text","text":"随机整数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nrandomNumberInRange(1, 10); // 一个1~10的随机整数\n```"}]}]},"parameters":[{"id":574,"name":"min","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"范围最小值"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

范围最小值

\n"}},{"id":575,"name":"max","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"范围最大值"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

范围最大值

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Number.Function.randomIntegerInRange","hash":"randomIntegerInRange"},"text":{"comment":"
Function:

randomIntegerInRange

\n
Description:

求范围中的随机整数

\n
Returns:

随机整数

\n
Example:
randomNumberInRange(1, 10); // 一个1~10的随机整数\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":112,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L112"}],"parentId":572}],"is":{"declaration":true},"location":{"query":"Number.Function.randomIntegerInRange","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.randomNumberInRange.json b/docs/v1.0.0-beta01/data/Number.Function.randomNumberInRange.json new file mode 100644 index 00000000..befc7699 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.randomNumberInRange.json @@ -0,0 +1 @@ +{"id":576,"name":"randomNumberInRange","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":125,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L125"}],"signatures":[{"id":577,"name":"randomNumberInRange","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"randomNumberInRange"}]},{"tag":"@description","content":[{"kind":"text","text":"求范围中的随机数(浮点数)"}]},{"tag":"@returns","content":[{"kind":"text","text":"随机浮点数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nrandomNumberInRange(1, 10); // 一个1~10的随机浮点数\n```"}]}]},"parameters":[{"id":578,"name":"min","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"范围最小值"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

范围最小值

\n"}},{"id":579,"name":"max","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"范围最大值"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

范围最大值

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Number.Function.randomNumberInRange","hash":"randomNumberInRange"},"text":{"comment":"
Function:

randomNumberInRange

\n
Description:

求范围中的随机数(浮点数)

\n
Returns:

随机浮点数

\n
Example:
randomNumberInRange(1, 10); // 一个1~10的随机浮点数\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":125,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L125"}],"parentId":576}],"is":{"declaration":true},"location":{"query":"Number.Function.randomNumberInRange","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.round.json b/docs/v1.0.0-beta01/data/Number.Function.round.json new file mode 100644 index 00000000..fd0b834d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.round.json @@ -0,0 +1 @@ +{"id":585,"name":"round","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":155,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L155"}],"signatures":[{"id":586,"name":"round","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"round"}]},{"tag":"@description","content":[{"kind":"text","text":"数字取位"}]},{"tag":"@returns","content":[{"kind":"text","text":"取位后的数字"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nround(5.6, 0); // 6\r\nround(10, -1); // 10\r\nround(12345.6789); // 12346\r\nround(12345.6789, 2); // 12345.68\n```"}]}]},"parameters":[{"id":587,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字

\n"}},{"id":588,"name":"decimals","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"保留小数位数,默认为0"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0","text":{"comment":"

保留小数位数,默认为0

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Number.Function.round","hash":"round"},"text":{"comment":"
Function:

round

\n
Description:

数字取位

\n
Returns:

取位后的数字

\n
Example:
round(5.6, 0); // 6\nround(10, -1); // 10\nround(12345.6789); // 12346\nround(12345.6789, 2); // 12345.68\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":155,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L155"}],"parentId":585}],"is":{"declaration":true},"location":{"query":"Number.Function.round","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Number.Function.sum.json b/docs/v1.0.0-beta01/data/Number.Function.sum.json new file mode 100644 index 00000000..bd12bb98 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Number.Function.sum.json @@ -0,0 +1 @@ +{"id":589,"name":"sum","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":168,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L168"}],"signatures":[{"id":590,"name":"sum","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"sum"}]},{"tag":"@description","content":[{"kind":"text","text":"数字求和"}]},{"tag":"@returns","content":[{"kind":"text","text":"数字求和结果"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nsum(1, 2, 3); // 6\n```"}]}]},"parameters":[{"id":591,"name":"arr","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{"comment":"

数字数组

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Number.Function.sum","hash":"sum"},"text":{"comment":"
Function:

sum

\n
Description:

数字求和

\n
Returns:

数字求和结果

\n
Example:
sum(1, 2, 3); // 6\n
\n"},"sources":[{"fileName":"utils/src/number.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/number.ts","line":168,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/number.ts#L168"}],"parentId":589}],"is":{"declaration":true},"location":{"query":"Number.Function.sum","hash":""},"text":{},"parentId":557} diff --git a/docs/v1.0.0-beta01/data/Object.Function.forOwn.json b/docs/v1.0.0-beta01/data/Object.Function.forOwn.json new file mode 100644 index 00000000..9b0a7bbb --- /dev/null +++ b/docs/v1.0.0-beta01/data/Object.Function.forOwn.json @@ -0,0 +1 @@ +{"id":604,"name":"forOwn","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":25,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L25"}],"signatures":[{"id":605,"name":"forOwn","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"forOwn"}]},{"tag":"@description","content":[{"kind":"text","text":"遍历一个对象的所有属性,返回一个包含所有属性值的数组"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个包含所有属性值的数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nforOwn({a:1,b:2,c:3}, (val) => console.log(val)); // ['a','b','c']\r\nforOwn({a:1,b:2,c:3}, (val, key) => console.log(key)); // [1,2,3]\n```"}]}]},"parameters":[{"id":606,"name":"obj","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要遍历的对象"}]},"type":{"type":"reference","id":639,"name":"PlainObject"},"text":{"comment":"

要遍历的对象

\n"}},{"id":607,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reflection","declaration":{"id":608,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/object.ts","line":27,"character":6,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L27"}],"signatures":[{"id":609,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":610,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"unknown"}},{"id":611,"name":"key","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"string"}},{"id":612,"name":"obj","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","id":639,"name":"PlainObject"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{"comment":"

回调函数

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"Object.Function.forOwn","hash":"forOwn"},"text":{"comment":"
Function:

forOwn

\n
Description:

遍历一个对象的所有属性,返回一个包含所有属性值的数组

\n
Returns:

返回一个包含所有属性值的数组

\n
Example:
forOwn({a:1,b:2,c:3}, (val) => console.log(val)); // ['a','b','c']\nforOwn({a:1,b:2,c:3}, (val, key) => console.log(key)); // [1,2,3]\n
\n"},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":25,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L25"}],"parentId":604}],"is":{"declaration":true},"location":{"query":"Object.Function.forOwn","hash":""},"text":{},"parentId":603} diff --git a/docs/v1.0.0-beta01/data/Object.Function.hasOwnProperty.json b/docs/v1.0.0-beta01/data/Object.Function.hasOwnProperty.json new file mode 100644 index 00000000..fd60405e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Object.Function.hasOwnProperty.json @@ -0,0 +1 @@ +{"id":631,"name":"hasOwnProperty","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":98,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L98"}],"signatures":[{"id":632,"name":"hasOwnProperty","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"hasOwnProp"}]},{"tag":"@description","content":[{"kind":"text","text":"检查一个对象是否具有指定的属性"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否具有指定的属性"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst obj = {a:1};\r\nhasOwnProp(obj, 'a'); // true\r\nhasOwnProp(obj, 'b'); // false\r\nhasOwnProp(obj, 'toString'); // false\n```"}]}]},"typeParameter":[{"id":633,"name":"T","kind":131072,"kindString":"Type parameter","flags":{},"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","qualifiedName":"Record","package":"typescript"}}],"parameters":[{"id":634,"name":"obj","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"对象"}]},"type":{"type":"reference","id":633,"name":"T"},"text":{"comment":"

对象

\n"}},{"id":635,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"属性名"}]},"type":{"type":"reference","name":"PropertyKey","qualifiedName":"PropertyKey","package":"typescript"},"text":{"comment":"

属性名

\n"}}],"type":{"type":"predicate","name":"key","asserts":false,"targetType":{"type":"typeOperator","operator":"keyof","target":{"type":"reference","id":633,"name":"T"}}},"is":{"declaration":false},"location":{"query":"Object.Function.hasOwnProperty","hash":"hasOwnProperty"},"text":{"comment":"
Function:

hasOwnProp

\n
Description:

检查一个对象是否具有指定的属性

\n
Returns:

是否具有指定的属性

\n
Example:
const obj = {a:1};\nhasOwnProp(obj, 'a'); // true\nhasOwnProp(obj, 'b'); // false\nhasOwnProp(obj, 'toString'); // false\n
\n"},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":98,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L98"}],"parentId":631}],"is":{"declaration":true},"location":{"query":"Object.Function.hasOwnProperty","hash":""},"text":{},"parentId":603} diff --git a/docs/v1.0.0-beta01/data/Object.Function.isEmptyObj.json b/docs/v1.0.0-beta01/data/Object.Function.isEmptyObj.json new file mode 100644 index 00000000..c72959de --- /dev/null +++ b/docs/v1.0.0-beta01/data/Object.Function.isEmptyObj.json @@ -0,0 +1 @@ +{"id":636,"name":"isEmptyObj","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":117,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L117"}],"signatures":[{"id":637,"name":"isEmptyObj","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isEmptyObj"}]},{"tag":"@description","content":[{"kind":"text","text":"是否为空对象"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为空对象"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisEmptyObj({}); // true\r\nisEmptyObj({a:1}); // false\r\nisEmptyObj(null); // false\r\nisEmptyObj(undefined); // false\r\nisEmptyObj([]); // false\n```"}]}]},"parameters":[{"id":638,"name":"obj","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"对象"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

对象

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Object.Function.isEmptyObj","hash":"isEmptyObj"},"text":{"comment":"
Function:

isEmptyObj

\n
Description:

是否为空对象

\n
Returns:

是否为空对象

\n
Example:
isEmptyObj({}); // true\nisEmptyObj({a:1}); // false\nisEmptyObj(null); // false\nisEmptyObj(undefined); // false\nisEmptyObj([]); // false\n
\n"},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":117,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L117"}],"parentId":636}],"is":{"declaration":true},"location":{"query":"Object.Function.isEmptyObj","hash":""},"text":{},"parentId":603} diff --git a/docs/v1.0.0-beta01/data/Object.Function.mapObject.json b/docs/v1.0.0-beta01/data/Object.Function.mapObject.json new file mode 100644 index 00000000..9a6765c3 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Object.Function.mapObject.json @@ -0,0 +1 @@ +{"id":616,"name":"mapObject","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":58,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L58"}],"signatures":[{"id":617,"name":"mapObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"mapObject"}]},{"tag":"@description","content":[{"kind":"text","text":"将一个包含多个元素的数组转换为一个普通的Object对象"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个Object对象"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nmapObject(['a', 'b', 'c'], v => v + '1') // { a: 'a1', b: 'b1', c: 'c1' }\r\nmapObject(['a', 'b', 'c'], (v, i) => i) // { a: 0, b: 1, c: 2 }\n```"}]}]},"typeParameter":[{"id":618,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}},{"id":619,"name":"U","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":620,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"array","elementType":{"type":"reference","id":618,"name":"T"}},"text":{"comment":"

数组

\n"}},{"id":621,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reflection","declaration":{"id":622,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/object.ts","line":60,"character":6,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L60"}],"signatures":[{"id":623,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":624,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":618,"name":"T"}},{"id":625,"name":"index","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":626,"name":"array","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"reference","id":618,"name":"T"}}}],"type":{"type":"reference","id":619,"name":"U"}}]}},"text":{"comment":"

回调函数

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"conditional","checkType":{"type":"reference","id":618,"name":"T"},"extendsType":{"type":"intrinsic","name":"string"},"trueType":{"type":"reference","id":618,"name":"T"},"falseType":{"type":"intrinsic","name":"string"}},{"type":"reference","id":619,"name":"U"}],"name":"Record","qualifiedName":"Record","package":"typescript"},"is":{"declaration":false},"location":{"query":"Object.Function.mapObject","hash":"mapObject"},"text":{"comment":"
Function:

mapObject

\n
Description:

将一个包含多个元素的数组转换为一个普通的Object对象

\n
Returns:

返回一个Object对象

\n
Example:
mapObject(['a', 'b', 'c'], v => v + '1') // { a: 'a1', b: 'b1', c: 'c1' }\nmapObject(['a', 'b', 'c'], (v, i) => i) // { a: 0, b: 1, c: 2 }\n
\n"},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":58,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L58"}],"parentId":616}],"is":{"declaration":true},"location":{"query":"Object.Function.mapObject","hash":""},"text":{},"parentId":603} diff --git a/docs/v1.0.0-beta01/data/Object.Function.objectFromPairs.json b/docs/v1.0.0-beta01/data/Object.Function.objectFromPairs.json new file mode 100644 index 00000000..6a9582e6 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Object.Function.objectFromPairs.json @@ -0,0 +1 @@ +{"id":613,"name":"objectFromPairs","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":41,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L41"}],"signatures":[{"id":614,"name":"objectFromPairs","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"objectFromPairs"}]},{"tag":"@description","content":[{"kind":"text","text":"将一个包含两个元素的数组转换为一个Object对象"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个Object对象"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nobjectFromPairs([['a', 1], ['b', [2]]]); // -> {a:1, b:[2]}\r\nobjectFromPairs([['a', 1], ['b', [2]], ['c', {d:3}]]); // -> {a:1, b:[2], c:{d:3}}\n```"}]}]},"parameters":[{"id":615,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"一个包含两个元素的数组"}]},"type":{"type":"array","elementType":{"type":"tuple","elements":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}]}},"text":{"comment":"

一个包含两个元素的数组

\n"}}],"type":{"type":"reference","id":639,"name":"PlainObject"},"is":{"declaration":false},"location":{"query":"Object.Function.objectFromPairs","hash":"objectFromPairs"},"text":{"comment":"
Function:

objectFromPairs

\n
Description:

将一个包含两个元素的数组转换为一个Object对象

\n
Returns:

返回一个Object对象

\n
Example:
objectFromPairs([['a', 1], ['b', [2]]]); // -> {a:1, b:[2]}\nobjectFromPairs([['a', 1], ['b', [2]], ['c', {d:3}]]); // -> {a:1, b:[2], c:{d:3}}\n
\n"},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":41,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L41"}],"parentId":613}],"is":{"declaration":true},"location":{"query":"Object.Function.objectFromPairs","hash":""},"text":{},"parentId":603} diff --git a/docs/v1.0.0-beta01/data/Object.Function.pick.json b/docs/v1.0.0-beta01/data/Object.Function.pick.json new file mode 100644 index 00000000..6fdb311f --- /dev/null +++ b/docs/v1.0.0-beta01/data/Object.Function.pick.json @@ -0,0 +1 @@ +{"id":627,"name":"pick","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":79,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L79"}],"signatures":[{"id":628,"name":"pick","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"pick"}]},{"tag":"@description","content":[{"kind":"text","text":"将一个包含多个键值对的对象转换为一个只包含指定键的对象,注意是生成新的对象,源对象不会改变"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个新的对象"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\npick({a:1,b:2,c:3}, ['a','b']); // {a:1,b:2}\r\npick({a:1,b:2,c:3}, ['a','d']); // {a:1}\n```"}]}]},"parameters":[{"id":629,"name":"obj","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"源对象"}]},"type":{"type":"reference","id":639,"name":"PlainObject"},"text":{"comment":"

源对象

\n"}},{"id":630,"name":"keys","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{}}],"type":{"type":"reference","id":639,"name":"PlainObject"},"is":{"declaration":false},"location":{"query":"Object.Function.pick","hash":"pick"},"text":{"comment":"
Function:

pick

\n
Description:

将一个包含多个键值对的对象转换为一个只包含指定键的对象,注意是生成新的对象,源对象不会改变

\n
Returns:

返回一个新的对象

\n
Example:
pick({a:1,b:2,c:3}, ['a','b']); // {a:1,b:2}\npick({a:1,b:2,c:3}, ['a','d']); // {a:1}\n
\n"},"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":79,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L79"}],"parentId":627}],"is":{"declaration":true},"location":{"query":"Object.Function.pick","hash":""},"text":{},"parentId":603} diff --git a/docs/v1.0.0-beta01/data/Object.TypeAlias.PlainObject.json b/docs/v1.0.0-beta01/data/Object.TypeAlias.PlainObject.json new file mode 100644 index 00000000..e5479882 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Object.TypeAlias.PlainObject.json @@ -0,0 +1 @@ +{"id":639,"name":"PlainObject","kind":4194304,"kindString":"Type alias","flags":{},"children":[],"sources":[{"fileName":"utils/src/object.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/object.ts","line":11,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L11"}],"type":{"type":"reflection","declaration":{"id":640,"name":"PlainObject","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"utils/src/object.ts","line":11,"character":26,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/object.ts#L11"}],"indexSignature":{"id":641,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"parameters":[{"id":642,"name":"propName","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"unknown"}},"location":{"query":"Object.TypeAlias.PlainObject","hash":""}}},"is":{"declaration":true},"location":{"query":"Object.TypeAlias.PlainObject","hash":""},"text":{},"parentId":603} diff --git a/docs/v1.0.0-beta01/data/Others.Function.compareVersion.json b/docs/v1.0.0-beta01/data/Others.Function.compareVersion.json new file mode 100644 index 00000000..2651c2b0 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Others.Function.compareVersion.json @@ -0,0 +1 @@ +{"id":644,"name":"compareVersion","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/others.ts","line":31,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/others.ts#L31"}],"signatures":[{"id":645,"name":"compareVersion","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"compareVersion"}]},{"tag":"@description","content":[{"kind":"text","text":"版本比较"}]},{"tag":"@returns","content":[{"kind":"text","text":"比较结果,1: v1 > v2, 0: v1 = v2, -1: v1 < v2"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncompareVersion('1.1.8', '1.0.4'); // -> 1\r\ncompareVersion('1.0.2', '1.0.2'); // -> 0\r\ncompareVersion('2.0', '2.0.0'); // -> 0\r\ncompareVersion('3.0.1', '3.0.0.2'); // -> 1\r\ncompareVersion('1.1.1', '1.2.3'); // -> -1\n```"}]}]},"parameters":[{"id":646,"name":"v1Str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"版本1"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

版本1

\n"}},{"id":647,"name":"v2Str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"版本2"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

版本2

\n"}}],"type":{"type":"union","types":[{"type":"literal","value":0},{"type":"literal","value":1},{"type":"literal","value":-1}]},"is":{"declaration":false},"location":{"query":"Others.Function.compareVersion","hash":"compareVersion"},"text":{"comment":"
Function:

compareVersion

\n
Description:

版本比较

\n
Returns:

比较结果,1: v1 > v2, 0: v1 = v2, -1: v1 < v2

\n
Example:
compareVersion('1.1.8', '1.0.4'); // -> 1\ncompareVersion('1.0.2', '1.0.2'); // -> 0\ncompareVersion('2.0', '2.0.0'); // -> 0\ncompareVersion('3.0.1', '3.0.0.2'); // -> 1\ncompareVersion('1.1.1', '1.2.3'); // -> -1\n
\n"},"sources":[{"fileName":"utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/others.ts","line":31,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/others.ts#L31"}],"parentId":644}],"is":{"declaration":true},"location":{"query":"Others.Function.compareVersion","hash":""},"text":{},"parentId":643} diff --git a/docs/v1.0.0-beta01/data/Others.Function.digitUppercase.json b/docs/v1.0.0-beta01/data/Others.Function.digitUppercase.json new file mode 100644 index 00000000..73e8075e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Others.Function.digitUppercase.json @@ -0,0 +1 @@ +{"id":648,"name":"digitUppercase","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/others.ts","line":57,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/others.ts#L57"}],"signatures":[{"id":649,"name":"digitUppercase","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"digitUppercase"}]},{"tag":"@description","content":[{"kind":"text","text":"数字金额转中文"}]},{"tag":"@returns","content":[{"kind":"text","text":"中文金额"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndigitUppercase(1000); // '壹仟元整'\r\ndigitUppercase(-123.45); // '欠壹佰贰拾叁元肆角伍分'\n```"}]}]},"parameters":[{"id":650,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字金额"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字金额

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Others.Function.digitUppercase","hash":"digitUppercase"},"text":{"comment":"
Function:

digitUppercase

\n
Description:

数字金额转中文

\n
Returns:

中文金额

\n
Example:
digitUppercase(1000); // '壹仟元整'\ndigitUppercase(-123.45); // '欠壹佰贰拾叁元肆角伍分'\n
\n"},"sources":[{"fileName":"utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/others.ts","line":57,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/others.ts#L57"}],"parentId":648}],"is":{"declaration":true},"location":{"query":"Others.Function.digitUppercase","hash":""},"text":{},"parentId":643} diff --git a/docs/v1.0.0-beta01/data/Platform.Function.getMobileBrandIdentify.json b/docs/v1.0.0-beta01/data/Platform.Function.getMobileBrandIdentify.json new file mode 100644 index 00000000..2848f9ee --- /dev/null +++ b/docs/v1.0.0-beta01/data/Platform.Function.getMobileBrandIdentify.json @@ -0,0 +1 @@ +{"id":1152,"name":"getMobileBrandIdentify","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":148,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L148"}],"signatures":[{"id":1153,"name":"getMobileBrandIdentify","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getMobileBrandIdentify"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前移动设备的品牌标识(部分手机)"}]},{"tag":"@returns","content":[{"kind":"text","text":"手机品牌标识,如:'iphone'、'huawei'、'oppo'、'vivo'、'xiaomi'、'samsung'、'unknown'"}]}]},"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Platform.Function.getMobileBrandIdentify","hash":"getMobileBrandIdentify"},"text":{"comment":"
Function:

getMobileBrandIdentify

\n
Description:

获取当前移动设备的品牌标识(部分手机)

\n
Returns:

手机品牌标识,如:'iphone'、'huawei'、'oppo'、'vivo'、'xiaomi'、'samsung'、'unknown'

\n"},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":148,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L148"}],"parentId":1152}],"is":{"declaration":true},"location":{"query":"Platform.Function.getMobileBrandIdentify","hash":""},"text":{},"parentId":1138} diff --git a/docs/v1.0.0-beta01/data/Platform.Function.getMobileOS.json b/docs/v1.0.0-beta01/data/Platform.Function.getMobileOS.json new file mode 100644 index 00000000..790d6b39 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Platform.Function.getMobileOS.json @@ -0,0 +1 @@ +{"id":1147,"name":"getMobileOS","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":124,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L124"}],"signatures":[{"id":1148,"name":"getMobileOS","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getMobileOS"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前页面所处的移动设备系统"}]},{"tag":"@returns","content":[{"kind":"text","text":"移动设备系统,如:{'android': 0, 'ios': 11.2}"}]}]},"type":{"type":"reflection","declaration":{"id":1149,"name":"getMobileOS","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1150,"name":"android","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":126,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L126"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"0","is":{"declaration":true},"location":{"query":"Platform.Function.getMobileOS","hash":"getMobileOS.android"},"text":{},"parentId":1147},{"id":1151,"name":"ios","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":127,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L127"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"0","is":{"declaration":true},"location":{"query":"Platform.Function.getMobileOS","hash":"getMobileOS.ios"},"text":{},"parentId":1147}],"groups":[{"title":"Properties","children":[1150,1151]}],"sources":[{"fileName":"web-utils/src/platform.ts","line":125,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L125"}],"location":{"query":"Platform.Function.getMobileOS","hash":"getMobileOS"}}},"is":{"declaration":false},"location":{"query":"Platform.Function.getMobileOS","hash":"getMobileOS"},"text":{"comment":"
Function:

getMobileOS

\n
Description:

获取当前页面所处的移动设备系统

\n
Returns:

移动设备系统,如:{'android': 0, 'ios': 11.2}

\n"},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":124,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L124"}],"parentId":1147}],"is":{"declaration":true},"location":{"query":"Platform.Function.getMobileOS","hash":""},"text":{},"parentId":1138} diff --git a/docs/v1.0.0-beta01/data/Platform.Function.getMobilePlatform.json b/docs/v1.0.0-beta01/data/Platform.Function.getMobilePlatform.json new file mode 100644 index 00000000..0efb3e42 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Platform.Function.getMobilePlatform.json @@ -0,0 +1 @@ +{"id":1145,"name":"getMobilePlatform","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":108,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L108"}],"signatures":[{"id":1146,"name":"getMobilePlatform","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getMobilePlatform"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前页面所处的移动设备标识(适用于纯移动端业务进行简单的iPhone还是安卓手机判断)"}]},{"tag":"@returns","content":[{"kind":"text","text":"移动设备标识,如:'iphone'、'gphone'"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetMobilePlatform(); // 'iphone' or 'gphone'\n```"}]}]},"type":{"type":"union","types":[{"type":"literal","value":"iphone"},{"type":"literal","value":"gphone"}]},"is":{"declaration":false},"location":{"query":"Platform.Function.getMobilePlatform","hash":"getMobilePlatform"},"text":{"comment":"
Function:

getMobilePlatform

\n
Description:

获取当前页面所处的移动设备标识(适用于纯移动端业务进行简单的iPhone还是安卓手机判断)

\n
Returns:

移动设备标识,如:'iphone'、'gphone'

\n
Example:
getMobilePlatform(); // 'iphone' or 'gphone'\n
\n"},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":108,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L108"}],"parentId":1145}],"is":{"declaration":true},"location":{"query":"Platform.Function.getMobilePlatform","hash":""},"text":{},"parentId":1138} diff --git a/docs/v1.0.0-beta01/data/Platform.Function.getPcExplore.json b/docs/v1.0.0-beta01/data/Platform.Function.getPcExplore.json new file mode 100644 index 00000000..9a93801b --- /dev/null +++ b/docs/v1.0.0-beta01/data/Platform.Function.getPcExplore.json @@ -0,0 +1 @@ +{"id":1141,"name":"getPcExplore","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":43,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L43"}],"signatures":[{"id":1142,"name":"getPcExplore","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getPcExplore"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前PC浏览器标识"}]},{"tag":"@returns","content":[{"kind":"text","text":"浏览器标识,如:'IE: 11.0'、'Chrome: 83.0.4103.116'、'Firefox: 77.0'、'Opera: 69.0.3686.77'、'Safari: 13.1.1'"}]}]},"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Platform.Function.getPcExplore","hash":"getPcExplore"},"text":{"comment":"
Function:

getPcExplore

\n
Description:

获取当前PC浏览器标识

\n
Returns:

浏览器标识,如:'IE: 11.0'、'Chrome: 83.0.4103.116'、'Firefox: 77.0'、'Opera: 69.0.3686.77'、'Safari: 13.1.1'

\n"},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":43,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L43"}],"parentId":1141}],"is":{"declaration":true},"location":{"query":"Platform.Function.getPcExplore","hash":""},"text":{},"parentId":1138} diff --git a/docs/v1.0.0-beta01/data/Platform.Function.getSystemOS.json b/docs/v1.0.0-beta01/data/Platform.Function.getSystemOS.json new file mode 100644 index 00000000..3626eef6 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Platform.Function.getSystemOS.json @@ -0,0 +1 @@ +{"id":1143,"name":"getSystemOS","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":86,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L86"}],"signatures":[{"id":1144,"name":"getSystemOS","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getSystemOS"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前页面所在的系统标识"}]},{"tag":"@returns","content":[{"kind":"text","text":"系统标识,如:'mac'、'windows'、'linux'、'ios'、'android'、'harmony'、'unknown'"}]}]},"type":{"type":"union","types":[{"type":"literal","value":"android"},{"type":"literal","value":"mac"},{"type":"literal","value":"windowsPhone"},{"type":"literal","value":"windows"},{"type":"literal","value":"linux"},{"type":"literal","value":"ios"},{"type":"literal","value":"harmony"},{"type":"literal","value":"unknown"}]},"is":{"declaration":false},"location":{"query":"Platform.Function.getSystemOS","hash":"getSystemOS"},"text":{"comment":"
Function:

getSystemOS

\n
Description:

获取当前页面所在的系统标识

\n
Returns:

系统标识,如:'mac'、'windows'、'linux'、'ios'、'android'、'harmony'、'unknown'

\n"},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":86,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L86"}],"parentId":1143}],"is":{"declaration":true},"location":{"query":"Platform.Function.getSystemOS","hash":""},"text":{},"parentId":1138} diff --git a/docs/v1.0.0-beta01/data/Platform.Function.isPC.json b/docs/v1.0.0-beta01/data/Platform.Function.isPC.json new file mode 100644 index 00000000..b932b3bb --- /dev/null +++ b/docs/v1.0.0-beta01/data/Platform.Function.isPC.json @@ -0,0 +1 @@ +{"id":1139,"name":"isPC","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":24,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L24"}],"signatures":[{"id":1140,"name":"isPC","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isPC"}]},{"tag":"@description","content":[{"kind":"text","text":"判断当前页面是否处于PC环境下(主要通过判断是否存在移动设备的关键字)"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否是PC环境"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nif (isPC()) {\r\n console.log('当前处在PC环境下')\r\n}\n```"}]}]},"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Platform.Function.isPC","hash":"isPC"},"text":{"comment":"
Function:

isPC

\n
Description:

判断当前页面是否处于PC环境下(主要通过判断是否存在移动设备的关键字)

\n
Returns:

是否是PC环境

\n
Example:
if (isPC()) {\n   console.log('当前处在PC环境下')\n}\n
\n"},"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":24,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L24"}],"parentId":1139}],"is":{"declaration":true},"location":{"query":"Platform.Function.isPC","hash":""},"text":{},"parentId":1138} diff --git a/docs/v1.0.0-beta01/data/Platform.Variable.ua.json b/docs/v1.0.0-beta01/data/Platform.Variable.ua.json new file mode 100644 index 00000000..3d999f65 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Platform.Variable.ua.json @@ -0,0 +1 @@ +{"id":1154,"name":"ua","kind":32,"kindString":"Variable","flags":{"isConst":true},"comment":{"summary":[],"blockTags":[{"tag":"@description","content":[{"kind":"text","text":"全小写的浏览器用户代理字符串(User Agent String,简称 UA),即navigator.userAgent的小写转换字符串"}]}]},"children":[],"sources":[{"fileName":"web-utils/src/platform.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/platform.ts","line":13,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/platform.ts#L13"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"...","is":{"declaration":true},"location":{"query":"Platform.Variable.ua","hash":""},"text":{"comment":"
Description:

全小写的浏览器用户代理字符串(User Agent String,简称 UA),即navigator.userAgent的小写转换字符串

\n"},"parentId":1138} diff --git a/docs/v1.0.0-beta01/data/Screen.Function.enterFullscreen.json b/docs/v1.0.0-beta01/data/Screen.Function.enterFullscreen.json new file mode 100644 index 00000000..4b484f59 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Screen.Function.enterFullscreen.json @@ -0,0 +1 @@ +{"id":1164,"name":"enterFullscreen","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":62,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L62"}],"signatures":[{"id":1165,"name":"enterFullscreen","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"enterFullscreen"}]},{"tag":"@description","content":[{"kind":"text","text":"使浏览器进入全屏模式"}]},{"tag":"@tips","content":[{"kind":"text","text":"MAC、IOS下的Safari浏览器不支持非交互全屏"}]}]},"parameters":[{"id":1166,"name":"element","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"进入全屏的元素,默认为document.body"}]},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"defaultValue":"document.body","text":{"comment":"

进入全屏的元素,默认为document.body

\n"}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"reference","typeArguments":[{"type":"intrinsic","name":"never"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}]},"is":{"declaration":false},"location":{"query":"Screen.Function.enterFullscreen","hash":"enterFullscreen"},"text":{"comment":"
Function:

enterFullscreen

\n
Description:

使浏览器进入全屏模式

\n
Tips:

MAC、IOS下的Safari浏览器不支持非交互全屏

\n"},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":62,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L62"}],"parentId":1164}],"is":{"declaration":true},"location":{"query":"Screen.Function.enterFullscreen","hash":""},"text":{},"parentId":1159} diff --git a/docs/v1.0.0-beta01/data/Screen.Function.exitFullscreen.json b/docs/v1.0.0-beta01/data/Screen.Function.exitFullscreen.json new file mode 100644 index 00000000..6bc461e7 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Screen.Function.exitFullscreen.json @@ -0,0 +1 @@ +{"id":1167,"name":"exitFullscreen","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":83,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L83"}],"signatures":[{"id":1168,"name":"exitFullscreen","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"exitFullscreen"}]},{"tag":"@description","content":[{"kind":"text","text":"退出全屏"}]}]},"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"Screen.Function.exitFullscreen","hash":"exitFullscreen"},"text":{"comment":"
Function:

exitFullscreen

\n
Description:

退出全屏

\n"},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":83,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L83"}],"parentId":1167}],"is":{"declaration":true},"location":{"query":"Screen.Function.exitFullscreen","hash":""},"text":{},"parentId":1159} diff --git a/docs/v1.0.0-beta01/data/Screen.Function.getClientHeight.json b/docs/v1.0.0-beta01/data/Screen.Function.getClientHeight.json new file mode 100644 index 00000000..d584eb75 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Screen.Function.getClientHeight.json @@ -0,0 +1 @@ +{"id":1169,"name":"getClientHeight","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":15,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L15"}],"signatures":[{"id":1170,"name":"getClientHeight","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getClientHeight"}]},{"tag":"@description","content":[{"kind":"text","text":"获取可视窗口的高度"}]},{"tag":"@returns","content":[{"kind":"text","text":"可视窗口的高度"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst height = getClientHeight();\n```"}]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Screen.Function.getClientHeight","hash":"getClientHeight"},"text":{"comment":"
Function:

getClientHeight

\n
Description:

获取可视窗口的高度

\n
Returns:

可视窗口的高度

\n
Example:
const height = getClientHeight();\n
\n"},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":15,"character":31,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L15"}],"parentId":1169}],"is":{"declaration":true},"location":{"query":"Screen.Function.getClientHeight","hash":""},"text":{},"parentId":1159} diff --git a/docs/v1.0.0-beta01/data/Screen.Function.getClientWidth.json b/docs/v1.0.0-beta01/data/Screen.Function.getClientWidth.json new file mode 100644 index 00000000..8e821847 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Screen.Function.getClientWidth.json @@ -0,0 +1 @@ +{"id":1171,"name":"getClientWidth","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":25,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L25"}],"signatures":[{"id":1172,"name":"getClientWidth","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getClientWidth"}]},{"tag":"@description","content":[{"kind":"text","text":"获取可视窗口的宽度"}]},{"tag":"@returns","content":[{"kind":"text","text":"可视窗口的宽度"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst clientW = getClientWidth();\n```"}]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Screen.Function.getClientWidth","hash":"getClientWidth"},"text":{"comment":"
Function:

getClientWidth

\n
Description:

获取可视窗口的宽度

\n
Returns:

可视窗口的宽度

\n
Example:
const clientW = getClientWidth();\n
\n"},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":25,"character":30,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L25"}],"parentId":1171}],"is":{"declaration":true},"location":{"query":"Screen.Function.getClientWidth","hash":""},"text":{},"parentId":1159} diff --git a/docs/v1.0.0-beta01/data/Screen.Function.isFullScreen.json b/docs/v1.0.0-beta01/data/Screen.Function.isFullScreen.json new file mode 100644 index 00000000..e3f92de9 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Screen.Function.isFullScreen.json @@ -0,0 +1 @@ +{"id":1160,"name":"isFullScreen","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":33,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L33"}],"signatures":[{"id":1161,"name":"isFullScreen","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isFullScreen"}]},{"tag":"@description","content":[{"kind":"text","text":"是否在全屏状态"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否在全屏状态"}]}]},"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"Screen.Function.isFullScreen","hash":"isFullScreen"},"text":{"comment":"
Function:

isFullScreen

\n
Description:

是否在全屏状态

\n
Returns:

是否在全屏状态

\n"},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":33,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L33"}],"parentId":1160}],"is":{"declaration":true},"location":{"query":"Screen.Function.isFullScreen","hash":""},"text":{},"parentId":1159} diff --git a/docs/v1.0.0-beta01/data/Screen.Function.isFullScreenEnabled.json b/docs/v1.0.0-beta01/data/Screen.Function.isFullScreenEnabled.json new file mode 100644 index 00000000..9591f18a --- /dev/null +++ b/docs/v1.0.0-beta01/data/Screen.Function.isFullScreenEnabled.json @@ -0,0 +1 @@ +{"id":1162,"name":"isFullScreenEnabled","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":47,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L47"}],"signatures":[{"id":1163,"name":"isFullScreenEnabled","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isFullScreenEnabled"}]},{"tag":"@description","content":[{"kind":"text","text":"当前浏览器环境是否支持全屏操作"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否支持全屏操作"}]}]},"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"Screen.Function.isFullScreenEnabled","hash":"isFullScreenEnabled"},"text":{"comment":"
Function:

isFullScreenEnabled

\n
Description:

当前浏览器环境是否支持全屏操作

\n
Returns:

是否支持全屏操作

\n"},"sources":[{"fileName":"web-utils/src/screen.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/screen.ts","line":47,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/screen.ts#L47"}],"parentId":1162}],"is":{"declaration":true},"location":{"query":"Screen.Function.isFullScreenEnabled","hash":""},"text":{},"parentId":1159} diff --git a/docs/v1.0.0-beta01/data/String.Function.byteSize.json b/docs/v1.0.0-beta01/data/String.Function.byteSize.json new file mode 100644 index 00000000..09748b49 --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.byteSize.json @@ -0,0 +1 @@ +{"id":652,"name":"byteSize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":18,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L18"}],"signatures":[{"id":653,"name":"byteSize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"byteSize"}]},{"tag":"@description","content":[{"kind":"text","text":"用于计算字符串的字节数"}]},{"tag":"@returns","content":[{"kind":"text","text":"字节数"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nbyteSize('Hello, world!'); // 13\r\nbyteSize('你好,世界!'); // 14\r\nbyteSize('😊'); // 4\n```"}]}]},"parameters":[{"id":654,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"String.Function.byteSize","hash":"byteSize"},"text":{"comment":"
Function:

byteSize

\n
Description:

用于计算字符串的字节数

\n
Returns:

字节数

\n
Example:
byteSize('Hello, world!'); // 13\nbyteSize('你好,世界!'); // 14\nbyteSize('😊'); // 4\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":18,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L18"}],"parentId":652}],"is":{"declaration":true},"location":{"query":"String.Function.byteSize","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.camelize.json b/docs/v1.0.0-beta01/data/String.Function.camelize.json new file mode 100644 index 00000000..8034de0f --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.camelize.json @@ -0,0 +1 @@ +{"id":687,"name":"camelize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":207,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L207"}],"signatures":[{"id":688,"name":"camelize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"camelize"}]},{"tag":"@description","content":[{"kind":"text","text":"将字符串转换成驼峰命名方式"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回转换后的字符串 testData"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\n// Test case 1: Basic functionality\r\nconst input1 = \"hello-world\";\r\nconst expectedOutput1 = \"helloWorld\";\r\nconst actualOutput1 = camelize(input1);\r\nconsole.log(actualOutput1 === expectedOutput1); // true\r\n\n// Test case 2: Input with underscore separator\r\nconst input2 = \"foo_bar\";\r\nconst expectedOutput2 = \"fooBar\";\r\nconst actualOutput2 = camelize(input2);\r\nconsole.log(actualOutput2 === expectedOutput2); // true\r\n\n// Test case 3: Input with multiple separators in a row\r\nconst input3 = \"foo---bar\";\r\nconst expectedOutput3 = \"fooBar\";\r\nconst actualOutput3 = camelize(input3);\r\nconsole.log(actualOutput3 === expectedOutput3); // true\r\n\n// Test case 4: Input with uppercase letters\r\nconst input4 = \"foo-bar-BAZ\";\r\nconst expectedOutput4 = \"fooBarBAZ\";\r\nconst actualOutput4 = camelize(input4);\r\nconsole.log(actualOutput4 === expectedOutput4); // true\r\n\n// Test case 5: Input with numbers\r\nconst input5 = \"foo-123-bar\";\r\nconst expectedOutput5 = \"foo123Bar\";\r\nconst actualOutput5 = camelize(input5);\r\nconsole.log(actualOutput5 === expectedOutput5); // true\n```"}]}]},"parameters":[{"id":689,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"待判断的字符串 test-data"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

待判断的字符串 test-data

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"String.Function.camelize","hash":"camelize"},"text":{"comment":"
Function:

camelize

\n
Description:

将字符串转换成驼峰命名方式

\n
Returns:

返回转换后的字符串 testData

\n
Example:
// Test case 1: Basic functionality\nconst input1 = \"hello-world\";\nconst expectedOutput1 = \"helloWorld\";\nconst actualOutput1 = camelize(input1);\nconsole.log(actualOutput1 === expectedOutput1); // true\n\n// Test case 2: Input with underscore separator\nconst input2 = \"foo_bar\";\nconst expectedOutput2 = \"fooBar\";\nconst actualOutput2 = camelize(input2);\nconsole.log(actualOutput2 === expectedOutput2); // true\n\n// Test case 3: Input with multiple separators in a row\nconst input3 = \"foo---bar\";\nconst expectedOutput3 = \"fooBar\";\nconst actualOutput3 = camelize(input3);\nconsole.log(actualOutput3 === expectedOutput3); // true\n\n// Test case 4: Input with uppercase letters\nconst input4 = \"foo-bar-BAZ\";\nconst expectedOutput4 = \"fooBarBAZ\";\nconst actualOutput4 = camelize(input4);\nconsole.log(actualOutput4 === expectedOutput4); // true\n\n// Test case 5: Input with numbers\nconst input5 = \"foo-123-bar\";\nconst expectedOutput5 = \"foo123Bar\";\nconst actualOutput5 = camelize(input5);\nconsole.log(actualOutput5 === expectedOutput5); // true\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":207,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L207"}],"parentId":687}],"is":{"declaration":true},"location":{"query":"String.Function.camelize","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.capitalize.json b/docs/v1.0.0-beta01/data/String.Function.capitalize.json new file mode 100644 index 00000000..6178ff44 --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.capitalize.json @@ -0,0 +1 @@ +{"id":655,"name":"capitalize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":32,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L32"}],"signatures":[{"id":656,"name":"capitalize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"capitalize"}]},{"tag":"@description","content":[{"kind":"text","text":"用于将字符串的第一个字母转换为大写字母"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回转换后的字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncapitalize('hello'); // 'Hello'\r\ncapitalize('world'); // 'World'\r\ncapitalize('hello world'); // 'Hello world'\n```"}]}]},"parameters":[{"id":657,"name":"paramString","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"String.Function.capitalize","hash":"capitalize"},"text":{"comment":"
Function:

capitalize

\n
Description:

用于将字符串的第一个字母转换为大写字母

\n
Returns:

返回转换后的字符串

\n
Example:
capitalize('hello'); // 'Hello'\ncapitalize('world'); // 'World'\ncapitalize('hello world'); // 'Hello world'\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":32,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L32"}],"parentId":655}],"is":{"declaration":true},"location":{"query":"String.Function.capitalize","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.capitalizeEveryWord.json b/docs/v1.0.0-beta01/data/String.Function.capitalizeEveryWord.json new file mode 100644 index 00000000..0448282d --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.capitalizeEveryWord.json @@ -0,0 +1 @@ +{"id":658,"name":"capitalizeEveryWord","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":45,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L45"}],"signatures":[{"id":659,"name":"capitalizeEveryWord","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"capitalizeEveryWord"}]},{"tag":"@description","content":[{"kind":"text","text":"将字符串中的每个单词的第一个字母转换为大写字母"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回转换后的字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncapitalizeEveryWord('hello world'); // 'Hello World'\r\ncapitalizeEveryWord('the quick brown fox'); // 'The Quick Brown Fox'\n```"}]}]},"parameters":[{"id":660,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"String.Function.capitalizeEveryWord","hash":"capitalizeEveryWord"},"text":{"comment":"
Function:

capitalizeEveryWord

\n
Description:

将字符串中的每个单词的第一个字母转换为大写字母

\n
Returns:

返回转换后的字符串

\n
Example:
capitalizeEveryWord('hello world'); // 'Hello World'\ncapitalizeEveryWord('the quick brown fox'); // 'The Quick Brown Fox'\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":45,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L45"}],"parentId":658}],"is":{"declaration":true},"location":{"query":"String.Function.capitalizeEveryWord","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.decapitalize.json b/docs/v1.0.0-beta01/data/String.Function.decapitalize.json new file mode 100644 index 00000000..7680cf9d --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.decapitalize.json @@ -0,0 +1 @@ +{"id":661,"name":"decapitalize","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":59,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L59"}],"signatures":[{"id":662,"name":"decapitalize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"decapitalize"}]},{"tag":"@description","content":[{"kind":"text","text":"用于将字符串的第一个字母转换为小写字母"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回转换后的字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndecapitalize('Hello'); // 'hello'\r\ndecapitalize('World'); // 'world'\r\ndecapitalize('Hello World'); // 'hello World'\n```"}]}]},"parameters":[{"id":663,"name":"paramString","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"originalName":"__namedParameters","type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"String.Function.decapitalize","hash":"decapitalize"},"text":{"comment":"
Function:

decapitalize

\n
Description:

用于将字符串的第一个字母转换为小写字母

\n
Returns:

返回转换后的字符串

\n
Example:
decapitalize('Hello'); // 'hello'\ndecapitalize('World'); // 'world'\ndecapitalize('Hello World'); // 'hello World'\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":59,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L59"}],"parentId":661}],"is":{"declaration":true},"location":{"query":"String.Function.decapitalize","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.fromCamelCase.json b/docs/v1.0.0-beta01/data/String.Function.fromCamelCase.json new file mode 100644 index 00000000..9f386089 --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.fromCamelCase.json @@ -0,0 +1 @@ +{"id":673,"name":"fromCamelCase","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":119,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L119"}],"signatures":[{"id":674,"name":"fromCamelCase","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"fromCamelCase"}]},{"tag":"@description","content":[{"kind":"text","text":"用于将驼峰命名法的字符串转换为下划线命名法的字符串"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回转换后的字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nfromCamelCase('helloWorld'); // 'hello_world'\r\nfromCamelCase('HelloWorld'); // 'hello_world'\r\nfromCamelCase('HelloWorld', '-'); // 'hello-world'\n```"}]}]},"parameters":[{"id":675,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}},{"id":676,"name":"separator","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"分隔符,默认为'_'"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'_'","text":{"comment":"

分隔符,默认为'_'

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"String.Function.fromCamelCase","hash":"fromCamelCase"},"text":{"comment":"
Function:

fromCamelCase

\n
Description:

用于将驼峰命名法的字符串转换为下划线命名法的字符串

\n
Returns:

返回转换后的字符串

\n
Example:
fromCamelCase('helloWorld'); // 'hello_world'\nfromCamelCase('HelloWorld'); // 'hello_world'\nfromCamelCase('HelloWorld', '-'); // 'hello-world'\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":119,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L119"}],"parentId":673}],"is":{"declaration":true},"location":{"query":"String.Function.fromCamelCase","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.isChinese.json b/docs/v1.0.0-beta01/data/String.Function.isChinese.json new file mode 100644 index 00000000..b5e8d435 --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.isChinese.json @@ -0,0 +1 @@ +{"id":684,"name":"isChinese","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":167,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L167"}],"signatures":[{"id":685,"name":"isChinese","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isChinese"}]},{"tag":"@description","content":[{"kind":"text","text":"判断字符串是否全部是中文"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否全部是中文"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisChinese('你好'); // true\r\nisChinese('hello'); // false\r\nisChinese('你好hello'); // false\r\nisChinese('你好,世界!'); // true\r\nisChinese('你好,世界!hello'); // false\n```"}]}]},"parameters":[{"id":686,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"String.Function.isChinese","hash":"isChinese"},"text":{"comment":"
Function:

isChinese

\n
Description:

判断字符串是否全部是中文

\n
Returns:

是否全部是中文

\n
Example:
isChinese('你好'); // true\nisChinese('hello'); // false\nisChinese('你好hello'); // false\nisChinese('你好,世界!'); // true\nisChinese('你好,世界!hello'); // false\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":167,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L167"}],"parentId":684}],"is":{"declaration":true},"location":{"query":"String.Function.isChinese","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.palindrome.json b/docs/v1.0.0-beta01/data/String.Function.palindrome.json new file mode 100644 index 00000000..6151bad3 --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.palindrome.json @@ -0,0 +1 @@ +{"id":670,"name":"palindrome","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":103,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L103"}],"signatures":[{"id":671,"name":"palindrome","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"palindrome"}]},{"tag":"@description","content":[{"kind":"text","text":"判断一个字符串是否为回文"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否为回文"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\npalindrome('racecar'); // true\r\npalindrome('hello'); // false\r\npalindrome('A man, a plan, a canal: Panama'); // true\r\npalindrome('1001'); // true\n```"}]}]},"parameters":[{"id":672,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"String.Function.palindrome","hash":"palindrome"},"text":{"comment":"
Function:

palindrome

\n
Description:

判断一个字符串是否为回文

\n
Returns:

是否为回文

\n
Example:
palindrome('racecar'); // true\npalindrome('hello'); // false\npalindrome('A man, a plan, a canal: Panama'); // true\npalindrome('1001'); // true\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":103,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L103"}],"parentId":670}],"is":{"declaration":true},"location":{"query":"String.Function.palindrome","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.reverseString.json b/docs/v1.0.0-beta01/data/String.Function.reverseString.json new file mode 100644 index 00000000..01c0eb54 --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.reverseString.json @@ -0,0 +1 @@ +{"id":677,"name":"reverseString","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":136,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L136"}],"signatures":[{"id":678,"name":"reverseString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"reverseString"}]},{"tag":"@description","content":[{"kind":"text","text":"反转字符串,比如用户需要将文本从右到左排列时。"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回反转后的字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nreverseString('hello'); // 'olleh'\r\nreverseString('world'); // 'dlrow'\r\nreverseString('hello world'); // 'dlrow olleh'\n```"}]}]},"parameters":[{"id":679,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"String.Function.reverseString","hash":"reverseString"},"text":{"comment":"
Function:

reverseString

\n
Description:

反转字符串,比如用户需要将文本从右到左排列时。

\n
Returns:

返回反转后的字符串

\n
Example:
reverseString('hello'); // 'olleh'\nreverseString('world'); // 'dlrow'\nreverseString('hello world'); // 'dlrow olleh'\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":136,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L136"}],"parentId":677}],"is":{"declaration":true},"location":{"query":"String.Function.reverseString","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.splitLines.json b/docs/v1.0.0-beta01/data/String.Function.splitLines.json new file mode 100644 index 00000000..6f6b5419 --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.splitLines.json @@ -0,0 +1 @@ +{"id":664,"name":"splitLines","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":74,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L74"}],"signatures":[{"id":665,"name":"splitLines","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"splitLines"}]},{"tag":"@description","content":[{"kind":"text","text":"字符换行分割"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回分割后的字符串数组"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nsplitLines('line 1\\nline 2\\nline 3\\n'); // ['line 1', 'line 2', 'line 3', '']\r\nsplitLines('line 1\\r\\nline 2\\r\\nline 3\\r\\n'); // ['line 1', 'line 2', 'line 3', '']\r\nsplitLines('line 1\\nline 2\\r\\nline 3\\n\\r'); // ['line 1', 'line 2', 'line 3', '']\r\nsplitLines(''); // ['']\n```"}]}]},"parameters":[{"id":666,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"is":{"declaration":false},"location":{"query":"String.Function.splitLines","hash":"splitLines"},"text":{"comment":"
Function:

splitLines

\n
Description:

字符换行分割

\n
Returns:

返回分割后的字符串数组

\n
Example:
splitLines('line 1\\nline 2\\nline 3\\n'); // ['line 1', 'line 2', 'line 3', '']\nsplitLines('line 1\\r\\nline 2\\r\\nline 3\\r\\n'); // ['line 1', 'line 2', 'line 3', '']\nsplitLines('line 1\\nline 2\\r\\nline 3\\n\\r'); // ['line 1', 'line 2', 'line 3', '']\nsplitLines(''); // ['']\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":74,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L74"}],"parentId":664}],"is":{"declaration":true},"location":{"query":"String.Function.splitLines","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.stripHTMLTags.json b/docs/v1.0.0-beta01/data/String.Function.stripHTMLTags.json new file mode 100644 index 00000000..f73e254f --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.stripHTMLTags.json @@ -0,0 +1 @@ +{"id":667,"name":"stripHTMLTags","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":88,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L88"}],"signatures":[{"id":668,"name":"stripHTMLTags","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"stripHTMLTags"}]},{"tag":"@description","content":[{"kind":"text","text":"从字符串中删除 HTML 标签"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回删除 HTML 标签后的字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nstripHTMLTags('

Hello, world!

'); // 'Hello, world!'\r\nstripHTMLTags('

Title

Paragraph

'); // 'TitleParagraph'\r\nstripHTMLTags('Home'); // 'Home'\n```"}]}]},"parameters":[{"id":669,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"String.Function.stripHTMLTags","hash":"stripHTMLTags"},"text":{"comment":"
Function:

stripHTMLTags

\n
Description:

从字符串中删除 HTML 标签

\n
Returns:

返回删除 HTML 标签后的字符串

\n
Example:
stripHTMLTags('<p>Hello, world!</p>'); // 'Hello, world!'\nstripHTMLTags('<div><h1>Title</h1><p>Paragraph</p></div>'); // 'TitleParagraph'\nstripHTMLTags('<a href=\"#\">Home</a>'); // 'Home'\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":88,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L88"}],"parentId":667}],"is":{"declaration":true},"location":{"query":"String.Function.stripHTMLTags","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/String.Function.truncateString.json b/docs/v1.0.0-beta01/data/String.Function.truncateString.json new file mode 100644 index 00000000..7adb53ff --- /dev/null +++ b/docs/v1.0.0-beta01/data/String.Function.truncateString.json @@ -0,0 +1 @@ +{"id":680,"name":"truncateString","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":151,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L151"}],"signatures":[{"id":681,"name":"truncateString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"truncateString"}]},{"tag":"@description","content":[{"kind":"text","text":"如果字符串的长度大于 num(默认为10),则返回截取后的字符串加上省略号"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回截取后的字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ntruncateString('hello world', 5); // 'hello...'\r\ntruncateString('hello world'); // 'hello worl...'\r\ntruncateString('hello world', 11); // 'hello world'\n```"}]}]},"parameters":[{"id":682,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}},{"id":683,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"截取长度,默认为10"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"10","text":{"comment":"

截取长度,默认为10

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"String.Function.truncateString","hash":"truncateString"},"text":{"comment":"
Function:

truncateString

\n
Description:

如果字符串的长度大于 num(默认为10),则返回截取后的字符串加上省略号

\n
Returns:

返回截取后的字符串

\n
Example:
truncateString('hello world', 5); // 'hello...'\ntruncateString('hello world'); // 'hello worl...'\ntruncateString('hello world', 11); // 'hello world'\n
\n"},"sources":[{"fileName":"utils/src/string.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/string.ts","line":151,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/string.ts#L151"}],"parentId":680}],"is":{"declaration":true},"location":{"query":"String.Function.truncateString","hash":""},"text":{},"parentId":651} diff --git a/docs/v1.0.0-beta01/data/Trade.Function.luhnCheck.json b/docs/v1.0.0-beta01/data/Trade.Function.luhnCheck.json new file mode 100644 index 00000000..1cd90e55 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Trade.Function.luhnCheck.json @@ -0,0 +1 @@ +{"id":691,"name":"luhnCheck","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/trade.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/trade.ts","line":19,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/trade.ts#L19"}],"signatures":[{"id":692,"name":"luhnCheck","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"luhnCheck"}]},{"tag":"@description","content":[{"kind":"text","text":"用于验证信用卡号是否有效(Luhn算法)"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nluhnCheck(79927398713); // true\r\nluhnCheck(79927398710); // false\n```"}]}]},"parameters":[{"id":693,"name":"num","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"信用卡号"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

信用卡号

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Trade.Function.luhnCheck","hash":"luhnCheck"},"text":{"comment":"
Function:

luhnCheck

\n
Description:

用于验证信用卡号是否有效(Luhn算法)

\n
Returns:
Example:
luhnCheck(79927398713); // true\nluhnCheck(79927398710); // false\n
\n"},"sources":[{"fileName":"utils/src/trade.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/trade.ts","line":19,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/trade.ts#L19"}],"parentId":691}],"is":{"declaration":true},"location":{"query":"Trade.Function.luhnCheck","hash":""},"text":{},"parentId":690} diff --git a/docs/v1.0.0-beta01/data/Trade.Function.toCurrency.json b/docs/v1.0.0-beta01/data/Trade.Function.toCurrency.json new file mode 100644 index 00000000..166d28ef --- /dev/null +++ b/docs/v1.0.0-beta01/data/Trade.Function.toCurrency.json @@ -0,0 +1 @@ +{"id":694,"name":"toCurrency","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/trade.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/trade.ts","line":42,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/trade.ts#L42"}],"signatures":[{"id":695,"name":"toCurrency","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"toCurrency"}]},{"tag":"@description","content":[{"kind":"text","text":"将数字转换为货币格式的字符串"}]},{"tag":"@returns","content":[{"kind":"text","text":"货币格式的字符串"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ntoCurrency(1234.56, 'USD', 'en-US'); // '$1,234.56'\r\ntoCurrency(1234.56, 'USD', 'zh-CN'); // 'US$1,234.56'\n```"}]}]},"parameters":[{"id":696,"name":"n","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

数字

\n"}},{"id":697,"name":"curr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"货币类型"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

货币类型

\n"}},{"id":698,"name":"LanguageFormat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"语言格式"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

语言格式

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Trade.Function.toCurrency","hash":"toCurrency"},"text":{"comment":"
Function:

toCurrency

\n
Description:

将数字转换为货币格式的字符串

\n
Returns:

货币格式的字符串

\n
Example:
toCurrency(1234.56, 'USD', 'en-US');  // '$1,234.56'\ntoCurrency(1234.56, 'USD', 'zh-CN');  // 'US$1,234.56'\n
\n"},"sources":[{"fileName":"utils/src/trade.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/trade.ts","line":42,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/trade.ts#L42"}],"parentId":694}],"is":{"declaration":true},"location":{"query":"Trade.Function.toCurrency","hash":""},"text":{},"parentId":690} diff --git a/docs/v1.0.0-beta01/data/Type.Function.equals.json b/docs/v1.0.0-beta01/data/Type.Function.equals.json new file mode 100644 index 00000000..46401517 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.equals.json @@ -0,0 +1 @@ +{"id":718,"name":"equals","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":164,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L164"}],"signatures":[{"id":719,"name":"equals","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"equals"}]},{"tag":"@description","content":[{"kind":"text","text":"判断两个参数是否相等,**注意是值相等**,不然可以用Object.is()"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst a = [1, 2, 3];\r\nconst b = [1, 2, 3];\r\nconst result = equals(a, b); // true\n```"}]}]},"parameters":[{"id":720,"name":"a","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"},"text":{}},{"id":721,"name":"b","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"},"text":{}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Type.Function.equals","hash":"equals"},"text":{"comment":"
Function:

equals

\n
Description:

判断两个参数是否相等,注意是值相等,不然可以用Object.is()

\n
Returns:
Example:
const a = [1, 2, 3];\nconst b = [1, 2, 3];\nconst result = equals(a, b); // true\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":164,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L164"}],"parentId":718}],"is":{"declaration":true},"location":{"query":"Type.Function.equals","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.isArray.json b/docs/v1.0.0-beta01/data/Type.Function.isArray.json new file mode 100644 index 00000000..9c199c1a --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.isArray.json @@ -0,0 +1 @@ +{"id":722,"name":"isArray","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":53,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L53"}],"signatures":[{"id":723,"name":"isArray","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isArray"}]},{"tag":"@description","content":[{"kind":"text","text":"**isArray(val)** if the variable value is Array.(Array.isArray: android 5+)"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst test1 = [1, 2, 3],\r\n test2 = { a: 1, b: '2' };\r\nisArray(test1); // true\r\nisArray(test2); // false\n```"}]}]},"parameters":[{"id":724,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"value"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

value

\n"}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}},"is":{"declaration":false},"location":{"query":"Type.Function.isArray","hash":"isArray"},"text":{"comment":"
Function:

isArray

\n
Description:

isArray(val) if the variable value is Array.(Array.isArray: android 5+)

\n
Returns:
Example:
const test1 = [1, 2, 3],\n    test2 = { a: 1, b: '2' };\nisArray(test1);  // true\nisArray(test2);  // false\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":53,"character":23,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L53"}],"parentId":722}],"is":{"declaration":true},"location":{"query":"Type.Function.isArray","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.isDate.json b/docs/v1.0.0-beta01/data/Type.Function.isDate.json new file mode 100644 index 00000000..cdf36ca2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.isDate.json @@ -0,0 +1 @@ +{"id":729,"name":"isDate","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":149,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L149"}],"signatures":[{"id":730,"name":"isDate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isDate"}]},{"tag":"@description","content":[{"kind":"text","text":"判断传入的参数是否为 Date 类型"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconsole.log(isDate(new Date())); // true\r\nconsole.log(isDate('2022-03-14')); // false\r\nconsole.log(isDate(1647312000000)); // false\r\nconsole.log(isDate({ year: 2022, month: 3, day: 14 })); // false\n```"}]}]},"parameters":[{"id":731,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"unknown"},"text":{}}],"type":{"type":"predicate","name":"value","asserts":false,"targetType":{"type":"reference","name":"Date","qualifiedName":"Date","package":"typescript"}},"is":{"declaration":false},"location":{"query":"Type.Function.isDate","hash":"isDate"},"text":{"comment":"
Function:

isDate

\n
Description:

判断传入的参数是否为 Date 类型

\n
Returns:
Example:
console.log(isDate(new Date())); // true\nconsole.log(isDate('2022-03-14')); // false\nconsole.log(isDate(1647312000000)); // false\nconsole.log(isDate({ year: 2022, month: 3, day: 14 })); // false\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":149,"character":22,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L149"}],"parentId":729}],"is":{"declaration":true},"location":{"query":"Type.Function.isDate","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.isFunction.json b/docs/v1.0.0-beta01/data/Type.Function.isFunction.json new file mode 100644 index 00000000..95e2ff45 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.isFunction.json @@ -0,0 +1 @@ +{"id":715,"name":"isFunction","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":118,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L118"}],"signatures":[{"id":716,"name":"isFunction","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isFunction"}]},{"tag":"@description","content":[{"kind":"text","text":"**isFunction(val)** if the variable value is Function"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst test1 = [1, 2, 3],\r\n test2 = function () { alert(1) };\r\nisFunction(test1); // false\r\nisFunction(test2); // true\n```"}]}]},"parameters":[{"id":717,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"variable value"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

variable value

\n"}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"reference","name":"Function","qualifiedName":"Function","package":"typescript"}},"is":{"declaration":false},"location":{"query":"Type.Function.isFunction","hash":"isFunction"},"text":{"comment":"
Function:

isFunction

\n
Description:

isFunction(val) if the variable value is Function

\n
Returns:
Example:
const test1 = [1, 2, 3],\n    test2 = function () { alert(1) };\nisFunction(test1);  // false\nisFunction(test2);  // true\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":118,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L118"}],"parentId":715}],"is":{"declaration":true},"location":{"query":"Type.Function.isFunction","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.isNumber.json b/docs/v1.0.0-beta01/data/Type.Function.isNumber.json new file mode 100644 index 00000000..969ecbbb --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.isNumber.json @@ -0,0 +1 @@ +{"id":709,"name":"isNumber","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":87,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L87"}],"signatures":[{"id":710,"name":"isNumber","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isNumber"}]},{"tag":"@description","content":[{"kind":"text","text":"**isNumber(val)** if the variable value is Number"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst test1 = 1,\r\n test2 = new Number(1),\r\n test3 = Number(1),\r\n test4 = Infinity,\r\n test5 = NaN;\r\nisNumber(test1); // true\r\nisNumber(test2); // false\r\nisNumber(test3); // true\r\nisNumber(test4); // false\r\nisNumber(test5); // false\n```"}]}]},"parameters":[{"id":711,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"unknown"},"text":{}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"intrinsic","name":"number"}},"is":{"declaration":false},"location":{"query":"Type.Function.isNumber","hash":"isNumber"},"text":{"comment":"
Function:

isNumber

\n
Description:

isNumber(val) if the variable value is Number

\n
Returns:
Example:
const test1 = 1,\n    test2 = new Number(1),\n    test3 = Number(1),\n    test4 = Infinity,\n    test5 = NaN;\nisNumber(test1);  // true\nisNumber(test2);  // false\nisNumber(test3);  // true\nisNumber(test4);  // false\nisNumber(test5);  // false\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":87,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L87"}],"parentId":709}],"is":{"declaration":true},"location":{"query":"Type.Function.isNumber","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.isObject.json b/docs/v1.0.0-beta01/data/Type.Function.isObject.json new file mode 100644 index 00000000..4ef0a042 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.isObject.json @@ -0,0 +1 @@ +{"id":712,"name":"isObject","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":102,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L102"}],"signatures":[{"id":713,"name":"isObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isObject"}]},{"tag":"@description","content":[{"kind":"text","text":"**isObject(val)** if the variable value is Object"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst test1 = [1, 2, 3],\r\n test2 = { a: 1, b: '2' };\r\nisObject(test1); // false\r\nisObject(test2); // true\n```"}]}]},"parameters":[{"id":714,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"variable value"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

variable value

\n"}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"},{"type":"intrinsic","name":"any"}],"name":"Record","qualifiedName":"Record","package":"typescript"}},"is":{"declaration":false},"location":{"query":"Type.Function.isObject","hash":"isObject"},"text":{"comment":"
Function:

isObject

\n
Description:

isObject(val) if the variable value is Object

\n
Returns:
Example:
const test1 = [1, 2, 3],\n    test2 = { a: 1, b: '2' };\nisObject(test1);  // false\nisObject(test2);  // true\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":102,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L102"}],"parentId":712}],"is":{"declaration":true},"location":{"query":"Type.Function.isObject","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.isPrimitive.json b/docs/v1.0.0-beta01/data/Type.Function.isPrimitive.json new file mode 100644 index 00000000..540a84e5 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.isPrimitive.json @@ -0,0 +1 @@ +{"id":725,"name":"isPrimitive","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":133,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L133"}],"signatures":[{"id":726,"name":"isPrimitive","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isPrimitive"}]},{"tag":"@description","content":[{"kind":"text","text":"**isPrimitive(val)** if the variable value is isPromise.(https://github.com/then/is-promise)"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst test1 = new Promise(resolve => resolve(1))),\r\n test2 = { then: () => '', catch: () => '', };\r\nisPrimitive(test1); // true\r\nisPrimitive(test2); // true\n```"}]}]},"typeParameter":[{"id":727,"name":"T","kind":131072,"kindString":"Type parameter","flags":{},"default":{"type":"intrinsic","name":"any"}}],"parameters":[{"id":728,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"variable value"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

variable value

\n"}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"reference","typeArguments":[{"type":"reference","id":727,"name":"T"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}},"is":{"declaration":false},"location":{"query":"Type.Function.isPrimitive","hash":"isPrimitive"},"text":{"comment":"
Function:

isPrimitive

\n
Description:

isPrimitive(val) if the variable value is isPromise.(https://github.com/then/is-promise)

\n
Returns:
Example:
const test1 = new Promise(resolve => resolve(1))),\n    test2 = { then: () => '', catch: () => '', };\nisPrimitive(test1);  // true\nisPrimitive(test2);  // true\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":133,"character":27,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L133"}],"parentId":725}],"is":{"declaration":true},"location":{"query":"Type.Function.isPrimitive","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.isString.json b/docs/v1.0.0-beta01/data/Type.Function.isString.json new file mode 100644 index 00000000..7c0ba25e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.isString.json @@ -0,0 +1 @@ +{"id":706,"name":"isString","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":66,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L66"}],"signatures":[{"id":707,"name":"isString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isString"}]},{"tag":"@description","content":[{"kind":"text","text":"**isString(val)** if the variable value is String"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst test1 = [1, 2, 3],\r\n test2 = 'abc';\r\nisString(test1); // false\r\nisString(test2); // true\n```"}]}]},"parameters":[{"id":708,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"variable value"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

variable value

\n"}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"intrinsic","name":"string"}},"is":{"declaration":false},"location":{"query":"Type.Function.isString","hash":"isString"},"text":{"comment":"
Function:

isString

\n
Description:

isString(val) if the variable value is String

\n
Returns:
Example:
const test1 = [1, 2, 3],\n    test2 = 'abc';\nisString(test1);  // false\nisString(test2);  // true\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":66,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L66"}],"parentId":706}],"is":{"declaration":true},"location":{"query":"Type.Function.isString","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.isUndefined.json b/docs/v1.0.0-beta01/data/Type.Function.isUndefined.json new file mode 100644 index 00000000..036a7fd4 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.isUndefined.json @@ -0,0 +1 @@ +{"id":703,"name":"isUndefined","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":38,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L38"}],"signatures":[{"id":704,"name":"isUndefined","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isUndefined"}]},{"tag":"@description","content":[{"kind":"text","text":"**isUndefined(val)** if the variable value is undefined"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst test1 = [1, 2, 3],\r\n test2;\r\nisString(test1); // false\r\nisString(test2); // true\n```"}]}]},"parameters":[{"id":705,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"variable value"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

variable value

\n"}}],"type":{"type":"predicate","name":"val","asserts":false,"targetType":{"type":"intrinsic","name":"undefined"}},"is":{"declaration":false},"location":{"query":"Type.Function.isUndefined","hash":"isUndefined"},"text":{"comment":"
Function:

isUndefined

\n
Description:

isUndefined(val) if the variable value is undefined

\n
Returns:
Example:
const test1 = [1, 2, 3],\n    test2;\nisString(test1);  // false\nisString(test2);  // true\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":38,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L38"}],"parentId":703}],"is":{"declaration":true},"location":{"query":"Type.Function.isUndefined","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Type.Function.type.json b/docs/v1.0.0-beta01/data/Type.Function.type.json new file mode 100644 index 00000000..e01e17b3 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Type.Function.type.json @@ -0,0 +1 @@ +{"id":700,"name":"type","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L23"}],"signatures":[{"id":701,"name":"type","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"type"}]},{"tag":"@description","content":[{"kind":"text","text":"**type(val)** get the variable value's type"}]},{"tag":"@returns","content":[{"kind":"text","text":"type string"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst test1 = [1, 2, 3],\r\n test2 = { a: 1, b: '2' },\r\n test3 = 'abc',\r\n test4;\r\ntype(test1); // 'Array'\r\ntype(test2); // 'Object'\r\ntype(test3); // 'String'\r\ntype(test4); // 'Undefined'\n```"}]}]},"parameters":[{"id":702,"name":"val","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"variable value"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

variable value

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Type.Function.type","hash":"type"},"text":{"comment":"
Function:

type

\n
Description:

type(val) get the variable value's type

\n
Returns:

type string

\n
Example:
const test1 = [1, 2, 3],\n    test2 = { a: 1, b: '2' },\n    test3 = 'abc',\n    test4;\ntype(test1);  // 'Array'\ntype(test2);  // 'Object'\ntype(test3);  // 'String'\ntype(test4);  // 'Undefined'\n
\n"},"sources":[{"fileName":"utils/src/type.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/type.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/type.ts#L23"}],"parentId":700}],"is":{"declaration":true},"location":{"query":"Type.Function.type","hash":""},"text":{},"parentId":699} diff --git a/docs/v1.0.0-beta01/data/Url.Function.getBaseUrl.json b/docs/v1.0.0-beta01/data/Url.Function.getBaseUrl.json new file mode 100644 index 00000000..37b59dde --- /dev/null +++ b/docs/v1.0.0-beta01/data/Url.Function.getBaseUrl.json @@ -0,0 +1 @@ +{"id":1212,"name":"getBaseUrl","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":79,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L79"}],"signatures":[{"id":1213,"name":"getBaseUrl","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getBaseUrl"}]},{"tag":"@description","content":[{"kind":"text","text":"获取基础地址( url 中?之前的部分)"}]},{"tag":"@returns","content":[{"kind":"text","text":"url 修改后的URL"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconsole.log(getBaseUrl());\r\nconsole.log(getBaseUrl('https://example.com/page.html?query=string')); // https://example.com/page.html\r\nconsole.log(getBaseUrl('https://example.com/')); // https://example.com/\n```"}]}]},"parameters":[{"id":1214,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"原始URL"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"...","text":{"comment":"

原始URL

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Url.Function.getBaseUrl","hash":"getBaseUrl"},"text":{"comment":"
Function:

getBaseUrl

\n
Description:

获取基础地址( url 中?之前的部分)

\n
Returns:

url 修改后的URL

\n
Example:
console.log(getBaseUrl());\nconsole.log(getBaseUrl('https://example.com/page.html?query=string')); // https://example.com/page.html\nconsole.log(getBaseUrl('https://example.com/')); // https://example.com/\n
\n"},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":79,"character":26,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L79"}],"parentId":1212}],"is":{"declaration":true},"location":{"query":"Url.Function.getBaseUrl","hash":""},"text":{},"parentId":1192} diff --git a/docs/v1.0.0-beta01/data/Url.Function.getUrlDomain.json b/docs/v1.0.0-beta01/data/Url.Function.getUrlDomain.json new file mode 100644 index 00000000..03a9783e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Url.Function.getUrlDomain.json @@ -0,0 +1 @@ +{"id":1215,"name":"getUrlDomain","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":90,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L90"}],"signatures":[{"id":1216,"name":"getUrlDomain","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getUrlDomain"}]},{"tag":"@description","content":[{"kind":"text","text":"获取 url 中的域名"}]},{"tag":"@returns","content":[{"kind":"text","text":"url 修改后的URL"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconsole.log(getUrlDomain('https://example.com/page.html?query=string')); // https://example.com\n```"}]}]},"parameters":[{"id":1217,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"原始URL"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"...","text":{"comment":"

原始URL

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Url.Function.getUrlDomain","hash":"getUrlDomain"},"text":{"comment":"
Function:

getUrlDomain

\n
Description:

获取 url 中的域名

\n
Returns:

url 修改后的URL

\n
Example:
console.log(getUrlDomain('https://example.com/page.html?query=string')); // https://example.com\n
\n"},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":90,"character":28,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L90"}],"parentId":1215}],"is":{"declaration":true},"location":{"query":"Url.Function.getUrlDomain","hash":""},"text":{},"parentId":1192} diff --git a/docs/v1.0.0-beta01/data/Url.Function.getUrlParam.json b/docs/v1.0.0-beta01/data/Url.Function.getUrlParam.json new file mode 100644 index 00000000..c2e0758e --- /dev/null +++ b/docs/v1.0.0-beta01/data/Url.Function.getUrlParam.json @@ -0,0 +1 @@ +{"id":1196,"name":"getUrlParam","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":37,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L37"}],"signatures":[{"id":1197,"name":"getUrlParam","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getUrlParam"}]},{"tag":"@description","content":[{"kind":"text","text":"获取页面地址中query字段对应的信息"}]},{"tag":"@returns","content":[{"kind":"text","text":"query字段对应的信息"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst name = getUrlParam('name');\n```"}]}]},"parameters":[{"id":1198,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"query字段名称"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

query字段名称

\n"}},{"id":1199,"name":"decode","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"解码函数"}]},"type":{"type":"reflection","declaration":{"id":1200,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","line":37,"character":51,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L37"}],"signatures":[{"id":1201,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1202,"name":"s","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"string"}}]}},"text":{"comment":"

解码函数

\n"}}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"}]},"is":{"declaration":false},"location":{"query":"Url.Function.getUrlParam","hash":"getUrlParam"},"text":{"comment":"
Function:

getUrlParam

\n
Description:

获取页面地址中query字段对应的信息

\n
Returns:

query字段对应的信息

\n
Example:
const name = getUrlParam('name');\n
\n"},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":37,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L37"}],"parentId":1196}],"is":{"declaration":true},"location":{"query":"Url.Function.getUrlParam","hash":""},"text":{},"parentId":1192} diff --git a/docs/v1.0.0-beta01/data/Url.Function.httpsRedirect.json b/docs/v1.0.0-beta01/data/Url.Function.httpsRedirect.json new file mode 100644 index 00000000..210f047d --- /dev/null +++ b/docs/v1.0.0-beta01/data/Url.Function.httpsRedirect.json @@ -0,0 +1 @@ +{"id":1203,"name":"httpsRedirect","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":101,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L101"}],"signatures":[{"id":1204,"name":"httpsRedirect","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"httpsRedirect"}]},{"tag":"@description","content":[{"kind":"text","text":"强制跳转到https, http -> https"}]}]},"parameters":[{"id":1205,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"跳转地址"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"location.href","text":{"comment":"

跳转地址

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"Url.Function.httpsRedirect","hash":"httpsRedirect"},"text":{"comment":"
Function:

httpsRedirect

\n
Description:

强制跳转到https, http -> https

\n"},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":101,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L101"}],"parentId":1203}],"is":{"declaration":true},"location":{"query":"Url.Function.httpsRedirect","hash":""},"text":{},"parentId":1192} diff --git a/docs/v1.0.0-beta01/data/Url.Function.paramsJoinUrl.json b/docs/v1.0.0-beta01/data/Url.Function.paramsJoinUrl.json new file mode 100644 index 00000000..a3139e15 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Url.Function.paramsJoinUrl.json @@ -0,0 +1 @@ +{"id":1206,"name":"paramsJoinUrl","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":59,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L59"}],"signatures":[{"id":1207,"name":"paramsJoinUrl","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@func","content":[{"kind":"text","text":"paramsJoinUrl"}]},{"tag":"@description","content":[{"kind":"text","text":"将参数对象转为 url 字符串"}]},{"tag":"@returns","content":[{"kind":"text","text":"url 修改后的URL"}]},{"tag":"@example","content":[{"kind":"text","text":"const url = "},{"kind":"code","text":"`https://example.com/api?${paramsJoinUrl({ age: 25, city: 'New York' })}`"},{"kind":"text","text":";\r\nconsole.log(url); // \"https://example.com/api?age=25&city=New%20York\""}]}]},"parameters":[{"id":1208,"name":"params","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":1209,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"web-utils/src/url.ts","line":59,"character":38,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L59"}],"indexSignature":{"id":1210,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"parameters":[{"id":1211,"name":"key","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"string"}}}},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Url.Function.paramsJoinUrl","hash":"paramsJoinUrl"},"text":{"comment":"
Func:

paramsJoinUrl

\n
Description:

将参数对象转为 url 字符串

\n
Returns:

url 修改后的URL

\n
Example:

const url = https://example.com/api?${paramsJoinUrl({ age: 25, city: 'New York' })};\nconsole.log(url); // "https://example.com/api?age=25&city=New%20York"

\n"},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":59,"character":29,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L59"}],"parentId":1206}],"is":{"declaration":true},"location":{"query":"Url.Function.paramsJoinUrl","hash":""},"text":{},"parentId":1192} diff --git a/docs/v1.0.0-beta01/data/Url.Function.parseQueryString.json b/docs/v1.0.0-beta01/data/Url.Function.parseQueryString.json new file mode 100644 index 00000000..5d9365b5 --- /dev/null +++ b/docs/v1.0.0-beta01/data/Url.Function.parseQueryString.json @@ -0,0 +1 @@ +{"id":1193,"name":"parseQueryString","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":17,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L17"}],"signatures":[{"id":1194,"name":"parseQueryString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"parseQueryString"}]},{"tag":"@description","content":[{"kind":"text","text":"获取url中的query信息"}]},{"tag":"@returns","content":[{"kind":"text","text":"query信息对象"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconsole.log(parseQueryString('https://github.com/?a=1&b=sss')); // {a: '1', b: 'sss'}\r\nconsole.log(parseQueryString('https://github.com')); // {}\n```"}]}]},"parameters":[{"id":1195,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"页面地址"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"window.location.href","text":{"comment":"

页面地址

\n"}}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"Url.Function.parseQueryString","hash":"parseQueryString"},"text":{"comment":"
Function:

parseQueryString

\n
Description:

获取url中的query信息

\n
Returns:

query信息对象

\n
Example:
console.log(parseQueryString('https://github.com/?a=1&b=sss')); // {a: '1', b: 'sss'}\nconsole.log(parseQueryString('https://github.com')); // {}\n
\n"},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":17,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L17"}],"parentId":1193}],"is":{"declaration":true},"location":{"query":"Url.Function.parseQueryString","hash":""},"text":{},"parentId":1192} diff --git a/docs/v1.0.0-beta01/data/Url.Function.uniqueSlash.json b/docs/v1.0.0-beta01/data/Url.Function.uniqueSlash.json new file mode 100644 index 00000000..7157e5fc --- /dev/null +++ b/docs/v1.0.0-beta01/data/Url.Function.uniqueSlash.json @@ -0,0 +1 @@ +{"id":1218,"name":"uniqueSlash","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":117,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L117"}],"signatures":[{"id":1219,"name":"uniqueSlash","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"uniqueSlash"}]},{"tag":"@description","content":[{"kind":"text","text":"将路径中重复的正斜杆替换成单个斜杆隔开的字符串"}]},{"tag":"@returns","content":[{"kind":"text","text":"将/去重后的结果"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nuniqueSlash('http://www.example.com//foo//bar'); // 'http://www.example.com/foo/bar'\n```"}]}]},"parameters":[{"id":1220,"name":"path","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"要处理的路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

要处理的路径

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Url.Function.uniqueSlash","hash":"uniqueSlash"},"text":{"comment":"
Function:

uniqueSlash

\n
Description:

将路径中重复的正斜杆替换成单个斜杆隔开的字符串

\n
Returns:

将/去重后的结果

\n
Example:
uniqueSlash('http://www.example.com//foo//bar'); // 'http://www.example.com/foo/bar'\n
\n"},"sources":[{"fileName":"web-utils/src/url.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/url.ts","line":117,"character":27,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/url.ts#L117"}],"parentId":1218}],"is":{"declaration":true},"location":{"query":"Url.Function.uniqueSlash","hash":""},"text":{},"parentId":1192} diff --git a/docs/v1.0.0-beta01/data/ai-utils/src.Function.estimateTokenLength.json b/docs/v1.0.0-beta01/data/ai-utils/src.Function.estimateTokenLength.json new file mode 100644 index 00000000..da8a447b --- /dev/null +++ b/docs/v1.0.0-beta01/data/ai-utils/src.Function.estimateTokenLength.json @@ -0,0 +1 @@ +{"id":1865,"name":"estimateTokenLength","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"ai-utils/src/llm/prompts/token.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/llm/prompts/token.ts","line":14,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/llm/prompts/token.ts#L14"}],"signatures":[{"id":1866,"name":"estimateTokenLength","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"estimateTokenLength"}]},{"tag":"@description","content":[{"kind":"text","text":"计算token数量"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1867,"name":"input","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"ai-utils/src.Function.estimateTokenLength","hash":"estimateTokenLength"},"text":{"comment":"
Function:

estimateTokenLength

\n
Description:

计算token数量

\n
Returns:
"},"sources":[{"fileName":"ai-utils/src/llm/prompts/token.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/llm/prompts/token.ts","line":14,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/llm/prompts/token.ts#L14"}],"parentId":1865}],"is":{"declaration":true},"location":{"query":"ai-utils/src.Function.estimateTokenLength","hash":""},"text":{},"parentId":1222} diff --git a/docs/v1.0.0-beta01/data/ai-utils/src.Function.genCodeReviewPrompt.json b/docs/v1.0.0-beta01/data/ai-utils/src.Function.genCodeReviewPrompt.json new file mode 100644 index 00000000..ec85f62c --- /dev/null +++ b/docs/v1.0.0-beta01/data/ai-utils/src.Function.genCodeReviewPrompt.json @@ -0,0 +1 @@ +{"id":1850,"name":"genCodeReviewPrompt","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"ai-utils/src/applications/codeReview.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/codeReview.ts","line":53,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/codeReview.ts#L53"}],"signatures":[{"id":1851,"name":"genCodeReviewPrompt","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"genCodeReviewPrompt"}]},{"tag":"@description","content":[{"kind":"text","text":"生成检测的prompt"}]},{"tag":"@returns","content":[{"kind":"text","text":"prompt信息"}]}]},"parameters":[{"id":1852,"name":"codeStr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"代码字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

代码字符串

\n"}},{"id":1853,"name":"maxLen","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"token最大长度, 默认4000"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"MAX_TOKEN_LEN","text":{"comment":"

token最大长度, 默认4000

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"ai-utils/src.Function.genCodeReviewPrompt","hash":"genCodeReviewPrompt"},"text":{"comment":"
Function:

genCodeReviewPrompt

\n
Description:

生成检测的prompt

\n
Returns:

prompt信息

\n"},"sources":[{"fileName":"ai-utils/src/applications/codeReview.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/codeReview.ts","line":53,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/codeReview.ts#L53"}],"parentId":1850}],"is":{"declaration":true},"location":{"query":"ai-utils/src.Function.genCodeReviewPrompt","hash":""},"text":{},"parentId":1222} diff --git a/docs/v1.0.0-beta01/data/ai-utils/src.Function.genUnitTestCasesPrompt.json b/docs/v1.0.0-beta01/data/ai-utils/src.Function.genUnitTestCasesPrompt.json new file mode 100644 index 00000000..80e04d3d --- /dev/null +++ b/docs/v1.0.0-beta01/data/ai-utils/src.Function.genUnitTestCasesPrompt.json @@ -0,0 +1 @@ +{"id":1861,"name":"genUnitTestCasesPrompt","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"ai-utils/src/applications/createUnitTestCases.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/createUnitTestCases.ts","line":47,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/createUnitTestCases.ts#L47"}],"signatures":[{"id":1862,"name":"genUnitTestCasesPrompt","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"genUnitTestCasesPrompt"}]},{"tag":"@description","content":[{"kind":"text","text":"生成单元测试的prompt"}]},{"tag":"@returns","content":[{"kind":"text","text":"prompt信息"}]}]},"parameters":[{"id":1863,"name":"codeStr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"代码字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

代码字符串

\n"}},{"id":1864,"name":"maxLen","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"token最大长度, 默认4000"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"MAX_TOKEN_LEN","text":{"comment":"

token最大长度, 默认4000

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"ai-utils/src.Function.genUnitTestCasesPrompt","hash":"genUnitTestCasesPrompt"},"text":{"comment":"
Function:

genUnitTestCasesPrompt

\n
Description:

生成单元测试的prompt

\n
Returns:

prompt信息

\n"},"sources":[{"fileName":"ai-utils/src/applications/createUnitTestCases.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/createUnitTestCases.ts","line":47,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/createUnitTestCases.ts#L47"}],"parentId":1861}],"is":{"declaration":true},"location":{"query":"ai-utils/src.Function.genUnitTestCasesPrompt","hash":""},"text":{},"parentId":1222} diff --git a/docs/v1.0.0-beta01/data/ai-utils/src.Function.getBoa.json b/docs/v1.0.0-beta01/data/ai-utils/src.Function.getBoa.json new file mode 100644 index 00000000..902783fd --- /dev/null +++ b/docs/v1.0.0-beta01/data/ai-utils/src.Function.getBoa.json @@ -0,0 +1 @@ +{"id":1868,"name":"getBoa","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"ai-utils/src/utils/python.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/utils/python.ts","line":18,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/utils/python.ts#L18"}],"signatures":[{"id":1869,"name":"getBoa","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getBoa"}]},{"tag":"@description","content":[{"kind":"text","text":"获取Boa进程ID"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"ai-utils/src.Function.getBoa","hash":"getBoa"},"text":{"comment":"
Function:

getBoa

\n
Description:

获取Boa进程ID

\n
Returns:
"},"sources":[{"fileName":"ai-utils/src/utils/python.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/utils/python.ts","line":18,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/utils/python.ts#L18"}],"parentId":1868}],"is":{"declaration":true},"location":{"query":"ai-utils/src.Function.getBoa","hash":""},"text":{},"parentId":1222} diff --git a/docs/v1.0.0-beta01/data/ai-utils/src.Function.getCodeReviewPromptTxt.json b/docs/v1.0.0-beta01/data/ai-utils/src.Function.getCodeReviewPromptTxt.json new file mode 100644 index 00000000..83e4bf97 --- /dev/null +++ b/docs/v1.0.0-beta01/data/ai-utils/src.Function.getCodeReviewPromptTxt.json @@ -0,0 +1 @@ +{"id":1847,"name":"getCodeReviewPromptTxt","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"ai-utils/src/applications/codeReview.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/codeReview.ts","line":16,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/codeReview.ts#L16"}],"signatures":[{"id":1848,"name":"getCodeReviewPromptTxt","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getCodeReviewPrompt"}]},{"tag":"@description","content":[{"kind":"text","text":"获取检测的prompt"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1849,"name":"patch","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"ai-utils/src.Function.getCodeReviewPromptTxt","hash":"getCodeReviewPromptTxt"},"text":{"comment":"
Function:

getCodeReviewPrompt

\n
Description:

获取检测的prompt

\n
Returns:
"},"sources":[{"fileName":"ai-utils/src/applications/codeReview.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/codeReview.ts","line":16,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/codeReview.ts#L16"}],"parentId":1847}],"is":{"declaration":true},"location":{"query":"ai-utils/src.Function.getCodeReviewPromptTxt","hash":""},"text":{},"parentId":1222} diff --git a/docs/v1.0.0-beta01/data/ai-utils/src.Function.getCreateUnitTestCases.json b/docs/v1.0.0-beta01/data/ai-utils/src.Function.getCreateUnitTestCases.json new file mode 100644 index 00000000..b4ab9992 --- /dev/null +++ b/docs/v1.0.0-beta01/data/ai-utils/src.Function.getCreateUnitTestCases.json @@ -0,0 +1 @@ +{"id":1858,"name":"getCreateUnitTestCases","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"ai-utils/src/applications/createUnitTestCases.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/createUnitTestCases.ts","line":15,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/createUnitTestCases.ts#L15"}],"signatures":[{"id":1859,"name":"getCreateUnitTestCases","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getCreateUnitTestCases"}]},{"tag":"@description","content":[{"kind":"text","text":"获取单元测试的prompt"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1860,"name":"patch","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"ai-utils/src.Function.getCreateUnitTestCases","hash":"getCreateUnitTestCases"},"text":{"comment":"
Function:

getCreateUnitTestCases

\n
Description:

获取单元测试的prompt

\n
Returns:
"},"sources":[{"fileName":"ai-utils/src/applications/createUnitTestCases.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/createUnitTestCases.ts","line":15,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/createUnitTestCases.ts#L15"}],"parentId":1858}],"is":{"declaration":true},"location":{"query":"ai-utils/src.Function.getCreateUnitTestCases","hash":""},"text":{},"parentId":1222} diff --git a/docs/v1.0.0-beta01/data/ai-utils/src.Function.getSqlPrompt.json b/docs/v1.0.0-beta01/data/ai-utils/src.Function.getSqlPrompt.json new file mode 100644 index 00000000..1a185b03 --- /dev/null +++ b/docs/v1.0.0-beta01/data/ai-utils/src.Function.getSqlPrompt.json @@ -0,0 +1 @@ +{"id":1854,"name":"getSqlPrompt","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"ai-utils/src/applications/sql.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/sql.ts","line":14,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/sql.ts#L14"}],"signatures":[{"id":1855,"name":"getSqlPrompt","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getSqlPrompt"}]},{"tag":"@description","content":[{"kind":"text","text":"获取SQL的prompt信息"}]},{"tag":"@returns","content":[{"kind":"text","text":"完整的SQL处理prompt信息"}]}]},"parameters":[{"id":1856,"name":"engine","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"数据库引擎"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

数据库引擎

\n"}},{"id":1857,"name":"schema","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"数据库schema"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

数据库schema

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"ai-utils/src.Function.getSqlPrompt","hash":"getSqlPrompt"},"text":{"comment":"
Function:

getSqlPrompt

\n
Description:

获取SQL的prompt信息

\n
Returns:

完整的SQL处理prompt信息

\n"},"sources":[{"fileName":"ai-utils/src/applications/sql.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/ai-utils/src/applications/sql.ts","line":14,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/ai-utils/src/applications/sql.ts#L14"}],"parentId":1854}],"is":{"declaration":true},"location":{"query":"ai-utils/src.Function.getSqlPrompt","hash":""},"text":{},"parentId":1222} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.NOOP.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.NOOP.json new file mode 100644 index 00000000..2c87a1b2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.NOOP.json @@ -0,0 +1 @@ +{"id":1732,"name":"NOOP","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":21,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L21"}],"signatures":[{"id":1733,"name":"NOOP","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"NOOP"}]},{"tag":"@description","content":[{"kind":"text","text":"empty function"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.NOOP","hash":"NOOP"},"text":{"comment":"
Function:

NOOP

\n
Description:

empty function

\n
Returns:
"},"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":21,"character":20,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L21"}],"parentId":1732}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.NOOP","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.animate.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.animate.json new file mode 100644 index 00000000..37ef56d3 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.animate.json @@ -0,0 +1 @@ +{"id":1832,"name":"animate","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/animate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/animate.ts","line":74,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/animate.ts#L74"}],"signatures":[{"id":1833,"name":"animate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"animation"}]}]},"parameters":[{"id":1834,"name":"opts","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"参数\r\n {Number} duration 动画时间\r\n {Function} onProcess 动画执行回调\r\n {Function} onAnimationFinish 动画完成回调"}]},"type":{"type":"reference","name":"AnimationOptions"},"text":{"comment":"

参数\n {Number} duration 动画时间\n {Function} onProcess 动画执行回调\n {Function} onAnimationFinish 动画完成回调

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.animate","hash":"animate"},"text":{"comment":"
Function:

animation

\n"},"sources":[{"fileName":"canvas-utils/src/utils/animate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/animate.ts","line":74,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/animate.ts#L74"}],"parentId":1832}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.animate","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.clearArc.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.clearArc.json new file mode 100644 index 00000000..346244f8 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.clearArc.json @@ -0,0 +1 @@ +{"id":1798,"name":"clearArc","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":138,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L138"}],"signatures":[{"id":1799,"name":"clearArc","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"clearArc"}]},{"tag":"@description","content":[{"kind":"text","text":"实现圆形清除"}]}]},"parameters":[{"id":1800,"name":"ctx","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"canvas context"}]},"type":{"type":"reference","name":"CanvasRenderingContext2D","qualifiedName":"CanvasRenderingContext2D","package":"typescript"},"text":{"comment":"

canvas context

\n"}},{"id":1801,"name":"point","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{}},{"id":1802,"name":"width","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"radius"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

radius

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.clearArc","hash":"clearArc"},"text":{"comment":"
Function:

clearArc

\n
Description:

实现圆形清除

\n"},"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":138,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L138"}],"parentId":1798}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.clearArc","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.cloneArray.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.cloneArray.json new file mode 100644 index 00000000..63ab53f1 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.cloneArray.json @@ -0,0 +1 @@ +{"id":1734,"name":"cloneArray","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":96,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L96"}],"signatures":[{"id":1735,"name":"cloneArray","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"cloneArray"}]},{"tag":"@description","content":[{"kind":"text","text":"**cloneArray(fromarr, toarr)**"}]},{"tag":"@returns","content":[{"kind":"text","text":"copied array"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst arr1 = [1,2,3,4,5,6];\r\nconst arr2 = [7];\r\nconst arr3 = cloneArray(arr1, arr2);\r\n// arr2 == arr3 : [1, 2, 3, 4, 5, 6]\n```"}]}]},"typeParameter":[{"id":1736,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":1737,"name":"fromArr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"reference","id":1736,"name":"T"}},"text":{}},{"id":1738,"name":"toArr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"reference","id":1736,"name":"T"}},"text":{}}],"type":{"type":"array","elementType":{"type":"reference","id":1736,"name":"T"}},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.cloneArray","hash":"cloneArray"},"text":{"comment":"
Function:

cloneArray

\n
Description:

cloneArray(fromarr, toarr)

\n
Returns:

copied array

\n
Example:
const arr1 = [1,2,3,4,5,6];\nconst arr2 = [7];\nconst arr3 = cloneArray(arr1, arr2);\n// arr2 == arr3 : [1, 2, 3, 4, 5, 6]\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":96,"character":26,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L96"}],"parentId":1734}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.cloneArray","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.cloneObjDeep.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.cloneObjDeep.json new file mode 100644 index 00000000..7ac4baf1 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.cloneObjDeep.json @@ -0,0 +1 @@ +{"id":1723,"name":"cloneObjDeep","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":66,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L66"}],"signatures":[{"id":1724,"name":"cloneObjDeep","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"cloneObjDeep"}]},{"tag":"@description","content":[{"kind":"text","text":"**cloneObjDeep(fromobj, toobj)** clone a object to new vari"}]},{"tag":"@returns","content":[{"kind":"text","text":"copied object"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst obj1 = {\r\n a: 1,\r\n b: {\r\n c: 2,\r\n d: 3\r\n },\r\n e: 4\r\n};\r\nconst obj2 = {\r\n a: 'a',\r\n f: 'f'\r\n};\r\n\r\nconst obj3 = cloneObjDeep(obj1, obj2);\r\n// obj3 == obj2 : {\"a\":\"a\",\"f\":\"f\",\"b\":{\"c\":2,\"d\":3},\"e\":4}\n```"}]}]},"parameters":[{"id":1725,"name":"fromObj","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":1843,"name":"SimpleObj"},"text":{}},{"id":1726,"name":"toObj","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":1843,"name":"SimpleObj"},"text":{}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"},{"type":"intrinsic","name":"any"}],"name":"Record","qualifiedName":"Record","package":"typescript"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.cloneObjDeep","hash":"cloneObjDeep"},"text":{"comment":"
Function:

cloneObjDeep

\n
Description:

cloneObjDeep(fromobj, toobj) clone a object to new vari

\n
Returns:

copied object

\n
Example:
const obj1 = {\n   a: 1,\n   b: {\n       c: 2,\n       d: 3\n   },\n   e: 4\n};\nconst obj2 = {\n   a: 'a',\n   f: 'f'\n};\n\nconst obj3 = cloneObjDeep(obj1, obj2);\n// obj3 == obj2 : {\"a\":\"a\",\"f\":\"f\",\"b\":{\"c\":2,\"d\":3},\"e\":4}\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":66,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L66"}],"parentId":1723}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.cloneObjDeep","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.createCanvasElem.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.createCanvasElem.json new file mode 100644 index 00000000..58bc4a54 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.createCanvasElem.json @@ -0,0 +1 @@ +{"id":1807,"name":"createCanvasElem","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/doms.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/doms.ts","line":24,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/doms.ts#L24"}],"signatures":[{"id":1808,"name":"createCanvasElem","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"createCanvasElem"}]},{"tag":"@description","content":[{"kind":"text","text":"(web)创建并填充canvas元素"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst canvas = createCanvasElem(document.querySelector('body'), {\r\n id: 'demo'\r\n })\n```"}]}]},"parameters":[{"id":1809,"name":"elem","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"HTMLElement","qualifiedName":"HTMLElement","package":"typescript"},"text":{}},{"id":1810,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"originalName":"__namedParameters","type":{"type":"reflection","declaration":{"id":1811,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1814,"name":"height","kind":1024,"kindString":"Property","flags":{"isOptional":true},"sources":[{"fileName":"canvas-utils/src/utils/doms.ts","line":33,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/doms.ts#L33"}],"type":{"type":"intrinsic","name":"number"}},{"id":1812,"name":"id","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"canvas-utils/src/utils/doms.ts","line":31,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/doms.ts#L31"}],"type":{"type":"intrinsic","name":"string"}},{"id":1813,"name":"width","kind":1024,"kindString":"Property","flags":{"isOptional":true},"sources":[{"fileName":"canvas-utils/src/utils/doms.ts","line":32,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/doms.ts#L32"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[1814,1812,1813]}],"sources":[{"fileName":"canvas-utils/src/utils/doms.ts","line":30,"character":5,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/doms.ts#L30"}]}},"text":{}}],"type":{"type":"reference","name":"HTMLCanvasElement","qualifiedName":"HTMLCanvasElement","package":"typescript"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.createCanvasElem","hash":"createCanvasElem"},"text":{"comment":"
Function:

createCanvasElem

\n
Description:

(web)创建并填充canvas元素

\n
Returns:
Example:
const canvas = createCanvasElem(document.querySelector('body'), {\n   id: 'demo'\n })\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/doms.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/doms.ts","line":24,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/doms.ts#L24"}],"parentId":1807}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.createCanvasElem","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawDashLine.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawDashLine.json new file mode 100644 index 00000000..f9c5a44c --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawDashLine.json @@ -0,0 +1 @@ +{"id":1778,"name":"drawDashLine","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":57,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L57"}],"signatures":[{"id":1779,"name":"drawDashLine","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"drawDashLine"}]},{"tag":"@description","content":[{"kind":"text","text":"画虚线,可控制虚线宽度"}]}]},"parameters":[{"id":1780,"name":"ctx","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"canvas context"}]},"type":{"type":"reference","name":"CanvasRenderingContext2D","qualifiedName":"CanvasRenderingContext2D","package":"typescript"},"text":{"comment":"

canvas context

\n"}},{"id":1781,"name":"point1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"起点"}]},"originalName":"__namedParameters","type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{"comment":"

起点

\n"}},{"id":1782,"name":"point2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"终点"}]},"originalName":"__namedParameters","type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{"comment":"

终点

\n"}},{"id":1783,"name":"dashLen","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"dash line width"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"5","text":{"comment":"

dash line width

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.drawDashLine","hash":"drawDashLine"},"text":{"comment":"
Function:

drawDashLine

\n
Description:

画虚线,可控制虚线宽度

\n"},"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":57,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L57"}],"parentId":1778}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.drawDashLine","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawLine.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawLine.json new file mode 100644 index 00000000..ed096fd9 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawLine.json @@ -0,0 +1 @@ +{"id":1773,"name":"drawLine","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":21,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L21"}],"signatures":[{"id":1774,"name":"drawLine","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"drawLine"}]},{"tag":"@description","content":[{"kind":"text","text":"画直线"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndrawLine(ctx, { x: 10, y: 10 }, { x: 100, y: 100 });\n```"}]}]},"parameters":[{"id":1775,"name":"ctx","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"canvas context"}]},"type":{"type":"reference","name":"CanvasRenderingContext2D","qualifiedName":"CanvasRenderingContext2D","package":"typescript"},"text":{"comment":"

canvas context

\n"}},{"id":1776,"name":"point1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"起点"}]},"originalName":"__namedParameters","type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{"comment":"

起点

\n"}},{"id":1777,"name":"point2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"终点"}]},"originalName":"__namedParameters","type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{"comment":"

终点

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.drawLine","hash":"drawLine"},"text":{"comment":"
Function:

drawLine

\n
Description:

画直线

\n
Example:
drawLine(ctx, { x: 10, y: 10 }, { x: 100, y: 100 });\n
\n"},"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":21,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L21"}],"parentId":1773}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.drawLine","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawPoint.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawPoint.json new file mode 100644 index 00000000..79540ef5 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawPoint.json @@ -0,0 +1 @@ +{"id":1784,"name":"drawPoint","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":84,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L84"}],"signatures":[{"id":1785,"name":"drawPoint","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"drawPoint"}]},{"tag":"@description","content":[{"kind":"text","text":"画圆点"}]}]},"parameters":[{"id":1786,"name":"ctx","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"canvas context"}]},"type":{"type":"reference","name":"CanvasRenderingContext2D","qualifiedName":"CanvasRenderingContext2D","package":"typescript"},"text":{"comment":"

canvas context

\n"}},{"id":1787,"name":"centerPoint","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{}},{"id":1788,"name":"color","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"fill color"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

fill color

\n"}},{"id":1789,"name":"strokeColor","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"circle side color"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'#fff'","text":{"comment":"

circle side color

\n"}},{"id":1790,"name":"width","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"radius"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0","text":{"comment":"

radius

\n"}},{"id":1791,"name":"strokeWidth","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"circle side width"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{"comment":"

circle side width

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.drawPoint","hash":"drawPoint"},"text":{"comment":"
Function:

drawPoint

\n
Description:

画圆点

\n"},"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":84,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L84"}],"parentId":1784}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.drawPoint","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawRotateText.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawRotateText.json new file mode 100644 index 00000000..5d247821 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.drawRotateText.json @@ -0,0 +1 @@ +{"id":1792,"name":"drawRotateText","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":116,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L116"}],"signatures":[{"id":1793,"name":"drawRotateText","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"drawRotateText"}]},{"tag":"@description","content":[{"kind":"text","text":"绘制旋转文字"}]}]},"parameters":[{"id":1794,"name":"ctx","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"画布"}]},"type":{"type":"reference","name":"CanvasRenderingContext2D","qualifiedName":"CanvasRenderingContext2D","package":"typescript"},"text":{"comment":"

画布

\n"}},{"id":1795,"name":"rotatePoint","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{}},{"id":1796,"name":"degree","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"旋转角度"}]},"type":{"type":"intrinsic","name":"number"},"text":{"comment":"

旋转角度

\n"}},{"id":1797,"name":"text","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文字内容"}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"number"}]},"text":{"comment":"

文字内容

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.drawRotateText","hash":"drawRotateText"},"text":{"comment":"
Function:

drawRotateText

\n
Description:

绘制旋转文字

\n"},"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":116,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L116"}],"parentId":1792}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.drawRotateText","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.each.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.each.json new file mode 100644 index 00000000..699b2500 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.each.json @@ -0,0 +1 @@ +{"id":1715,"name":"each","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":36,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L36"}],"signatures":[{"id":1716,"name":"each","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"each"}]},{"tag":"@description","content":[{"kind":"text","text":"**each(array, fn)** traverse Array"}]},{"tag":"@returns","content":[{"kind":"text","text":"array"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst arr = [1, 2, 3];\r\neach(arr, function (i) {console.log(i)});\r\n// 1\r\n// 2\r\n// 3\n```"}]}]},"typeParameter":[{"id":1717,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":1718,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"traverse array"}]},"type":{"type":"array","elementType":{"type":"reference","id":1717,"name":"T"}},"text":{"comment":"

traverse array

\n"}},{"id":1719,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":1720,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"canvas-utils/src/utils/base.ts","line":36,"character":38,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L36"}],"signatures":[{"id":1721,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1722,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{}}],"type":{"type":"array","elementType":{"type":"reference","id":1717,"name":"T"}},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.each","hash":"each"},"text":{"comment":"
Function:

each

\n
Description:

each(array, fn) traverse Array

\n
Returns:

array

\n
Example:
const arr = [1, 2, 3];\neach(arr, function (i) {console.log(i)});\n// 1\n// 2\n// 3\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":36,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L36"}],"parentId":1715}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.each","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getAxisLimit.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getAxisLimit.json new file mode 100644 index 00000000..17193e3f --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getAxisLimit.json @@ -0,0 +1 @@ +{"id":1742,"name":"getAxisLimit","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":63,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L63"}],"signatures":[{"id":1743,"name":"getAxisLimit","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getAxisLimit"}]},{"tag":"@description","content":[{"kind":"text","text":"获取网格最大范围值。set grid charts scale rate range"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1744,"name":"range","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.getAxisLimit","hash":"getAxisLimit"},"text":{"comment":"
Function:

getAxisLimit

\n
Description:

获取网格最大范围值。set grid charts scale rate range

\n
Returns:
"},"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":63,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L63"}],"parentId":1742}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.getAxisLimit","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getColorRgbList.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getColorRgbList.json new file mode 100644 index 00000000..00eefc8b --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getColorRgbList.json @@ -0,0 +1 @@ +{"id":1759,"name":"getColorRgbList","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/colors.ts","line":18,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/colors.ts#L18"}],"signatures":[{"id":1760,"name":"getColorRgbList","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getColorRgbList"}]},{"tag":"@description","content":[{"kind":"text","text":"hexadecimal color to 255.#ff0000 -> [255, 0, 0];支持标准(#RRGGBB)和简写(#RGB)格式。"}]},{"tag":"@returns","content":[{"kind":"text","text":"rgb array"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetColorRgbList('#f00') => [255, 0, 0]\ngetColorRgbList('#0000FF') => [0, 0, 255]\ngetColorRgbList('#aaBB99') => [170, 187, 153]\n```"}]}]},"parameters":[{"id":1761,"name":"color","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"hexadecimal number color"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

hexadecimal number color

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.getColorRgbList","hash":"getColorRgbList"},"text":{"comment":"
Function:

getColorRgbList

\n
Description:

hexadecimal color to 255.#ff0000 -> [255, 0, 0];支持标准(#RRGGBB)和简写(#RGB)格式。

\n
Returns:

rgb array

\n
Example:
getColorRgbList('#f00') => [255, 0, 0]\ngetColorRgbList('#0000FF') => [0, 0, 255]\ngetColorRgbList('#aaBB99') => [170, 187, 153]\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/colors.ts","line":18,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/colors.ts#L18"}],"parentId":1759}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.getColorRgbList","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getColorRgba.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getColorRgba.json new file mode 100644 index 00000000..eaba0792 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getColorRgba.json @@ -0,0 +1 @@ +{"id":1762,"name":"getColorRgba","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/colors.ts","line":50,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/colors.ts#L50"}],"signatures":[{"id":1763,"name":"getColorRgba","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getColorRgba"}]},{"tag":"@description","content":[{"kind":"text","text":"十六进制颜色转rgba。hexadecimal color string -> rgba"}]},{"tag":"@returns","content":[]},{"tag":"@need","content":[{"kind":"text","text":"getColorRgb"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetColorRgba('#f00') => 'rgba(255,0,0,1)'\ngetColorRgba('#f00', 0.5) => 'rgba(255,0,0,0.5)'\ngetColorRgba('#0000FF') => 'rgba(0,0,255,1)'\ngetColorRgba('#0000FF', 0.1) => 'rgba(0,0,255,0.1)'\n```"}]}]},"parameters":[{"id":1764,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"hex color string"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

hex color string

\n"}},{"id":1765,"name":"opacity","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.getColorRgba","hash":"getColorRgba"},"text":{"comment":"
Function:

getColorRgba

\n
Description:

十六进制颜色转rgba。hexadecimal color string -> rgba

\n
Returns:
Need:

getColorRgb

\n
Example:
getColorRgba('#f00') => 'rgba(255,0,0,1)'\ngetColorRgba('#f00', 0.5) => 'rgba(255,0,0,0.5)'\ngetColorRgba('#0000FF') => 'rgba(0,0,255,1)'\ngetColorRgba('#0000FF', 0.1) => 'rgba(0,0,255,0.1)'\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/colors.ts","line":50,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/colors.ts#L50"}],"parentId":1762}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.getColorRgba","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getCurvePoints.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getCurvePoints.json new file mode 100644 index 00000000..39dc77d3 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getCurvePoints.json @@ -0,0 +1 @@ +{"id":1815,"name":"getCurvePoints","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/curve.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/curve.ts","line":40,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/curve.ts#L40"}],"signatures":[{"id":1816,"name":"getCurvePoints","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getCurvePoints"}]},{"tag":"@description","content":[{"kind":"text","text":"get points to draw curve line"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1817,"name":"paths","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"origin path points"}]},"type":{"type":"array","elementType":{"type":"reference","id":1835,"name":"PointPosition"}},"text":{"comment":"

origin path points

\n"}}],"type":{"type":"array","elementType":{"type":"reference","name":"Vector"}},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.getCurvePoints","hash":"getCurvePoints"},"text":{"comment":"
Function:

getCurvePoints

\n
Description:

get points to draw curve line

\n
Returns:
"},"sources":[{"fileName":"canvas-utils/src/utils/curve.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/curve.ts","line":40,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/curve.ts#L40"}],"parentId":1815}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.getCurvePoints","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getLightfulRgbList.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getLightfulRgbList.json new file mode 100644 index 00000000..ed726488 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getLightfulRgbList.json @@ -0,0 +1 @@ +{"id":1769,"name":"getLightfulRgbList","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/colors.ts","line":87,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/colors.ts#L87"}],"signatures":[{"id":1770,"name":"getLightfulRgbList","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getLightfulRgbList"}]},{"tag":"@description","content":[{"kind":"text","text":"十六进制颜色变浅(亮色)"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetLightfulRgbList('#f00') => [255, 0, 0]\ngetLightfulRgbList('#f00', 0.5) => [255, 128, 128]\ngetLightfulRgbList('#0000FF') => [0, 0, 255]\ngetLightfulRgbList('#0000FF', 0.5) => [0, 0, 128]\ngetLightfulRgbList('#aaBB99') => [170, 187, 153]\ngetLightfulRgbList('#aaBB99', 0.5) => [170, 187, 153]\n```"}]}]},"parameters":[{"id":1771,"name":"color","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"hexadecimal number color"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

hexadecimal number color

\n"}},{"id":1772,"name":"weight","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"lighting weight"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0","text":{"comment":"

lighting weight

\n"}}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.getLightfulRgbList","hash":"getLightfulRgbList"},"text":{"comment":"
Function:

getLightfulRgbList

\n
Description:

十六进制颜色变浅(亮色)

\n
Returns:
Example:
getLightfulRgbList('#f00') => [255, 0, 0]\ngetLightfulRgbList('#f00', 0.5) => [255, 128, 128]\ngetLightfulRgbList('#0000FF') => [0, 0, 255]\ngetLightfulRgbList('#0000FF', 0.5) => [0, 0, 128]\ngetLightfulRgbList('#aaBB99') => [170, 187, 153]\ngetLightfulRgbList('#aaBB99', 0.5) => [170, 187, 153]\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/colors.ts","line":87,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/colors.ts#L87"}],"parentId":1769}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.getLightfulRgbList","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getListExtremum.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getListExtremum.json new file mode 100644 index 00000000..e7136b9a --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getListExtremum.json @@ -0,0 +1 @@ +{"id":1739,"name":"getListExtremum","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":39,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L39"}],"signatures":[{"id":1740,"name":"getListExtremum","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getListExtremum"}]},{"tag":"@returns","content":[{"kind":"text","text":"extremum\r\n {Number} min\r\n {Number} max"}]},{"tag":"@notice","content":[{"kind":"text","text":"数组不能为空"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst { max, min } = getListExtremum([1,3,5,2,2,4,5,7]); // -> { min: 1, max: 7 }\n```"}]}]},"parameters":[{"id":1741,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{}}],"type":{"type":"reference","id":1839,"name":"ListExtremum"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.getListExtremum","hash":"getListExtremum"},"text":{"comment":"
Function:

getListExtremum

\n
Returns:

extremum\n {Number} min\n {Number} max

\n
Notice:

数组不能为空

\n
Example:
const { max, min } = getListExtremum([1,3,5,2,2,4,5,7]);  // -> { min: 1, max: 7 }\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":39,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L39"}],"parentId":1739}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.getListExtremum","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getPointsAngle.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getPointsAngle.json new file mode 100644 index 00000000..9fc8df46 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getPointsAngle.json @@ -0,0 +1 @@ +{"id":1745,"name":"getPointsAngle","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":84,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L84"}],"signatures":[{"id":1746,"name":"getPointsAngle","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getPointsAngle"}]},{"tag":"@description","content":[{"kind":"text","text":"根据两个点获取角度值"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst angle = getPointsAngle({ x: 0, y: 0 }, { x: 1, y: 1 })\n```"}]}]},"parameters":[{"id":1747,"name":"point1","kind":32768,"kindString":"Parameter","flags":{},"originalName":"__namedParameters","type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{}},{"id":1748,"name":"point2","kind":32768,"kindString":"Parameter","flags":{},"originalName":"__namedParameters","type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.getPointsAngle","hash":"getPointsAngle"},"text":{"comment":"
Function:

getPointsAngle

\n
Description:

根据两个点获取角度值

\n
Returns:
Example:
const angle = getPointsAngle({ x: 0, y: 0 }, { x: 1, y: 1 })\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":84,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L84"}],"parentId":1745}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.getPointsAngle","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getPointsDistance.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getPointsDistance.json new file mode 100644 index 00000000..352f9f68 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.getPointsDistance.json @@ -0,0 +1 @@ +{"id":1749,"name":"getPointsDistance","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":101,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L101"}],"signatures":[{"id":1750,"name":"getPointsDistance","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getPointsDistance"}]},{"tag":"@description","content":[{"kind":"text","text":"获得两个点距离"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst distance = getPointsDistance({ x: 0, y: 0 }, { x: 1, y: 1 })\n```"}]}]},"parameters":[{"id":1751,"name":"point1","kind":32768,"kindString":"Parameter","flags":{},"originalName":"__namedParameters","type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{}},{"id":1752,"name":"point2","kind":32768,"kindString":"Parameter","flags":{},"originalName":"__namedParameters","type":{"type":"reference","id":1835,"name":"PointPosition"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.getPointsDistance","hash":"getPointsDistance"},"text":{"comment":"
Function:

getPointsDistance

\n
Description:

获得两个点距离

\n
Returns:
Example:
const distance = getPointsDistance({ x: 0, y: 0 }, { x: 1, y: 1 })\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":101,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L101"}],"parentId":1749}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.getPointsDistance","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.isTransparentColor.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.isTransparentColor.json new file mode 100644 index 00000000..48df3267 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.isTransparentColor.json @@ -0,0 +1 @@ +{"id":1766,"name":"isTransparentColor","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/colors.ts","line":68,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/colors.ts#L68"}],"signatures":[{"id":1767,"name":"isTransparentColor","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isTransparentColor"}]},{"tag":"@description","content":[{"kind":"text","text":"是否为透明色"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nisTransparentColor('') => false\nisTransparentColor('rgba(255,0,0,0)') => true\nisTransparentColor('rgba(255,0,0,1)') => false\nisTransparentColor(getColorRgba('#f00').toString()) => false\n```"}]}]},"parameters":[{"id":1768,"name":"colorStr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.isTransparentColor","hash":"isTransparentColor"},"text":{"comment":"
Function:

isTransparentColor

\n
Description:

是否为透明色

\n
Returns:
Example:
isTransparentColor('') => false\nisTransparentColor('rgba(255,0,0,0)') => true\nisTransparentColor('rgba(255,0,0,1)') => false\nisTransparentColor(getColorRgba('#f00').toString()) => false\n
\n"},"sources":[{"fileName":"canvas-utils/src/utils/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/colors.ts","line":68,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/colors.ts#L68"}],"parentId":1766}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.isTransparentColor","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.max.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.max.json new file mode 100644 index 00000000..02d5677f --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.max.json @@ -0,0 +1 @@ +{"id":1756,"name":"max","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":27,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L27"}],"signatures":[{"id":1757,"name":"max","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"max"}]},{"tag":"@returns","content":[]},{"tag":"@notice","content":[{"kind":"text","text":"数组不能为空"}]}]},"parameters":[{"id":1758,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":299,"name":"NumberArr"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.max","hash":"max"},"text":{"comment":"
Function:

max

\n
Returns:
Notice:

数组不能为空

\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L23"}],"parentId":1756}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.max","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.min.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.min.json new file mode 100644 index 00000000..160240b3 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.min.json @@ -0,0 +1 @@ +{"id":1753,"name":"min","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/calculate.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/calculate.ts","line":19,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/calculate.ts#L19"}],"signatures":[{"id":1754,"name":"min","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"min"}]},{"tag":"@returns","content":[]},{"tag":"@notice","content":[{"kind":"text","text":"数组不能为空"}]}]},"parameters":[{"id":1755,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":299,"name":"NumberArr"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.min","hash":"min"},"text":{"comment":"
Function:

min

\n
Returns:
Notice:

数组不能为空

\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":36,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/array.ts#L36"}],"parentId":1753}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.min","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.mixins.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.mixins.json new file mode 100644 index 00000000..afa08409 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.mixins.json @@ -0,0 +1 @@ +{"id":1818,"name":"mixins","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/decorators.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/decorators.ts","line":21,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/decorators.ts#L21"}],"signatures":[{"id":1819,"name":"mixins","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@decorator","content":[{"kind":"text","text":"mixins"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1820,"name":"list","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}},"text":{}}],"type":{"type":"reflection","declaration":{"id":1821,"name":"mixins","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"canvas-utils/src/utils/decorators.ts","line":22,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/decorators.ts#L22"}],"signatures":[{"id":1822,"name":"mixins","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1823,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.mixins","hash":"mixins.__type"},"text":{},"sources":[{"fileName":"canvas-utils/src/utils/decorators.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/decorators.ts","line":22,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/decorators.ts#L22"}],"parentId":1818}],"location":{"query":"canvas-utils/src.Function.mixins","hash":"mixins"}}},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.mixins","hash":"mixins"},"text":{"comment":"
Decorator:

mixins

\n
Returns:
"},"sources":[{"fileName":"canvas-utils/src/utils/decorators.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/decorators.ts","line":21,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/decorators.ts#L21"}],"parentId":1818}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.mixins","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.retinaScale.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.retinaScale.json new file mode 100644 index 00000000..9fa6551c --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.retinaScale.json @@ -0,0 +1 @@ +{"id":1803,"name":"retinaScale","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":170,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L170"}],"signatures":[{"id":1804,"name":"retinaScale","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"retinaScale"}]},{"tag":"@description","content":[{"kind":"text","text":"Canvas元素适配移动端机型,for web"}]},{"tag":"@returns","content":[{"kind":"text","text":"retina pixel ratio"}]}]},"parameters":[{"id":1805,"name":"canvas","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"HTMLCanvasElement","qualifiedName":"HTMLCanvasElement","package":"typescript"},"text":{}},{"id":1806,"name":"ctx","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"canvas context"}]},"type":{"type":"reference","name":"CanvasRenderingContext2D","qualifiedName":"CanvasRenderingContext2D","package":"typescript"},"text":{"comment":"

canvas context

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.retinaScale","hash":"retinaScale"},"text":{"comment":"
Function:

retinaScale

\n
Description:

Canvas元素适配移动端机型,for web

\n
Returns:

retina pixel ratio

\n"},"sources":[{"fileName":"canvas-utils/src/canvas/drawer.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/canvas/drawer.ts","line":170,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/canvas/drawer.ts#L170"}],"parentId":1803}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.retinaScale","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.setAnimationHooks.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.setAnimationHooks.json new file mode 100644 index 00000000..fc82ec50 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.setAnimationHooks.json @@ -0,0 +1 @@ +{"id":1824,"name":"setAnimationHooks","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/decorators.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/decorators.ts","line":31,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/decorators.ts#L31"}],"signatures":[{"id":1825,"name":"setAnimationHooks","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@decorator","content":[{"kind":"text","text":"setAnimationHooks"}]}]},"parameters":[{"id":1826,"name":"chartFactory","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Function","qualifiedName":"Function","package":"typescript"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.setAnimationHooks","hash":"setAnimationHooks"},"text":{"comment":"
Decorator:

setAnimationHooks

\n"},"sources":[{"fileName":"canvas-utils/src/utils/decorators.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/decorators.ts","line":31,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/decorators.ts#L31"}],"parentId":1824}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.setAnimationHooks","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.setEnvContext.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.setEnvContext.json new file mode 100644 index 00000000..6d7af133 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.setEnvContext.json @@ -0,0 +1 @@ +{"id":1827,"name":"setEnvContext","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/decorators.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/decorators.ts","line":48,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/decorators.ts#L48"}],"signatures":[{"id":1828,"name":"setEnvContext","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@decorator","content":[{"kind":"text","text":"setEnvContext"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1829,"name":"chart","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"},"text":{}},{"id":1830,"name":"_","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1831,"name":"descriptor","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"PropertyDescriptor","qualifiedName":"PropertyDescriptor","package":"typescript"},"text":{}}],"type":{"type":"reference","name":"PropertyDescriptor","qualifiedName":"PropertyDescriptor","package":"typescript"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.setEnvContext","hash":"setEnvContext"},"text":{"comment":"
Decorator:

setEnvContext

\n
Returns:
"},"sources":[{"fileName":"canvas-utils/src/utils/decorators.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/decorators.ts","line":48,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/decorators.ts#L48"}],"parentId":1827}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.setEnvContext","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Function.throwError.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.throwError.json new file mode 100644 index 00000000..1b2ad5e1 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Function.throwError.json @@ -0,0 +1 @@ +{"id":1727,"name":"throwError","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":111,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L111"}],"signatures":[{"id":1728,"name":"throwError","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"throwError"}]},{"tag":"@description","content":[{"kind":"text","text":"throw Error Object"}]}]},"parameters":[{"id":1729,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"错误信息"}]},"type":{"type":"intrinsic","name":"unknown"},"text":{"comment":"

错误信息

\n"}},{"id":1730,"name":"part","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"错误单元"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"''","text":{"comment":"

错误单元

\n"}},{"id":1731,"name":"detail","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"错误单元细节"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"''","text":{"comment":"

错误单元细节

\n"}}],"type":{"type":"intrinsic","name":"never"},"is":{"declaration":false},"location":{"query":"canvas-utils/src.Function.throwError","hash":"throwError"},"text":{"comment":"
Function:

throwError

\n
Description:

throw Error Object

\n"},"sources":[{"fileName":"canvas-utils/src/utils/base.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/base.ts","line":111,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/base.ts#L111"}],"parentId":1727}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Function.throwError","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Interface.PointPosition.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Interface.PointPosition.json new file mode 100644 index 00000000..1ecd9096 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Interface.PointPosition.json @@ -0,0 +1 @@ +{"id":1835,"name":"PointPosition","kind":256,"kindString":"Interface","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@author","content":[{"kind":"text","text":"Wayne"}]},{"tag":"@Date","content":[{"kind":"text","text":"2022-06-06 09:40:04"}]},{"tag":"@LastEditTime","content":[{"kind":"text","text":"2022-06-07 15:22:45"}]}]},"children":[{"id":1836,"name":"x","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"canvas-utils/src/types/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/types/index.ts","line":8,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L8"}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":true},"location":{"query":"canvas-utils/src.Interface.PointPosition","hash":"x"},"text":{},"parentId":1835},{"id":1837,"name":"y","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"canvas-utils/src/types/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/types/index.ts","line":9,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L9"}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":true},"location":{"query":"canvas-utils/src.Interface.PointPosition","hash":"y"},"text":{},"parentId":1835}],"groups":[{"title":"Properties","children":[1836,1837]}],"sources":[{"fileName":"canvas-utils/src/types/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/types/index.ts","line":7,"character":17,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L7"}],"is":{"declaration":true},"location":{"query":"canvas-utils/src.Interface.PointPosition","hash":""},"text":{"comment":"
Author:

Wayne

\n
Date:

2022-06-06 09:40:04

\n
Lastedittime:

2022-06-07 15:22:45

\n"},"parentId":1221,"hierarchy":[{"name":"PointPosition","isTarget":true,"linkId":"1835"}]} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.ListExtremum.json b/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.ListExtremum.json new file mode 100644 index 00000000..a4ecc67e --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.ListExtremum.json @@ -0,0 +1 @@ +{"id":1839,"name":"ListExtremum","kind":4194304,"kindString":"Type alias","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/types/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/types/index.ts","line":16,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L16"}],"type":{"type":"reflection","declaration":{"id":1840,"name":"ListExtremum","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1841,"name":"max","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"canvas-utils/src/types/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/types/index.ts","line":17,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L17"}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":true},"location":{"query":"canvas-utils/src.TypeAlias.ListExtremum","hash":"max"},"text":{},"parentId":1839},{"id":1842,"name":"min","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"canvas-utils/src/types/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/types/index.ts","line":18,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L18"}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":true},"location":{"query":"canvas-utils/src.TypeAlias.ListExtremum","hash":"min"},"text":{},"parentId":1839}],"groups":[{"title":"Properties","children":[1841,1842]}],"sources":[{"fileName":"canvas-utils/src/types/index.ts","line":16,"character":27,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L16"}],"location":{"query":"canvas-utils/src.TypeAlias.ListExtremum","hash":""}}},"is":{"declaration":true},"location":{"query":"canvas-utils/src.TypeAlias.ListExtremum","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.PointsMap.json b/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.PointsMap.json new file mode 100644 index 00000000..e88d3b76 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.PointsMap.json @@ -0,0 +1 @@ +{"id":1838,"name":"PointsMap","kind":4194304,"kindString":"Type alias","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/types/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/types/index.ts","line":13,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L13"}],"type":{"type":"array","elementType":{"type":"reference","id":1835,"name":"PointPosition"}},"is":{"declaration":true},"location":{"query":"canvas-utils/src.TypeAlias.PointsMap","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.SimpleObj.json b/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.SimpleObj.json new file mode 100644 index 00000000..e0b86190 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.TypeAlias.SimpleObj.json @@ -0,0 +1 @@ +{"id":1843,"name":"SimpleObj","kind":4194304,"kindString":"Type alias","flags":{},"children":[],"sources":[{"fileName":"canvas-utils/src/types/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/types/index.ts","line":21,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L21"}],"type":{"type":"reflection","declaration":{"id":1844,"name":"SimpleObj","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"canvas-utils/src/types/index.ts","line":21,"character":24,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/types/index.ts#L21"}],"indexSignature":{"id":1845,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"parameters":[{"id":1846,"name":"propName","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"unknown"}},"location":{"query":"canvas-utils/src.TypeAlias.SimpleObj","hash":""}}},"is":{"declaration":true},"location":{"query":"canvas-utils/src.TypeAlias.SimpleObj","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.__DEV__.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.__DEV__.json new file mode 100644 index 00000000..a3708c94 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.__DEV__.json @@ -0,0 +1 @@ +{"id":1711,"name":"__DEV__","kind":32,"kindString":"Variable","flags":{"isConst":true},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/env.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/env.ts","line":10,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/env.ts#L10"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"...","is":{"declaration":true},"location":{"query":"canvas-utils/src.Variable.__DEV__","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isNode.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isNode.json new file mode 100644 index 00000000..045e8ca5 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isNode.json @@ -0,0 +1 @@ +{"id":1714,"name":"isNode","kind":32,"kindString":"Variable","flags":{"isConst":true},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/env.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/env.ts","line":19,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/env.ts#L19"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"...","is":{"declaration":true},"location":{"query":"canvas-utils/src.Variable.isNode","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isWeapp.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isWeapp.json new file mode 100644 index 00000000..cc5bd3d0 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isWeapp.json @@ -0,0 +1 @@ +{"id":1712,"name":"isWeapp","kind":32,"kindString":"Variable","flags":{"isConst":true},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/env.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/env.ts","line":13,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/env.ts#L13"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"...","is":{"declaration":true},"location":{"query":"canvas-utils/src.Variable.isWeapp","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isWeb.json b/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isWeb.json new file mode 100644 index 00000000..d5e5a3c2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/canvas-utils/src.Variable.isWeb.json @@ -0,0 +1 @@ +{"id":1713,"name":"isWeb","kind":32,"kindString":"Variable","flags":{"isConst":true},"children":[],"sources":[{"fileName":"canvas-utils/src/utils/env.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/canvas-utils/src/utils/env.ts","line":16,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/canvas-utils/src/utils/env.ts#L16"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"...","is":{"declaration":true},"location":{"query":"canvas-utils/src.Variable.isWeb","hash":""},"text":{},"parentId":1221} diff --git a/docs/v1.0.0-beta01/data/index.json b/docs/v1.0.0-beta01/data/index.json new file mode 100644 index 00000000..fafa0231 --- /dev/null +++ b/docs/v1.0.0-beta01/data/index.json @@ -0,0 +1 @@ +{"id":0,"name":"fe-tools utils - v1.0.0-beta01","kind":1,"flags":{},"originalName":"fe-tools utils","children":[],"groups":[{"title":"Modules","children":[154,976,327,312,346,962,987,359,1,391,1082,541,557,603,643,1138,1159,651,690,699,1192,1222,1221,1103,1107,1223,732,540,304,1102,956,1062,1134,1155,1173]}],"is":{"declaration":false},"location":{"query":"index","hash":""},"text":{"readme":"\n\n

fe-tools

\n
\n
\n

前端开发常用文档/网站地址、样式/js方法封装库(ts)、典型项目模板。English README>>

\n
\n

\n
\n\n\n

1. 常用网站

\n
\n

目录:

\n\n
\n

注:一些选型可以考虑先问 chatGPT / Claude,然后根据整理判断(chatGPT选型能力目前还一般,检索还是可以的)

\n
\n\n\n

1.1 HTML/CSS/JavaScript/WASM/Dart

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
MDN 文档手册html/css/jsMozilla出品的一个很全很有用的前端查询/学习网站。
MDN AI助手html/css/js基于gpt3.5的MDN文档问答机器人。
W3C官网html/css/jsW3C官方标准。
W3C学习网站w3cshoolW3C School,国际热门的web开发学习网站,适合入门。
W3C CSSw3c-cssW3C CSS规范文档。
css属性参考手册css快速查询css属性及基本使用。
canvas api速查手册canvascanvas API方法集合。
W3C官网-SVGsvgW3C官网,SVG文档(左侧RECOMMENDATIONS)。
VML 参考手册VML(IE)*早期(如果你仍要兼容IE6/7)微软开发的在低端IE上运行的图形绘制DSL、类似“SVG”。
TypeScript官方手册typescriptTypeScript官方手册。
TypeScript Challengests-challengesTypeScript Challenges,在线学习/检验自己的ts类型编程水平。
ECMA standardsecmaECMAScript 协议标准。
ECMA International(6)ES6ECMAScript6官方文档。
ECMA International(6) 汉化ES6ECMAScript6官方文档的中文翻译版(只有少部分且挺久没更新了)。
ECMA6 featuresES6通俗易懂的ECMAScript6特性demos。
ES6入门(阮一峰)ES6国内使用频率最高的ECMAScript6文档,特别适合新手。
Web API Referencehtml5HTML5 web API查询,如摄像头/地理位置。
Safari HTML Ref查询htmlSafari webview的HTML标签查询,用于移动web开发,比如某些iOS特殊的属性或表现可以查这个。
WebKit 特性状态查询webkitWebKit 官网文档,js/css特性状态支持情况查询。
Dart官网dartdart语言英文官网。
Dart中文网dartdart语言中文学习网。
RFC规范官网rfc/httpRFC协议官网,可查询HTTP协议等内容。
Media TypesMIME媒体类型列表,MIME。
Web Assembly官网wasmWeb Assembly(wasm)英文官网。
Web Assembly中文网wasmWeb Assembly(wasm)中文网。
Krustlet 官网krustlet一款 Web Assembly 框架。
\n\n\n

1.2 兼容/查询

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
can i usecaniuse使用频率最高的兼容支持查询网站。
ES兼容查询jsECMAScript兼容查询。
微信小程序ES兼容查询weapp微信小程序ES api及对应小程序环境版本兼容查询。
iOS字体ios fontiOS系统自带字体支持情况查询。
Web安全色查询web color*为了尽量让用户看到色彩相同的网页,请尽量使用216色的web安全色。
StatCounter浏览器份额统计statcounter*StatCounter的浏览器统计报表
浏览器份额统计browser*百度统计的市面上浏览器/app份额(现在已经没有了,只剩百度统计产品)。
\n\n\n

1.3 CSS工具

\n
\n\n\n

1.3.1 预处理

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
less文档less易上手的CSS预处理工具。
sass 文档sass热门的CSS预处理工具。
stylus 文档stylus功能丰富的CSS预处理工具。
stylus 文档(张旭鑫)stylusstylus中文文档。
Assembler CSS 文档asmcssAssembler CSS 官方文档,Just-in-time。
\n\n\n

1.3.2 后处理

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
postcss 文档postcss被广泛运用的CSS后处理工具。
postcss 插件postcsspost插件库中心。
autoprefixerautoprefixer自动补充浏CSS前缀的后处理工具。
cssnano官网cssnanoCSS优化和分解插件。
postcss-plugin-px2rempx2rem将px单位转为rem单位的工具。
postcss-px-to-viewportpx2vw将px单位转为vw单位的工具。
cssnext官网cssnext让今天的我们写着明天的CSS特性。
\n\n\n

1.3.3 样式库/模块

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
30s-of-code(css)30s-of-code(css)常用CSS样式模块集合,30s of code系列。
animate.cssbulma.cssCSS3动画库。
Hover.cssHover.cssPC鼠标hover交互动画库。
bulma.cssbulma.css一款轻量级的CSS UI库。
cardinal.csscardinal.css一款移动优先的less库。
bootflat.cssbootflat.css一款扁平化风格scss库,基于BootStrap3.3。
corpus.csscorpus.css一款scss集合库。
weuiweui微信风格的样式库,腾讯。
materialize.cssmaterializecssMaterial风格的响应式前端样式框架。
mui.cssMUIMaterial风格的轻量级前端样式框架。
Metro UIMetro UI一款流行的响应式前端样式框架,React版
NES.cssNES.css游戏机像素风格的前端样式框架。
paper.csspaper.css手绘风格的前端样式框架。
css3 iconcss3 icon纯CSS实现的图标。
Bootstrap 文档bootstrap红极一时的响应式前端样式框架。
layui 文档layui一款采用自身模块规范编写的前端 UI 框架。
fontawesomefontawesome字体图标库。
iconfonticonfont字体图标库,阿里。
normalizenormalize相对较优的CSS reset替代方案。
Tailwind官网tailwind模块化的UI库。
Unocss官网unocss原子、按需的css模块化引擎、有借鉴tailwind。
\n\n\n

1.3.4 其他

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
css trickscss tricks包括布局、图标、动画等CSS技巧。
BEMbemBEM写法规范。
ACSSacssAtomic CSS,一种模块化写法规范。
IT.cssitcssIT CSS,一种组件化写法规范。
CSS modulescss-modules一种CSS样式模块化的解决方案。
css in jscss-in-js用写js的方式生成css样式。
Moo-CSSmoo-css一种CSS写法方案。
CSS tricks for web developersYou-need-to-know-cssCSS技巧集合。
logotyp.us logotyp国内外知名企业/商业的logo集合。
uiverse.io uiversecss样式组件集合,号称“最大的UI开源库”。
\n\n\n

1.4 JS插件/库

\n
\n\n\n

1.4.1 库

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
LoDashlodash广为人知的函数式工具库。
ramdaramda比较著名的函数式工具库。
fp-tsfp-ts遵循函数式编程范式的ts封装库。
radashradashts函数式工具库。
UnderscoreJSunderscorejs红极一时的函数式工具库。
jQueryJsjQuery早年红极一时的js封装库。
ZeptoJsZepto轻量级“jQuery”,移动端使用的比较多。
city.jscity全国行政区划分数据文件。
phaser.jsphaser2D游戏前端库。
fabric.jsfabricjs有名的svg和canvas相互转换的封装库。
babylon.jsbabylonjs有名的3D游戏/视频框架。
immutable-jsimmutable生产环境js的List, Stack, Map, OrderedMap, Set, OrderedSet以及Record数据结构支持,通常用于ReactJs。
GCanvasgcanvas轻量的跨平台图形引擎(web/weex/react-native),阿里。
core-decoratorscore-decorators丰富的装饰器封装库,基于ES2016/2017的装饰器语法。
http-status-codeshttp-status-codes枚举 HTTP 状态代码的常量。支持 RFC1945(HTTP/1.0、RFC2616 (HTTP/1.1) 和 RFC2518 (WebDAV))中定义的所有状态代码。常用于ajax请求处理,ts。
Zodjszod以 TypeScript 为首的模式声明和验证库,可用于数字格式校验及生成ts声明。
ts2dartts2dart一款 TypeScript 转 Dart 语言的工具库(会存在一些问题),有挺多年没维护了。
InversifyJS inversify一款 js/ts IoC的封装库。
BottleJs bottlejs 一轻量 js/ts 依赖注入容器库。特点是延迟加载。
\n\n\n

1.4.2 数据工具

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
stdlibstdlibjs的数学增强库。
StreamJsstreamjs一款js数据的操作工具。
BaconJsbaconjs也是一款js数据的操作工具。
Date fnsdate-fns一款模块化支持按需的日期格式化工具。
DayJsdayjs一款日期格式化的工具,轻量,MomentJS的替代品。
MomentJsmomentjs一款日期格式化的工具(2020开始停止维护)。
numbronumbrojs一款多国语言的数字转化工具。
NumeralJsnumeraljs用于格式化和操作数字的 js 库。
accounting.jsaccounting.js数字,金钱的格式化工具。
money.jsmoney.js金钱的汇率转换工具。
decimal.jsdecimal.jsJs精度处理库。
\n\n\n

1.4.3 请求、cookie和缓存

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
axiosaxios高频使用的ajax库。
fetchfetchFetch API的兼容polyfill。
jsonpjsonp不用多说,实现jsonp。(axios没有封装jsonp)
URI.jsuriURI解析操作的库。
StoreJsstoragestorage的封装库,兼容IE6。
js-cookiejs-cookiecookie的封装库。
Dexie.jsdexiejsIndexedDB的封装库。
localForage.jslocalForage基于IndexedDB、WebSQL、localStorage的离线存储库,Mozilla。
basket.jsbasket.js利用localStorage来缓存script和css资源。
\n\n\n

1.4.4 插件

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
swiper.jsswiper轮播插件。
nanobar.jsnanobar绚丽的进度条展示插件,IE7+。
sweetalertsweetalertjs效果不错的PC alert展示插件。
bowserjsbowserjs通过ua做的浏览器探测插件。
clipboard.jsclipboardjs剪贴板控制插件。
Qrcode-generatorgrcode-generator二维码生成工具。
html2canvashtml2canvashtml转为图片(canvas),即实现网页截图。
rrwebrrweb 基于样式截取的网页“录屏”工具,实现用户操作采集和回放。
Pen EditorPen Editorweb的文本编辑工具。
cleave.jscleave.js一款好用的input输入控制插件。
autosize.jsautosize.js一款好用的<textarea/>高度自适应工具。
FileSaver.jsFileSaver.js网页端字符/图片/文件另存为插件。
download.jsdownload.js网页端字符/图片/文件另存为插件,比FileSaver快一点。
FileAPI.jsFileAPI控制文件上传的插件。
shake.jsshake.js移动端摇晃震动监听插件。
Tippy.jstippy.js好用的气泡组件,有React版。
fusefusejs轻量、好用的js模糊搜索库。
algoliaalgolia好用的搜索集成方案。
dejavudejavu一款弹性搜索方案,逮虾户。
driver.jsdriverjs一款轻量的用户操作引导插件。
aos.jsaosjs一款强大的页面滚动动画插件。
favico.jsfavicojs一款让pc网站图标动起来的插件。
fullPage.jsfullpagejs一款快速搭建全屏滚动页面的插件。
Lucky Canvaslucky-canvas一款支持web、小程序跨平台的 ( 大转盘 / 九宫格 / 老虎机 ) 抽奖插件。
Typedjstyped.js一款模拟打字机效果的js UI库。
\n\n\n
视/音频
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
MediaElement.jsmediaelementjs一款视频控制插件。
video.jsvideojs一款视频控制插件。
flv.jsflvjs一款无需flash的flv播放插件。
howler.jshowlerjs视、音频控制插件。
jplayerjplayerjQuery的视、音频控制插件。
audio5.jsaudio5js一款音频控制插件。
\n\n\n
图片
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
caman.jscamanjs一款web图片处理插件。
Sharpsharp一款强大的图片处理工具。
squoosh.jssquoosh一款优秀的图片压缩方案,有浏览器环境。
tesseract.jstesseract一款强大的OCR识别库。
imagesloadedimagesloaded判断元素图片加载状态的库。
cropper.jscropperjs一款集成的图片裁剪插件库。
viewer.jsviewerjs一款集成的图片浏览/简单处理插件库。
compressor.jscompressorjs一款集成的图片压缩处理插件库。
\n\n\n
字符串
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
Voca.jsvocajs字符串的驼峰/修饰/填充/截断/转义/大小写更改等等。
anchorme.jsanchormejs自动将文本中的链接/URL/电子邮件转化为可点击的锚点链接。
String.jsstringjs字符串的截取删除等操作库(很久没维护了)。
qs.jsqsjsURL参数处理库。
nano-idnanoid小型(130 字节)、安全、URL友好、唯一的字符串 ID 生成器。
uuiduuid生成符合 RFC 的 UUID 库。
md5.jsmd5获取字符、Buffer的md5。
hash.jshashjs的hash字符串处理。
\n\n\n

1.4.5 工具

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
RequireJsrequirejsjs模块化工具(webpack后很少有项目会用到)。
SeaJsseajsjs模块化工具(webpack后很少有项目会用到)。
Browserifybrowserify浏览器端使用类似于 node 的 require() 方式。
validate.jsvalidate.jsform表单校验工具。
validator.jsvalidator.js有名的内容校验工具,比如邮箱验证、数值验证等。
RxJS中文官网RxJSReactiveX编程理念的js异步编程库。
Fakerfaker用于在浏览器/Nodejs中生成假数据(注意作者已删源码)。
Joi官网joi面向js的强大schema描述语言与数据验证器。
classnamesclassnamesclassName条件组合的工具,多用于React。
clsx clsx 轻量(228B)className条件组合的工具,多用于React。
path-to-regexppath-to-regexpURL或路径校验工具,使用面极广。
MousetrapMousetrap键盘事件注册捕获封装库,支持Windows/Mac键盘。
UaParserJsua-parser-js检测用户的浏览器,引擎,操作系统,CPU和设备。可运行在浏览器或node.js。
click-to-componentclick-to-component浏览器运行时快速定位React组件源码(VSCode打开)的工具。
\n\n\n

1.4.6 数据可视化(图表)

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
highchartshighcharts效果、兼容最好(ie6+)的可视化库,可惜企业要收费。
echartsecharts国内最全面的可视化库。
d3d3不直接输出图形,输出开发功能的svg工具。
Chartjschartjs模块化可视化库。
antvG2/F2包括pc/移动的可视化库,蚂蚁。
FundChartsfundcharts本人的跨端轻量可视化库。
ThreeJs文档threejs/webGL著名的webGL 3D建模库
PlayCanvas文档playcanvaswebGL游戏3D建模库
scene.jsscenejsWebGL 3D基础库。
Snap.svgsnap一款svg操作库。
pixi.jspixijs2D WebGL渲染引擎。
svg-3d-buildersvg-3d-builder3D SVG渲染引擎。
jsplumbjsplumb一款好用的流程图可视化库。
cytoscapejscytoscape一款好用的关系图谱可视化库。
Mermaidmermaid一款好用的流程图生成可视化库。
Zrenderzrender2D渲染渲染引擎库,支持Canvas/SVG/VML,也是ECharts的渲染器。
\n\n\n

1.4.7 数据可视化(地图)

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
cesiumjsCesium.js一款开源的3D城市建模库。
KartographKartograph.js一款普通的2D SVG城市数据展示库,IE7+。
leafletjsLeaflet.js一款移动优先的地图展示插件。
\n\n\n

1.4.8 h5动画

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
Bounce.jsBounceJS牛啤的CSS3动画创建工具。
animateplus.jsAnimateplus仅3k的动画工具。
Anime.jsanimejs轻量级js动画库。
svg.jssvgjs轻量的svg操作/动画库。
snapsvgSnap.svg一款有名的svg操作/动画库。
lottielottieweb/原生/小程序/RN的跨端动效方案。
EaselJSeaseljscanvas动画操作库,CreateJS四剑客之一。
TweenJStweenjs动画曲线(ease/linear...)操作库,CreateJS四剑客之一。
SoundJSsoundjs音频控制库,CreateJS四剑客之一。
PreloadJSpreload资源预加载库,CreateJS四剑客之一。
P5jsp5jscanvas绘画功能库。
Rough.jsroughjs一个有意思的canvas绘图库(画出的图形具有手绘风格)。
BabylonJSBabylonJS一个功能强大,美观,简单且开放的游戏和渲染引擎。
GranimJsgranimjs用于创建流体和交互式渐变的动画js库,仅17k。
canvas-confetticonfetti轻量的js canvas礼花特效库。
\n\n\n

1.4.9 移动端手势

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
AlloyFinger.jsAlloyFinger增加移动端的各种手势事件。
hammer.jshammerjs手势封装库,取消了移动端click的300ms延迟。
interact.jsinteractjs使用JavaScript实现拖放、缩放和多点触控手势。
\n\n\n

1.4.10 加载

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
aload.jsaload.js异步图片/js/css加载工具。
layzr.jslayzr.js轻量图片懒加载工具。
lazysizes.jslazysizes高性能的图片/iframe懒加载工具。
infinite-scroll.jsinfinite-scroll“无限”滚动的加载插件。
\n\n\n

1.4.11 TypeScript辅助

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
ts-loaderts-loaderwebpack中的TypeScript构建插件。
awesome-typescript-loaderawesome-typescript-loaderwebpack中的TypeScript构建插件,比ts-loader要快一点。
ts-transformer-keysts-transformer-keys用于提取interface的键值数组(需要用webpack)。
ts-dedentts-dedentnode端打印正常换行的log。
suppress-ts-errorsuppress-ts-error自动为项目中所有的类型报错添加 @ts-expect-error 或 @ts-ignore 注释。
type-festtype-fest经典的工具类型封装库。
TypeChat typechat基于OpenAi GPT模型的ts类型生产工具,微软。
\n\n\n

1.4.12 其他

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
js-framework-benchmarkjs-framework-benchmark基于chrome的各前端框架性能对比,有个分析站点。
Angularangular封装度高的经典前端框架。
Sveltesvelte无虚拟DOM的轻量Web应用编译器,template,近期火。
SolidJssolid对webComponent友好的库,开发体验与react相似,国外这几年较火。
StenciljsstenciljswebComponent的编译构建框架,jsx。
Infernojsinfernojs轻量的类React库,jsx。
Emberjsemberjs脚手架强大的web开发框架,template。
Vueravuera用来混用Vue/React组件的库、即Vue中可以使用React组件、React中可以使用Vue组件。
Veauryveaury用来混用Vue3/React组件的库、比vuera功能完善。
Quarkquark基于 Web Components 的移动端跨框架 UI 组件库,哈啰。
Web3jsweb3js以太坊标准js封装库。
\n\n\n

1.5 Vue

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
Vue3 文档vueVue3 官方文档。
Vue2 文档vueVue2 官方文档。
vue-cli 文档vue-clivue脚手架工具文档。
pinia 文档pinia轻量Vue状态管理工具,vue3推荐。
vuex 文档vuexvue数据流控制工具。
vue-router 文档vue-router基于vue的前端路由控制。
vue-content-loader 文档create-vue-content-loadervue版SVG骨架屏插件。
better-scroll 文档better-scroll控制滚动场景的插件。
vant 文档vant移动UI库,有赞。
vue-weui 文档vue-weuiweui风格的移动UI组件库。
Element 文档element使用PC中后台前端开发的UI组件库,饿了么。
vue-lazyload 文档vue-lazyloadvue版的图片/组件懒加载插件。
iView 文档iviewPC UI组件库。
antd-vue 文档antd-vuePC UI组件库,ant design的Vue版。
vue-i18n 文档vue-i18n多语言解决方案。
v-region 文档v-regionVue行政区选择组件。
vue-echarts 文档vue-echartsEcharts的Vue封装组件。
Nuxt.JS 文档nuxtjsVue的服务端渲染应用框架。
ViteJS 文档vitejs无bundle的Vue轻量前端项目构建工具。
vue-class-component 仓库vue-class-componentVue的Component装饰器封装,用于jsx/tsx的vue组件写法。
Formily 文档formilyjsElement/Antd的表单DSL解决方案。
vue-2-3vue-2-3vue2和vue3共存的一种解决方案封装。
SWRVswrv用于数据请求的 Vue 钩子库,处理了请求缓存、状态等等。
Vue Requestvue-request用于数据请求的 Vue 钩子库,比swrv能力要稍微丰富一些。
Vue Usevue-use基于Vue组合式API的实用工具集,除了常用的请求动画等封装外、还封装了浏览器、electron utils。
Vue React Combinedvuereact-combinedVue2和React快捷集合的工具包。
Veaury veauryVue3 和 React 快捷集合的工具包。
\n\n\n

1.6 React

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
React 文档reactReact 官方文档。
React 中文文档reactReact 中文翻译文档。
create-react-app 文档create-react-appreact脚手架工具文档。
react Chrome devtoolsreact-devtoolsreact的Chrome开发拓展插件。
react-routerreact-router用于react的前端路由控制。
Recoil 文档recoil简单、对hook友好的数据流控制工具。
redux 文档redux广泛使用的数据流控制工具,reducer+flux。
flux 文档flux数据流控制工具(现在已经很少在用了)。
mobx 文档mobx轻量数据流控制工具。
dvajs 文档dvajs基于 redux 和 redux-saga 的数据流方案,蚂蚁。
UmiJs 文档umijs可插拔的企业级 react 应用框架,蚂蚁。
Rekit 文档rekitReact/Redux/React-router开发工具/IDE。
NextJs 文档nextjs轻量级的 React 服务端渲染应用框架。
Gatsby.js 文档gatsbyjs轻量级的 React 静态网站搭建框架。
React-use 文档react-use好用的React自定义hooks封装库。
Umi Hooks 文档umi hooks适用于中台的hooks方法,如请求、拖拽、防抖。
react-query 文档react-query好用的React ajax接口请求处理封装hook。
why-did-you-renderwhy-did-you-render用来检测React组件是否需要重新渲染的工具。
framer-motion 官网framer-motion非常强大的React动画/交互手势库,来自Farmer API。
react-content-loader 文档create-content-loaderreact版SVG骨架屏插件。
shadcn-ui 文档shadcnshadcn,原子、灵活的UI组件库。
antd 文档antdant design,PC UI组件库。
antd-mobile 文档antd-mobile移动版的antd,UI组件库。
styled-components 文档styled-componentsreact的css-in-js实现。
goober 文档goober只有1kb大小的css-in-js库。
chatUIchatui.io服务于对话领域的解决方案(前端组件),阿里。
Ant Design Xant-design-x服务于对话领域的解决方案(前端组件),蚂蚁。
react-lazyload 文档react-lazyloadreact版的图片/组件加载插件。
react-loadablereact-loadable实现react组件构建时代代码抽离和动态加载。
react-draggablereact-draggable一个用于拖拽操作的React封装组件。
React DNDreact-dnd适用于React的复杂拖拽控制库,基于HTML5拖放API。
react-tappablereact-tappable一个用于点击事件操作的React封装组件。
React-portalreact-portal一个通过portals定义附加的节点组件渲染工具。
React-contextmenureact-contextmenupc端web实现右键菜单的工具组件。
react-markdownreact-markdown在react上使用的markdown工具。
30s-of-react30s-of-react常用React代码模块集合,30s of code系列。
React Bitsreact-bits常用React技巧。
docsiteJSdocsite基于React的文档生成工具。
React Colorreact-color基于React的拾色器插件,模拟Sketch, Photoshop, Chrome等取色工具,注意可以直接用于Preact。
React Desktopreact-desktop模拟Mac或windows桌面交互的React封装组件。
React Boilerplatereact-boilerplate性能优先的一个典型的React项目模板。
React RTEreact-rte富文本编辑器,基于draftJS。
React i18Nextreact-i18next多语言解决方案。
SWRswr用于数据请求的 React Hooks 库,处理了请求缓存、状态等等。
Formikformik高度封装、开箱即用的 React form 表单封装库。
\n\n\n

1.7 Nodejs和构建

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
Node.js best practices listnodebestpracticesNodejs最佳实践集合。
npmnpmnode包统一平台。
yarnyarn高速的node包管理器。
pnpmpnpm快速高效(安全)的node包统一管理器。
nn极度简单的 Nodejs 版本管理工具。
StoryBookstorybookjs用于独立开发React、Vue和Angular的UI组件库导航站点。
unpkgunpkg国外公共静态资源CDN,适用于 npm 上的所有内容。
nodejs apinodeNode官方文档。
Deno apidenoDeno官方文档(Nodejs.next)。
Bunbun号称比Nodejs快3倍的js runtime容器。
TurboRepoturborepo好用的、高性能的多包管理工具,monorepo。
Lernalerna好用的多包管理工具,monorepo。
patch-packagepatch-package 给node_modules打补丁的工具包。
V8 dev docsV8js V8引擎文档。
V8v8V8引擎介绍。
QuickJsquickjs一款轻量级js引擎。
jsvujsvujs引擎调试必备,引擎切换及版本控制。
dockerdocker应用容器引擎Docker。
LinuxlinuxLinux命令查询手册。
GraphicsMagickgm后台图片处理工具。
js-xlsxjs-xlsxxlsx的编辑和处理库。
ShellJsshelljs用nodejs实现shell常用命令。
chalkchalk 控制台命令行输出样式工具,主要控制颜色。
node-schedulenode-schedule适用于nodejs的定时任务工具。
source-map-supportsource-map-support在 nodejs 环境下支持 SourceMap 的模块工具。
yalcyalcnpm link 的有效替代品,使用真实的 npm package 代替各种 link。
\n\n\n

1.7.1 构建

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
Prettierprettier 对代码无侵害的代码格式化工具。
ejsejs简单上手的html模板引擎。
Mustachemustache适用于多语言的html模板库。
pugpughtml模板库。
jadejadehtml模板库。
gulp 配置文档gulp自动化构建工具。
gulp pluginsgulpgulp插件中心。
grunt 配置文档grunt自动化构建工具。
rollupjs文档Rollup一款ES6模块构建工具。
webpack 配置文档webpack应用面不能再广的打包工具。
webpack-chainwebpack-chain链式配置webpack配置的工具。
TurboPackturbopack基于Rust的高性能打包工具。
parceljs 配置文档parceljs轻量打包。
snowpack 官网snowpack无bundle的轻量前端项目构建工具。
swcswc用Rust写的、号称比babel快20倍且支持其所有功能的ts/js编译器。
babelbabel应用面不能再广的ES编译器。
htmlparser2htmlparser2一款html的转AST工具。
parse5parse5一款html的转AST工具。
recastrecast一款js转AST的工具。
ts-migratets-migrate一款js转ts(TypeScript)的工具。
Concurrentlyconcurrently一款Nodejs的命名行控制工具,实现同时运行多条命令。
esbuildesbuild一款极快的js打包和压缩工具。
criticalcritical一款从HTML中提取相关CSS的工具。
ModernJSmodernjsweb前端工程化体系工具,字节跳动。
javascript-obfuscatorobfuscatorjs代码混淆插件。
\n\n\n

1.7.2 服务端

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
express 配置文档express轻量web应用程序开发框架。
Koa 文档koajsweb应用程序开发框架。
Fastify 官网fastify标称当代最快的轻量web应用程序开发框架,重点是JSON schema加速。
Midway 官网midway支持了 Web / 全栈 / 微服务 / RPC / Socket / Serverless 的 web 应用程序开发框架,阿里淘系。
feathers.jsfeathersjs轻量web应用程序开发框架,适用于数据流型。
Nest.jsnestjs强大的Web应用框架。
Mockjs 配置文档mockjs接口数据模拟工具,可以在客户端和服务端使用。
SheetJssheetjs通过node操作word的工具。
ParallelJsparalleljs并行处理js的工具,可用于浏览器和node服务端。
js-pdfjs-pdf通过node操作生成pdf的工具。
pm2pm2node进程管理。
node-worker-farmnode-worker-farm很常用的 Node.js 多进程计算库。
colors.jscolorsjsnode log控制台输出颜色控制。
log4.jslog4jslog日志工具。
nw.jsnwjs基于nodeJs和chromium的应用程序运行环境,允许您直接从DOM调用所有Node.js模块。
node-archivernode-archiver支持ZIP/TAR文档流传输和接收插件。
yazlyazl压缩zip插件,对应解压为yauzl
SailsJssailsjs好用的MVC nodejs框架。
Helmet中间件helmet通过设置响应头header保护express服务应用。
Cors中间件corsNodejs的Cors中间件。
Body-parser中间件body-parserNodejs的请求流解析中间件。
RestifyrestifyNodejs的Web服务框架。
Multermulter用于处理上传文件的Nodejs中间件。
Node-cachenode-cache一个Nodejs的缓存控制模块。
Socket.IOsocket.ioWebSocket解决方案。
ioredisioredisredis调用js封装库。
wswsWebSocket的一个nodejs包。
nginxconfig.ionginxconfig.io在线生成nginx配置的工具。
fast-safe-stringifyfast-safe-stringify安全快速地序列化JSON,替代JSON.stringify。
NodeMailernode-mailer用来发邮件的库、支持SMTP/SES/Sendmail/Stream方式。
\n\n\n

1.7.3 GraphQL

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
Graphql-jsgraphqlGraphQL的js实现。
hasura graphql-enginehasura一款强大的GraphQL引擎方案。
apollo-clientapollo-client适用于每个UI框架和GraphQL服务器的方案。
\n\n\n

1.7.4 微前端

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
single-spasingle-spa以路由配置为主要特点的微前端解决方案。
qiankunqiankun蚂蚁系微前端框架,基于single-spa。
Module Federationmodule-federation构建时共享模块为主要特点的微前端解决方案,webpack(5)的实现。
R/Frontsfronts渐进式微前端框架,基于webpack module-federation。
无界Wujiewujie基于web component+iframe的微前端框架,腾讯。
jsdomjsdom在node环境上实现DOM操作的封装库。
\n\n\n

1.7.5 云和Serverless

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
WasmEdge 官网wasmedge一款与WebAssembly有关的云原生及serverless框架。
Serverless Framework 官网serverless快速建立node Serverless 服务的框架,支持腾讯云 SCF,AWS Lambda等。
AWS Lambdaaws-lambda经典,亚马逊amazon serverless计算服务。
字节轻服务 官网qingfuwu字节轻服务,支持Serverless(FaaS)、CDN等服务,有免费档。
阿里云 FCqingfuwu阿里云函数计算服务,支持Serverless(FaaS)。
腾讯云 SFCqingfuwu腾讯云云函数服务,支持Serverless(FaaS)。
\n\n\n

1.7.6 低代码LowCode

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
lowcode-enginelowcode-engine阿里开源低代码引擎。
微搭weda腾讯低代码引擎,微搭。
amisamis百度开源低代码引擎,适用于偏中后台项目。
TinyEnginetiny-engine华为2023开源低代码引擎,具备图元编排能力。
Tangotango网易云音乐2023开源低代码引擎,不受私有 DSL 和协议限制。
\n\n\n

1.8 Hybird和跨端

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
pwapwd渐进式web应用。
微信小程序官网小程序/hybird微信小程序开发官网。
支付宝小程序官网小程序/hybird支付宝小程序开发官网。
百度小程序官网小程序/hybird百度小程序开发官网。
wepy文档小程序/hybirdvue语法的小程序开发官网。
小程序工具集合小程序/hybird小米轻应用开发官网。
小米轻应用官网轻应用/hybird小米轻应用开发官网。
Oppo/vivo快应用官网轻应用/hybirdOppo/vivo轻应用开发官网。
华为快应用官网轻应用/hybird华为轻应用开发官网。
React-native 文档跨端热门的react语法跨端工具,RN。
NativeScript跨端国外一款流行的跨端开发框架,支持Angular/Vue/Svelte/React。
ionic-framework跨端一个强大的跨平台UI工具包,用于使用HTML,CSS和JavaScript构建本机质量的iOS,Android和PWA。
quasar-framework跨端构建一流的高性能的Vue响应式网站、PWA、SSR、移动和桌面应用
Weex文档跨端前几年热门的vue语法跨端工具,现在都不维护了。
Weex-UI文档跨端/weexweex的UI组件库。
Taro文档小程序/跨端跨web/小程序/原生的react语法跨端工具,runtime跨端模式。
Rax文档小程序/跨端/Flutter跨web/小程序/Flutter的react语法跨端工具,阿里。
Kbone文档小程序/跨端跨web/小程序跨端构建插件,成本低,适配各类web框架,腾讯。
Hippy文档跨端腾讯的一款混合跨端框架。
uni-app文档小程序/跨端跨web/小程序/原生的vue语法跨端工具。
北海KrakenKraken高性能 Web 渲染引擎,基于 Flutter 构建,可以用web范式写法写Flutter,阿里。
Remax文档remaxReact语法跨web/小程序工具,类似于taro-next(3)的跨端模式,对小程序友好,支付宝。
Antmove antmove小程序转换器,基于支付宝/微信小程序转换为多端小程序,高德。
Flutter文档跨端超火的Dart语法的跨端开发工具。
Electron文档跨端PC、windows/Mac应用的开发框架。
WebView2文档跨端PC、windows应用的开发框架,微软。
Tauri文档TauriRust 编写的、基于web的 windows/Mac 应用的开发框架。
Pakepake基于Rust Tauri 框架、 打包网页生成很小的桌面 App的脚手架工具,支持 Mac / Windows / Linux 系统。
flyio(fly)文档fly支持Web、Node.js 、微信小程序 、Weex 、React Native 、Quick App的请求封装库。
wxParsewxParse 微信小程序富文本解析组件,支持Html及markdown转wxml可视化(但是目前已停止维护)。
chrome extensionchrome-extensionChrome拓展程序官方文档。
chrome-plugin-demochrome-plugin, chrome-extension一篇很好的Chrome拓展程序开发教程,有demo。
\n\n\n

1.9 辅助工具

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
chatGPTchatGPT 基于OpenAPI的问答机器人,用来查技术问题也挺好。
Cursorcursor 基于OpenAPI GPT-4的编程助手,感觉好像比copilot还流畅一点。
CodeGeeXCodeGeeX 用于平替Copilot的编程助手,AI、免费。
stackoverflow.comstackoverflow技术问题排忧解难的友好社区。
bundlephobia.combundlephobia分析npm软件包的体积和加载性能的网站。
npmgraphnpmgraph分析npm软件包依赖关系的工具网站。
Ts声明文件查询joi各类库的TypeScript声明文件查询网站。
正则表达式30分钟regexp正则上手教程。
在线正则验证regexper可视化在线正则验证网站。
cyrilexcyrilex一个在线可视化的正则表达式测试工具和调试器。
whistlewhistleweb调试代理工具。
AST explorerastexplorercss/html/js/ts等语言的在线ast解析工具。
huskyHuskyNodeJS上的git工具。
eslint 文档eslintjs代码检查工具。
visualgoVisualgo可视化算法查询。
visualgoVisualgo可视化算法查询。
动画曲线查询cubic动画曲线查询网站(ease/linear...)
Character Entity Reference Chartcharref字符标点的转义字符查询。
gradient-editorgradient-editorCSS渐变样式生成工具。
valineJSvaline评论系统工具。
GitTalkgittalkgithub的评论工具。
CodeMirrorcodemirrorweb代码文本编辑器,带有大量的语言模式和插件功能。
webIDEwebideweb上写代码。
Fusumafusuma用markdown写web ppt。
stackeditstackedit 在浏览器中运行的Markdown编辑器。
VuePressvuepress用markdown写文档/博客
VitePressvitepress用markdown写文档/博客,VuePress小兄弟,用vite构建
Hexohexo用markdown写文档/博客
dumidumi适合写前端开发文档的工具,markdown,蚂蚁
jsdocjsdoc最经典的js代码注释生成文档的工具
jsdoc-to-markdownjsdoc-to-markdownjs注释(jsdoc格式)生成markdown文档
materialuimaterialui快速色值选择
carboncarbon生成写博客时代码的美腻截图
tinypngTinypng压缩png和jpeg图片
svgosvgo压缩SVG图形文件工具
svgomgSVGOMG压缩SVG图形
ImageMagickimagemagick后台运用极广的图片处理工具。
img2cssimg2css一个有趣的库,利用box-shadow将图片以CSS的方式呈现。
whatfontis.comwhatfontis识别图片上的字体不过限于英文字体,需要注册。
keycodekeycode一个输入按键并获取其对应js keyCode的在线网站。
ps.gaoding.comps强大的在线Photoshop。
convert-psd-to-sketch avocodeavocodepsd一键转sketch。
svgomgsvgomg在线svg优化及预览。
code2flowcode2flow在线伪码转流程图工具。
tool.lu-jsonjson在线json格式化工具。
tool.lu-jsjs在线js格式化/混淆/压缩工具。
tool.lu-csscss在线css格式化/压缩/响应式单位处理工具。
tool.lu-coderunnercoderunner在线php/c/c++/python/go/js/java/bash代码执行工具。
diffchecker.comdiffchecker在线文本/文件diff工具。
isoflow.ioisoflow在线流程图绘制工具。
n8n n8n基于自由和开放的公平代码许可节点的工作流自动化工具。轻松自动化跨不同服务的任务。
阿里云 DNS检测 dns域名DNS检测网站工具,阿里云。
Railroad Diagrams railroad-diagrams在线绘制铁路图的网站工具。
CodeIfcodeIf帮助解决命名困难的命名搜索工具。
QuickType QuickType根据 json 文本生成指定语言(如 TypeScript,C++,,Java,C#,Go 等)类型声明代码的工具网站。
中国独立开发者项目列表 chinese-independent-developer聚合中国独立开发者的项目。
\n\n\n

1.10 测试、安全及加密

\n
\n\n\n

1.10.1 单元测试

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
MochaJS文档mocha一款单元测试工具。
JestJS文档jest一款单元测试工具。
Cypress官网cypress一款单元测试集成平台工具。
AvaJsavajs一款快速的测试工具。
karmakarma一款基于Node.js的JavaScript测试执行过程管理工具(Testacular的新名字)。
enzyme官网enzyme一款React单元测试工具,可以测hook。
gremlins.jsgremlins一款node及浏览器的Monkey Test工具。
uptime-kumauptime-kuma一款开源的、基于puppeteer的指标监控平台。
Playwrightplaywright较新颖的e2e测试工具,支持Chrome、firefox等主流浏览器。
\n\n\n

1.10.2 安全及加密知识

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
CryptoJScrypto-js一个可以说是最常用的 JavaScript 加密库,支持主流的哈希算法、加密算法,例如 SHA、MD5、AES 等。
js-sha256js-sha256一个用于 SHA256 哈希运算的轻量级库。
Bcryptbcrypt用于密码散列处理的库。
\n

《How to Secure Anything》

\n

crypto-js 前端数据加密工具

\n

《浅谈前端安全》

\n

《再谈前端安全》

\n

《8大前端安全问题》

\n

《前端加密那点事》

\n

《HTTPS 到底加密了什么?》

\n

《Web 端反爬虫技术方案》

\n

《那些我们该讨论的前端加密方法》

\n\n\n\n\n

1.10.3 Debug

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
vConsolevconsole被誉为移动端的web开发者工具,腾讯。
Erudaeruda类似vConsole的移动端web调试工具,相对轻量。
FunDebugFunDebug简单的项目debug监控工具,有免费版
Webfunnywebfunny_monitor统一的前端异常监控解决方案。
json-serverjson-server一款通过本地起服务的快速mock工具。
Page Spypage-spy一款集程度较高的远程web调试工具,货拉拉技术团队。
\n\n\n

1.10.4 质量检测

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
JSLint js代码检查jslint一个JavaScript验证工具
JSHint js代码检查jshint一个JavaScript验证工具
ESLint js代码检查eslint一个JavaScript验证工具
CSSLint css代码检查csslint一个CSS验证工具
Markup Validation Servicevalidator在线HTML验证网站
Flow js代码检查flow一个JavaScript代码检查工具
SonarLint vscodesonarlintjs/ts工程代码质量验证的vscode插件
Google eng-practiceseng-practices谷歌工程实践文档
Cheeriocheerio用于web抓取的工具。
Puppeteer官网puppeteer基于chromium的无头浏览器,可用于爬虫等web自动化。
Selenium官网selenium强大的用于Web应用程序测试的工具。
LighthouselighthouseGoogle标准的web性能检测工具,Chrome自带。
Fuitefuiteweb内存检测工具,基于puppeteer。
xray xray 一款完善的安全评估工具,支持常见 web 安全问题扫描和自定义 poc,不过不开源。
\n\n\n

1.11 AI人工智能库

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
LangChainlangchain著名的大语言模型集成工具,供了一套工具、组件和接口,可简化构建高级语言模型应用程序的过程
Auto-GPTautoGPT预训练语言生成模型,可以自动完成摘要生成、推荐系统和对话生成等任务,
AgentGPTagentGPT基于语言模型的人工代理,可以根据特定场景的要求,生成合适的回答
TensorFlowJStensorflow在浏览器或Node.js下构建和运行机器学习和深度学习模式的库
OpenAI NodejsopenaiOpenAI 的 Nodejs API 调用封装库
OpenAI node quick startopenaiOpenAI Nodejs的起步文档及案例
WhisperwhisperOpenAI 语音识别模型(转文字)
awesome chatGPTchatgptchatGPT/GPT3 工具、demo及文档集合
awesome chatGPT promptschatgptchatGPT问答训练实践集合
pipcookpipcook对web开发者友好的机器学习工具集,阿里
ml-distanceml-distance计算向量之间的距离或相似度,可用于Embeddings处理
Prompt Prefectprompt-prefect一个优化Prompt的在线工具
\n\n\n

1.12 WebAssembly

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
AssemblyScriptassemblyscript用TypeScript写wasm
Wasmtimewasmtime一个快速安全的wasm运行时,字节
WasmExplorer WasmExplorer一个在线的wasm playground
\n\n\n

1.13 IDE插件

\n
\n\n\n

1.13.1 VS Code

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
MarketPlacemarketplace插件首页
VSCode在线VSCodeVSCode在线版
Color Highlightcolor-highlight颜色预览。
Svg Previewsvg-previewSVG图形预览。
Code Spell Checkercode-spell-checker代码单词拼写校验。
Beautifybeautifyjavascript, JSON, CSS, Sass, 和HTML格式优化。
Bookmarksbookmarks看代码神器,代码书签。
Rainbow Bracketsrainbow-brackets开发必备,括号颜色区分。
stylefmtstylefmtcss格式化。
Debugger For Chromedebugger-for-chromevscode和chrome联调插件,本地开发必备。
Eslint插件eslintjs检查。
stylelintstylelintcss/less/scss检查。
TypeScript Tslint Plugintypescript-tslint-pluginTypeScript检查。
veturveturVue开发工具。
Dartdart-codeDart语言开发支持。
FlutterFlutterFlutter开发适配。
HTML Snippetshtml-snippetsHTML标签快速开发。
Identical Sublime Monokaiidentical-sublime-monokai本人还是习惯sublime的风格。
Markdownlintmarkdownlintmarkdown检查。
Minifyminifyjs/css直接压缩。
polacodepolacode代码截图的vscode IDE插件
GitLensgitlensgit源代码管理插件
Project Managerproject-manager本地项目管理
JavaScript Boosterjavascript-boosterjs/ts快速重构优化工具,比如将var换为const/let。
\n\n\n

1.14 生活篇

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
地址标签说明
HowToCookHowToCook程序员在家做饭方法指南。
HowToLiveLongerHowToLiveLonger程序员延寿指南。
\n
\n\n\n

2.fe-tools方法/工具库

\n
\n\n\n

2.1 utils说明

\n
\n

前端开发常用的通用工具方法,适用于浏览器/Nodejs。文档见https://blog.michealwayne.cn/fe-tools/stable/

\n\n\n

模块

\n
\n\n\n\n

启动utils项目步骤

\n
\n

(需要在./utils目录下)

\n\n
\n

todo: 小程序封装,构建封装。

\n
\n\n\n

2.2 project-templates 一些前后端项目模版

\n
\n

frontend 前端项目模版

\n\n

backend 后端项目模版

\n\n\n\n

2.3 styles基础样式库

\n
\n

请移至 CSS 推荐规范MooCSS及通用样式库moo-css-base npmmoo-css-base github

\n
\n\n\n

FE-Tools - Chrome插件

\n
\n
\n

具体项目及源码地址:https://github.com/MichealWayne/fe-tools-chrome-plugin

\n
\n

\"chrome-ext.png\"

\n

辅助前端开发的一个小插件。

\n\n\n

功能:

\n
\n\n

前往>>

\n\n\n

安装方式

\n
\n

clone本仓库到本地,在“扩展程序”界面点击“加载已解压的拓展程序”选择本地仓库目录下的chrome-extension目录。

\n"}} diff --git a/docs/v1.0.0-beta01/data/keyboard.Function.getKeyName.json b/docs/v1.0.0-beta01/data/keyboard.Function.getKeyName.json new file mode 100644 index 00000000..7a440ddf --- /dev/null +++ b/docs/v1.0.0-beta01/data/keyboard.Function.getKeyName.json @@ -0,0 +1 @@ +{"id":1104,"name":"getKeyName","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/keyboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/keyboard.ts","line":124,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/keyboard.ts#L124"}],"signatures":[{"id":1105,"name":"getKeyName","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getKeyName"}]},{"tag":"@description","content":[{"kind":"text","text":"通过将键码转换为更易于理解的键名"}]},{"tag":"@returns","content":[{"kind":"text","text":"键名"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetKeyName(13); // 'Enter'\n```"}]}]},"parameters":[{"id":1106,"name":"keycode","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"键码"}]},"type":{"type":"union","types":[{"type":"literal","value":122},{"type":"literal","value":65},{"type":"literal","value":18},{"type":"literal","value":13},{"type":"literal","value":32},{"type":"literal","value":33},{"type":"literal","value":34},{"type":"literal","value":35},{"type":"literal","value":36},{"type":"literal","value":37},{"type":"literal","value":42},{"type":"literal","value":45},{"type":"literal","value":46},{"type":"literal","value":50},{"type":"literal","value":51},{"type":"literal","value":52},{"type":"literal","value":53},{"type":"literal","value":54},{"type":"literal","value":71},{"type":"literal","value":81},{"type":"literal","value":82},{"type":"literal","value":91},{"type":"literal","value":8},{"type":"literal","value":9},{"type":"literal","value":100},{"type":"literal","value":16},{"type":"literal","value":17},{"type":"literal","value":19},{"type":"literal","value":20},{"type":"literal","value":27},{"type":"literal","value":38},{"type":"literal","value":39},{"type":"literal","value":40},{"type":"literal","value":48},{"type":"literal","value":49},{"type":"literal","value":55},{"type":"literal","value":56},{"type":"literal","value":57},{"type":"literal","value":66},{"type":"literal","value":67},{"type":"literal","value":68},{"type":"literal","value":69},{"type":"literal","value":70},{"type":"literal","value":72},{"type":"literal","value":73},{"type":"literal","value":74},{"type":"literal","value":75},{"type":"literal","value":76},{"type":"literal","value":77},{"type":"literal","value":78},{"type":"literal","value":79},{"type":"literal","value":80},{"type":"literal","value":83},{"type":"literal","value":84},{"type":"literal","value":85},{"type":"literal","value":86},{"type":"literal","value":87},{"type":"literal","value":88},{"type":"literal","value":89},{"type":"literal","value":90},{"type":"literal","value":93},{"type":"literal","value":96},{"type":"literal","value":97},{"type":"literal","value":98},{"type":"literal","value":99},{"type":"literal","value":101},{"type":"literal","value":102},{"type":"literal","value":103},{"type":"literal","value":104},{"type":"literal","value":105},{"type":"literal","value":106},{"type":"literal","value":107},{"type":"literal","value":109},{"type":"literal","value":110},{"type":"literal","value":111},{"type":"literal","value":112},{"type":"literal","value":113},{"type":"literal","value":114},{"type":"literal","value":115},{"type":"literal","value":116},{"type":"literal","value":117},{"type":"literal","value":118},{"type":"literal","value":119},{"type":"literal","value":120},{"type":"literal","value":121},{"type":"literal","value":123},{"type":"literal","value":144},{"type":"literal","value":145},{"type":"literal","value":182},{"type":"literal","value":183},{"type":"literal","value":186},{"type":"literal","value":187},{"type":"literal","value":188},{"type":"literal","value":189},{"type":"literal","value":190},{"type":"literal","value":191},{"type":"literal","value":192},{"type":"literal","value":219},{"type":"literal","value":220},{"type":"literal","value":221},{"type":"literal","value":222}]},"text":{"comment":"

键码

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"keyboard.Function.getKeyName","hash":"getKeyName"},"text":{"comment":"
Function:

getKeyName

\n
Description:

通过将键码转换为更易于理解的键名

\n
Returns:

键名

\n
Example:
getKeyName(13); // 'Enter'\n
\n"},"sources":[{"fileName":"web-utils/src/keyboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/keyboard.ts","line":124,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/keyboard.ts#L124"}],"parentId":1104}],"is":{"declaration":true},"location":{"query":"keyboard.Function.getKeyName","hash":""},"text":{},"parentId":1103} diff --git a/docs/v1.0.0-beta01/data/loadAssets.Function.loadCSV.json b/docs/v1.0.0-beta01/data/loadAssets.Function.loadCSV.json new file mode 100644 index 00000000..d82a76ac --- /dev/null +++ b/docs/v1.0.0-beta01/data/loadAssets.Function.loadCSV.json @@ -0,0 +1 @@ +{"id":1129,"name":"loadCSV","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":141,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L141"}],"signatures":[{"id":1130,"name":"loadCSV","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadCsv"}]},{"tag":"@description","content":[{"kind":"text","text":"前端下载csv数据表(可以配置utils里arrayToCSV)"}]}]},"parameters":[{"id":1131,"name":"csvStr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"csv字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

csv字符串

\n"}},{"id":1132,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件名"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'data'","text":{"comment":"

文件名

\n"}},{"id":1133,"name":"type","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件类型"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'csv'","text":{"comment":"

文件类型

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"loadAssets.Function.loadCSV","hash":"loadCSV"},"text":{"comment":"
Function:

loadCsv

\n
Description:

前端下载csv数据表(可以配置utils里arrayToCSV)

\n"},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":141,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L141"}],"parentId":1129}],"is":{"declaration":true},"location":{"query":"loadAssets.Function.loadCSV","hash":""},"text":{},"parentId":1107} diff --git a/docs/v1.0.0-beta01/data/loadAssets.Function.loadCss.json b/docs/v1.0.0-beta01/data/loadAssets.Function.loadCss.json new file mode 100644 index 00000000..17329f3d --- /dev/null +++ b/docs/v1.0.0-beta01/data/loadAssets.Function.loadCss.json @@ -0,0 +1 @@ +{"id":1117,"name":"loadCss","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":63,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L63"}],"signatures":[{"id":1118,"name":"loadCss","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadCss"}]},{"tag":"@description","content":[{"kind":"text","text":"动态加载css"}]},{"tag":"@returns","content":[{"kind":"text","text":"css加载完成后的回调"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nloadCss('a.css').then(() => {\n // use bootstrap css\n}\n```"}]}]},"parameters":[{"id":1119,"name":"cssPath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"loadAssets.Function.loadCss","hash":"loadCss"},"text":{"comment":"
Function:

loadCss

\n
Description:

动态加载css

\n
Returns:

css加载完成后的回调

\n
Example:
loadCss('a.css').then(() => {\n  // use bootstrap css\n}\n
\n"},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":63,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L63"}],"parentId":1117}],"is":{"declaration":true},"location":{"query":"loadAssets.Function.loadCss","hash":""},"text":{},"parentId":1107} diff --git a/docs/v1.0.0-beta01/data/loadAssets.Function.loadCssList.json b/docs/v1.0.0-beta01/data/loadAssets.Function.loadCssList.json new file mode 100644 index 00000000..06f7aacb --- /dev/null +++ b/docs/v1.0.0-beta01/data/loadAssets.Function.loadCssList.json @@ -0,0 +1 @@ +{"id":1120,"name":"loadCssList","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":97,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L97"}],"signatures":[{"id":1121,"name":"loadCssList","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadCssList"}]},{"tag":"@description","content":[{"kind":"text","text":"动态加载css列表"}]},{"tag":"@returns","content":[{"kind":"text","text":"css加载完成后的回调"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nloadCssList(['a.css', 'b.css', 'c.css']).then(() => {\n // use a.css, b.css, c.css\n}\n```"}]}]},"parameters":[{"id":1122,"name":"cssList","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"css地址列表"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

css地址列表

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"loadAssets.Function.loadCssList","hash":"loadCssList"},"text":{"comment":"
Function:

loadCssList

\n
Description:

动态加载css列表

\n
Returns:

css加载完成后的回调

\n
Example:
loadCssList(['a.css', 'b.css', 'c.css']).then(() => {\n  // use a.css, b.css, c.css\n}\n
\n"},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":97,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L97"}],"parentId":1120}],"is":{"declaration":true},"location":{"query":"loadAssets.Function.loadCssList","hash":""},"text":{},"parentId":1107} diff --git a/docs/v1.0.0-beta01/data/loadAssets.Function.loadImage.json b/docs/v1.0.0-beta01/data/loadAssets.Function.loadImage.json new file mode 100644 index 00000000..1c32290a --- /dev/null +++ b/docs/v1.0.0-beta01/data/loadAssets.Function.loadImage.json @@ -0,0 +1 @@ +{"id":1123,"name":"loadImage","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":111,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L111"}],"signatures":[{"id":1124,"name":"loadImage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadImage"}]},{"tag":"@description","content":[{"kind":"text","text":"动态加载图片资源(常用于预加载)"}]},{"tag":"@returns","content":[{"kind":"text","text":"图片加载完成后的回调"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nloadImage('a.png').then(img => {\n // use img\n}\n```"}]}]},"parameters":[{"id":1125,"name":"imgUrl","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"图片地址"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

图片地址

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"loadAssets.Function.loadImage","hash":"loadImage"},"text":{"comment":"
Function:

loadImage

\n
Description:

动态加载图片资源(常用于预加载)

\n
Returns:

图片加载完成后的回调

\n
Example:
loadImage('a.png').then(img => {\n  // use img\n}\n
\n"},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":111,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L111"}],"parentId":1123}],"is":{"declaration":true},"location":{"query":"loadAssets.Function.loadImage","hash":""},"text":{},"parentId":1107} diff --git a/docs/v1.0.0-beta01/data/loadAssets.Function.loadImageList.json b/docs/v1.0.0-beta01/data/loadAssets.Function.loadImageList.json new file mode 100644 index 00000000..5931286e --- /dev/null +++ b/docs/v1.0.0-beta01/data/loadAssets.Function.loadImageList.json @@ -0,0 +1 @@ +{"id":1126,"name":"loadImageList","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":130,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L130"}],"signatures":[{"id":1127,"name":"loadImageList","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadImageList"}]},{"tag":"@description","content":[{"kind":"text","text":"动态加载图片资源列表(常用于预加载)"}]},{"tag":"@returns","content":[{"kind":"text","text":"图片加载完成后的回调"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nloadImageList(['a.png', 'b.png', 'c.png']).then(imgs => {\n // use imgs\n}\n```"}]}]},"parameters":[{"id":1128,"name":"imageUrls","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"图片地址列表"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

图片地址列表

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"loadAssets.Function.loadImageList","hash":"loadImageList"},"text":{"comment":"
Function:

loadImageList

\n
Description:

动态加载图片资源列表(常用于预加载)

\n
Returns:

图片加载完成后的回调

\n
Example:
loadImageList(['a.png', 'b.png', 'c.png']).then(imgs => {\n  // use imgs\n}\n
\n"},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":130,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L130"}],"parentId":1126}],"is":{"declaration":true},"location":{"query":"loadAssets.Function.loadImageList","hash":""},"text":{},"parentId":1107} diff --git a/docs/v1.0.0-beta01/data/loadAssets.Function.loadScript.json b/docs/v1.0.0-beta01/data/loadAssets.Function.loadScript.json new file mode 100644 index 00000000..f988201f --- /dev/null +++ b/docs/v1.0.0-beta01/data/loadAssets.Function.loadScript.json @@ -0,0 +1 @@ +{"id":1108,"name":"loadScript","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":22,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L22"}],"signatures":[{"id":1109,"name":"loadScript","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadScript"}]},{"tag":"@description","content":[{"kind":"text","text":"动态加载js"}]},{"tag":"@returns","content":[{"kind":"text","text":"js加载完成后的回调"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nloadScript('https://cdn.jsdelivr.net/npm/echarts@5.5.0/dist/echarts.min.js').then(()=>{\n // use echart api\n echarts.init(document.getElementById('main'));\n})\n```"}]}]},"parameters":[{"id":1110,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"js地址"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

js地址

\n"}},{"id":1111,"name":"isCrossOrigin","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"是否跨域"}]},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"true","text":{"comment":"

是否跨域

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"loadAssets.Function.loadScript","hash":"loadScript"},"text":{"comment":"
Function:

loadScript

\n
Description:

动态加载js

\n
Returns:

js加载完成后的回调

\n
Example:
loadScript('https://cdn.jsdelivr.net/npm/echarts@5.5.0/dist/echarts.min.js').then(()=>{\n  // use echart api\n  echarts.init(document.getElementById('main'));\n})\n
\n"},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":22,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L22"}],"parentId":1108}],"is":{"declaration":true},"location":{"query":"loadAssets.Function.loadScript","hash":""},"text":{},"parentId":1107} diff --git a/docs/v1.0.0-beta01/data/loadAssets.Function.loadScriptList.json b/docs/v1.0.0-beta01/data/loadAssets.Function.loadScriptList.json new file mode 100644 index 00000000..ce44bc7c --- /dev/null +++ b/docs/v1.0.0-beta01/data/loadAssets.Function.loadScriptList.json @@ -0,0 +1 @@ +{"id":1112,"name":"loadScriptList","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":48,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L48"}],"signatures":[{"id":1113,"name":"loadScriptList","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadScriptList"}]},{"tag":"@description","content":[{"kind":"text","text":"动态加载js列表"}]},{"tag":"@returns","content":[{"kind":"text","text":"js加载完成后的回调"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nloadScriptList(['a.js', 'b.js', 'c.js']).then(() => {\n // use a.js, b.js, c.js\n})\n```"}]}]},"parameters":[{"id":1114,"name":"urls","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"js地址列表"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

js地址列表

\n"}},{"id":1115,"name":"isCrossOrigin","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"是否跨域"}]},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"true","text":{"comment":"

是否跨域

\n"}},{"id":1116,"name":"isAsync","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"是否异步加载"}]},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"true","text":{"comment":"

是否异步加载

\n"}}],"type":{"type":"union","types":[{"type":"reference","typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},{"type":"reference","typeArguments":[{"type":"array","elementType":{"type":"intrinsic","name":"unknown"}}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}]},"is":{"declaration":false},"location":{"query":"loadAssets.Function.loadScriptList","hash":"loadScriptList"},"text":{"comment":"
Function:

loadScriptList

\n
Description:

动态加载js列表

\n
Returns:

js加载完成后的回调

\n
Example:
loadScriptList(['a.js', 'b.js', 'c.js']).then(() => {\n  // use a.js, b.js, c.js\n})\n
\n"},"sources":[{"fileName":"web-utils/src/loadAssets.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/loadAssets.ts","line":48,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/loadAssets.ts#L48"}],"parentId":1112}],"is":{"declaration":true},"location":{"query":"loadAssets.Function.loadScriptList","hash":""},"text":{},"parentId":1107} diff --git a/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.getGmStream.json b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.getGmStream.json new file mode 100644 index 00000000..acb71f2d --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.getGmStream.json @@ -0,0 +1 @@ +{"id":1224,"name":"getGmStream","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L23"}],"signatures":[{"id":1225,"name":"getGmStream","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getGmFile"}]},{"tag":"@description","content":[{"kind":"text","text":"获得gm格式图片"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1226,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1227,"name":"imgName","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1228,"name":"callback","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":1229,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":26,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L26"}],"signatures":[{"id":1230,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1231,"name":"data","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ImageInfo","qualifiedName":"m.ImageInfo","package":"@types/gm"}},{"id":1232,"name":"gm","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{}}],"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Function.getGmStream","hash":"getGmStream"},"text":{"comment":"
Function:

getGmFile

\n
Description:

获得gm格式图片

\n
Returns:
"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L23"}],"parentId":1224}],"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Function.getGmStream","hash":""},"text":{},"parentId":1223} diff --git a/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.resizeImg.json b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.resizeImg.json new file mode 100644 index 00000000..289a1849 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.resizeImg.json @@ -0,0 +1 @@ +{"id":1254,"name":"resizeImg","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":125,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L125"}],"signatures":[{"id":1255,"name":"resizeImg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"resizeImg"}]},{"tag":"@description","content":[{"kind":"text","text":"图片改变尺寸"}]}]},"parameters":[{"id":1256,"name":"gmStream","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"},"text":{}},{"id":1257,"name":"width","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}},{"id":1258,"name":"height","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"union","types":[{"type":"literal","value":false},{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"}]},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Function.resizeImg","hash":"resizeImg"},"text":{"comment":"
Function:

resizeImg

\n
Description:

图片改变尺寸

\n"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":125,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L125"}],"parentId":1254}],"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Function.resizeImg","hash":""},"text":{},"parentId":1223} diff --git a/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toBase64.json b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toBase64.json new file mode 100644 index 00000000..fc2b0934 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toBase64.json @@ -0,0 +1 @@ +{"id":1246,"name":"toBase64","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":101,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L101"}],"signatures":[{"id":1247,"name":"toBase64","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"toBase64"}]},{"tag":"@description","content":[{"kind":"text","text":"图片转base64"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1248,"name":"gmStream","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"},"text":{}},{"id":1249,"name":"type","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'jpg'","text":{}},{"id":1250,"name":"callback","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":1251,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":104,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L104"}],"signatures":[{"id":1252,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1253,"name":"base64","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{}}],"type":{"type":"reference","name":"PassThrough","qualifiedName":"internal.PassThrough","package":"@types/node"},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Function.toBase64","hash":"toBase64"},"text":{"comment":"
Function:

toBase64

\n
Description:

图片转base64

\n
Returns:
"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":101,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L101"}],"parentId":1246}],"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Function.toBase64","hash":""},"text":{},"parentId":1223} diff --git a/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toBlurImg.json b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toBlurImg.json new file mode 100644 index 00000000..6b6bb1e5 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toBlurImg.json @@ -0,0 +1 @@ +{"id":1242,"name":"toBlurImg","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":84,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L84"}],"signatures":[{"id":1243,"name":"toBlurImg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"toBlurImg"}]},{"tag":"@description","content":[{"kind":"text","text":"生成模糊图(gm格式)"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1244,"name":"gmStream","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"},"text":{}},{"id":1245,"name":"config:","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"配置信息\r\n color: 颜色总数\r\n blurRadius: 模糊半径\r\n blurSigma: 模糊Sigma值"}]},"originalName":"__namedParameters","type":{"type":"intrinsic","name":"Object"},"text":{"comment":"

配置信息\n color: 颜色总数\n blurRadius: 模糊半径\n blurSigma: 模糊Sigma值

\n"}}],"type":{"type":"union","types":[{"type":"literal","value":false},{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"}]},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Function.toBlurImg","hash":"toBlurImg"},"text":{"comment":"
Function:

toBlurImg

\n
Description:

生成模糊图(gm格式)

\n
Returns:
"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":84,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L84"}],"parentId":1242}],"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Function.toBlurImg","hash":""},"text":{},"parentId":1223} diff --git a/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toWebpImg.json b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toWebpImg.json new file mode 100644 index 00000000..37e001b0 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Function.toWebpImg.json @@ -0,0 +1 @@ +{"id":1233,"name":"toWebpImg","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":53,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L53"}],"signatures":[{"id":1234,"name":"toWebpImg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"toWebpImg"}]},{"tag":"@description","content":[{"kind":"text","text":"图片转为webp格式(文件名中的_2x.会被替换)"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1235,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1236,"name":"imgName","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1237,"name":"outPath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1238,"name":"callback","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":1239,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":57,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L57"}],"signatures":[{"id":1240,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1241,"name":"webPath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Function.toWebpImg","hash":"toWebpImg"},"text":{"comment":"
Function:

toWebpImg

\n
Description:

图片转为webp格式(文件名中的_2x.会被替换)

\n
Returns:
"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":53,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L53"}],"parentId":1233}],"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Function.toWebpImg","hash":""},"text":{},"parentId":1223} diff --git a/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Variable.default.json b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Variable.default.json new file mode 100644 index 00000000..e1594f29 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-img-build/src/handleImg.Variable.default.json @@ -0,0 +1 @@ +{"id":1259,"name":"default","kind":32,"kindString":"Variable","flags":{},"children":[],"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":138,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L138"}],"type":{"type":"reflection","declaration":{"id":1260,"name":"default","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1261,"name":"getGmStream","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":139,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L139"}],"type":{"type":"reflection","declaration":{"id":1262,"name":"getGmStream","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L23"}],"signatures":[{"id":1263,"name":"getGmStream","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getGmFile"}]},{"tag":"@description","content":[{"kind":"text","text":"获得gm格式图片"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1264,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1265,"name":"imgName","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1266,"name":"callback","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":1267,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":26,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L26"}],"signatures":[{"id":1268,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1269,"name":"data","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ImageInfo","qualifiedName":"m.ImageInfo","package":"@types/gm"}},{"id":1270,"name":"gm","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{}}],"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"getGmStream.__type"},"text":{"comment":"
Function:

getGmFile

\n
Description:

获得gm格式图片

\n
Returns:
"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L23"}],"parentId":1259}],"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"getGmStream"}}},"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"getGmStream"},"text":{},"parentId":1259},{"id":1295,"name":"resizeImg","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":143,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L143"}],"type":{"type":"reflection","declaration":{"id":1296,"name":"resizeImg","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":125,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L125"}],"signatures":[{"id":1297,"name":"resizeImg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"resizeImg"}]},{"tag":"@description","content":[{"kind":"text","text":"图片改变尺寸"}]}]},"parameters":[{"id":1298,"name":"gmStream","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"},"text":{}},{"id":1299,"name":"width","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}},{"id":1300,"name":"height","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"union","types":[{"type":"literal","value":false},{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"}]},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"resizeImg.__type"},"text":{"comment":"
Function:

resizeImg

\n
Description:

图片改变尺寸

\n"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":125,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L125"}],"parentId":1259}],"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"resizeImg"}}},"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"resizeImg"},"text":{},"parentId":1259},{"id":1286,"name":"toBase64","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":142,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L142"}],"type":{"type":"reflection","declaration":{"id":1287,"name":"toBase64","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":101,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L101"}],"signatures":[{"id":1288,"name":"toBase64","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"toBase64"}]},{"tag":"@description","content":[{"kind":"text","text":"图片转base64"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1289,"name":"gmStream","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"},"text":{}},{"id":1290,"name":"type","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'jpg'","text":{}},{"id":1291,"name":"callback","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":1292,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":104,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L104"}],"signatures":[{"id":1293,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1294,"name":"base64","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{}}],"type":{"type":"reference","name":"PassThrough","qualifiedName":"internal.PassThrough","package":"@types/node"},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toBase64.__type"},"text":{"comment":"
Function:

toBase64

\n
Description:

图片转base64

\n
Returns:
"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":101,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L101"}],"parentId":1259}],"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toBase64"}}},"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toBase64"},"text":{},"parentId":1259},{"id":1281,"name":"toBlurImg","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":141,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L141"}],"type":{"type":"reflection","declaration":{"id":1282,"name":"toBlurImg","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":84,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L84"}],"signatures":[{"id":1283,"name":"toBlurImg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"toBlurImg"}]},{"tag":"@description","content":[{"kind":"text","text":"生成模糊图(gm格式)"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1284,"name":"gmStream","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"},"text":{}},{"id":1285,"name":"config:","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"配置信息\r\n color: 颜色总数\r\n blurRadius: 模糊半径\r\n blurSigma: 模糊Sigma值"}]},"originalName":"__namedParameters","type":{"type":"intrinsic","name":"Object"},"text":{"comment":"

配置信息\n color: 颜色总数\n blurRadius: 模糊半径\n blurSigma: 模糊Sigma值

\n"}}],"type":{"type":"union","types":[{"type":"literal","value":false},{"type":"reference","name":"State","qualifiedName":"m.State","package":"@types/gm"}]},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toBlurImg.__type"},"text":{"comment":"
Function:

toBlurImg

\n
Description:

生成模糊图(gm格式)

\n
Returns:
"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":84,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L84"}],"parentId":1259}],"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toBlurImg"}}},"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toBlurImg"},"text":{},"parentId":1259},{"id":1271,"name":"toWebpImg","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":140,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L140"}],"type":{"type":"reflection","declaration":{"id":1272,"name":"toWebpImg","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":53,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L53"}],"signatures":[{"id":1273,"name":"toWebpImg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"toWebpImg"}]},{"tag":"@description","content":[{"kind":"text","text":"图片转为webp格式(文件名中的_2x.会被替换)"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":1274,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1275,"name":"imgName","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1276,"name":"outPath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}},{"id":1277,"name":"callback","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":1278,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":57,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L57"}],"signatures":[{"id":1279,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1280,"name":"webPath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toWebpImg.__type"},"text":{"comment":"
Function:

toWebpImg

\n
Description:

图片转为webp格式(文件名中的_2x.会被替换)

\n
Returns:
"},"sources":[{"fileName":"node-img-build/src/handleImg.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-img-build/src/handleImg.ts","line":53,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L53"}],"parentId":1259}],"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toWebpImg"}}},"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":"toWebpImg"},"text":{},"parentId":1259}],"groups":[{"title":"Methods","children":[1261,1295,1286,1281,1271]}],"sources":[{"fileName":"node-img-build/src/handleImg.ts","line":138,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-img-build/src/handleImg.ts#L138"}],"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":""}}},"is":{"declaration":true},"location":{"query":"node-img-build/src/handleImg.Variable.default","hash":""},"text":{},"parentId":1223} diff --git a/docs/v1.0.0-beta01/data/node-utils/src.Variable.Colors.json b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Colors.json new file mode 100644 index 00000000..71cb369a --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Colors.json @@ -0,0 +1 @@ +{"id":1564,"name":"Colors","kind":32,"kindString":"Variable","flags":{},"children":[],"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":39,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L39"}],"type":{"type":"reflection","declaration":{"id":1565,"name":"Colors","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1566,"name":"colors","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":40,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L40"}],"type":{"type":"reflection","declaration":{"id":1567,"name":"colors","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1584,"name":"BgBlack","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":27,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L27"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[40m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.BgBlack"},"text":{},"parentId":1564},{"id":1588,"name":"BgBlue","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":31,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L31"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[44m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.BgBlue"},"text":{},"parentId":1564},{"id":1590,"name":"BgCyan","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":33,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L33"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[46m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.BgCyan"},"text":{},"parentId":1564},{"id":1586,"name":"BgGreen","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":29,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L29"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[42m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.BgGreen"},"text":{},"parentId":1564},{"id":1589,"name":"BgMagenta","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":32,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L32"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[45m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.BgMagenta"},"text":{},"parentId":1564},{"id":1585,"name":"BgRed","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":28,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L28"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[41m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.BgRed"},"text":{},"parentId":1564},{"id":1591,"name":"BgWhite","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":34,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L34"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[47m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.BgWhite"},"text":{},"parentId":1564},{"id":1587,"name":"BgYellow","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":30,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L30"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[43m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.BgYellow"},"text":{},"parentId":1564},{"id":1573,"name":"Blink","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":16,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L16"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[5m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.Blink"},"text":{},"parentId":1564},{"id":1570,"name":"Bright","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":13,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L13"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[1m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.Bright"},"text":{},"parentId":1564},{"id":1571,"name":"Dim","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":14,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L14"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[2m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.Dim"},"text":{},"parentId":1564},{"id":1576,"name":"FgBlack","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":19,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L19"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[30m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.FgBlack"},"text":{},"parentId":1564},{"id":1580,"name":"FgBlue","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":23,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L23"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[34m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.FgBlue"},"text":{},"parentId":1564},{"id":1582,"name":"FgCyan","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":25,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L25"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[36m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.FgCyan"},"text":{},"parentId":1564},{"id":1578,"name":"FgGreen","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":21,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L21"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[32m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.FgGreen"},"text":{},"parentId":1564},{"id":1581,"name":"FgMagenta","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":24,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L24"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[35m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.FgMagenta"},"text":{},"parentId":1564},{"id":1577,"name":"FgRed","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":20,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L20"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[31m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.FgRed"},"text":{},"parentId":1564},{"id":1583,"name":"FgWhite","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":26,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L26"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[37m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.FgWhite"},"text":{},"parentId":1564},{"id":1579,"name":"FgYellow","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":22,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L22"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[33m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.FgYellow"},"text":{},"parentId":1564},{"id":1575,"name":"Hidden","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":18,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L18"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[8m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.Hidden"},"text":{},"parentId":1564},{"id":1569,"name":"Reset","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":12,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L12"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[0m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.Reset"},"text":{},"parentId":1564},{"id":1574,"name":"Reverse","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":17,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L17"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[7m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.Reverse"},"text":{},"parentId":1564},{"id":1572,"name":"Underscore","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":15,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L15"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[4m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.Underscore"},"text":{},"parentId":1564},{"id":1568,"name":"end","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":10,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L10"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'%s\\x1b[0m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors.end"},"text":{},"parentId":1564}],"groups":[{"title":"Properties","children":[1584,1588,1590,1586,1589,1585,1591,1587,1573,1570,1571,1576,1580,1582,1578,1581,1577,1583,1579,1575,1569,1574,1572,1568]}],"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","line":9,"character":19,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L9"}],"location":{"query":"node-utils/src.Variable.Colors","hash":"colors"}}},"defaultValue":"COLORS_MAP","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"colors"},"text":{},"parentId":1564},{"id":1592,"name":"get","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":41,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L41"}],"type":{"type":"reflection","declaration":{"id":1593,"name":"get","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","line":37,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L37"}],"signatures":[{"id":1594,"name":"get","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1595,"name":"type","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Colors","hash":"get.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":37,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L37"}],"parentId":1564}],"location":{"query":"node-utils/src.Variable.Colors","hash":"get"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":"get"},"text":{},"parentId":1564}],"groups":[{"title":"Properties","children":[1566]},{"title":"Methods","children":[1592]}],"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","line":39,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L39"}],"location":{"query":"node-utils/src.Variable.Colors","hash":""}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Colors","hash":""},"text":{},"parentId":732} diff --git a/docs/v1.0.0-beta01/data/node-utils/src.Variable.Env.json b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Env.json new file mode 100644 index 00000000..b7fabb25 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Env.json @@ -0,0 +1 @@ +{"id":1643,"name":"Env","kind":32,"kindString":"Variable","flags":{"isConst":true},"children":[],"sources":[{"fileName":"node-utils/src/lib/process/env.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/process/env.ts","line":3,"character":6,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/process/env.ts#L3"}],"type":{"type":"intrinsic","name":"any"},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Env","hash":""},"text":{},"parentId":732} diff --git a/docs/v1.0.0-beta01/data/node-utils/src.Variable.Fn.json b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Fn.json new file mode 100644 index 00000000..aeb68472 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Fn.json @@ -0,0 +1 @@ +{"id":1557,"name":"Fn","kind":32,"kindString":"Variable","flags":{},"children":[],"sources":[{"fileName":"node-utils/src/lib/util/util.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/util.ts","line":31,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L31"}],"type":{"type":"reflection","declaration":{"id":1558,"name":"Fn","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1560,"name":"getTimeStr","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/util.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/util.ts","line":33,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L33"}],"type":{"type":"reflection","declaration":{"id":1561,"name":"getTimeStr","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/util.ts","line":18,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L18"}],"signatures":[{"id":1562,"name":"getTimeStr","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getTimeStr"}]},{"tag":"@description","content":[{"kind":"text","text":"get time format: y/m/d h:m:s"}]},{"tag":"@returns","content":[{"kind":"text","text":"time string;"}]}]},"parameters":[{"id":1563,"name":"timeStr","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fn","hash":"getTimeStr.__type"},"text":{"comment":"
Function:

getTimeStr

\n
Description:

get time format: y/m/d h:m:s

\n
Returns:

time string;

\n"},"sources":[{"fileName":"node-utils/src/lib/util/util.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/util.ts","line":18,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L18"}],"parentId":1557}],"location":{"query":"node-utils/src.Variable.Fn","hash":"getTimeStr"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fn","hash":"getTimeStr"},"text":{},"parentId":1557},{"id":1559,"name":"isBuffer","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/util.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/util.ts","line":32,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L32"}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fn","hash":"isBuffer"},"text":{},"parentId":1557}],"groups":[{"title":"Properties","children":[1559]},{"title":"Methods","children":[1560]}],"sources":[{"fileName":"node-utils/src/lib/util/util.ts","line":31,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L31"}],"location":{"query":"node-utils/src.Variable.Fn","hash":""}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fn","hash":""},"text":{},"parentId":732} diff --git a/docs/v1.0.0-beta01/data/node-utils/src.Variable.Fs.json b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Fs.json new file mode 100644 index 00000000..ca87cb69 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Fs.json @@ -0,0 +1 @@ +{"id":1423,"name":"Fs","kind":32,"kindString":"Variable","flags":{},"children":[],"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":192,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L192"}],"type":{"type":"reflection","declaration":{"id":1424,"name":"Fs","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1437,"name":"fsExistsSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":194,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L194"}],"type":{"type":"reflection","declaration":{"id":1438,"name":"fsExistsSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":76,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L76"}],"signatures":[{"id":1439,"name":"fsExistsSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"fsExistsSync"}]},{"tag":"@description","content":[{"kind":"text","text":"判断文件是否存在(同步)"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否存在"}]}]},"parameters":[{"id":1440,"name":"folderPath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fs","hash":"fsExistsSync.__type"},"text":{"comment":"
Function:

fsExistsSync

\n
Description:

判断文件是否存在(同步)

\n
Returns:

是否存在

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":76,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L76"}],"parentId":1423}],"location":{"query":"node-utils/src.Variable.Fs","hash":"fsExistsSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":"fsExistsSync"},"text":{},"parentId":1423},{"id":1446,"name":"mkdirsSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":196,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L196"}],"type":{"type":"reflection","declaration":{"id":1447,"name":"mkdirsSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":42,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L42"}],"signatures":[{"id":1448,"name":"mkdirsSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"mkdirsSync"}]},{"tag":"@description","content":[{"kind":"text","text":"同步进行文件夹创建(容错)"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否创建成功"}]}]},"parameters":[{"id":1449,"name":"dirPath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件夹路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件夹路径

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fs","hash":"mkdirsSync.__type"},"text":{"comment":"
Function:

mkdirsSync

\n
Description:

同步进行文件夹创建(容错)

\n
Returns:

是否创建成功

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":42,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L42"}],"parentId":1423}],"location":{"query":"node-utils/src.Variable.Fs","hash":"mkdirsSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":"mkdirsSync"},"text":{},"parentId":1423},{"id":1460,"name":"readFileSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":199,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L199"}],"type":{"type":"reflection","declaration":{"id":1461,"name":"readFileSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":171,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L171"}],"signatures":[{"id":1462,"name":"readFileSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"readFileSync"}]},{"tag":"@description","content":[{"kind":"text","text":"读取文件内容(同步)"}]},{"tag":"@returns","content":[{"kind":"text","text":"文件内容"}]}]},"parameters":[{"id":1463,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件路径

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fs","hash":"readFileSync.__type"},"text":{"comment":"
Function:

readFileSync

\n
Description:

读取文件内容(同步)

\n
Returns:

文件内容

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":171,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L171"}],"parentId":1423}],"location":{"query":"node-utils/src.Variable.Fs","hash":"readFileSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":"readFileSync"},"text":{},"parentId":1423},{"id":1464,"name":"readJson","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":200,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L200"}],"type":{"type":"reflection","declaration":{"id":1465,"name":"readJson","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":184,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L184"}],"signatures":[{"id":1466,"name":"readJson","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"readJson"}]},{"tag":"@description","content":[{"kind":"text","text":"读取JSON文件内容"}]},{"tag":"@returns","content":[{"kind":"text","text":"JSON对象"}]}]},"parameters":[{"id":1467,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件路径

\n"}}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fs","hash":"readJson.__type"},"text":{"comment":"
Function:

readJson

\n
Description:

读取JSON文件内容

\n
Returns:

JSON对象

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":184,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L184"}],"parentId":1423}],"location":{"query":"node-utils/src.Variable.Fs","hash":"readJson"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":"readJson"},"text":{},"parentId":1423},{"id":1450,"name":"rmdirsSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":197,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L197"}],"type":{"type":"reflection","declaration":{"id":1451,"name":"rmdirsSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":106,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L106"}],"signatures":[{"id":1452,"name":"rmdirsSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"rmdirsSync"}]},{"tag":"@description","content":[{"kind":"text","text":"同步删除指定目录下的所前目录和文件,包括当前目录"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否删除成功"}]}]},"parameters":[{"id":1453,"name":"targetPath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"目标目录"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

目标目录

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fs","hash":"rmdirsSync.__type"},"text":{"comment":"
Function:

rmdirsSync

\n
Description:

同步删除指定目录下的所前目录和文件,包括当前目录

\n
Returns:

是否删除成功

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":106,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L106"}],"parentId":1423}],"location":{"query":"node-utils/src.Variable.Fs","hash":"rmdirsSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":"rmdirsSync"},"text":{},"parentId":1423},{"id":1441,"name":"setFolderSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":195,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L195"}],"type":{"type":"reflection","declaration":{"id":1442,"name":"setFolderSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":92,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L92"}],"signatures":[{"id":1443,"name":"setFolderSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"setFolderSync"}]},{"tag":"@description","content":[{"kind":"text","text":"同步创建文件夹"}]}]},"parameters":[{"id":1444,"name":"folderPath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件夹路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件夹路径

\n"}},{"id":1445,"name":"noTip","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fs","hash":"setFolderSync.__type"},"text":{"comment":"
Function:

setFolderSync

\n
Description:

同步创建文件夹

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":92,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L92"}],"parentId":1423}],"location":{"query":"node-utils/src.Variable.Fs","hash":"setFolderSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":"setFolderSync"},"text":{},"parentId":1423},{"id":1425,"name":"travelFolderSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":193,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L193"}],"type":{"type":"reflection","declaration":{"id":1426,"name":"travelFolderSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":19,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L19"}],"signatures":[{"id":1427,"name":"travelFolderSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"travelFolderSync"}]},{"tag":"@description","content":[{"kind":"text","text":"遍历文件夹输出文件信息"}]}]},"parameters":[{"id":1428,"name":"dirPath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件夹路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件夹路径

\n"}},{"id":1429,"name":"fileCallback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件回调"}]},"type":{"type":"reflection","declaration":{"id":1430,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":21,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L21"}],"signatures":[{"id":1431,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1432,"name":"pathName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{"comment":"

文件回调

\n"}},{"id":1433,"name":"folderCallback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件夹回调"}]},"type":{"type":"reflection","declaration":{"id":1434,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":22,"character":18,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L22"}],"signatures":[{"id":1435,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1436,"name":"pathName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{"comment":"

文件夹回调

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fs","hash":"travelFolderSync.__type"},"text":{"comment":"
Function:

travelFolderSync

\n
Description:

遍历文件夹输出文件信息

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":19,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L19"}],"parentId":1423}],"location":{"query":"node-utils/src.Variable.Fs","hash":"travelFolderSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":"travelFolderSync"},"text":{},"parentId":1423},{"id":1454,"name":"writeFile","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":198,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L198"}],"type":{"type":"reflection","declaration":{"id":1455,"name":"writeFile","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":138,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L138"}],"signatures":[{"id":1456,"name":"writeFile","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"writeFile"}]},{"tag":"@description","content":[{"kind":"text","text":"写文件,如果文件不存在则创建"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否写入成功"}]}]},"parameters":[{"id":1457,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件路径

\n"}},{"id":1458,"name":"fileData","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件内容"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件内容

\n"}},{"id":1459,"name":"replaceBool","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"是否替换"}]},"type":{"type":"intrinsic","name":"boolean"},"text":{"comment":"

是否替换

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Fs","hash":"writeFile.__type"},"text":{"comment":"
Function:

writeFile

\n
Description:

写文件,如果文件不存在则创建

\n
Returns:

是否写入成功

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":138,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L138"}],"parentId":1423}],"location":{"query":"node-utils/src.Variable.Fs","hash":"writeFile"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":"writeFile"},"text":{},"parentId":1423}],"groups":[{"title":"Methods","children":[1437,1446,1460,1464,1450,1441,1425,1454]}],"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":192,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L192"}],"location":{"query":"node-utils/src.Variable.Fs","hash":""}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Fs","hash":""},"text":{},"parentId":732} diff --git a/docs/v1.0.0-beta01/data/node-utils/src.Variable.OS.json b/docs/v1.0.0-beta01/data/node-utils/src.Variable.OS.json new file mode 100644 index 00000000..8f5cfed4 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-utils/src.Variable.OS.json @@ -0,0 +1 @@ +{"id":1468,"name":"OS","kind":32,"kindString":"Variable","flags":{},"children":[],"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":279,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L279"}],"type":{"type":"reflection","declaration":{"id":1469,"name":"OS","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1504,"name":"allLoadavg","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":290,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L290"}],"type":{"type":"reflection","declaration":{"id":1505,"name":"allLoadavg","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":182,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L182"}],"signatures":[{"id":1506,"name":"allLoadavg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"allLoadavg"}]},{"tag":"@description","content":[{"kind":"text","text":"获取所有负载均衡。Returns All the load average usage for 1, 5 or 15 minutes."}]},{"tag":"@returns","content":[{"kind":"text","text":"返回负载均衡"}]}]},"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"allLoadavg.__type"},"text":{"comment":"
Function:

allLoadavg

\n
Description:

获取所有负载均衡。Returns All the load average usage for 1, 5 or 15 minutes.

\n
Returns:

返回负载均衡

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":182,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L182"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"allLoadavg"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"allLoadavg"},"text":{},"parentId":1468},{"id":1473,"name":"cpuCount","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":281,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L281"}],"type":{"type":"reflection","declaration":{"id":1474,"name":"cpuCount","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":26,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L26"}],"signatures":[{"id":1475,"name":"cpuCount","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"cpuCount"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前CPU数量"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"cpuCount.__type"},"text":{"comment":"
Function:

cpuCount

\n
Description:

获取当前CPU数量

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":26,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L26"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"cpuCount"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"cpuCount"},"text":{},"parentId":1468},{"id":1511,"name":"cpuFree","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":292,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L292"}],"type":{"type":"reflection","declaration":{"id":1512,"name":"cpuFree","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":236,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L236"}],"signatures":[{"id":1513,"name":"cpuFree","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"cpuFree"}]},{"tag":"@description","content":[{"kind":"text","text":"cpu空闲比例(0~1)"}]}]},"parameters":[{"id":1514,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{"comment":"

回调函数

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"cpuFree.__type"},"text":{"comment":"
Function:

cpuFree

\n
Description:

cpu空闲比例(0~1)

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":236,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L236"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"cpuFree"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"cpuFree"},"text":{},"parentId":1468},{"id":1515,"name":"cpuUsage","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":293,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L293"}],"type":{"type":"reflection","declaration":{"id":1516,"name":"cpuUsage","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":245,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L245"}],"signatures":[{"id":1517,"name":"cpuUsage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"cpuUsage"}]},{"tag":"@description","content":[{"kind":"text","text":"cpu已使用比例(0~1)"}]}]},"parameters":[{"id":1518,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{"comment":"

回调函数

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"cpuUsage.__type"},"text":{"comment":"
Function:

cpuUsage

\n
Description:

cpu已使用比例(0~1)

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":245,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L245"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"cpuUsage"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"cpuUsage"},"text":{},"parentId":1468},{"id":1491,"name":"freeCommand","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":287,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L287"}],"type":{"type":"reflection","declaration":{"id":1492,"name":"freeCommand","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":82,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L82"}],"signatures":[{"id":1493,"name":"freeCommand","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"freeCommand"}]},{"tag":"@description","content":[{"kind":"text","text":"Linux free命令,显示内存情况并回调"}]}]},"parameters":[{"id":1494,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"freeCommand.__type"},"text":{"comment":"
Function:

freeCommand

\n
Description:

Linux free命令,显示内存情况并回调

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":82,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L82"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"freeCommand"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"freeCommand"},"text":{},"parentId":1468},{"id":1482,"name":"freemem","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":284,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L284"}],"type":{"type":"reflection","declaration":{"id":1483,"name":"freemem","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":55,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L55"}],"signatures":[{"id":1484,"name":"freemem","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"freemem"}]},{"tag":"@description","content":[{"kind":"text","text":"获取空余内存(Mb)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"freemem.__type"},"text":{"comment":"
Function:

freemem

\n
Description:

获取空余内存(Mb)

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":55,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L55"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"freemem"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"freemem"},"text":{},"parentId":1468},{"id":1488,"name":"freememPercentage","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":286,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L286"}],"type":{"type":"reflection","declaration":{"id":1489,"name":"freememPercentage","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":73,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L73"}],"signatures":[{"id":1490,"name":"freememPercentage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"freememPercentage"}]},{"tag":"@description","content":[{"kind":"text","text":"获取空余内存比"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"freememPercentage.__type"},"text":{"comment":"
Function:

freememPercentage

\n
Description:

获取空余内存比

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":73,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L73"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"freememPercentage"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"freememPercentage"},"text":{},"parentId":1468},{"id":1524,"name":"getCPUInfo","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":295,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L295"}],"type":{"type":"reflection","declaration":{"id":1525,"name":"getCPUInfo","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":254,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L254"}],"signatures":[{"id":1526,"name":"getCPUInfo","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getCPUInfo"}]},{"tag":"@description","content":[{"kind":"text","text":"获取CPU情况"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回CPU情况, idle: 空闲, total: 总数"}]}]},"type":{"type":"reflection","declaration":{"id":1527,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1528,"name":"idle","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":274,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L274"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"idle","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUInfo.__type.idle"},"text":{},"parentId":1468},{"id":1529,"name":"total","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":275,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L275"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"total","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUInfo.__type.total"},"text":{},"parentId":1468}],"groups":[{"title":"Properties","children":[1528,1529]}],"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":273,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L273"}],"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUInfo.__type"}}},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUInfo.__type"},"text":{"comment":"
Function:

getCPUInfo

\n
Description:

获取CPU情况

\n
Returns:

返回CPU情况, idle: 空闲, total: 总数

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":254,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L254"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUInfo"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUInfo"},"text":{},"parentId":1468},{"id":1519,"name":"getCPUUsage","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":294,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L294"}],"type":{"type":"reflection","declaration":{"id":1520,"name":"getCPUUsage","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":212,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L212"}],"signatures":[{"id":1521,"name":"getCPUUsage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getCPUUsage"}]},{"tag":"@description","content":[{"kind":"text","text":"获取CPU使用情况"}]}]},"parameters":[{"id":1522,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{"comment":"

回调函数

\n"}},{"id":1523,"name":"free","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"是否空闲"}]},"type":{"type":"intrinsic","name":"boolean"},"text":{"comment":"

是否空闲

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUUsage.__type"},"text":{"comment":"
Function:

getCPUUsage

\n
Description:

获取CPU使用情况

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":212,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L212"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUUsage"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"getCPUUsage"},"text":{},"parentId":1468},{"id":1499,"name":"getProcesses","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":289,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L289"}],"type":{"type":"reflection","declaration":{"id":1500,"name":"getProcesses","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":138,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L138"}],"signatures":[{"id":1501,"name":"getProcesses","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getProcesses"}]},{"tag":"@description","content":[{"kind":"text","text":"获取进程运行情况"}]}]},"parameters":[{"id":1502,"name":"nProcess","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"进程数"}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","name":"AnyCallbackFunc"}]},"text":{"comment":"

进程数

\n"}},{"id":1503,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{"comment":"

回调函数

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"getProcesses.__type"},"text":{"comment":"
Function:

getProcesses

\n
Description:

获取进程运行情况

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":138,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L138"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"getProcesses"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"getProcesses"},"text":{},"parentId":1468},{"id":1495,"name":"harddrive","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":288,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L288"}],"type":{"type":"reflection","declaration":{"id":1496,"name":"harddrive","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":108,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L108"}],"signatures":[{"id":1497,"name":"harddrive","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"harddrive"}]},{"tag":"@description","content":[{"kind":"text","text":"获取硬盘使用情况并回调"}]}]},"parameters":[{"id":1498,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"harddrive.__type"},"text":{"comment":"
Function:

harddrive

\n
Description:

获取硬盘使用情况并回调

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":108,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L108"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"harddrive"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"harddrive"},"text":{},"parentId":1468},{"id":1507,"name":"loadavg","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":291,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L291"}],"type":{"type":"reflection","declaration":{"id":1508,"name":"loadavg","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":194,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L194"}],"signatures":[{"id":1509,"name":"loadavg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadavg"}]},{"tag":"@description","content":[{"kind":"text","text":"获取系统负载均衡。Returns the load average usage for 1, 5 or 15 minutes."}]},{"tag":"@returns","content":[{"kind":"text","text":"返回负载均衡"}]}]},"parameters":[{"id":1510,"name":"time","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"时间"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{"comment":"

时间

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"loadavg.__type"},"text":{"comment":"
Function:

loadavg

\n
Description:

获取系统负载均衡。Returns the load average usage for 1, 5 or 15 minutes.

\n
Returns:

返回负载均衡

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":194,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L194"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"loadavg"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"loadavg"},"text":{},"parentId":1468},{"id":1470,"name":"platform","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":280,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L280"}],"type":{"type":"reflection","declaration":{"id":1471,"name":"platform","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":17,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L17"}],"signatures":[{"id":1472,"name":"platform","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"platform"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前宿主平台标识"}]},{"tag":"@returns","content":[{"kind":"text","text":"NodeJS.Platform"}]}]},"type":{"type":"reference","name":"Platform","qualifiedName":"global.NodeJS.Platform","package":"@types/node"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"platform.__type"},"text":{"comment":"
Function:

platform

\n
Description:

获取当前宿主平台标识

\n
Returns:

NodeJS.Platform

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":17,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L17"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"platform"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"platform"},"text":{},"parentId":1468},{"id":1479,"name":"processUptime","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":283,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L283"}],"type":{"type":"reflection","declaration":{"id":1480,"name":"processUptime","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":45,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L45"}],"signatures":[{"id":1481,"name":"processUptime","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"processUptime"}]},{"tag":"@description","content":[{"kind":"text","text":"获取Node程序已运行的时间(单位为秒)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"processUptime.__type"},"text":{"comment":"
Function:

processUptime

\n
Description:

获取Node程序已运行的时间(单位为秒)

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":45,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L45"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"processUptime"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"processUptime"},"text":{},"parentId":1468},{"id":1476,"name":"sysUptime","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":282,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L282"}],"type":{"type":"reflection","declaration":{"id":1477,"name":"sysUptime","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":35,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L35"}],"signatures":[{"id":1478,"name":"sysUptime","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"sysUptime"}]},{"tag":"@description","content":[{"kind":"text","text":"获取系统正常运行时间(单位为秒)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"sysUptime.__type"},"text":{"comment":"
Function:

sysUptime

\n
Description:

获取系统正常运行时间(单位为秒)

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":35,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L35"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"sysUptime"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"sysUptime"},"text":{},"parentId":1468},{"id":1485,"name":"totalmem","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":285,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L285"}],"type":{"type":"reflection","declaration":{"id":1486,"name":"totalmem","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":64,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L64"}],"signatures":[{"id":1487,"name":"totalmem","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"totalmem"}]},{"tag":"@description","content":[{"kind":"text","text":"获取总内存(Mb)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.OS","hash":"totalmem.__type"},"text":{"comment":"
Function:

totalmem

\n
Description:

获取总内存(Mb)

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":64,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L64"}],"parentId":1468}],"location":{"query":"node-utils/src.Variable.OS","hash":"totalmem"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":"totalmem"},"text":{},"parentId":1468}],"groups":[{"title":"Methods","children":[1504,1473,1511,1515,1491,1482,1488,1524,1519,1499,1495,1507,1470,1479,1476,1485]}],"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":279,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L279"}],"location":{"query":"node-utils/src.Variable.OS","hash":""}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.OS","hash":""},"text":{},"parentId":732} diff --git a/docs/v1.0.0-beta01/data/node-utils/src.Variable.Run.json b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Run.json new file mode 100644 index 00000000..fb71da28 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Run.json @@ -0,0 +1 @@ +{"id":1530,"name":"Run","kind":32,"kindString":"Variable","flags":{},"children":[],"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":148,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L148"}],"type":{"type":"reflection","declaration":{"id":1531,"name":"Run","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1554,"name":"exit","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":153,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L153"}],"type":{"type":"reflection","declaration":{"id":1555,"name":"exit","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":144,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L144"}],"signatures":[{"id":1556,"name":"exit","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"exit"}]},{"tag":"@description","content":[{"kind":"text","text":"退出进程"}]}]},"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Run","hash":"exit.__type"},"text":{"comment":"
Function:

exit

\n
Description:

退出进程

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":144,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L144"}],"parentId":1530}],"location":{"query":"node-utils/src.Variable.Run","hash":"exit"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Run","hash":"exit"},"text":{},"parentId":1530},{"id":1532,"name":"forceRunAsync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":149,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L149"}],"type":{"type":"reflection","declaration":{"id":1533,"name":"forceRunAsync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":73,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L73"}],"signatures":[{"id":1534,"name":"forceRunAsync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"forceRunAsync"}]},{"tag":"@description","content":[{"kind":"text","text":"强制执行外部命令行(异步),如果命令行执行失败,则抛出错误,否则忽略错误。"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回Promise"}]}]},"parameters":[{"id":1535,"name":"cmd","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"命令行"}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"URL","qualifiedName":"URL","package":"typescript"}]},"text":{"comment":"

命令行

\n"}},{"id":1536,"name":"args","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"参数"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

参数

\n"}},{"id":1537,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"配置项"}]},"type":{"type":"intrinsic","name":"any"},"text":{"comment":"

配置项

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Run","hash":"forceRunAsync.__type"},"text":{"comment":"
Function:

forceRunAsync

\n
Description:

强制执行外部命令行(异步),如果命令行执行失败,则抛出错误,否则忽略错误。

\n
Returns:

返回Promise

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":73,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L73"}],"parentId":1530}],"location":{"query":"node-utils/src.Variable.Run","hash":"forceRunAsync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Run","hash":"forceRunAsync"},"text":{},"parentId":1530},{"id":1542,"name":"runAsync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":151,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L151"}],"type":{"type":"reflection","declaration":{"id":1543,"name":"runAsync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":107,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L107"}],"signatures":[{"id":1544,"name":"runAsync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"runAsync"}]},{"tag":"@description","content":[{"kind":"text","text":"异步执行"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回Promise"}]}]},"parameters":[{"id":1545,"name":"cmd","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"命令行"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

命令行

\n"}},{"id":1546,"name":"args","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"参数"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

参数

\n"}},{"id":1547,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"配置项"}]},"type":{"type":"intrinsic","name":"any"},"text":{"comment":"

配置项

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Run","hash":"runAsync.__type"},"text":{"comment":"
Function:

runAsync

\n
Description:

异步执行

\n
Returns:

返回Promise

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":107,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L107"}],"parentId":1530}],"location":{"query":"node-utils/src.Variable.Run","hash":"runAsync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Run","hash":"runAsync"},"text":{},"parentId":1530},{"id":1538,"name":"runPromise","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":150,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L150"}],"type":{"type":"reflection","declaration":{"id":1539,"name":"runPromise","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":90,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L90"}],"signatures":[{"id":1540,"name":"runPromise","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"runPromise"}]},{"tag":"@description","content":[{"kind":"text","text":"在promise的catch错误处理中: 如果错误消息不是特定的IGNORE,则打印错误。调用exit()退出进程。"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回promise对象"}]}]},"parameters":[{"id":1541,"name":"promise","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"promise对象"}]},"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"text":{"comment":"

promise对象

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Run","hash":"runPromise.__type"},"text":{"comment":"
Function:

runPromise

\n
Description:

在promise的catch错误处理中: 如果错误消息不是特定的IGNORE,则打印错误。调用exit()退出进程。

\n
Returns:

返回promise对象

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":90,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L90"}],"parentId":1530}],"location":{"query":"node-utils/src.Variable.Run","hash":"runPromise"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Run","hash":"runPromise"},"text":{},"parentId":1530},{"id":1548,"name":"runSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":152,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L152"}],"type":{"type":"reflection","declaration":{"id":1549,"name":"runSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":119,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L119"}],"signatures":[{"id":1550,"name":"runSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"runSync"}]},{"tag":"@description","content":[{"kind":"text","text":"同步执行"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回字符串"}]}]},"parameters":[{"id":1551,"name":"cmd","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"命令行"}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"URL","qualifiedName":"URL","package":"typescript"}]},"text":{"comment":"

命令行

\n"}},{"id":1552,"name":"args","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"参数"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

参数

\n"}},{"id":1553,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"配置项"}]},"type":{"type":"intrinsic","name":"any"},"text":{"comment":"

配置项

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Run","hash":"runSync.__type"},"text":{"comment":"
Function:

runSync

\n
Description:

同步执行

\n
Returns:

返回字符串

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":119,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L119"}],"parentId":1530}],"location":{"query":"node-utils/src.Variable.Run","hash":"runSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Run","hash":"runSync"},"text":{},"parentId":1530}],"groups":[{"title":"Methods","children":[1554,1532,1542,1538,1548]}],"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":148,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L148"}],"location":{"query":"node-utils/src.Variable.Run","hash":""}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Run","hash":""},"text":{},"parentId":732} diff --git a/docs/v1.0.0-beta01/data/node-utils/src.Variable.Tip.json b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Tip.json new file mode 100644 index 00000000..50654421 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-utils/src.Variable.Tip.json @@ -0,0 +1 @@ +{"id":1596,"name":"Tip","kind":32,"kindString":"Variable","flags":{"isConst":true},"children":[],"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":42,"character":6,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L42"}],"type":{"type":"reflection","declaration":{"id":1597,"name":"Tip","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1618,"name":"err","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":47,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L47"}],"type":{"type":"reflection","declaration":{"id":1619,"name":"err","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1620,"name":"err","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1621,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1622,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"err.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"err"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"err"},"text":{},"parentId":1596},{"id":1623,"name":"error","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":48,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L48"}],"type":{"type":"reflection","declaration":{"id":1624,"name":"error","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1625,"name":"error","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1626,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1627,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"error.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"error"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"error"},"text":{},"parentId":1596},{"id":1613,"name":"info","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":46,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L46"}],"type":{"type":"reflection","declaration":{"id":1614,"name":"info","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1615,"name":"info","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1616,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1617,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"info.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"info"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"info"},"text":{},"parentId":1596},{"id":1608,"name":"log","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":45,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L45"}],"type":{"type":"reflection","declaration":{"id":1609,"name":"log","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1610,"name":"log","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1611,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1612,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"log.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"log"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"log"},"text":{},"parentId":1596},{"id":1598,"name":"safe","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":43,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L43"}],"type":{"type":"reflection","declaration":{"id":1599,"name":"safe","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1600,"name":"safe","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1601,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1602,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"safe.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"safe"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"safe"},"text":{},"parentId":1596},{"id":1628,"name":"strongError","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":49,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L49"}],"type":{"type":"reflection","declaration":{"id":1629,"name":"strongError","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1630,"name":"strongError","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1631,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1632,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"strongError.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"strongError"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"strongError"},"text":{},"parentId":1596},{"id":1638,"name":"strongWarn","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":51,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L51"}],"type":{"type":"reflection","declaration":{"id":1639,"name":"strongWarn","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1640,"name":"strongWarn","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1641,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1642,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"strongWarn.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"strongWarn"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"strongWarn"},"text":{},"parentId":1596},{"id":1603,"name":"success","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":44,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L44"}],"type":{"type":"reflection","declaration":{"id":1604,"name":"success","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1605,"name":"success","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1606,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1607,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"success.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"success"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"success"},"text":{},"parentId":1596},{"id":1633,"name":"warn","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":50,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L50"}],"type":{"type":"reflection","declaration":{"id":1634,"name":"warn","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":1635,"name":"warn","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":1636,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":1637,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.Tip","hash":"warn.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":1596}],"location":{"query":"node-utils/src.Variable.Tip","hash":"warn"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":"warn"},"text":{},"parentId":1596}],"groups":[{"title":"Methods","children":[1618,1623,1613,1608,1598,1628,1638,1603,1633]}],"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":42,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L42"}],"location":{"query":"node-utils/src.Variable.Tip","hash":""}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.Tip","hash":""},"text":{},"parentId":732} diff --git a/docs/v1.0.0-beta01/data/node-utils/src.Variable.default.json b/docs/v1.0.0-beta01/data/node-utils/src.Variable.default.json new file mode 100644 index 00000000..04e3a737 --- /dev/null +++ b/docs/v1.0.0-beta01/data/node-utils/src.Variable.default.json @@ -0,0 +1 @@ +{"id":733,"name":"default","kind":32,"kindString":"Variable","flags":{},"comment":{"summary":[{"kind":"text","text":"FS: file work\r\nFn: useful functions\r\nColors: console colors\r\nTip: console type\r\nEnv: process word"}]},"children":[],"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L23"}],"type":{"type":"reflection","declaration":{"id":734,"name":"default","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":876,"name":"Colors","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":28,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L28"}],"type":{"type":"reflection","declaration":{"id":877,"name":"Colors","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":878,"name":"colors","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":40,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L40"}],"type":{"type":"reflection","declaration":{"id":879,"name":"colors","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":896,"name":"BgBlack","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":27,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L27"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[40m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.BgBlack"},"text":{},"parentId":733},{"id":900,"name":"BgBlue","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":31,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L31"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[44m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.BgBlue"},"text":{},"parentId":733},{"id":902,"name":"BgCyan","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":33,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L33"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[46m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.BgCyan"},"text":{},"parentId":733},{"id":898,"name":"BgGreen","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":29,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L29"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[42m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.BgGreen"},"text":{},"parentId":733},{"id":901,"name":"BgMagenta","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":32,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L32"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[45m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.BgMagenta"},"text":{},"parentId":733},{"id":897,"name":"BgRed","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":28,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L28"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[41m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.BgRed"},"text":{},"parentId":733},{"id":903,"name":"BgWhite","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":34,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L34"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[47m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.BgWhite"},"text":{},"parentId":733},{"id":899,"name":"BgYellow","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":30,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L30"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[43m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.BgYellow"},"text":{},"parentId":733},{"id":885,"name":"Blink","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":16,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L16"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[5m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.Blink"},"text":{},"parentId":733},{"id":882,"name":"Bright","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":13,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L13"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[1m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.Bright"},"text":{},"parentId":733},{"id":883,"name":"Dim","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":14,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L14"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[2m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.Dim"},"text":{},"parentId":733},{"id":888,"name":"FgBlack","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":19,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L19"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[30m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.FgBlack"},"text":{},"parentId":733},{"id":892,"name":"FgBlue","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":23,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L23"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[34m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.FgBlue"},"text":{},"parentId":733},{"id":894,"name":"FgCyan","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":25,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L25"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[36m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.FgCyan"},"text":{},"parentId":733},{"id":890,"name":"FgGreen","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":21,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L21"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[32m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.FgGreen"},"text":{},"parentId":733},{"id":893,"name":"FgMagenta","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":24,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L24"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[35m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.FgMagenta"},"text":{},"parentId":733},{"id":889,"name":"FgRed","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":20,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L20"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[31m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.FgRed"},"text":{},"parentId":733},{"id":895,"name":"FgWhite","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":26,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L26"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[37m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.FgWhite"},"text":{},"parentId":733},{"id":891,"name":"FgYellow","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":22,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L22"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[33m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.FgYellow"},"text":{},"parentId":733},{"id":887,"name":"Hidden","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":18,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L18"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[8m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.Hidden"},"text":{},"parentId":733},{"id":881,"name":"Reset","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":12,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L12"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[0m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.Reset"},"text":{},"parentId":733},{"id":886,"name":"Reverse","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":17,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L17"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[7m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.Reverse"},"text":{},"parentId":733},{"id":884,"name":"Underscore","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":15,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L15"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'\\x1b[4m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.Underscore"},"text":{},"parentId":733},{"id":880,"name":"end","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":10,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L10"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'%s\\x1b[0m'","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors.end"},"text":{},"parentId":733}],"groups":[{"title":"Properties","children":[896,900,902,898,901,897,903,899,885,882,883,888,892,894,890,893,889,895,891,887,881,886,884,880]}],"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","line":9,"character":19,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L9"}],"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors"}}},"defaultValue":"COLORS_MAP","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.colors"},"text":{},"parentId":733},{"id":904,"name":"get","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":41,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L41"}],"type":{"type":"reflection","declaration":{"id":905,"name":"get","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","line":37,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L37"}],"signatures":[{"id":906,"name":"get","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":907,"name":"type","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.get.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/colors.ts","line":37,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L37"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Colors.get"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors.get"},"text":{},"parentId":733}],"groups":[{"title":"Properties","children":[878]},{"title":"Methods","children":[904]}],"sources":[{"fileName":"node-utils/src/lib/util/colors.ts","line":39,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/colors.ts#L39"}],"location":{"query":"node-utils/src.Variable.default","hash":"Colors"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Colors"},"text":{},"parentId":733},{"id":955,"name":"Env","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":30,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L30"}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Env"},"text":{},"parentId":733},{"id":869,"name":"Fn","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":27,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L27"}],"type":{"type":"reflection","declaration":{"id":870,"name":"Fn","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":872,"name":"getTimeStr","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/util.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/util.ts","line":33,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L33"}],"type":{"type":"reflection","declaration":{"id":873,"name":"getTimeStr","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/util.ts","line":18,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L18"}],"signatures":[{"id":874,"name":"getTimeStr","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getTimeStr"}]},{"tag":"@description","content":[{"kind":"text","text":"get time format: y/m/d h:m:s"}]},{"tag":"@returns","content":[{"kind":"text","text":"time string;"}]}]},"parameters":[{"id":875,"name":"timeStr","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fn.getTimeStr.__type"},"text":{"comment":"
Function:

getTimeStr

\n
Description:

get time format: y/m/d h:m:s

\n
Returns:

time string;

\n"},"sources":[{"fileName":"node-utils/src/lib/util/util.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/util.ts","line":18,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L18"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fn.getTimeStr"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fn.getTimeStr"},"text":{},"parentId":733},{"id":871,"name":"isBuffer","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/util.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/util.ts","line":32,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L32"}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fn.isBuffer"},"text":{},"parentId":733}],"groups":[{"title":"Properties","children":[871]},{"title":"Methods","children":[872]}],"sources":[{"fileName":"node-utils/src/lib/util/util.ts","line":31,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/util.ts#L31"}],"location":{"query":"node-utils/src.Variable.default","hash":"Fn"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fn"},"text":{},"parentId":733},{"id":735,"name":"Fs","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":24,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L24"}],"type":{"type":"reflection","declaration":{"id":736,"name":"Fs","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":749,"name":"fsExistsSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":194,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L194"}],"type":{"type":"reflection","declaration":{"id":750,"name":"fsExistsSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":76,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L76"}],"signatures":[{"id":751,"name":"fsExistsSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"fsExistsSync"}]},{"tag":"@description","content":[{"kind":"text","text":"判断文件是否存在(同步)"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否存在"}]}]},"parameters":[{"id":752,"name":"folderPath","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.fsExistsSync.__type"},"text":{"comment":"
Function:

fsExistsSync

\n
Description:

判断文件是否存在(同步)

\n
Returns:

是否存在

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":76,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L76"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs.fsExistsSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.fsExistsSync"},"text":{},"parentId":733},{"id":758,"name":"mkdirsSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":196,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L196"}],"type":{"type":"reflection","declaration":{"id":759,"name":"mkdirsSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":42,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L42"}],"signatures":[{"id":760,"name":"mkdirsSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"mkdirsSync"}]},{"tag":"@description","content":[{"kind":"text","text":"同步进行文件夹创建(容错)"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否创建成功"}]}]},"parameters":[{"id":761,"name":"dirPath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件夹路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件夹路径

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.mkdirsSync.__type"},"text":{"comment":"
Function:

mkdirsSync

\n
Description:

同步进行文件夹创建(容错)

\n
Returns:

是否创建成功

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":42,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L42"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs.mkdirsSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.mkdirsSync"},"text":{},"parentId":733},{"id":772,"name":"readFileSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":199,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L199"}],"type":{"type":"reflection","declaration":{"id":773,"name":"readFileSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":171,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L171"}],"signatures":[{"id":774,"name":"readFileSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"readFileSync"}]},{"tag":"@description","content":[{"kind":"text","text":"读取文件内容(同步)"}]},{"tag":"@returns","content":[{"kind":"text","text":"文件内容"}]}]},"parameters":[{"id":775,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件路径

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.readFileSync.__type"},"text":{"comment":"
Function:

readFileSync

\n
Description:

读取文件内容(同步)

\n
Returns:

文件内容

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":171,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L171"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs.readFileSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.readFileSync"},"text":{},"parentId":733},{"id":776,"name":"readJson","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":200,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L200"}],"type":{"type":"reflection","declaration":{"id":777,"name":"readJson","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":184,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L184"}],"signatures":[{"id":778,"name":"readJson","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"readJson"}]},{"tag":"@description","content":[{"kind":"text","text":"读取JSON文件内容"}]},{"tag":"@returns","content":[{"kind":"text","text":"JSON对象"}]}]},"parameters":[{"id":779,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件路径

\n"}}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.readJson.__type"},"text":{"comment":"
Function:

readJson

\n
Description:

读取JSON文件内容

\n
Returns:

JSON对象

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":184,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L184"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs.readJson"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.readJson"},"text":{},"parentId":733},{"id":762,"name":"rmdirsSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":197,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L197"}],"type":{"type":"reflection","declaration":{"id":763,"name":"rmdirsSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":106,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L106"}],"signatures":[{"id":764,"name":"rmdirsSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"rmdirsSync"}]},{"tag":"@description","content":[{"kind":"text","text":"同步删除指定目录下的所前目录和文件,包括当前目录"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否删除成功"}]}]},"parameters":[{"id":765,"name":"targetPath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"目标目录"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

目标目录

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.rmdirsSync.__type"},"text":{"comment":"
Function:

rmdirsSync

\n
Description:

同步删除指定目录下的所前目录和文件,包括当前目录

\n
Returns:

是否删除成功

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":106,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L106"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs.rmdirsSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.rmdirsSync"},"text":{},"parentId":733},{"id":753,"name":"setFolderSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":195,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L195"}],"type":{"type":"reflection","declaration":{"id":754,"name":"setFolderSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":92,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L92"}],"signatures":[{"id":755,"name":"setFolderSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"setFolderSync"}]},{"tag":"@description","content":[{"kind":"text","text":"同步创建文件夹"}]}]},"parameters":[{"id":756,"name":"folderPath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件夹路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件夹路径

\n"}},{"id":757,"name":"noTip","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.setFolderSync.__type"},"text":{"comment":"
Function:

setFolderSync

\n
Description:

同步创建文件夹

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":92,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L92"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs.setFolderSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.setFolderSync"},"text":{},"parentId":733},{"id":737,"name":"travelFolderSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":193,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L193"}],"type":{"type":"reflection","declaration":{"id":738,"name":"travelFolderSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":19,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L19"}],"signatures":[{"id":739,"name":"travelFolderSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"travelFolderSync"}]},{"tag":"@description","content":[{"kind":"text","text":"遍历文件夹输出文件信息"}]}]},"parameters":[{"id":740,"name":"dirPath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件夹路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件夹路径

\n"}},{"id":741,"name":"fileCallback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件回调"}]},"type":{"type":"reflection","declaration":{"id":742,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":21,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L21"}],"signatures":[{"id":743,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":744,"name":"pathName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{"comment":"

文件回调

\n"}},{"id":745,"name":"folderCallback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件夹回调"}]},"type":{"type":"reflection","declaration":{"id":746,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":22,"character":18,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L22"}],"signatures":[{"id":747,"name":"__type","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":748,"name":"pathName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}},"text":{"comment":"

文件夹回调

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.travelFolderSync.__type"},"text":{"comment":"
Function:

travelFolderSync

\n
Description:

遍历文件夹输出文件信息

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":19,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L19"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs.travelFolderSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.travelFolderSync"},"text":{},"parentId":733},{"id":766,"name":"writeFile","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":198,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L198"}],"type":{"type":"reflection","declaration":{"id":767,"name":"writeFile","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":138,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L138"}],"signatures":[{"id":768,"name":"writeFile","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"writeFile"}]},{"tag":"@description","content":[{"kind":"text","text":"写文件,如果文件不存在则创建"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否写入成功"}]}]},"parameters":[{"id":769,"name":"filePath","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件路径"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件路径

\n"}},{"id":770,"name":"fileData","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件内容"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件内容

\n"}},{"id":771,"name":"replaceBool","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"是否替换"}]},"type":{"type":"intrinsic","name":"boolean"},"text":{"comment":"

是否替换

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.writeFile.__type"},"text":{"comment":"
Function:

writeFile

\n
Description:

写文件,如果文件不存在则创建

\n
Returns:

是否写入成功

\n"},"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/fs/fsFuncs.ts","line":138,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L138"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs.writeFile"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs.writeFile"},"text":{},"parentId":733}],"groups":[{"title":"Methods","children":[749,758,772,776,762,753,737,766]}],"sources":[{"fileName":"node-utils/src/lib/fs/fsFuncs.ts","line":192,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/fs/fsFuncs.ts#L192"}],"location":{"query":"node-utils/src.Variable.default","hash":"Fs"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Fs"},"text":{},"parentId":733},{"id":780,"name":"OS","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":25,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L25"}],"type":{"type":"reflection","declaration":{"id":781,"name":"OS","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":816,"name":"allLoadavg","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":290,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L290"}],"type":{"type":"reflection","declaration":{"id":817,"name":"allLoadavg","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":182,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L182"}],"signatures":[{"id":818,"name":"allLoadavg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"allLoadavg"}]},{"tag":"@description","content":[{"kind":"text","text":"获取所有负载均衡。Returns All the load average usage for 1, 5 or 15 minutes."}]},{"tag":"@returns","content":[{"kind":"text","text":"返回负载均衡"}]}]},"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.allLoadavg.__type"},"text":{"comment":"
Function:

allLoadavg

\n
Description:

获取所有负载均衡。Returns All the load average usage for 1, 5 or 15 minutes.

\n
Returns:

返回负载均衡

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":182,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L182"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.allLoadavg"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.allLoadavg"},"text":{},"parentId":733},{"id":785,"name":"cpuCount","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":281,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L281"}],"type":{"type":"reflection","declaration":{"id":786,"name":"cpuCount","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":26,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L26"}],"signatures":[{"id":787,"name":"cpuCount","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"cpuCount"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前CPU数量"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuCount.__type"},"text":{"comment":"
Function:

cpuCount

\n
Description:

获取当前CPU数量

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":26,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L26"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuCount"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuCount"},"text":{},"parentId":733},{"id":823,"name":"cpuFree","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":292,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L292"}],"type":{"type":"reflection","declaration":{"id":824,"name":"cpuFree","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":236,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L236"}],"signatures":[{"id":825,"name":"cpuFree","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"cpuFree"}]},{"tag":"@description","content":[{"kind":"text","text":"cpu空闲比例(0~1)"}]}]},"parameters":[{"id":826,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{"comment":"

回调函数

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuFree.__type"},"text":{"comment":"
Function:

cpuFree

\n
Description:

cpu空闲比例(0~1)

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":236,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L236"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuFree"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuFree"},"text":{},"parentId":733},{"id":827,"name":"cpuUsage","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":293,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L293"}],"type":{"type":"reflection","declaration":{"id":828,"name":"cpuUsage","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":245,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L245"}],"signatures":[{"id":829,"name":"cpuUsage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"cpuUsage"}]},{"tag":"@description","content":[{"kind":"text","text":"cpu已使用比例(0~1)"}]}]},"parameters":[{"id":830,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{"comment":"

回调函数

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuUsage.__type"},"text":{"comment":"
Function:

cpuUsage

\n
Description:

cpu已使用比例(0~1)

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":245,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L245"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuUsage"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.cpuUsage"},"text":{},"parentId":733},{"id":803,"name":"freeCommand","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":287,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L287"}],"type":{"type":"reflection","declaration":{"id":804,"name":"freeCommand","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":82,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L82"}],"signatures":[{"id":805,"name":"freeCommand","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"freeCommand"}]},{"tag":"@description","content":[{"kind":"text","text":"Linux free命令,显示内存情况并回调"}]}]},"parameters":[{"id":806,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.freeCommand.__type"},"text":{"comment":"
Function:

freeCommand

\n
Description:

Linux free命令,显示内存情况并回调

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":82,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L82"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.freeCommand"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.freeCommand"},"text":{},"parentId":733},{"id":794,"name":"freemem","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":284,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L284"}],"type":{"type":"reflection","declaration":{"id":795,"name":"freemem","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":55,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L55"}],"signatures":[{"id":796,"name":"freemem","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"freemem"}]},{"tag":"@description","content":[{"kind":"text","text":"获取空余内存(Mb)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.freemem.__type"},"text":{"comment":"
Function:

freemem

\n
Description:

获取空余内存(Mb)

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":55,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L55"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.freemem"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.freemem"},"text":{},"parentId":733},{"id":800,"name":"freememPercentage","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":286,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L286"}],"type":{"type":"reflection","declaration":{"id":801,"name":"freememPercentage","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":73,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L73"}],"signatures":[{"id":802,"name":"freememPercentage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"freememPercentage"}]},{"tag":"@description","content":[{"kind":"text","text":"获取空余内存比"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.freememPercentage.__type"},"text":{"comment":"
Function:

freememPercentage

\n
Description:

获取空余内存比

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":73,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L73"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.freememPercentage"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.freememPercentage"},"text":{},"parentId":733},{"id":836,"name":"getCPUInfo","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":295,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L295"}],"type":{"type":"reflection","declaration":{"id":837,"name":"getCPUInfo","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":254,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L254"}],"signatures":[{"id":838,"name":"getCPUInfo","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getCPUInfo"}]},{"tag":"@description","content":[{"kind":"text","text":"获取CPU情况"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回CPU情况, idle: 空闲, total: 总数"}]}]},"type":{"type":"reflection","declaration":{"id":839,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":840,"name":"idle","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":274,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L274"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"idle","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUInfo.__type.idle"},"text":{},"parentId":733},{"id":841,"name":"total","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":275,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L275"}],"type":{"type":"intrinsic","name":"number"},"defaultValue":"total","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUInfo.__type.total"},"text":{},"parentId":733}],"groups":[{"title":"Properties","children":[840,841]}],"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":273,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L273"}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUInfo.__type"}}},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUInfo.__type"},"text":{"comment":"
Function:

getCPUInfo

\n
Description:

获取CPU情况

\n
Returns:

返回CPU情况, idle: 空闲, total: 总数

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":254,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L254"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUInfo"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUInfo"},"text":{},"parentId":733},{"id":831,"name":"getCPUUsage","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":294,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L294"}],"type":{"type":"reflection","declaration":{"id":832,"name":"getCPUUsage","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":212,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L212"}],"signatures":[{"id":833,"name":"getCPUUsage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getCPUUsage"}]},{"tag":"@description","content":[{"kind":"text","text":"获取CPU使用情况"}]}]},"parameters":[{"id":834,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{"comment":"

回调函数

\n"}},{"id":835,"name":"free","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"是否空闲"}]},"type":{"type":"intrinsic","name":"boolean"},"text":{"comment":"

是否空闲

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUUsage.__type"},"text":{"comment":"
Function:

getCPUUsage

\n
Description:

获取CPU使用情况

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":212,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L212"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUUsage"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.getCPUUsage"},"text":{},"parentId":733},{"id":811,"name":"getProcesses","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":289,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L289"}],"type":{"type":"reflection","declaration":{"id":812,"name":"getProcesses","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":138,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L138"}],"signatures":[{"id":813,"name":"getProcesses","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getProcesses"}]},{"tag":"@description","content":[{"kind":"text","text":"获取进程运行情况"}]}]},"parameters":[{"id":814,"name":"nProcess","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"进程数"}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","name":"AnyCallbackFunc"}]},"text":{"comment":"

进程数

\n"}},{"id":815,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"回调函数"}]},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{"comment":"

回调函数

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.getProcesses.__type"},"text":{"comment":"
Function:

getProcesses

\n
Description:

获取进程运行情况

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":138,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L138"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.getProcesses"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.getProcesses"},"text":{},"parentId":733},{"id":807,"name":"harddrive","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":288,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L288"}],"type":{"type":"reflection","declaration":{"id":808,"name":"harddrive","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":108,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L108"}],"signatures":[{"id":809,"name":"harddrive","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"harddrive"}]},{"tag":"@description","content":[{"kind":"text","text":"获取硬盘使用情况并回调"}]}]},"parameters":[{"id":810,"name":"callback","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"AnyCallbackFunc"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.harddrive.__type"},"text":{"comment":"
Function:

harddrive

\n
Description:

获取硬盘使用情况并回调

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":108,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L108"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.harddrive"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.harddrive"},"text":{},"parentId":733},{"id":819,"name":"loadavg","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":291,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L291"}],"type":{"type":"reflection","declaration":{"id":820,"name":"loadavg","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":194,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L194"}],"signatures":[{"id":821,"name":"loadavg","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"loadavg"}]},{"tag":"@description","content":[{"kind":"text","text":"获取系统负载均衡。Returns the load average usage for 1, 5 or 15 minutes."}]},{"tag":"@returns","content":[{"kind":"text","text":"返回负载均衡"}]}]},"parameters":[{"id":822,"name":"time","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"时间"}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1","text":{"comment":"

时间

\n"}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.loadavg.__type"},"text":{"comment":"
Function:

loadavg

\n
Description:

获取系统负载均衡。Returns the load average usage for 1, 5 or 15 minutes.

\n
Returns:

返回负载均衡

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":194,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L194"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.loadavg"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.loadavg"},"text":{},"parentId":733},{"id":782,"name":"platform","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":280,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L280"}],"type":{"type":"reflection","declaration":{"id":783,"name":"platform","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":17,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L17"}],"signatures":[{"id":784,"name":"platform","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"platform"}]},{"tag":"@description","content":[{"kind":"text","text":"获取当前宿主平台标识"}]},{"tag":"@returns","content":[{"kind":"text","text":"NodeJS.Platform"}]}]},"type":{"type":"reference","name":"Platform","qualifiedName":"global.NodeJS.Platform","package":"@types/node"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.platform.__type"},"text":{"comment":"
Function:

platform

\n
Description:

获取当前宿主平台标识

\n
Returns:

NodeJS.Platform

\n"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":17,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L17"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.platform"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.platform"},"text":{},"parentId":733},{"id":791,"name":"processUptime","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":283,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L283"}],"type":{"type":"reflection","declaration":{"id":792,"name":"processUptime","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":45,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L45"}],"signatures":[{"id":793,"name":"processUptime","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"processUptime"}]},{"tag":"@description","content":[{"kind":"text","text":"获取Node程序已运行的时间(单位为秒)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.processUptime.__type"},"text":{"comment":"
Function:

processUptime

\n
Description:

获取Node程序已运行的时间(单位为秒)

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":45,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L45"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.processUptime"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.processUptime"},"text":{},"parentId":733},{"id":788,"name":"sysUptime","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":282,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L282"}],"type":{"type":"reflection","declaration":{"id":789,"name":"sysUptime","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":35,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L35"}],"signatures":[{"id":790,"name":"sysUptime","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"sysUptime"}]},{"tag":"@description","content":[{"kind":"text","text":"获取系统正常运行时间(单位为秒)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.sysUptime.__type"},"text":{"comment":"
Function:

sysUptime

\n
Description:

获取系统正常运行时间(单位为秒)

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":35,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L35"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.sysUptime"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.sysUptime"},"text":{},"parentId":733},{"id":797,"name":"totalmem","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":285,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L285"}],"type":{"type":"reflection","declaration":{"id":798,"name":"totalmem","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":64,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L64"}],"signatures":[{"id":799,"name":"totalmem","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"totalmem"}]},{"tag":"@description","content":[{"kind":"text","text":"获取总内存(Mb)"}]},{"tag":"@returns","content":[]}]},"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"OS.totalmem.__type"},"text":{"comment":"
Function:

totalmem

\n
Description:

获取总内存(Mb)

\n
Returns:
"},"sources":[{"fileName":"node-utils/src/lib/util/os.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/os.ts","line":64,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L64"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"OS.totalmem"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS.totalmem"},"text":{},"parentId":733}],"groups":[{"title":"Methods","children":[816,785,823,827,803,794,800,836,831,811,807,819,782,791,788,797]}],"sources":[{"fileName":"node-utils/src/lib/util/os.ts","line":279,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/os.ts#L279"}],"location":{"query":"node-utils/src.Variable.default","hash":"OS"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"OS"},"text":{},"parentId":733},{"id":842,"name":"Run","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":26,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L26"}],"type":{"type":"reflection","declaration":{"id":843,"name":"Run","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":866,"name":"exit","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":153,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L153"}],"type":{"type":"reflection","declaration":{"id":867,"name":"exit","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":144,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L144"}],"signatures":[{"id":868,"name":"exit","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"exit"}]},{"tag":"@description","content":[{"kind":"text","text":"退出进程"}]}]},"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Run.exit.__type"},"text":{"comment":"
Function:

exit

\n
Description:

退出进程

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":144,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L144"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Run.exit"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Run.exit"},"text":{},"parentId":733},{"id":844,"name":"forceRunAsync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":149,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L149"}],"type":{"type":"reflection","declaration":{"id":845,"name":"forceRunAsync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":73,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L73"}],"signatures":[{"id":846,"name":"forceRunAsync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"forceRunAsync"}]},{"tag":"@description","content":[{"kind":"text","text":"强制执行外部命令行(异步),如果命令行执行失败,则抛出错误,否则忽略错误。"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回Promise"}]}]},"parameters":[{"id":847,"name":"cmd","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"命令行"}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"URL","qualifiedName":"URL","package":"typescript"}]},"text":{"comment":"

命令行

\n"}},{"id":848,"name":"args","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"参数"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

参数

\n"}},{"id":849,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"配置项"}]},"type":{"type":"intrinsic","name":"any"},"text":{"comment":"

配置项

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Run.forceRunAsync.__type"},"text":{"comment":"
Function:

forceRunAsync

\n
Description:

强制执行外部命令行(异步),如果命令行执行失败,则抛出错误,否则忽略错误。

\n
Returns:

返回Promise

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":73,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L73"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Run.forceRunAsync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Run.forceRunAsync"},"text":{},"parentId":733},{"id":854,"name":"runAsync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":151,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L151"}],"type":{"type":"reflection","declaration":{"id":855,"name":"runAsync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":107,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L107"}],"signatures":[{"id":856,"name":"runAsync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"runAsync"}]},{"tag":"@description","content":[{"kind":"text","text":"异步执行"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回Promise"}]}]},"parameters":[{"id":857,"name":"cmd","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"命令行"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

命令行

\n"}},{"id":858,"name":"args","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"参数"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

参数

\n"}},{"id":859,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"配置项"}]},"type":{"type":"intrinsic","name":"any"},"text":{"comment":"

配置项

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Run.runAsync.__type"},"text":{"comment":"
Function:

runAsync

\n
Description:

异步执行

\n
Returns:

返回Promise

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":107,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L107"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Run.runAsync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Run.runAsync"},"text":{},"parentId":733},{"id":850,"name":"runPromise","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":150,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L150"}],"type":{"type":"reflection","declaration":{"id":851,"name":"runPromise","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":90,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L90"}],"signatures":[{"id":852,"name":"runPromise","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"runPromise"}]},{"tag":"@description","content":[{"kind":"text","text":"在promise的catch错误处理中: 如果错误消息不是特定的IGNORE,则打印错误。调用exit()退出进程。"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回promise对象"}]}]},"parameters":[{"id":853,"name":"promise","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"promise对象"}]},"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"text":{"comment":"

promise对象

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"any"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Run.runPromise.__type"},"text":{"comment":"
Function:

runPromise

\n
Description:

在promise的catch错误处理中: 如果错误消息不是特定的IGNORE,则打印错误。调用exit()退出进程。

\n
Returns:

返回promise对象

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":90,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L90"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Run.runPromise"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Run.runPromise"},"text":{},"parentId":733},{"id":860,"name":"runSync","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":152,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L152"}],"type":{"type":"reflection","declaration":{"id":861,"name":"runSync","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":119,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L119"}],"signatures":[{"id":862,"name":"runSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"runSync"}]},{"tag":"@description","content":[{"kind":"text","text":"同步执行"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回字符串"}]}]},"parameters":[{"id":863,"name":"cmd","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"命令行"}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"URL","qualifiedName":"URL","package":"typescript"}]},"text":{"comment":"

命令行

\n"}},{"id":864,"name":"args","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"参数"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}},"text":{"comment":"

参数

\n"}},{"id":865,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"配置项"}]},"type":{"type":"intrinsic","name":"any"},"text":{"comment":"

配置项

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Run.runSync.__type"},"text":{"comment":"
Function:

runSync

\n
Description:

同步执行

\n
Returns:

返回字符串

\n"},"sources":[{"fileName":"node-utils/src/lib/util/run.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/run.ts","line":119,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L119"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Run.runSync"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Run.runSync"},"text":{},"parentId":733}],"groups":[{"title":"Methods","children":[866,844,854,850,860]}],"sources":[{"fileName":"node-utils/src/lib/util/run.ts","line":148,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/run.ts#L148"}],"location":{"query":"node-utils/src.Variable.default","hash":"Run"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Run"},"text":{},"parentId":733},{"id":908,"name":"Tip","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/index.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/index.ts","line":29,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L29"}],"type":{"type":"reflection","declaration":{"id":909,"name":"Tip","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":930,"name":"err","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":47,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L47"}],"type":{"type":"reflection","declaration":{"id":931,"name":"err","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":932,"name":"err","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":933,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":934,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.err.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.err"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.err"},"text":{},"parentId":733},{"id":935,"name":"error","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":48,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L48"}],"type":{"type":"reflection","declaration":{"id":936,"name":"error","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":937,"name":"error","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":938,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":939,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.error.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.error"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.error"},"text":{},"parentId":733},{"id":925,"name":"info","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":46,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L46"}],"type":{"type":"reflection","declaration":{"id":926,"name":"info","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":927,"name":"info","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":928,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":929,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.info.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.info"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.info"},"text":{},"parentId":733},{"id":920,"name":"log","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":45,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L45"}],"type":{"type":"reflection","declaration":{"id":921,"name":"log","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":922,"name":"log","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":923,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":924,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.log.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.log"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.log"},"text":{},"parentId":733},{"id":910,"name":"safe","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":43,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L43"}],"type":{"type":"reflection","declaration":{"id":911,"name":"safe","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":912,"name":"safe","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":913,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":914,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.safe.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.safe"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.safe"},"text":{},"parentId":733},{"id":940,"name":"strongError","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":49,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L49"}],"type":{"type":"reflection","declaration":{"id":941,"name":"strongError","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":942,"name":"strongError","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":943,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":944,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.strongError.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.strongError"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.strongError"},"text":{},"parentId":733},{"id":950,"name":"strongWarn","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":51,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L51"}],"type":{"type":"reflection","declaration":{"id":951,"name":"strongWarn","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":952,"name":"strongWarn","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":953,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":954,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.strongWarn.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.strongWarn"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.strongWarn"},"text":{},"parentId":733},{"id":915,"name":"success","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":44,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L44"}],"type":{"type":"reflection","declaration":{"id":916,"name":"success","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":917,"name":"success","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":918,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":919,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.success.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.success"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.success"},"text":{},"parentId":733},{"id":945,"name":"warn","kind":4096,"kindString":"Property","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":50,"character":2,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L50"}],"type":{"type":"reflection","declaration":{"id":946,"name":"warn","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"signatures":[{"id":947,"name":"warn","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":948,"name":"info","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}]},"text":{}},{"id":949,"name":"timeFlag","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"},"text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.warn.__type"},"text":{},"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/node-utils/src/lib/util/tip.ts","line":30,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L30"}],"parentId":733}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip.warn"}}},"defaultValue":"...","is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip.warn"},"text":{},"parentId":733}],"groups":[{"title":"Methods","children":[930,935,925,920,910,940,950,915,945]}],"sources":[{"fileName":"node-utils/src/lib/util/tip.ts","line":42,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/lib/util/tip.ts#L42"}],"location":{"query":"node-utils/src.Variable.default","hash":"Tip"}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":"Tip"},"text":{},"parentId":733}],"groups":[{"title":"Properties","children":[876,955,869,735,780,842,908]}],"sources":[{"fileName":"node-utils/src/index.ts","line":23,"character":15,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/node-utils/src/index.ts#L23"}],"location":{"query":"node-utils/src.Variable.default","hash":""}}},"is":{"declaration":true},"location":{"query":"node-utils/src.Variable.default","hash":""},"text":{"comment":"

FS: file work\nFn: useful functions\nColors: console colors\nTip: console type\nEnv: process word

\n"},"parentId":732} diff --git a/docs/v1.0.0-beta01/data/utils/src/await-to.Function.to.json b/docs/v1.0.0-beta01/data/utils/src/await-to.Function.to.json new file mode 100644 index 00000000..a91721cd --- /dev/null +++ b/docs/v1.0.0-beta01/data/utils/src/await-to.Function.to.json @@ -0,0 +1 @@ +{"id":305,"name":"to","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/await-to.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/await-to.ts","line":22,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/await-to.ts#L22"}],"signatures":[{"id":306,"name":"to","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"to"}]},{"tag":"@description","content":[{"kind":"text","text":"将Promise的错误和数据分离"}]},{"tag":"@returns","content":[{"kind":"text","text":"返回一个Promise"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst [err, data] = await to(promise); // some promise instance\nif (err) {\n console.error(err);\n} else {\n console.log(data);\n}\n```"}]}]},"typeParameter":[{"id":307,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}},{"id":308,"name":"U","kind":131072,"kindString":"Type parameter","flags":{},"default":{"type":"reference","name":"Error","qualifiedName":"Error","package":"typescript"}}],"parameters":[{"id":309,"name":"promise","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"Promise实例"}]},"type":{"type":"reference","typeArguments":[{"type":"reference","id":307,"name":"T"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"text":{"comment":"

Promise实例

\n"}},{"id":310,"name":"errorExt","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"错误扩展"}]},"type":{"type":"intrinsic","name":"object"},"text":{"comment":"

错误扩展

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"union","types":[{"type":"tuple","elements":[{"type":"reference","id":308,"name":"U"},{"type":"intrinsic","name":"undefined"}]},{"type":"tuple","elements":[{"type":"literal","value":null},{"type":"reference","id":307,"name":"T"}]}]}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"utils/src/await-to.Function.to","hash":"to"},"text":{"comment":"
Function:

to

\n
Description:

将Promise的错误和数据分离

\n
Returns:

返回一个Promise

\n
Example:
const [err, data] = await to(promise); // some promise instance\nif (err) {\n console.error(err);\n} else {\n console.log(data);\n}\n
\n"},"sources":[{"fileName":"utils/src/await-to.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/await-to.ts","line":22,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/utils/src/await-to.ts#L22"}],"parentId":305}],"is":{"declaration":true},"location":{"query":"utils/src/await-to.Function.to","hash":""},"text":{},"parentId":304} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/clipboard.Function.copyToClipboard.json b/docs/v1.0.0-beta01/data/web-utils/src/clipboard.Function.copyToClipboard.json new file mode 100644 index 00000000..61f4cbb0 --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/clipboard.Function.copyToClipboard.json @@ -0,0 +1 @@ +{"id":959,"name":"copyToClipboard","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/clipboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/clipboard.ts","line":34,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/clipboard.ts#L34"}],"signatures":[{"id":960,"name":"copyToClipboard","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"copyToClipboard"}]},{"tag":"@description","content":[{"kind":"text","text":"拷贝文案到剪贴板"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否拷贝成功"}]}]},"parameters":[{"id":961,"name":"text","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文案"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文案

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"web-utils/src/clipboard.Function.copyToClipboard","hash":"copyToClipboard"},"text":{"comment":"
Function:

copyToClipboard

\n
Description:

拷贝文案到剪贴板

\n
Returns:

是否拷贝成功

\n"},"sources":[{"fileName":"web-utils/src/clipboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/clipboard.ts","line":34,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/clipboard.ts#L34"}],"parentId":959}],"is":{"declaration":true},"location":{"query":"web-utils/src/clipboard.Function.copyToClipboard","hash":""},"text":{},"parentId":956} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/clipboard.Function.readClipboardText.json b/docs/v1.0.0-beta01/data/web-utils/src/clipboard.Function.readClipboardText.json new file mode 100644 index 00000000..7c973b08 --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/clipboard.Function.readClipboardText.json @@ -0,0 +1 @@ +{"id":957,"name":"readClipboardText","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/clipboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/clipboard.ts","line":12,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/clipboard.ts#L12"}],"signatures":[{"id":958,"name":"readClipboardText","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"readClipboardText"}]},{"tag":"@description","content":[{"kind":"text","text":"读取剪贴板文案"}]},{"tag":"@returns","content":[{"kind":"text","text":"剪贴板文案"}]}]},"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"web-utils/src/clipboard.Function.readClipboardText","hash":"readClipboardText"},"text":{"comment":"
Function:

readClipboardText

\n
Description:

读取剪贴板文案

\n
Returns:

剪贴板文案

\n"},"sources":[{"fileName":"web-utils/src/clipboard.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/clipboard.ts","line":12,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/clipboard.ts#L12"}],"parentId":957}],"is":{"declaration":true},"location":{"query":"web-utils/src/clipboard.Function.readClipboardText","hash":""},"text":{},"parentId":956} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/file.Function.downloadFile.json b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.downloadFile.json new file mode 100644 index 00000000..4c4a61a6 --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.downloadFile.json @@ -0,0 +1 @@ +{"id":1069,"name":"downloadFile","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":52,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L52"}],"signatures":[{"id":1070,"name":"downloadFile","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"downloadFile"}]},{"tag":"@description","content":[{"kind":"text","text":"保存/下载文件"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndownloadFile('file content', 'file.txt', 'text/plain');\ndownloadFile('data:image/png;base64,...', 'image.png', 'image/png');\n```"}]}]},"parameters":[{"id":1071,"name":"content","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件内容"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件内容

\n"}},{"id":1072,"name":"filename","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件名"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件名

\n"}},{"id":1073,"name":"contentType","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件类型"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件类型

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"web-utils/src/file.Function.downloadFile","hash":"downloadFile"},"text":{"comment":"
Function:

downloadFile

\n
Description:

保存/下载文件

\n
Example:
downloadFile('file content', 'file.txt', 'text/plain');\ndownloadFile('data:image/png;base64,...', 'image.png', 'image/png');\n
\n"},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":52,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L52"}],"parentId":1069}],"is":{"declaration":true},"location":{"query":"web-utils/src/file.Function.downloadFile","hash":""},"text":{},"parentId":1062} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/file.Function.downloadImageFileByUrl.json b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.downloadImageFileByUrl.json new file mode 100644 index 00000000..d0552276 --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.downloadImageFileByUrl.json @@ -0,0 +1 @@ +{"id":1074,"name":"downloadImageFileByUrl","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":77,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L77"}],"signatures":[{"id":1075,"name":"downloadImageFileByUrl","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"downloadImageFileByUrl"}]},{"tag":"@description","content":[{"kind":"text","text":"根据URL下载图片文件"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否下载成功"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ndownloadImageFileByUrl('https://example.com/image.jpg', 'image.jpg');\ndownloadImageFileByUrl('https://example.com/image.png', 'image.png', 'image/png');\n```"}]}]},"parameters":[{"id":1076,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"图片URL"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

图片URL

\n"}},{"id":1077,"name":"filename","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件名"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件名

\n"}},{"id":1078,"name":"imageType","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"图片类型"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'image/jpeg'","text":{"comment":"

图片类型

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"unknown"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"web-utils/src/file.Function.downloadImageFileByUrl","hash":"downloadImageFileByUrl"},"text":{"comment":"
Function:

downloadImageFileByUrl

\n
Description:

根据URL下载图片文件

\n
Returns:

是否下载成功

\n
Example:
downloadImageFileByUrl('https://example.com/image.jpg', 'image.jpg');\ndownloadImageFileByUrl('https://example.com/image.png', 'image.png', 'image/png');\n
\n"},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":77,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L77"}],"parentId":1074}],"is":{"declaration":true},"location":{"query":"web-utils/src/file.Function.downloadImageFileByUrl","hash":""},"text":{},"parentId":1062} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/file.Function.getFileExtension.json b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.getFileExtension.json new file mode 100644 index 00000000..72e81f7a --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.getFileExtension.json @@ -0,0 +1 @@ +{"id":1079,"name":"getFileExtension","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":114,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L114"}],"signatures":[{"id":1080,"name":"getFileExtension","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"getFileExtension"}]},{"tag":"@description","content":[{"kind":"text","text":"根据文件名获取文件扩展名"}]},{"tag":"@returns","content":[{"kind":"text","text":"文件扩展名"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ngetFileExtension('file.txt'); // 'txt'\ngetFileExtension('file'); // ''\ngetFileExtension('.file'); // ''\ngetFileExtension('file.png'); // 'png'\n```"}]}]},"parameters":[{"id":1081,"name":"filename","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件名"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

文件名

\n"}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"web-utils/src/file.Function.getFileExtension","hash":"getFileExtension"},"text":{"comment":"
Function:

getFileExtension

\n
Description:

根据文件名获取文件扩展名

\n
Returns:

文件扩展名

\n
Example:
getFileExtension('file.txt');    // 'txt'\ngetFileExtension('file');        // ''\ngetFileExtension('.file');       // ''\ngetFileExtension('file.png');    // 'png'\n
\n"},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":114,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L114"}],"parentId":1079}],"is":{"declaration":true},"location":{"query":"web-utils/src/file.Function.getFileExtension","hash":""},"text":{},"parentId":1062} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/file.Function.readFile.json b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.readFile.json new file mode 100644 index 00000000..cf7f3c0b --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.readFile.json @@ -0,0 +1 @@ +{"id":1063,"name":"readFile","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":14,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L14"}],"signatures":[{"id":1064,"name":"readFile","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"readFile"}]},{"tag":"@description","content":[{"kind":"text","text":"读取文件内容,返回字符串"}]},{"tag":"@returns","content":[{"kind":"text","text":"文件内容"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nreadFile(file).then(content => console.log('file content', content)); // e.g input[type=\"file\"] onchange\n```"}]}]},"parameters":[{"id":1065,"name":"file","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件对象"}]},"type":{"type":"reference","name":"File","qualifiedName":"File","package":"typescript"},"text":{"comment":"

文件对象

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"web-utils/src/file.Function.readFile","hash":"readFile"},"text":{"comment":"
Function:

readFile

\n
Description:

读取文件内容,返回字符串

\n
Returns:

文件内容

\n
Example:
readFile(file).then(content => console.log('file content', content));    // e.g input[type=\"file\"] onchange\n
\n"},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":14,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L14"}],"parentId":1063}],"is":{"declaration":true},"location":{"query":"web-utils/src/file.Function.readFile","hash":""},"text":{},"parentId":1062} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/file.Function.readFileAsDataURL.json b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.readFileAsDataURL.json new file mode 100644 index 00000000..6290ef95 --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/file.Function.readFileAsDataURL.json @@ -0,0 +1 @@ +{"id":1066,"name":"readFileAsDataURL","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":33,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L33"}],"signatures":[{"id":1067,"name":"readFileAsDataURL","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"readFileAsDataURL"}]},{"tag":"@description","content":[{"kind":"text","text":"读取文件内容为Data URL(image、video、audio本地预览等)"}]},{"tag":"@returns","content":[{"kind":"text","text":"文件内容"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nreadFileAsDataURL(file).then(dataURL => console.log('file dataURL', dataURL)); // e.g input[type=\"file\"] onchange\n```"}]}]},"parameters":[{"id":1068,"name":"file","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"文件对象"}]},"type":{"type":"reference","name":"File","qualifiedName":"File","package":"typescript"},"text":{"comment":"

文件对象

\n"}}],"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"},"is":{"declaration":false},"location":{"query":"web-utils/src/file.Function.readFileAsDataURL","hash":"readFileAsDataURL"},"text":{"comment":"
Function:

readFileAsDataURL

\n
Description:

读取文件内容为Data URL(image、video、audio本地预览等)

\n
Returns:

文件内容

\n
Example:
readFileAsDataURL(file).then(dataURL => console.log('file dataURL', dataURL));  // e.g input[type=\"file\"] onchange\n
\n"},"sources":[{"fileName":"web-utils/src/file.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/file.ts","line":33,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/file.ts#L33"}],"parentId":1066}],"is":{"declaration":true},"location":{"query":"web-utils/src/file.Function.readFileAsDataURL","hash":""},"text":{},"parentId":1062} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/others.Function.isBase64.json b/docs/v1.0.0-beta01/data/web-utils/src/others.Function.isBase64.json new file mode 100644 index 00000000..9e9cf792 --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/others.Function.isBase64.json @@ -0,0 +1 @@ +{"id":1135,"name":"isBase64","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/others.ts","line":13,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/others.ts#L13"}],"signatures":[{"id":1136,"name":"isBase64","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"isBase64"}]},{"tag":"@description","content":[{"kind":"text","text":"判断字符串是否是base64"}]},{"tag":"@returns","content":[{"kind":"text","text":"是否是base64"}]}]},"parameters":[{"id":1137,"name":"str","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"字符串"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

字符串

\n"}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"web-utils/src/others.Function.isBase64","hash":"isBase64"},"text":{"comment":"
Function:

isBase64

\n
Description:

判断字符串是否是base64

\n
Returns:

是否是base64

\n"},"sources":[{"fileName":"web-utils/src/others.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/others.ts","line":13,"character":24,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/others.ts#L13"}],"parentId":1135}],"is":{"declaration":true},"location":{"query":"web-utils/src/others.Function.isBase64","hash":""},"text":{},"parentId":1134} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/rem.Interface.Window.json b/docs/v1.0.0-beta01/data/web-utils/src/rem.Interface.Window.json new file mode 100644 index 00000000..76583ab5 --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/rem.Interface.Window.json @@ -0,0 +1 @@ +{"id":1156,"name":"Window","kind":256,"kindString":"Interface","flags":{},"children":[{"id":1158,"name":"flexible","kind":1024,"kindString":"Property","flags":{},"sources":[{"fileName":"web-utils/src/rem.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/rem.ts","line":19,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/rem.ts#L19"}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":true},"location":{"query":"web-utils/src/rem.Interface.Window","hash":"flexible"},"text":{},"parentId":1156},{"id":1157,"name":"norem","kind":1024,"kindString":"Property","flags":{"isOptional":true},"sources":[{"fileName":"web-utils/src/rem.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/rem.ts","line":18,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/rem.ts#L18"}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":true},"location":{"query":"web-utils/src/rem.Interface.Window","hash":"norem"},"text":{},"parentId":1156}],"groups":[{"title":"Properties","children":[1158,1157]}],"sources":[{"fileName":"web-utils/src/rem.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/rem.ts","line":17,"character":12,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/rem.ts#L17"}],"is":{"declaration":true},"location":{"query":"web-utils/src/rem.Interface.Window","hash":""},"text":{},"parentId":1155,"hierarchy":[{"name":"Window","isTarget":true,"linkId":"1156"}]} diff --git a/docs/v1.0.0-beta01/data/web-utils/src/storage.Function.default.json b/docs/v1.0.0-beta01/data/web-utils/src/storage.Function.default.json new file mode 100644 index 00000000..1b57192f --- /dev/null +++ b/docs/v1.0.0-beta01/data/web-utils/src/storage.Function.default.json @@ -0,0 +1 @@ +{"id":1174,"name":"default","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":41,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L41"}],"signatures":[{"id":1175,"name":"default","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[{"kind":"text","text":"Storage"}]},"parameters":[{"id":1176,"name":"type","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"storage type, default: 'local'\r\n@example:\r\n Storage('local').set(a, [1, 2, 3]);\r\n Storage('session').get('a');"}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'local'","text":{"comment":"

storage type, default: 'local'\n@example:\n Storage('local').set(a, [1, 2, 3]);\n Storage('session').get('a');

\n"}}],"type":{"type":"reflection","declaration":{"id":1177,"name":"default","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":1186,"name":"get","kind":2048,"kindString":"Method","flags":{},"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":70,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L70"}],"signatures":[{"id":1187,"name":"get","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[{"kind":"text","text":"Storage.getLocal 获取Storage"}]},"parameters":[{"id":1188,"name":"key","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Storage key"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

Storage key

\n"}}],"type":{"type":"intrinsic","name":"any"},"is":{"declaration":false},"location":{"query":"web-utils/src/storage.Function.default","hash":"default.get.get"},"text":{"comment":"

Storage.getLocal 获取Storage

\n"},"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":70,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L70"}],"parentId":1174}],"is":{"declaration":true},"location":{"query":"web-utils/src/storage.Function.default","hash":"default.get"},"text":{},"parentId":1174},{"id":1189,"name":"remove","kind":2048,"kindString":"Method","flags":{},"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":103,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L103"}],"signatures":[{"id":1190,"name":"remove","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[{"kind":"text","text":"Storage.removeLocal 删除Storage"}]},"parameters":[{"id":1191,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"Storage key"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

Storage key

\n"}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"web-utils/src/storage.Function.default","hash":"default.remove.remove"},"text":{"comment":"

Storage.removeLocal 删除Storage

\n"},"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":103,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L103"}],"parentId":1174}],"is":{"declaration":true},"location":{"query":"web-utils/src/storage.Function.default","hash":"default.remove"},"text":{},"parentId":1174},{"id":1178,"name":"set","kind":2048,"kindString":"Method","flags":{},"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":50,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L50"}],"signatures":[{"id":1179,"name":"set","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[{"kind":"text","text":"Storage.setLocal 设置Storage"}]},"parameters":[{"id":1180,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"Storage key"}]},"type":{"type":"intrinsic","name":"string"},"text":{"comment":"

Storage key

\n"}},{"id":1181,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"Storage value"}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reflection","declaration":{"id":1182,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"sources":[{"fileName":"web-utils/src/storage.ts","line":54,"character":10,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L54"}],"indexSignature":{"id":1183,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"parameters":[{"id":1184,"name":"key","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"unknown"}}}}]},"text":{"comment":"

Storage value

\n"}},{"id":1185,"name":"expiration","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"defaultValue":"DEFAULT_EXPIRATION","text":{}}],"type":{"type":"intrinsic","name":"void"},"is":{"declaration":false},"location":{"query":"web-utils/src/storage.Function.default","hash":"default.set.set"},"text":{"comment":"

Storage.setLocal 设置Storage

\n"},"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":50,"character":4,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L50"}],"parentId":1174}],"is":{"declaration":true},"location":{"query":"web-utils/src/storage.Function.default","hash":"default.set"},"text":{},"parentId":1174}],"groups":[{"title":"Methods","children":[1186,1189,1178]}],"sources":[{"fileName":"web-utils/src/storage.ts","line":44,"character":9,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L44"}],"location":{"query":"web-utils/src/storage.Function.default","hash":"default"}}},"is":{"declaration":false},"location":{"query":"web-utils/src/storage.Function.default","hash":"default"},"text":{"comment":"

Storage

\n"},"sources":[{"fileName":"web-utils/src/storage.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/web-utils/src/storage.ts","line":41,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/4b32e82/utils/packages/web-utils/src/storage.ts#L41"}],"parentId":1174}],"is":{"declaration":true},"location":{"query":"web-utils/src/storage.Function.default","hash":""},"text":{},"parentId":1173} diff --git a/docs/v1.0.0-beta01/data/yafKindSymbols.json b/docs/v1.0.0-beta01/data/yafKindSymbols.json new file mode 100644 index 00000000..0057617b --- /dev/null +++ b/docs/v1.0.0-beta01/data/yafKindSymbols.json @@ -0,0 +1 @@ +{"1":{"className":"namespace","symbol":"N"},"2":{"className":"namespace","symbol":"N"},"4":{"className":"namespace","symbol":"N"},"8":{"className":"enum","symbol":"E"},"16":{"className":"property","symbol":"P"},"32":{"className":"variable","symbol":"V"},"64":{"className":"function","symbol":"F"},"128":{"className":"class","symbol":"C"},"256":{"className":"interface","symbol":"I"},"512":{"className":"constructor","symbol":"C"},"1024":{"className":"property","symbol":"P"},"2048":{"className":"method","symbol":"M"},"4096":{"className":"function","symbol":"F"},"8192":{"className":"property","symbol":"P"},"16384":{"className":"constructor","symbol":"C"},"32768":{"className":"property","symbol":"P"},"65536":{"className":"typealias","symbol":"T"},"131072":{"className":"typealias","symbol":"T"},"262144":{"className":"accessor","symbol":"A"},"524288":{"className":"accessor","symbol":"A"},"1048576":{"className":"accessor","symbol":"A"},"2097152":{"className":"interface","symbol":"I"},"4194304":{"className":"typealias","symbol":"T"},"8388608":{"className":"reference","symbol":"R"}} diff --git a/docs/v1.0.0-beta01/data/yafNavigationMenu.json b/docs/v1.0.0-beta01/data/yafNavigationMenu.json new file mode 100644 index 00000000..b5a4ebbb --- /dev/null +++ b/docs/v1.0.0-beta01/data/yafNavigationMenu.json @@ -0,0 +1 @@ +{"1":{"children":{"2":{"children":{}},"6":{"children":{"8":{"children":{"10":{"children":{}}}},"14":{"children":{"16":{"children":{}},"20":{"children":{}},"24":{"children":{}}}},"28":{"children":{"30":{"children":{}},"34":{"children":{}},"38":{"children":{}}}},"42":{"children":{"44":{"children":{}},"48":{"children":{}},"52":{"children":{}}}},"56":{"children":{"58":{"children":{}},"62":{"children":{}},"66":{"children":{}}}},"70":{"children":{"72":{"children":{}},"76":{"children":{}},"80":{"children":{}}}},"84":{"children":{"86":{"children":{}},"90":{"children":{}},"94":{"children":{}}}},"98":{"children":{"100":{"children":{}},"104":{"children":{}},"108":{"children":{}}}},"112":{"children":{"114":{"children":{}},"118":{"children":{}},"122":{"children":{}}}},"126":{"children":{"128":{"children":{}},"132":{"children":{}},"136":{"children":{}}}},"140":{"children":{"142":{"children":{}},"146":{"children":{}},"150":{"children":{}}}}}}}},"154":{"children":{"155":{"children":{}},"158":{"children":{}},"161":{"children":{}},"164":{"children":{}},"167":{"children":{}},"170":{"children":{}},"174":{"children":{}},"178":{"children":{}},"183":{"children":{}},"187":{"children":{}},"192":{"children":{}},"195":{"children":{}},"199":{"children":{}},"203":{"children":{}},"211":{"children":{}},"216":{"children":{}},"224":{"children":{}},"228":{"children":{}},"232":{"children":{}},"240":{"children":{}},"249":{"children":{}},"258":{"children":{}},"261":{"children":{}},"265":{"children":{}},"268":{"children":{}},"272":{"children":{}},"275":{"children":{}},"278":{"children":{}},"282":{"children":{}},"290":{"children":{}},"293":{"children":{}},"296":{"children":{}},"299":{"children":{}},"300":{"children":{}},"301":{"children":{}}}},"304":{"children":{"305":{"children":{}},"311":{"children":{}}}},"312":{"children":{"313":{"children":{}},"316":{"children":{}},"319":{"children":{}},"323":{"children":{}}}},"327":{"children":{"328":{"children":{}},"331":{"children":{}},"334":{"children":{}},"337":{"children":{}},"340":{"children":{}},"343":{"children":{}}}},"346":{"children":{"347":{"children":{}},"349":{"children":{}},"352":{"children":{}},"356":{"children":{}}}},"359":{"children":{"360":{"children":{}},"363":{"children":{}},"366":{"children":{}},"370":{"children":{}},"374":{"children":{}},"378":{"children":{}},"382":{"children":{}}}},"391":{"children":{"392":{"children":{}},"401":{"children":{}},"408":{"children":{}},"414":{"children":{}},"421":{"children":{}},"431":{"children":{}},"440":{"children":{}},"446":{"children":{}},"456":{"children":{}},"466":{"children":{}},"473":{"children":{}},"488":{"children":{}},"491":{"children":{}},"502":{"children":{}},"510":{"children":{}},"512":{"children":{}}}},"540":{"children":{"1301":{"children":{}},"1302":{"children":{}},"1303":{"children":{}},"1304":{"children":{}},"1305":{"children":{}},"1306":{"children":{}},"1307":{"children":{}},"1308":{"children":{}},"1309":{"children":{}},"1310":{"children":{}},"1311":{"children":{}},"1312":{"children":{}},"1313":{"children":{}},"1314":{"children":{}},"1315":{"children":{}},"1316":{"children":{}},"1317":{"children":{}},"1318":{"children":{}},"1319":{"children":{}},"1320":{"children":{}},"1321":{"children":{}},"1322":{"children":{}},"1323":{"children":{}},"1324":{"children":{}},"1325":{"children":{}},"1326":{"children":{}},"1327":{"children":{}},"1328":{"children":{}},"1329":{"children":{}},"1330":{"children":{}},"1331":{"children":{}},"1332":{"children":{}},"1333":{"children":{}},"1334":{"children":{}},"1335":{"children":{}},"1336":{"children":{}},"1337":{"children":{}},"1338":{"children":{}},"1339":{"children":{}},"1340":{"children":{}},"1341":{"children":{}},"1342":{"children":{}},"1343":{"children":{}},"1344":{"children":{}},"1345":{"children":{}},"1346":{"children":{}},"1347":{"children":{}},"1348":{"children":{}},"1349":{"children":{}},"1350":{"children":{}},"1351":{"children":{}},"1352":{"children":{}},"1353":{"children":{}},"1354":{"children":{}},"1355":{"children":{}},"1356":{"children":{}},"1357":{"children":{}},"1358":{"children":{}},"1359":{"children":{}},"1360":{"children":{}},"1361":{"children":{}},"1362":{"children":{}},"1363":{"children":{}},"1364":{"children":{}},"1365":{"children":{}},"1366":{"children":{}},"1367":{"children":{}},"1368":{"children":{}},"1369":{"children":{}},"1370":{"children":{}},"1371":{"children":{}},"1372":{"children":{}},"1373":{"children":{}},"1374":{"children":{}},"1375":{"children":{}},"1376":{"children":{}},"1377":{"children":{}},"1378":{"children":{}},"1379":{"children":{}},"1380":{"children":{}},"1381":{"children":{}},"1382":{"children":{}},"1383":{"children":{}},"1384":{"children":{}},"1385":{"children":{}},"1386":{"children":{}},"1387":{"children":{}},"1388":{"children":{}},"1389":{"children":{}},"1390":{"children":{}},"1391":{"children":{}},"1392":{"children":{}},"1393":{"children":{}},"1394":{"children":{}},"1395":{"children":{}},"1396":{"children":{}},"1397":{"children":{}},"1398":{"children":{}},"1399":{"children":{}},"1400":{"children":{}},"1401":{"children":{}},"1402":{"children":{}},"1403":{"children":{}},"1404":{"children":{}},"1405":{"children":{}},"1406":{"children":{}},"1407":{"children":{}},"1408":{"children":{}},"1409":{"children":{}},"1410":{"children":{}},"1411":{"children":{}},"1412":{"children":{}},"1413":{"children":{}},"1414":{"children":{}},"1415":{"children":{}},"1416":{"children":{}},"1417":{"children":{}},"1418":{"children":{}},"1419":{"children":{}},"1420":{"children":{}},"1421":{"children":{}},"1422":{"children":{}}}},"541":{"children":{"542":{"children":{}},"545":{"children":{}},"549":{"children":{}},"553":{"children":{}}}},"557":{"children":{"558":{"children":{}},"561":{"children":{}},"564":{"children":{}},"569":{"children":{}},"572":{"children":{}},"576":{"children":{}},"580":{"children":{}},"585":{"children":{}},"589":{"children":{}},"592":{"children":{}},"597":{"children":{}},"600":{"children":{}}}},"603":{"children":{"604":{"children":{}},"613":{"children":{}},"616":{"children":{}},"627":{"children":{}},"631":{"children":{}},"636":{"children":{}},"639":{"children":{}}}},"643":{"children":{"644":{"children":{}},"648":{"children":{}}}},"651":{"children":{"652":{"children":{}},"655":{"children":{}},"658":{"children":{}},"661":{"children":{}},"664":{"children":{}},"667":{"children":{}},"670":{"children":{}},"673":{"children":{}},"677":{"children":{}},"680":{"children":{}},"684":{"children":{}},"687":{"children":{}}}},"690":{"children":{"691":{"children":{}},"694":{"children":{}}}},"699":{"children":{"700":{"children":{}},"703":{"children":{}},"706":{"children":{}},"709":{"children":{}},"712":{"children":{}},"715":{"children":{}},"718":{"children":{}},"722":{"children":{}},"725":{"children":{}},"729":{"children":{}}}},"732":{"children":{"733":{"children":{"735":{"children":{"737":{"children":{}},"749":{"children":{}},"753":{"children":{}},"758":{"children":{}},"762":{"children":{}},"766":{"children":{}},"772":{"children":{}},"776":{"children":{}}}},"780":{"children":{"782":{"children":{}},"785":{"children":{}},"788":{"children":{}},"791":{"children":{}},"794":{"children":{}},"797":{"children":{}},"800":{"children":{}},"803":{"children":{}},"807":{"children":{}},"811":{"children":{}},"816":{"children":{}},"819":{"children":{}},"823":{"children":{}},"827":{"children":{}},"831":{"children":{}},"836":{"children":{}}}},"842":{"children":{"844":{"children":{}},"850":{"children":{}},"854":{"children":{}},"860":{"children":{}},"866":{"children":{}}}},"869":{"children":{"871":{"children":{}},"872":{"children":{}}}},"876":{"children":{"878":{"children":{"880":{"children":{}},"881":{"children":{}},"882":{"children":{}},"883":{"children":{}},"884":{"children":{}},"885":{"children":{}},"886":{"children":{}},"887":{"children":{}},"888":{"children":{}},"889":{"children":{}},"890":{"children":{}},"891":{"children":{}},"892":{"children":{}},"893":{"children":{}},"894":{"children":{}},"895":{"children":{}},"896":{"children":{}},"897":{"children":{}},"898":{"children":{}},"899":{"children":{}},"900":{"children":{}},"901":{"children":{}},"902":{"children":{}},"903":{"children":{}}}},"904":{"children":{}}}},"908":{"children":{"910":{"children":{}},"915":{"children":{}},"920":{"children":{}},"925":{"children":{}},"930":{"children":{}},"935":{"children":{}},"940":{"children":{}},"945":{"children":{}},"950":{"children":{}}}},"955":{"children":{}}}},"1423":{"children":{"1425":{"children":{}},"1437":{"children":{}},"1441":{"children":{}},"1446":{"children":{}},"1450":{"children":{}},"1454":{"children":{}},"1460":{"children":{}},"1464":{"children":{}}}},"1468":{"children":{"1470":{"children":{}},"1473":{"children":{}},"1476":{"children":{}},"1479":{"children":{}},"1482":{"children":{}},"1485":{"children":{}},"1488":{"children":{}},"1491":{"children":{}},"1495":{"children":{}},"1499":{"children":{}},"1504":{"children":{}},"1507":{"children":{}},"1511":{"children":{}},"1515":{"children":{}},"1519":{"children":{}},"1524":{"children":{}}}},"1530":{"children":{"1532":{"children":{}},"1538":{"children":{}},"1542":{"children":{}},"1548":{"children":{}},"1554":{"children":{}}}},"1557":{"children":{"1559":{"children":{}},"1560":{"children":{}}}},"1564":{"children":{"1566":{"children":{"1568":{"children":{}},"1569":{"children":{}},"1570":{"children":{}},"1571":{"children":{}},"1572":{"children":{}},"1573":{"children":{}},"1574":{"children":{}},"1575":{"children":{}},"1576":{"children":{}},"1577":{"children":{}},"1578":{"children":{}},"1579":{"children":{}},"1580":{"children":{}},"1581":{"children":{}},"1582":{"children":{}},"1583":{"children":{}},"1584":{"children":{}},"1585":{"children":{}},"1586":{"children":{}},"1587":{"children":{}},"1588":{"children":{}},"1589":{"children":{}},"1590":{"children":{}},"1591":{"children":{}}}},"1592":{"children":{}}}},"1596":{"children":{"1598":{"children":{}},"1603":{"children":{}},"1608":{"children":{}},"1613":{"children":{}},"1618":{"children":{}},"1623":{"children":{}},"1628":{"children":{}},"1633":{"children":{}},"1638":{"children":{}}}},"1643":{"children":{}}}},"956":{"children":{"957":{"children":{}},"959":{"children":{}}}},"962":{"children":{"963":{"children":{}},"966":{"children":{}},"973":{"children":{}}}},"976":{"children":{"977":{"children":{}},"979":{"children":{}},"983":{"children":{}}}},"987":{"children":{"988":{"children":{}},"990":{"children":{}},"992":{"children":{}},"996":{"children":{}},"1000":{"children":{}},"1004":{"children":{}},"1008":{"children":{}},"1012":{"children":{}},"1016":{"children":{}},"1019":{"children":{}},"1022":{"children":{}},"1027":{"children":{}},"1030":{"children":{}},"1036":{"children":{}},"1038":{"children":{}},"1044":{"children":{}},"1047":{"children":{}},"1051":{"children":{}},"1054":{"children":{}},"1056":{"children":{}}}},"1062":{"children":{"1063":{"children":{}},"1066":{"children":{}},"1069":{"children":{}},"1074":{"children":{}},"1079":{"children":{}}}},"1082":{"children":{"1083":{"children":{}},"1086":{"children":{}},"1089":{"children":{}},"1091":{"children":{}},"1098":{"children":{}}}},"1102":{"children":{"1644":{"children":{}},"1645":{"children":{}},"1646":{"children":{}},"1647":{"children":{}},"1648":{"children":{}},"1649":{"children":{}},"1650":{"children":{}},"1651":{"children":{}},"1652":{"children":{}},"1653":{"children":{}},"1654":{"children":{}},"1655":{"children":{}},"1656":{"children":{}},"1657":{"children":{}},"1658":{"children":{}},"1659":{"children":{}},"1660":{"children":{}},"1661":{"children":{}},"1662":{"children":{}},"1663":{"children":{}},"1664":{"children":{}},"1665":{"children":{}},"1666":{"children":{}},"1667":{"children":{}},"1668":{"children":{}},"1669":{"children":{}},"1670":{"children":{}},"1671":{"children":{}},"1672":{"children":{}},"1673":{"children":{}},"1674":{"children":{}},"1675":{"children":{}},"1676":{"children":{}},"1677":{"children":{}},"1678":{"children":{}},"1679":{"children":{}},"1680":{"children":{}},"1681":{"children":{}},"1682":{"children":{}},"1683":{"children":{}},"1684":{"children":{}},"1685":{"children":{}},"1686":{"children":{}},"1687":{"children":{}},"1688":{"children":{}},"1689":{"children":{}},"1690":{"children":{}},"1691":{"children":{}},"1692":{"children":{}},"1693":{"children":{}},"1694":{"children":{}},"1695":{"children":{}},"1696":{"children":{}},"1697":{"children":{}},"1698":{"children":{}},"1699":{"children":{}},"1700":{"children":{}},"1701":{"children":{}},"1702":{"children":{}},"1703":{"children":{}},"1704":{"children":{}},"1705":{"children":{}},"1706":{"children":{}},"1707":{"children":{}},"1708":{"children":{}},"1709":{"children":{}},"1710":{"children":{}}}},"1103":{"children":{"1104":{"children":{}}}},"1107":{"children":{"1108":{"children":{}},"1112":{"children":{}},"1117":{"children":{}},"1120":{"children":{}},"1123":{"children":{}},"1126":{"children":{}},"1129":{"children":{}}}},"1134":{"children":{"1135":{"children":{}}}},"1138":{"children":{"1139":{"children":{}},"1141":{"children":{}},"1143":{"children":{}},"1145":{"children":{}},"1147":{"children":{}},"1152":{"children":{}},"1154":{"children":{}}}},"1155":{"children":{"1156":{"children":{"1157":{"children":{}},"1158":{"children":{}}}}}},"1159":{"children":{"1160":{"children":{}},"1162":{"children":{}},"1164":{"children":{}},"1167":{"children":{}},"1169":{"children":{}},"1171":{"children":{}}}},"1173":{"children":{"1174":{"children":{}}}},"1192":{"children":{"1193":{"children":{}},"1196":{"children":{}},"1203":{"children":{}},"1206":{"children":{}},"1212":{"children":{}},"1215":{"children":{}},"1218":{"children":{}}}},"1221":{"children":{"1711":{"children":{}},"1712":{"children":{}},"1713":{"children":{}},"1714":{"children":{}},"1715":{"children":{}},"1723":{"children":{}},"1727":{"children":{}},"1732":{"children":{}},"1734":{"children":{}},"1739":{"children":{}},"1742":{"children":{}},"1745":{"children":{}},"1749":{"children":{}},"1753":{"children":{}},"1756":{"children":{}},"1759":{"children":{}},"1762":{"children":{}},"1766":{"children":{}},"1769":{"children":{}},"1773":{"children":{}},"1778":{"children":{}},"1784":{"children":{}},"1792":{"children":{}},"1798":{"children":{}},"1803":{"children":{}},"1807":{"children":{}},"1815":{"children":{}},"1818":{"children":{}},"1824":{"children":{}},"1827":{"children":{}},"1832":{"children":{}},"1835":{"children":{"1836":{"children":{}},"1837":{"children":{}}}},"1838":{"children":{}},"1839":{"children":{"1841":{"children":{}},"1842":{"children":{}}}},"1843":{"children":{}}}},"1222":{"children":{"1847":{"children":{}},"1850":{"children":{}},"1854":{"children":{}},"1858":{"children":{}},"1861":{"children":{}},"1865":{"children":{}},"1868":{"children":{}}}},"1223":{"children":{"1224":{"children":{}},"1233":{"children":{}},"1242":{"children":{}},"1246":{"children":{}},"1254":{"children":{}},"1259":{"children":{"1261":{"children":{}},"1271":{"children":{}},"1281":{"children":{}},"1286":{"children":{}},"1295":{"children":{}}}}}},"project":{"children":{}}} diff --git a/docs/v1.0.0-beta01/data/yafNeedsParenthesis.json b/docs/v1.0.0-beta01/data/yafNeedsParenthesis.json new file mode 100644 index 00000000..181871b2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/yafNeedsParenthesis.json @@ -0,0 +1 @@ +{"array":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"conditional":{"none":false,"templateLiteralElement":false,"arrayElement":true,"indexedAccessElement":false,"conditionalCheck":true,"conditionalExtends":true,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":true,"inferredConstraint":true,"intersectionElement":true,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":true,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":true,"referenceTypeArgument":false,"restElement":true,"tupleElement":false,"unionElement":true},"indexedAccess":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"inferred":{"none":false,"templateLiteralElement":false,"arrayElement":true,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":true,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":true,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":true,"tupleElement":false,"unionElement":false},"intersection":{"none":false,"templateLiteralElement":false,"arrayElement":true,"indexedAccessElement":false,"conditionalCheck":true,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":true,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":true,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":true,"referenceTypeArgument":false,"restElement":true,"tupleElement":false,"unionElement":false},"intrinsic":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"literal":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"mapped":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"optional":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"predicate":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"query":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"reference":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"reflection":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"rest":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"template-literal":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"tuple":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"named-tuple-member":{"none":false,"templateLiteralElement":false,"arrayElement":false,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":false,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":false,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"typeOperator":{"none":false,"templateLiteralElement":false,"arrayElement":true,"indexedAccessElement":false,"conditionalCheck":false,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":true,"inferredConstraint":false,"intersectionElement":false,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":true,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":false,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"union":{"none":false,"templateLiteralElement":false,"arrayElement":true,"indexedAccessElement":false,"conditionalCheck":true,"conditionalExtends":false,"conditionalTrue":false,"conditionalFalse":false,"indexedIndex":false,"indexedObject":true,"inferredConstraint":false,"intersectionElement":true,"mappedName":false,"mappedParameter":false,"mappedTemplate":false,"optionalElement":true,"predicateTarget":false,"queryTypeTarget":false,"typeOperatorTarget":true,"referenceTypeArgument":false,"restElement":false,"tupleElement":false,"unionElement":false},"unknown":{"none":false,"templateLiteralElement":true,"arrayElement":true,"indexedAccessElement":true,"conditionalCheck":true,"conditionalExtends":true,"conditionalTrue":true,"conditionalFalse":true,"indexedIndex":true,"indexedObject":true,"inferredConstraint":true,"intersectionElement":true,"mappedName":true,"mappedParameter":true,"mappedTemplate":true,"optionalElement":true,"predicateTarget":true,"queryTypeTarget":true,"typeOperatorTarget":true,"referenceTypeArgument":true,"restElement":true,"tupleElement":true,"unionElement":true}} diff --git a/docs/v1.0.0-beta01/data/yafReflectionKind.json b/docs/v1.0.0-beta01/data/yafReflectionKind.json new file mode 100644 index 00000000..0d1380fd --- /dev/null +++ b/docs/v1.0.0-beta01/data/yafReflectionKind.json @@ -0,0 +1 @@ +{"1":"Project","2":"Module","4":"Namespace","8":"Enum","16":"EnumMember","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","4096":"CallSignature","8192":"IndexSignature","16384":"ConstructorSignature","32768":"Parameter","65536":"TypeLiteral","131072":"TypeParameter","262144":"Accessor","524288":"GetSignature","1048576":"SetSignature","2097152":"ObjectLiteral","4194304":"TypeAlias","8388608":"Reference","Project":1,"Module":2,"Namespace":4,"Enum":8,"EnumMember":16,"Variable":32,"Function":64,"Class":128,"Interface":256,"Constructor":512,"Property":1024,"Method":2048,"CallSignature":4096,"IndexSignature":8192,"ConstructorSignature":16384,"Parameter":32768,"TypeLiteral":65536,"TypeParameter":131072,"Accessor":262144,"GetSignature":524288,"SetSignature":1048576,"ObjectLiteral":2097152,"TypeAlias":4194304,"Reference":8388608,"All":16777215,"ClassOrInterface":384,"VariableOrProperty":1056,"FunctionOrMethod":2112,"ClassMember":265728,"SomeSignature":1601536,"SomeModule":6,"SomeType":4391168,"SomeValue":2097248,"SomeMember":265232,"SomeExport":12583406,"ExportContainer":7,"Inheritable":273920,"ContainsCallSignatures":2624,"SignatureContainer":264768} diff --git a/docs/v1.0.0-beta01/data/yafReflectionMap.json b/docs/v1.0.0-beta01/data/yafReflectionMap.json new file mode 100644 index 00000000..d65960b2 --- /dev/null +++ b/docs/v1.0.0-beta01/data/yafReflectionMap.json @@ -0,0 +1 @@ +{"1":{"id":1,"name":"Easing","query":"Module.Easing","hash":"","kind":2,"flags":{}},"2":{"id":2,"parentId":1,"name":"EasingFunction","query":"Easing.TypeAlias.EasingFunction","hash":"","kind":4194304,"flags":{}},"6":{"id":6,"parentId":1,"name":"default","query":"Easing.Variable.default","hash":"","kind":32,"flags":{"isConst":true}},"8":{"id":8,"parentId":6,"name":"Linear","query":"Easing.Variable.default","hash":"Linear","kind":1024,"flags":{}},"10":{"id":10,"parentId":6,"name":"None","query":"Easing.Variable.default","hash":"Linear.None","kind":4096,"flags":{}},"14":{"id":14,"parentId":6,"name":"Quadratic","query":"Easing.Variable.default","hash":"Quadratic","kind":1024,"flags":{}},"16":{"id":16,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Quadratic.In","kind":4096,"flags":{}},"20":{"id":20,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Quadratic.Out","kind":4096,"flags":{}},"24":{"id":24,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Quadratic.InOut","kind":4096,"flags":{}},"28":{"id":28,"parentId":6,"name":"Cubic","query":"Easing.Variable.default","hash":"Cubic","kind":1024,"flags":{}},"30":{"id":30,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Cubic.In","kind":4096,"flags":{}},"34":{"id":34,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Cubic.Out","kind":4096,"flags":{}},"38":{"id":38,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Cubic.InOut","kind":4096,"flags":{}},"42":{"id":42,"parentId":6,"name":"Quartic","query":"Easing.Variable.default","hash":"Quartic","kind":1024,"flags":{}},"44":{"id":44,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Quartic.In","kind":4096,"flags":{}},"48":{"id":48,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Quartic.Out","kind":4096,"flags":{}},"52":{"id":52,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Quartic.InOut","kind":4096,"flags":{}},"56":{"id":56,"parentId":6,"name":"Quintic","query":"Easing.Variable.default","hash":"Quintic","kind":1024,"flags":{}},"58":{"id":58,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Quintic.In","kind":4096,"flags":{}},"62":{"id":62,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Quintic.Out","kind":4096,"flags":{}},"66":{"id":66,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Quintic.InOut","kind":4096,"flags":{}},"70":{"id":70,"parentId":6,"name":"Sinusoidal","query":"Easing.Variable.default","hash":"Sinusoidal","kind":1024,"flags":{}},"72":{"id":72,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Sinusoidal.In","kind":4096,"flags":{}},"76":{"id":76,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Sinusoidal.Out","kind":4096,"flags":{}},"80":{"id":80,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Sinusoidal.InOut","kind":4096,"flags":{}},"84":{"id":84,"parentId":6,"name":"Exponential","query":"Easing.Variable.default","hash":"Exponential","kind":1024,"flags":{}},"86":{"id":86,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Exponential.In","kind":4096,"flags":{}},"90":{"id":90,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Exponential.Out","kind":4096,"flags":{}},"94":{"id":94,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Exponential.InOut","kind":4096,"flags":{}},"98":{"id":98,"parentId":6,"name":"Circular","query":"Easing.Variable.default","hash":"Circular","kind":1024,"flags":{}},"100":{"id":100,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Circular.In","kind":4096,"flags":{}},"104":{"id":104,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Circular.Out","kind":4096,"flags":{}},"108":{"id":108,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Circular.InOut","kind":4096,"flags":{}},"112":{"id":112,"parentId":6,"name":"Elastic","query":"Easing.Variable.default","hash":"Elastic","kind":1024,"flags":{}},"114":{"id":114,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Elastic.In","kind":4096,"flags":{}},"118":{"id":118,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Elastic.Out","kind":4096,"flags":{}},"122":{"id":122,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Elastic.InOut","kind":4096,"flags":{}},"126":{"id":126,"parentId":6,"name":"Back","query":"Easing.Variable.default","hash":"Back","kind":1024,"flags":{}},"128":{"id":128,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Back.In","kind":4096,"flags":{}},"132":{"id":132,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Back.Out","kind":4096,"flags":{}},"136":{"id":136,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Back.InOut","kind":4096,"flags":{}},"140":{"id":140,"parentId":6,"name":"Bounce","query":"Easing.Variable.default","hash":"Bounce","kind":1024,"flags":{}},"142":{"id":142,"parentId":6,"name":"In","query":"Easing.Variable.default","hash":"Bounce.In","kind":4096,"flags":{}},"146":{"id":146,"parentId":6,"name":"Out","query":"Easing.Variable.default","hash":"Bounce.Out","kind":4096,"flags":{}},"150":{"id":150,"parentId":6,"name":"InOut","query":"Easing.Variable.default","hash":"Bounce.InOut","kind":4096,"flags":{}},"154":{"id":154,"name":"Array","query":"Module.Array","hash":"","kind":2,"flags":{}},"155":{"id":155,"parentId":154,"name":"arrayMax","query":"Array.Function.arrayMax","hash":"","kind":64,"flags":{}},"156":{"id":156,"parentId":155,"name":"arrayMax","query":"Array.Function.arrayMax","hash":"arrayMax","kind":4096,"flags":{}},"158":{"id":158,"parentId":154,"name":"arrayMin","query":"Array.Function.arrayMin","hash":"","kind":64,"flags":{}},"159":{"id":159,"parentId":158,"name":"arrayMin","query":"Array.Function.arrayMin","hash":"arrayMin","kind":4096,"flags":{}},"161":{"id":161,"parentId":154,"name":"arrayAverage","query":"Array.Function.arrayAverage","hash":"","kind":64,"flags":{}},"162":{"id":162,"parentId":161,"name":"arrayAverage","query":"Array.Function.arrayAverage","hash":"arrayAverage","kind":4096,"flags":{}},"164":{"id":164,"parentId":154,"name":"arraySum","query":"Array.Function.arraySum","hash":"","kind":64,"flags":{}},"165":{"id":165,"parentId":164,"name":"arraySum","query":"Array.Function.arraySum","hash":"arraySum","kind":4096,"flags":{}},"167":{"id":167,"parentId":154,"name":"size","query":"Array.Function.size","hash":"","kind":64,"flags":{}},"168":{"id":168,"parentId":167,"name":"size","query":"Array.Function.size","hash":"size","kind":4096,"flags":{}},"170":{"id":170,"parentId":154,"name":"arrayToCSV","query":"Array.Function.arrayToCSV","hash":"","kind":64,"flags":{}},"171":{"id":171,"parentId":170,"name":"arrayToCSV","query":"Array.Function.arrayToCSV","hash":"arrayToCSV","kind":4096,"flags":{}},"174":{"id":174,"parentId":154,"name":"castArray","query":"Array.Function.castArray","hash":"","kind":64,"flags":{}},"175":{"id":175,"parentId":174,"name":"castArray","query":"Array.Function.castArray","hash":"castArray","kind":4096,"flags":{}},"178":{"id":178,"parentId":154,"name":"chunk","query":"Array.Function.chunk","hash":"","kind":64,"flags":{}},"179":{"id":179,"parentId":178,"name":"chunk","query":"Array.Function.chunk","hash":"chunk","kind":4096,"flags":{}},"183":{"id":183,"parentId":154,"name":"compact","query":"Array.Function.compact","hash":"","kind":64,"flags":{}},"184":{"id":184,"parentId":183,"name":"compact","query":"Array.Function.compact","hash":"compact","kind":4096,"flags":{}},"187":{"id":187,"parentId":154,"name":"countOccurrences","query":"Array.Function.countOccurrences","hash":"","kind":64,"flags":{}},"188":{"id":188,"parentId":187,"name":"countOccurrences","query":"Array.Function.countOccurrences","hash":"countOccurrences","kind":4096,"flags":{}},"192":{"id":192,"parentId":154,"name":"deepFlatten","query":"Array.Function.deepFlatten","hash":"","kind":64,"flags":{}},"193":{"id":193,"parentId":192,"name":"deepFlatten","query":"Array.Function.deepFlatten","hash":"deepFlatten","kind":4096,"flags":{}},"195":{"id":195,"parentId":154,"name":"flatten","query":"Array.Function.flatten","hash":"","kind":64,"flags":{}},"196":{"id":196,"parentId":195,"name":"flatten","query":"Array.Function.flatten","hash":"flatten","kind":4096,"flags":{}},"199":{"id":199,"parentId":154,"name":"difference","query":"Array.Function.difference","hash":"","kind":64,"flags":{}},"200":{"id":200,"parentId":199,"name":"difference","query":"Array.Function.difference","hash":"difference","kind":4096,"flags":{}},"203":{"id":203,"parentId":154,"name":"differenceBy","query":"Array.Function.differenceBy","hash":"","kind":64,"flags":{}},"204":{"id":204,"parentId":203,"name":"differenceBy","query":"Array.Function.differenceBy","hash":"differenceBy","kind":4096,"flags":{}},"211":{"id":211,"parentId":154,"name":"drop","query":"Array.Function.drop","hash":"","kind":64,"flags":{}},"212":{"id":212,"parentId":211,"name":"drop","query":"Array.Function.drop","hash":"drop","kind":4096,"flags":{}},"216":{"id":216,"parentId":154,"name":"dropWhile","query":"Array.Function.dropWhile","hash":"","kind":64,"flags":{}},"217":{"id":217,"parentId":216,"name":"dropWhile","query":"Array.Function.dropWhile","hash":"dropWhile","kind":4096,"flags":{}},"224":{"id":224,"parentId":154,"name":"indexOfAll","query":"Array.Function.indexOfAll","hash":"","kind":64,"flags":{}},"225":{"id":225,"parentId":224,"name":"indexOfAll","query":"Array.Function.indexOfAll","hash":"indexOfAll","kind":4096,"flags":{}},"228":{"id":228,"parentId":154,"name":"intersection","query":"Array.Function.intersection","hash":"","kind":64,"flags":{}},"229":{"id":229,"parentId":228,"name":"intersection","query":"Array.Function.intersection","hash":"intersection","kind":4096,"flags":{}},"232":{"id":232,"parentId":154,"name":"intersectionBy","query":"Array.Function.intersectionBy","hash":"","kind":64,"flags":{}},"233":{"id":233,"parentId":232,"name":"intersectionBy","query":"Array.Function.intersectionBy","hash":"intersectionBy","kind":4096,"flags":{}},"240":{"id":240,"parentId":154,"name":"intersectionWith","query":"Array.Function.intersectionWith","hash":"","kind":64,"flags":{}},"241":{"id":241,"parentId":240,"name":"intersectionWith","query":"Array.Function.intersectionWith","hash":"intersectionWith","kind":4096,"flags":{}},"249":{"id":249,"parentId":154,"name":"negate","query":"Array.Function.negate","hash":"","kind":64,"flags":{}},"250":{"id":250,"parentId":249,"name":"negate","query":"Array.Function.negate","hash":"negate","kind":4096,"flags":{}},"258":{"id":258,"parentId":154,"name":"sample","query":"Array.Function.sample","hash":"","kind":64,"flags":{}},"259":{"id":259,"parentId":258,"name":"sample","query":"Array.Function.sample","hash":"sample","kind":4096,"flags":{}},"261":{"id":261,"parentId":154,"name":"sampleSize","query":"Array.Function.sampleSize","hash":"","kind":64,"flags":{}},"262":{"id":262,"parentId":261,"name":"sampleSize","query":"Array.Function.sampleSize","hash":"sampleSize","kind":4096,"flags":{}},"265":{"id":265,"parentId":154,"name":"shuffle","query":"Array.Function.shuffle","hash":"","kind":64,"flags":{}},"266":{"id":266,"parentId":265,"name":"shuffle","query":"Array.Function.shuffle","hash":"shuffle","kind":4096,"flags":{}},"268":{"id":268,"parentId":154,"name":"everyNth","query":"Array.Function.everyNth","hash":"","kind":64,"flags":{}},"269":{"id":269,"parentId":268,"name":"everyNth","query":"Array.Function.everyNth","hash":"everyNth","kind":4096,"flags":{}},"272":{"id":272,"parentId":154,"name":"unique","query":"Array.Function.unique","hash":"","kind":64,"flags":{}},"273":{"id":273,"parentId":272,"name":"unique","query":"Array.Function.unique","hash":"unique","kind":4096,"flags":{}},"275":{"id":275,"parentId":154,"name":"filterNonUnique","query":"Array.Function.filterNonUnique","hash":"","kind":64,"flags":{}},"276":{"id":276,"parentId":275,"name":"filterNonUnique","query":"Array.Function.filterNonUnique","hash":"filterNonUnique","kind":4096,"flags":{}},"278":{"id":278,"parentId":154,"name":"initializeArrayWithValues","query":"Array.Function.initializeArrayWithValues","hash":"","kind":64,"flags":{}},"279":{"id":279,"parentId":278,"name":"initializeArrayWithValues","query":"Array.Function.initializeArrayWithValues","hash":"initializeArrayWithValues","kind":4096,"flags":{}},"282":{"id":282,"parentId":154,"name":"remove","query":"Array.Function.remove","hash":"","kind":64,"flags":{}},"283":{"id":283,"parentId":282,"name":"remove","query":"Array.Function.remove","hash":"remove","kind":4096,"flags":{}},"290":{"id":290,"parentId":154,"name":"digitize","query":"Array.Function.digitize","hash":"","kind":64,"flags":{}},"291":{"id":291,"parentId":290,"name":"digitize","query":"Array.Function.digitize","hash":"digitize","kind":4096,"flags":{}},"293":{"id":293,"parentId":154,"name":"fibonacci","query":"Array.Function.fibonacci","hash":"","kind":64,"flags":{}},"294":{"id":294,"parentId":293,"name":"fibonacci","query":"Array.Function.fibonacci","hash":"fibonacci","kind":4096,"flags":{}},"296":{"id":296,"parentId":154,"name":"median","query":"Array.Function.median","hash":"","kind":64,"flags":{}},"297":{"id":297,"parentId":296,"name":"median","query":"Array.Function.median","hash":"median","kind":4096,"flags":{}},"299":{"id":299,"parentId":154,"name":"NumberArr","query":"Array.TypeAlias.NumberArr","hash":"","kind":4194304,"flags":{}},"300":{"id":300,"parentId":154,"name":"AnyArr","query":"Array.TypeAlias.AnyArr","hash":"","kind":4194304,"flags":{}},"301":{"id":301,"parentId":154,"name":"allEqual","query":"Array.Function.allEqual","hash":"","kind":64,"flags":{}},"302":{"id":302,"parentId":301,"name":"allEqual","query":"Array.Function.allEqual","hash":"allEqual","kind":4096,"flags":{}},"304":{"id":304,"name":"utils/src/await-to","query":"Module.utils/src/await-to","hash":"","kind":2,"flags":{}},"305":{"id":305,"parentId":304,"name":"to","query":"utils/src/await-to.Function.to","hash":"","kind":64,"flags":{}},"306":{"id":306,"parentId":305,"name":"to","query":"utils/src/await-to.Function.to","hash":"to","kind":4096,"flags":{}},"311":{"id":311,"parentId":304,"name":"default","query":"Module.utils/src/await-to","hash":"default","kind":8388608,"flags":{}},"312":{"id":312,"name":"Check.plus","query":"Check.Module.plus","hash":"","kind":2,"flags":{}},"313":{"id":313,"parentId":312,"name":"validatePassport","query":"Check.plus.Function.validatePassport","hash":"","kind":64,"flags":{}},"314":{"id":314,"parentId":313,"name":"validatePassport","query":"Check.plus.Function.validatePassport","hash":"validatePassport","kind":4096,"flags":{}},"316":{"id":316,"parentId":312,"name":"validateLicensePlate","query":"Check.plus.Function.validateLicensePlate","hash":"","kind":64,"flags":{}},"317":{"id":317,"parentId":316,"name":"validateLicensePlate","query":"Check.plus.Function.validateLicensePlate","hash":"validateLicensePlate","kind":4096,"flags":{}},"319":{"id":319,"parentId":312,"name":"checkPwdStrength","query":"Check.plus.Function.checkPwdStrength","hash":"","kind":64,"flags":{}},"320":{"id":320,"parentId":319,"name":"checkPwdStrength","query":"Check.plus.Function.checkPwdStrength","hash":"checkPwdStrength","kind":4096,"flags":{}},"323":{"id":323,"parentId":312,"name":"checkIdcard","query":"Check.plus.Function.checkIdcard","hash":"","kind":64,"flags":{}},"324":{"id":324,"parentId":323,"name":"checkIdcard","query":"Check.plus.Function.checkIdcard","hash":"checkIdcard","kind":4096,"flags":{}},"327":{"id":327,"name":"Check","query":"Module.Check","hash":"","kind":2,"flags":{}},"328":{"id":328,"parentId":327,"name":"isEmail","query":"Check.Function.isEmail","hash":"","kind":64,"flags":{}},"329":{"id":329,"parentId":328,"name":"isEmail","query":"Check.Function.isEmail","hash":"isEmail","kind":4096,"flags":{}},"331":{"id":331,"parentId":327,"name":"isIdCard","query":"Check.Function.isIdCard","hash":"","kind":64,"flags":{}},"332":{"id":332,"parentId":331,"name":"isIdCard","query":"Check.Function.isIdCard","hash":"isIdCard","kind":4096,"flags":{}},"334":{"id":334,"parentId":327,"name":"isUrl","query":"Check.Function.isUrl","hash":"","kind":64,"flags":{}},"335":{"id":335,"parentId":334,"name":"isUrl","query":"Check.Function.isUrl","hash":"isUrl","kind":4096,"flags":{}},"337":{"id":337,"parentId":327,"name":"isPhoneNumber","query":"Check.Function.isPhoneNumber","hash":"","kind":64,"flags":{}},"338":{"id":338,"parentId":337,"name":"isPhoneNumber","query":"Check.Function.isPhoneNumber","hash":"isPhoneNumber","kind":4096,"flags":{}},"340":{"id":340,"parentId":327,"name":"isPostalCode","query":"Check.Function.isPostalCode","hash":"","kind":64,"flags":{}},"341":{"id":341,"parentId":340,"name":"isPostalCode","query":"Check.Function.isPostalCode","hash":"isPostalCode","kind":4096,"flags":{}},"343":{"id":343,"parentId":327,"name":"isBankCard","query":"Check.Function.isBankCard","hash":"","kind":64,"flags":{}},"344":{"id":344,"parentId":343,"name":"isBankCard","query":"Check.Function.isBankCard","hash":"isBankCard","kind":4096,"flags":{}},"346":{"id":346,"name":"Color","query":"Module.Color","hash":"","kind":2,"flags":{}},"347":{"id":347,"parentId":346,"name":"randomHexColor","query":"Color.Function.randomHexColor","hash":"","kind":64,"flags":{}},"348":{"id":348,"parentId":347,"name":"randomHexColor","query":"Color.Function.randomHexColor","hash":"randomHexColor","kind":4096,"flags":{}},"349":{"id":349,"parentId":346,"name":"getColorRgbArr","query":"Color.Function.getColorRgbArr","hash":"","kind":64,"flags":{}},"350":{"id":350,"parentId":349,"name":"getColorRgbArr","query":"Color.Function.getColorRgbArr","hash":"getColorRgbArr","kind":4096,"flags":{}},"352":{"id":352,"parentId":346,"name":"getColorRgba","query":"Color.Function.getColorRgba","hash":"","kind":64,"flags":{}},"353":{"id":353,"parentId":352,"name":"getColorRgba","query":"Color.Function.getColorRgba","hash":"getColorRgba","kind":4096,"flags":{}},"356":{"id":356,"parentId":346,"name":"isTransparentColor","query":"Color.Function.isTransparentColor","hash":"","kind":64,"flags":{}},"357":{"id":357,"parentId":356,"name":"isTransparentColor","query":"Color.Function.isTransparentColor","hash":"isTransparentColor","kind":4096,"flags":{}},"359":{"id":359,"name":"Date","query":"Module.Date","hash":"","kind":2,"flags":{}},"360":{"id":360,"parentId":359,"name":"dayOfYear","query":"Date.Function.dayOfYear","hash":"","kind":64,"flags":{}},"361":{"id":361,"parentId":360,"name":"dayOfYear","query":"Date.Function.dayOfYear","hash":"dayOfYear","kind":4096,"flags":{}},"363":{"id":363,"parentId":359,"name":"getColonTimeFromDate","query":"Date.Function.getColonTimeFromDate","hash":"","kind":64,"flags":{}},"364":{"id":364,"parentId":363,"name":"getColonTimeFromDate","query":"Date.Function.getColonTimeFromDate","hash":"getColonTimeFromDate","kind":4096,"flags":{}},"366":{"id":366,"parentId":359,"name":"getDaysDiffBetweenDates","query":"Date.Function.getDaysDiffBetweenDates","hash":"","kind":64,"flags":{}},"367":{"id":367,"parentId":366,"name":"getDaysDiffBetweenDates","query":"Date.Function.getDaysDiffBetweenDates","hash":"getDaysDiffBetweenDates","kind":4096,"flags":{}},"370":{"id":370,"parentId":359,"name":"isAfterDate","query":"Date.Function.isAfterDate","hash":"","kind":64,"flags":{}},"371":{"id":371,"parentId":370,"name":"isAfterDate","query":"Date.Function.isAfterDate","hash":"isAfterDate","kind":4096,"flags":{}},"374":{"id":374,"parentId":359,"name":"isBeforeDate","query":"Date.Function.isBeforeDate","hash":"","kind":64,"flags":{}},"375":{"id":375,"parentId":374,"name":"isBeforeDate","query":"Date.Function.isBeforeDate","hash":"isBeforeDate","kind":4096,"flags":{}},"378":{"id":378,"parentId":359,"name":"daysLater","query":"Date.Function.daysLater","hash":"","kind":64,"flags":{}},"379":{"id":379,"parentId":378,"name":"daysLater","query":"Date.Function.daysLater","hash":"daysLater","kind":4096,"flags":{}},"382":{"id":382,"parentId":359,"name":"getFormattedRemainTime","query":"Date.Function.getFormattedRemainTime","hash":"","kind":64,"flags":{}},"383":{"id":383,"parentId":382,"name":"getFormattedRemainTime","query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime","kind":4096,"flags":{}},"387":{"id":387,"parentId":382,"name":"day","query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime.day","kind":1024,"flags":{}},"388":{"id":388,"parentId":382,"name":"hour","query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime.hour","kind":1024,"flags":{}},"389":{"id":389,"parentId":382,"name":"minute","query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime.minute","kind":1024,"flags":{}},"390":{"id":390,"parentId":382,"name":"second","query":"Date.Function.getFormattedRemainTime","hash":"getFormattedRemainTime.second","kind":1024,"flags":{}},"391":{"id":391,"name":"Function","query":"Module.Function","hash":"","kind":2,"flags":{}},"392":{"id":392,"parentId":391,"name":"attempt","query":"Function.Function.attempt","hash":"","kind":64,"flags":{}},"393":{"id":393,"parentId":392,"name":"attempt","query":"Function.Function.attempt","hash":"attempt","kind":4096,"flags":{}},"401":{"id":401,"parentId":391,"name":"defer","query":"Function.Function.defer","hash":"","kind":64,"flags":{}},"402":{"id":402,"parentId":401,"name":"defer","query":"Function.Function.defer","hash":"defer","kind":4096,"flags":{}},"408":{"id":408,"parentId":391,"name":"runPromisesInSeries","query":"Function.Function.runPromisesInSeries","hash":"","kind":64,"flags":{}},"409":{"id":409,"parentId":408,"name":"runPromisesInSeries","query":"Function.Function.runPromisesInSeries","hash":"runPromisesInSeries","kind":4096,"flags":{}},"414":{"id":414,"parentId":391,"name":"timeTaken","query":"Function.Function.timeTaken","hash":"","kind":64,"flags":{}},"415":{"id":415,"parentId":414,"name":"timeTaken","query":"Function.Function.timeTaken","hash":"timeTaken","kind":4096,"flags":{}},"421":{"id":421,"parentId":391,"name":"memoize","query":"Function.Function.memoize","hash":"","kind":64,"flags":{}},"422":{"id":422,"parentId":421,"name":"memoize","query":"Function.Function.memoize","hash":"memoize","kind":4096,"flags":{}},"428":{"id":428,"parentId":421,"name":"cache","query":"Function.Function.memoize","hash":"memoize.cache","kind":1024,"flags":{}},"431":{"id":431,"parentId":391,"name":"once","query":"Function.Function.once","hash":"","kind":64,"flags":{}},"432":{"id":432,"parentId":431,"name":"once","query":"Function.Function.once","hash":"once","kind":4096,"flags":{}},"440":{"id":440,"parentId":391,"name":"chainAsync","query":"Function.Function.chainAsync","hash":"","kind":64,"flags":{}},"441":{"id":441,"parentId":440,"name":"chainAsync","query":"Function.Function.chainAsync","hash":"chainAsync","kind":4096,"flags":{}},"446":{"id":446,"parentId":391,"name":"compose","query":"Function.Function.compose","hash":"","kind":64,"flags":{}},"447":{"id":447,"parentId":446,"name":"compose","query":"Function.Function.compose","hash":"compose","kind":4096,"flags":{}},"456":{"id":456,"parentId":391,"name":"pipe","query":"Function.Function.pipe","hash":"","kind":64,"flags":{}},"457":{"id":457,"parentId":456,"name":"pipe","query":"Function.Function.pipe","hash":"pipe","kind":4096,"flags":{}},"466":{"id":466,"parentId":391,"name":"functionName","query":"Function.Function.functionName","hash":"","kind":64,"flags":{}},"467":{"id":467,"parentId":466,"name":"functionName","query":"Function.Function.functionName","hash":"functionName","kind":4096,"flags":{}},"473":{"id":473,"parentId":391,"name":"promisify","query":"Function.Function.promisify","hash":"","kind":64,"flags":{}},"474":{"id":474,"parentId":473,"name":"promisify","query":"Function.Function.promisify","hash":"promisify","kind":4096,"flags":{}},"488":{"id":488,"parentId":391,"name":"sleep","query":"Function.Function.sleep","hash":"","kind":64,"flags":{}},"489":{"id":489,"parentId":488,"name":"sleep","query":"Function.Function.sleep","hash":"sleep","kind":4096,"flags":{}},"491":{"id":491,"parentId":391,"name":"throttle","query":"Function.Function.throttle","hash":"","kind":64,"flags":{}},"492":{"id":492,"parentId":491,"name":"throttle","query":"Function.Function.throttle","hash":"throttle","kind":4096,"flags":{}},"502":{"id":502,"parentId":391,"name":"debounce","query":"Function.Function.debounce","hash":"","kind":64,"flags":{}},"503":{"id":503,"parentId":502,"name":"debounce","query":"Function.Function.debounce","hash":"debounce","kind":4096,"flags":{}},"510":{"id":510,"parentId":391,"name":"NOOP","query":"Function.Function.NOOP","hash":"","kind":64,"flags":{}},"511":{"id":511,"parentId":510,"name":"NOOP","query":"Function.Function.NOOP","hash":"NOOP","kind":4096,"flags":{}},"512":{"id":512,"parentId":391,"name":"curry","query":"Function.Function.curry","hash":"","kind":64,"flags":{}},"513":{"id":513,"parentId":512,"name":"curry","query":"Function.Function.curry","hash":"curry","kind":4096,"flags":{}},"520":{"id":520,"parentId":512,"name":"curry","query":"Function.Function.curry","hash":"curry","kind":4096,"flags":{}},"529":{"id":529,"parentId":512,"name":"curry","query":"Function.Function.curry","hash":"curry","kind":4096,"flags":{}},"540":{"id":540,"name":"utils/src","query":"Module.utils/src","hash":"","kind":2,"flags":{}},"541":{"id":541,"name":"Math","query":"Module.Math","hash":"","kind":2,"flags":{}},"542":{"id":542,"parentId":541,"name":"factorial","query":"Math.Function.factorial","hash":"","kind":64,"flags":{}},"543":{"id":543,"parentId":542,"name":"factorial","query":"Math.Function.factorial","hash":"factorial","kind":4096,"flags":{}},"545":{"id":545,"parentId":541,"name":"gcd","query":"Math.Function.gcd","hash":"","kind":64,"flags":{}},"546":{"id":546,"parentId":545,"name":"gcd","query":"Math.Function.gcd","hash":"gcd","kind":4096,"flags":{}},"549":{"id":549,"parentId":541,"name":"isDivisible","query":"Math.Function.isDivisible","hash":"","kind":64,"flags":{}},"550":{"id":550,"parentId":549,"name":"isDivisible","query":"Math.Function.isDivisible","hash":"isDivisible","kind":4096,"flags":{}},"553":{"id":553,"parentId":541,"name":"lcm","query":"Math.Function.lcm","hash":"","kind":64,"flags":{}},"554":{"id":554,"parentId":553,"name":"lcm","query":"Math.Function.lcm","hash":"lcm","kind":4096,"flags":{}},"557":{"id":557,"name":"Number","query":"Module.Number","hash":"","kind":2,"flags":{}},"558":{"id":558,"parentId":557,"name":"isOdd","query":"Number.Function.isOdd","hash":"","kind":64,"flags":{}},"559":{"id":559,"parentId":558,"name":"isOdd","query":"Number.Function.isOdd","hash":"isOdd","kind":4096,"flags":{}},"561":{"id":561,"parentId":557,"name":"isValidNumber","query":"Number.Function.isValidNumber","hash":"","kind":64,"flags":{}},"562":{"id":562,"parentId":561,"name":"isValidNumber","query":"Number.Function.isValidNumber","hash":"isValidNumber","kind":4096,"flags":{}},"564":{"id":564,"parentId":557,"name":"isApproximatelyEqual","query":"Number.Function.isApproximatelyEqual","hash":"","kind":64,"flags":{}},"565":{"id":565,"parentId":564,"name":"isApproximatelyEqual","query":"Number.Function.isApproximatelyEqual","hash":"isApproximatelyEqual","kind":4096,"flags":{}},"569":{"id":569,"parentId":557,"name":"average","query":"Number.Function.average","hash":"","kind":64,"flags":{}},"570":{"id":570,"parentId":569,"name":"average","query":"Number.Function.average","hash":"average","kind":4096,"flags":{}},"572":{"id":572,"parentId":557,"name":"randomIntegerInRange","query":"Number.Function.randomIntegerInRange","hash":"","kind":64,"flags":{}},"573":{"id":573,"parentId":572,"name":"randomIntegerInRange","query":"Number.Function.randomIntegerInRange","hash":"randomIntegerInRange","kind":4096,"flags":{}},"576":{"id":576,"parentId":557,"name":"randomNumberInRange","query":"Number.Function.randomNumberInRange","hash":"","kind":64,"flags":{}},"577":{"id":577,"parentId":576,"name":"randomNumberInRange","query":"Number.Function.randomNumberInRange","hash":"randomNumberInRange","kind":4096,"flags":{}},"580":{"id":580,"parentId":557,"name":"randomIntArrayInRange","query":"Number.Function.randomIntArrayInRange","hash":"","kind":64,"flags":{}},"581":{"id":581,"parentId":580,"name":"randomIntArrayInRange","query":"Number.Function.randomIntArrayInRange","hash":"randomIntArrayInRange","kind":4096,"flags":{}},"585":{"id":585,"parentId":557,"name":"round","query":"Number.Function.round","hash":"","kind":64,"flags":{}},"586":{"id":586,"parentId":585,"name":"round","query":"Number.Function.round","hash":"round","kind":4096,"flags":{}},"589":{"id":589,"parentId":557,"name":"sum","query":"Number.Function.sum","hash":"","kind":64,"flags":{}},"590":{"id":590,"parentId":589,"name":"sum","query":"Number.Function.sum","hash":"sum","kind":4096,"flags":{}},"592":{"id":592,"parentId":557,"name":"clamp","query":"Number.Function.clamp","hash":"","kind":64,"flags":{}},"593":{"id":593,"parentId":592,"name":"clamp","query":"Number.Function.clamp","hash":"clamp","kind":4096,"flags":{}},"597":{"id":597,"parentId":557,"name":"isInt","query":"Number.Function.isInt","hash":"","kind":64,"flags":{}},"598":{"id":598,"parentId":597,"name":"isInt","query":"Number.Function.isInt","hash":"isInt","kind":4096,"flags":{}},"600":{"id":600,"parentId":557,"name":"isFloat","query":"Number.Function.isFloat","hash":"","kind":64,"flags":{}},"601":{"id":601,"parentId":600,"name":"isFloat","query":"Number.Function.isFloat","hash":"isFloat","kind":4096,"flags":{}},"603":{"id":603,"name":"Object","query":"Module.Object","hash":"","kind":2,"flags":{}},"604":{"id":604,"parentId":603,"name":"forOwn","query":"Object.Function.forOwn","hash":"","kind":64,"flags":{}},"605":{"id":605,"parentId":604,"name":"forOwn","query":"Object.Function.forOwn","hash":"forOwn","kind":4096,"flags":{}},"613":{"id":613,"parentId":603,"name":"objectFromPairs","query":"Object.Function.objectFromPairs","hash":"","kind":64,"flags":{}},"614":{"id":614,"parentId":613,"name":"objectFromPairs","query":"Object.Function.objectFromPairs","hash":"objectFromPairs","kind":4096,"flags":{}},"616":{"id":616,"parentId":603,"name":"mapObject","query":"Object.Function.mapObject","hash":"","kind":64,"flags":{}},"617":{"id":617,"parentId":616,"name":"mapObject","query":"Object.Function.mapObject","hash":"mapObject","kind":4096,"flags":{}},"627":{"id":627,"parentId":603,"name":"pick","query":"Object.Function.pick","hash":"","kind":64,"flags":{}},"628":{"id":628,"parentId":627,"name":"pick","query":"Object.Function.pick","hash":"pick","kind":4096,"flags":{}},"631":{"id":631,"parentId":603,"name":"hasOwnProperty","query":"Object.Function.hasOwnProperty","hash":"","kind":64,"flags":{}},"632":{"id":632,"parentId":631,"name":"hasOwnProperty","query":"Object.Function.hasOwnProperty","hash":"hasOwnProperty","kind":4096,"flags":{}},"636":{"id":636,"parentId":603,"name":"isEmptyObj","query":"Object.Function.isEmptyObj","hash":"","kind":64,"flags":{}},"637":{"id":637,"parentId":636,"name":"isEmptyObj","query":"Object.Function.isEmptyObj","hash":"isEmptyObj","kind":4096,"flags":{}},"639":{"id":639,"parentId":603,"name":"PlainObject","query":"Object.TypeAlias.PlainObject","hash":"","kind":4194304,"flags":{}},"643":{"id":643,"name":"Others","query":"Module.Others","hash":"","kind":2,"flags":{}},"644":{"id":644,"parentId":643,"name":"compareVersion","query":"Others.Function.compareVersion","hash":"","kind":64,"flags":{}},"645":{"id":645,"parentId":644,"name":"compareVersion","query":"Others.Function.compareVersion","hash":"compareVersion","kind":4096,"flags":{}},"648":{"id":648,"parentId":643,"name":"digitUppercase","query":"Others.Function.digitUppercase","hash":"","kind":64,"flags":{}},"649":{"id":649,"parentId":648,"name":"digitUppercase","query":"Others.Function.digitUppercase","hash":"digitUppercase","kind":4096,"flags":{}},"651":{"id":651,"name":"String","query":"Module.String","hash":"","kind":2,"flags":{}},"652":{"id":652,"parentId":651,"name":"byteSize","query":"String.Function.byteSize","hash":"","kind":64,"flags":{}},"653":{"id":653,"parentId":652,"name":"byteSize","query":"String.Function.byteSize","hash":"byteSize","kind":4096,"flags":{}},"655":{"id":655,"parentId":651,"name":"capitalize","query":"String.Function.capitalize","hash":"","kind":64,"flags":{}},"656":{"id":656,"parentId":655,"name":"capitalize","query":"String.Function.capitalize","hash":"capitalize","kind":4096,"flags":{}},"658":{"id":658,"parentId":651,"name":"capitalizeEveryWord","query":"String.Function.capitalizeEveryWord","hash":"","kind":64,"flags":{}},"659":{"id":659,"parentId":658,"name":"capitalizeEveryWord","query":"String.Function.capitalizeEveryWord","hash":"capitalizeEveryWord","kind":4096,"flags":{}},"661":{"id":661,"parentId":651,"name":"decapitalize","query":"String.Function.decapitalize","hash":"","kind":64,"flags":{}},"662":{"id":662,"parentId":661,"name":"decapitalize","query":"String.Function.decapitalize","hash":"decapitalize","kind":4096,"flags":{}},"664":{"id":664,"parentId":651,"name":"splitLines","query":"String.Function.splitLines","hash":"","kind":64,"flags":{}},"665":{"id":665,"parentId":664,"name":"splitLines","query":"String.Function.splitLines","hash":"splitLines","kind":4096,"flags":{}},"667":{"id":667,"parentId":651,"name":"stripHTMLTags","query":"String.Function.stripHTMLTags","hash":"","kind":64,"flags":{}},"668":{"id":668,"parentId":667,"name":"stripHTMLTags","query":"String.Function.stripHTMLTags","hash":"stripHTMLTags","kind":4096,"flags":{}},"670":{"id":670,"parentId":651,"name":"palindrome","query":"String.Function.palindrome","hash":"","kind":64,"flags":{}},"671":{"id":671,"parentId":670,"name":"palindrome","query":"String.Function.palindrome","hash":"palindrome","kind":4096,"flags":{}},"673":{"id":673,"parentId":651,"name":"fromCamelCase","query":"String.Function.fromCamelCase","hash":"","kind":64,"flags":{}},"674":{"id":674,"parentId":673,"name":"fromCamelCase","query":"String.Function.fromCamelCase","hash":"fromCamelCase","kind":4096,"flags":{}},"677":{"id":677,"parentId":651,"name":"reverseString","query":"String.Function.reverseString","hash":"","kind":64,"flags":{}},"678":{"id":678,"parentId":677,"name":"reverseString","query":"String.Function.reverseString","hash":"reverseString","kind":4096,"flags":{}},"680":{"id":680,"parentId":651,"name":"truncateString","query":"String.Function.truncateString","hash":"","kind":64,"flags":{}},"681":{"id":681,"parentId":680,"name":"truncateString","query":"String.Function.truncateString","hash":"truncateString","kind":4096,"flags":{}},"684":{"id":684,"parentId":651,"name":"isChinese","query":"String.Function.isChinese","hash":"","kind":64,"flags":{}},"685":{"id":685,"parentId":684,"name":"isChinese","query":"String.Function.isChinese","hash":"isChinese","kind":4096,"flags":{}},"687":{"id":687,"parentId":651,"name":"camelize","query":"String.Function.camelize","hash":"","kind":64,"flags":{}},"688":{"id":688,"parentId":687,"name":"camelize","query":"String.Function.camelize","hash":"camelize","kind":4096,"flags":{}},"690":{"id":690,"name":"Trade","query":"Module.Trade","hash":"","kind":2,"flags":{}},"691":{"id":691,"parentId":690,"name":"luhnCheck","query":"Trade.Function.luhnCheck","hash":"","kind":64,"flags":{}},"692":{"id":692,"parentId":691,"name":"luhnCheck","query":"Trade.Function.luhnCheck","hash":"luhnCheck","kind":4096,"flags":{}},"694":{"id":694,"parentId":690,"name":"toCurrency","query":"Trade.Function.toCurrency","hash":"","kind":64,"flags":{}},"695":{"id":695,"parentId":694,"name":"toCurrency","query":"Trade.Function.toCurrency","hash":"toCurrency","kind":4096,"flags":{}},"699":{"id":699,"name":"Type","query":"Module.Type","hash":"","kind":2,"flags":{}},"700":{"id":700,"parentId":699,"name":"type","query":"Type.Function.type","hash":"","kind":64,"flags":{}},"701":{"id":701,"parentId":700,"name":"type","query":"Type.Function.type","hash":"type","kind":4096,"flags":{}},"703":{"id":703,"parentId":699,"name":"isUndefined","query":"Type.Function.isUndefined","hash":"","kind":64,"flags":{}},"704":{"id":704,"parentId":703,"name":"isUndefined","query":"Type.Function.isUndefined","hash":"isUndefined","kind":4096,"flags":{}},"706":{"id":706,"parentId":699,"name":"isString","query":"Type.Function.isString","hash":"","kind":64,"flags":{}},"707":{"id":707,"parentId":706,"name":"isString","query":"Type.Function.isString","hash":"isString","kind":4096,"flags":{}},"709":{"id":709,"parentId":699,"name":"isNumber","query":"Type.Function.isNumber","hash":"","kind":64,"flags":{}},"710":{"id":710,"parentId":709,"name":"isNumber","query":"Type.Function.isNumber","hash":"isNumber","kind":4096,"flags":{}},"712":{"id":712,"parentId":699,"name":"isObject","query":"Type.Function.isObject","hash":"","kind":64,"flags":{}},"713":{"id":713,"parentId":712,"name":"isObject","query":"Type.Function.isObject","hash":"isObject","kind":4096,"flags":{}},"715":{"id":715,"parentId":699,"name":"isFunction","query":"Type.Function.isFunction","hash":"","kind":64,"flags":{}},"716":{"id":716,"parentId":715,"name":"isFunction","query":"Type.Function.isFunction","hash":"isFunction","kind":4096,"flags":{}},"718":{"id":718,"parentId":699,"name":"equals","query":"Type.Function.equals","hash":"","kind":64,"flags":{}},"719":{"id":719,"parentId":718,"name":"equals","query":"Type.Function.equals","hash":"equals","kind":4096,"flags":{}},"722":{"id":722,"parentId":699,"name":"isArray","query":"Type.Function.isArray","hash":"","kind":64,"flags":{}},"723":{"id":723,"parentId":722,"name":"isArray","query":"Type.Function.isArray","hash":"isArray","kind":4096,"flags":{}},"725":{"id":725,"parentId":699,"name":"isPrimitive","query":"Type.Function.isPrimitive","hash":"","kind":64,"flags":{}},"726":{"id":726,"parentId":725,"name":"isPrimitive","query":"Type.Function.isPrimitive","hash":"isPrimitive","kind":4096,"flags":{}},"729":{"id":729,"parentId":699,"name":"isDate","query":"Type.Function.isDate","hash":"","kind":64,"flags":{}},"730":{"id":730,"parentId":729,"name":"isDate","query":"Type.Function.isDate","hash":"isDate","kind":4096,"flags":{}},"732":{"id":732,"name":"node-utils/src","query":"Module.node-utils/src","hash":"","kind":2,"flags":{}},"733":{"id":733,"parentId":732,"name":"default","query":"node-utils/src.Variable.default","hash":"","kind":32,"flags":{}},"735":{"id":735,"parentId":733,"name":"Fs","query":"node-utils/src.Variable.default","hash":"Fs","kind":1024,"flags":{}},"737":{"id":737,"parentId":733,"name":"travelFolderSync","query":"node-utils/src.Variable.default","hash":"Fs.travelFolderSync","kind":4096,"flags":{}},"749":{"id":749,"parentId":733,"name":"fsExistsSync","query":"node-utils/src.Variable.default","hash":"Fs.fsExistsSync","kind":4096,"flags":{}},"753":{"id":753,"parentId":733,"name":"setFolderSync","query":"node-utils/src.Variable.default","hash":"Fs.setFolderSync","kind":4096,"flags":{}},"758":{"id":758,"parentId":733,"name":"mkdirsSync","query":"node-utils/src.Variable.default","hash":"Fs.mkdirsSync","kind":4096,"flags":{}},"762":{"id":762,"parentId":733,"name":"rmdirsSync","query":"node-utils/src.Variable.default","hash":"Fs.rmdirsSync","kind":4096,"flags":{}},"766":{"id":766,"parentId":733,"name":"writeFile","query":"node-utils/src.Variable.default","hash":"Fs.writeFile","kind":4096,"flags":{}},"772":{"id":772,"parentId":733,"name":"readFileSync","query":"node-utils/src.Variable.default","hash":"Fs.readFileSync","kind":4096,"flags":{}},"776":{"id":776,"parentId":733,"name":"readJson","query":"node-utils/src.Variable.default","hash":"Fs.readJson","kind":4096,"flags":{}},"780":{"id":780,"parentId":733,"name":"OS","query":"node-utils/src.Variable.default","hash":"OS","kind":1024,"flags":{}},"782":{"id":782,"parentId":733,"name":"platform","query":"node-utils/src.Variable.default","hash":"OS.platform","kind":4096,"flags":{}},"785":{"id":785,"parentId":733,"name":"cpuCount","query":"node-utils/src.Variable.default","hash":"OS.cpuCount","kind":4096,"flags":{}},"788":{"id":788,"parentId":733,"name":"sysUptime","query":"node-utils/src.Variable.default","hash":"OS.sysUptime","kind":4096,"flags":{}},"791":{"id":791,"parentId":733,"name":"processUptime","query":"node-utils/src.Variable.default","hash":"OS.processUptime","kind":4096,"flags":{}},"794":{"id":794,"parentId":733,"name":"freemem","query":"node-utils/src.Variable.default","hash":"OS.freemem","kind":4096,"flags":{}},"797":{"id":797,"parentId":733,"name":"totalmem","query":"node-utils/src.Variable.default","hash":"OS.totalmem","kind":4096,"flags":{}},"800":{"id":800,"parentId":733,"name":"freememPercentage","query":"node-utils/src.Variable.default","hash":"OS.freememPercentage","kind":4096,"flags":{}},"803":{"id":803,"parentId":733,"name":"freeCommand","query":"node-utils/src.Variable.default","hash":"OS.freeCommand","kind":4096,"flags":{}},"807":{"id":807,"parentId":733,"name":"harddrive","query":"node-utils/src.Variable.default","hash":"OS.harddrive","kind":4096,"flags":{}},"811":{"id":811,"parentId":733,"name":"getProcesses","query":"node-utils/src.Variable.default","hash":"OS.getProcesses","kind":4096,"flags":{}},"816":{"id":816,"parentId":733,"name":"allLoadavg","query":"node-utils/src.Variable.default","hash":"OS.allLoadavg","kind":4096,"flags":{}},"819":{"id":819,"parentId":733,"name":"loadavg","query":"node-utils/src.Variable.default","hash":"OS.loadavg","kind":4096,"flags":{}},"823":{"id":823,"parentId":733,"name":"cpuFree","query":"node-utils/src.Variable.default","hash":"OS.cpuFree","kind":4096,"flags":{}},"827":{"id":827,"parentId":733,"name":"cpuUsage","query":"node-utils/src.Variable.default","hash":"OS.cpuUsage","kind":4096,"flags":{}},"831":{"id":831,"parentId":733,"name":"getCPUUsage","query":"node-utils/src.Variable.default","hash":"OS.getCPUUsage","kind":4096,"flags":{}},"836":{"id":836,"parentId":733,"name":"getCPUInfo","query":"node-utils/src.Variable.default","hash":"OS.getCPUInfo","kind":4096,"flags":{}},"842":{"id":842,"parentId":733,"name":"Run","query":"node-utils/src.Variable.default","hash":"Run","kind":1024,"flags":{}},"844":{"id":844,"parentId":733,"name":"forceRunAsync","query":"node-utils/src.Variable.default","hash":"Run.forceRunAsync","kind":4096,"flags":{}},"850":{"id":850,"parentId":733,"name":"runPromise","query":"node-utils/src.Variable.default","hash":"Run.runPromise","kind":4096,"flags":{}},"854":{"id":854,"parentId":733,"name":"runAsync","query":"node-utils/src.Variable.default","hash":"Run.runAsync","kind":4096,"flags":{}},"860":{"id":860,"parentId":733,"name":"runSync","query":"node-utils/src.Variable.default","hash":"Run.runSync","kind":4096,"flags":{}},"866":{"id":866,"parentId":733,"name":"exit","query":"node-utils/src.Variable.default","hash":"Run.exit","kind":4096,"flags":{}},"869":{"id":869,"parentId":733,"name":"Fn","query":"node-utils/src.Variable.default","hash":"Fn","kind":1024,"flags":{}},"871":{"id":871,"parentId":733,"name":"isBuffer","query":"node-utils/src.Variable.default","hash":"Fn.isBuffer","kind":1024,"flags":{}},"872":{"id":872,"parentId":733,"name":"getTimeStr","query":"node-utils/src.Variable.default","hash":"Fn.getTimeStr","kind":4096,"flags":{}},"876":{"id":876,"parentId":733,"name":"Colors","query":"node-utils/src.Variable.default","hash":"Colors","kind":1024,"flags":{}},"878":{"id":878,"parentId":733,"name":"colors","query":"node-utils/src.Variable.default","hash":"Colors.colors","kind":1024,"flags":{}},"880":{"id":880,"parentId":733,"name":"end","query":"node-utils/src.Variable.default","hash":"Colors.colors.end","kind":1024,"flags":{}},"881":{"id":881,"parentId":733,"name":"Reset","query":"node-utils/src.Variable.default","hash":"Colors.colors.Reset","kind":1024,"flags":{}},"882":{"id":882,"parentId":733,"name":"Bright","query":"node-utils/src.Variable.default","hash":"Colors.colors.Bright","kind":1024,"flags":{}},"883":{"id":883,"parentId":733,"name":"Dim","query":"node-utils/src.Variable.default","hash":"Colors.colors.Dim","kind":1024,"flags":{}},"884":{"id":884,"parentId":733,"name":"Underscore","query":"node-utils/src.Variable.default","hash":"Colors.colors.Underscore","kind":1024,"flags":{}},"885":{"id":885,"parentId":733,"name":"Blink","query":"node-utils/src.Variable.default","hash":"Colors.colors.Blink","kind":1024,"flags":{}},"886":{"id":886,"parentId":733,"name":"Reverse","query":"node-utils/src.Variable.default","hash":"Colors.colors.Reverse","kind":1024,"flags":{}},"887":{"id":887,"parentId":733,"name":"Hidden","query":"node-utils/src.Variable.default","hash":"Colors.colors.Hidden","kind":1024,"flags":{}},"888":{"id":888,"parentId":733,"name":"FgBlack","query":"node-utils/src.Variable.default","hash":"Colors.colors.FgBlack","kind":1024,"flags":{}},"889":{"id":889,"parentId":733,"name":"FgRed","query":"node-utils/src.Variable.default","hash":"Colors.colors.FgRed","kind":1024,"flags":{}},"890":{"id":890,"parentId":733,"name":"FgGreen","query":"node-utils/src.Variable.default","hash":"Colors.colors.FgGreen","kind":1024,"flags":{}},"891":{"id":891,"parentId":733,"name":"FgYellow","query":"node-utils/src.Variable.default","hash":"Colors.colors.FgYellow","kind":1024,"flags":{}},"892":{"id":892,"parentId":733,"name":"FgBlue","query":"node-utils/src.Variable.default","hash":"Colors.colors.FgBlue","kind":1024,"flags":{}},"893":{"id":893,"parentId":733,"name":"FgMagenta","query":"node-utils/src.Variable.default","hash":"Colors.colors.FgMagenta","kind":1024,"flags":{}},"894":{"id":894,"parentId":733,"name":"FgCyan","query":"node-utils/src.Variable.default","hash":"Colors.colors.FgCyan","kind":1024,"flags":{}},"895":{"id":895,"parentId":733,"name":"FgWhite","query":"node-utils/src.Variable.default","hash":"Colors.colors.FgWhite","kind":1024,"flags":{}},"896":{"id":896,"parentId":733,"name":"BgBlack","query":"node-utils/src.Variable.default","hash":"Colors.colors.BgBlack","kind":1024,"flags":{}},"897":{"id":897,"parentId":733,"name":"BgRed","query":"node-utils/src.Variable.default","hash":"Colors.colors.BgRed","kind":1024,"flags":{}},"898":{"id":898,"parentId":733,"name":"BgGreen","query":"node-utils/src.Variable.default","hash":"Colors.colors.BgGreen","kind":1024,"flags":{}},"899":{"id":899,"parentId":733,"name":"BgYellow","query":"node-utils/src.Variable.default","hash":"Colors.colors.BgYellow","kind":1024,"flags":{}},"900":{"id":900,"parentId":733,"name":"BgBlue","query":"node-utils/src.Variable.default","hash":"Colors.colors.BgBlue","kind":1024,"flags":{}},"901":{"id":901,"parentId":733,"name":"BgMagenta","query":"node-utils/src.Variable.default","hash":"Colors.colors.BgMagenta","kind":1024,"flags":{}},"902":{"id":902,"parentId":733,"name":"BgCyan","query":"node-utils/src.Variable.default","hash":"Colors.colors.BgCyan","kind":1024,"flags":{}},"903":{"id":903,"parentId":733,"name":"BgWhite","query":"node-utils/src.Variable.default","hash":"Colors.colors.BgWhite","kind":1024,"flags":{}},"904":{"id":904,"parentId":733,"name":"get","query":"node-utils/src.Variable.default","hash":"Colors.get","kind":4096,"flags":{}},"908":{"id":908,"parentId":733,"name":"Tip","query":"node-utils/src.Variable.default","hash":"Tip","kind":1024,"flags":{}},"910":{"id":910,"parentId":733,"name":"safe","query":"node-utils/src.Variable.default","hash":"Tip.safe","kind":4096,"flags":{}},"915":{"id":915,"parentId":733,"name":"success","query":"node-utils/src.Variable.default","hash":"Tip.success","kind":4096,"flags":{}},"920":{"id":920,"parentId":733,"name":"log","query":"node-utils/src.Variable.default","hash":"Tip.log","kind":4096,"flags":{}},"925":{"id":925,"parentId":733,"name":"info","query":"node-utils/src.Variable.default","hash":"Tip.info","kind":4096,"flags":{}},"930":{"id":930,"parentId":733,"name":"err","query":"node-utils/src.Variable.default","hash":"Tip.err","kind":4096,"flags":{}},"935":{"id":935,"parentId":733,"name":"error","query":"node-utils/src.Variable.default","hash":"Tip.error","kind":4096,"flags":{}},"940":{"id":940,"parentId":733,"name":"strongError","query":"node-utils/src.Variable.default","hash":"Tip.strongError","kind":4096,"flags":{}},"945":{"id":945,"parentId":733,"name":"warn","query":"node-utils/src.Variable.default","hash":"Tip.warn","kind":4096,"flags":{}},"950":{"id":950,"parentId":733,"name":"strongWarn","query":"node-utils/src.Variable.default","hash":"Tip.strongWarn","kind":4096,"flags":{}},"955":{"id":955,"parentId":733,"name":"Env","query":"node-utils/src.Variable.default","hash":"Env","kind":1024,"flags":{}},"956":{"id":956,"name":"web-utils/src/clipboard","query":"Module.web-utils/src/clipboard","hash":"","kind":2,"flags":{}},"957":{"id":957,"parentId":956,"name":"readClipboardText","query":"web-utils/src/clipboard.Function.readClipboardText","hash":"","kind":64,"flags":{}},"958":{"id":958,"parentId":957,"name":"readClipboardText","query":"web-utils/src/clipboard.Function.readClipboardText","hash":"readClipboardText","kind":4096,"flags":{}},"959":{"id":959,"parentId":956,"name":"copyToClipboard","query":"web-utils/src/clipboard.Function.copyToClipboard","hash":"","kind":64,"flags":{}},"960":{"id":960,"parentId":959,"name":"copyToClipboard","query":"web-utils/src/clipboard.Function.copyToClipboard","hash":"copyToClipboard","kind":4096,"flags":{}},"962":{"id":962,"name":"Cookie","query":"Module.Cookie","hash":"","kind":2,"flags":{}},"963":{"id":963,"parentId":962,"name":"getCookie","query":"Cookie.Function.getCookie","hash":"","kind":64,"flags":{}},"964":{"id":964,"parentId":963,"name":"getCookie","query":"Cookie.Function.getCookie","hash":"getCookie","kind":4096,"flags":{}},"966":{"id":966,"parentId":962,"name":"setCookie","query":"Cookie.Function.setCookie","hash":"","kind":64,"flags":{}},"967":{"id":967,"parentId":966,"name":"setCookie","query":"Cookie.Function.setCookie","hash":"setCookie","kind":4096,"flags":{}},"973":{"id":973,"parentId":962,"name":"delCookie","query":"Cookie.Function.delCookie","hash":"","kind":64,"flags":{}},"974":{"id":974,"parentId":973,"name":"delCookie","query":"Cookie.Function.delCookie","hash":"delCookie","kind":4096,"flags":{}},"976":{"id":976,"name":"CSS","query":"Module.CSS","hash":"","kind":2,"flags":{}},"977":{"id":977,"parentId":976,"name":"getPrefix","query":"CSS.Function.getPrefix","hash":"","kind":64,"flags":{}},"978":{"id":978,"parentId":977,"name":"getPrefix","query":"CSS.Function.getPrefix","hash":"getPrefix","kind":4096,"flags":{}},"979":{"id":979,"parentId":976,"name":"getStyle","query":"CSS.Function.getStyle","hash":"","kind":64,"flags":{}},"980":{"id":980,"parentId":979,"name":"getStyle","query":"CSS.Function.getStyle","hash":"getStyle","kind":4096,"flags":{}},"983":{"id":983,"parentId":976,"name":"getElementSize","query":"CSS.Function.getElementSize","hash":"","kind":64,"flags":{}},"984":{"id":984,"parentId":983,"name":"getElementSize","query":"CSS.Function.getElementSize","hash":"getElementSize","kind":4096,"flags":{}},"987":{"id":987,"name":"DOM","query":"Module.DOM","hash":"","kind":2,"flags":{}},"988":{"id":988,"parentId":987,"name":"isBrowser","query":"DOM.Function.isBrowser","hash":"","kind":64,"flags":{}},"989":{"id":989,"parentId":988,"name":"isBrowser","query":"DOM.Function.isBrowser","hash":"isBrowser","kind":4096,"flags":{}},"990":{"id":990,"parentId":987,"name":"isBrowserTab","query":"DOM.Function.isBrowserTab","hash":"","kind":64,"flags":{}},"991":{"id":991,"parentId":990,"name":"isBrowserTab","query":"DOM.Function.isBrowserTab","hash":"isBrowserTab","kind":4096,"flags":{}},"992":{"id":992,"parentId":987,"name":"hasClass","query":"DOM.Function.hasClass","hash":"","kind":64,"flags":{}},"993":{"id":993,"parentId":992,"name":"hasClass","query":"DOM.Function.hasClass","hash":"hasClass","kind":4096,"flags":{}},"996":{"id":996,"parentId":987,"name":"addClass","query":"DOM.Function.addClass","hash":"","kind":64,"flags":{}},"997":{"id":997,"parentId":996,"name":"addClass","query":"DOM.Function.addClass","hash":"addClass","kind":4096,"flags":{}},"1000":{"id":1000,"parentId":987,"name":"removeClass","query":"DOM.Function.removeClass","hash":"","kind":64,"flags":{}},"1001":{"id":1001,"parentId":1000,"name":"removeClass","query":"DOM.Function.removeClass","hash":"removeClass","kind":4096,"flags":{}},"1004":{"id":1004,"parentId":987,"name":"insertAfter","query":"DOM.Function.insertAfter","hash":"","kind":64,"flags":{}},"1005":{"id":1005,"parentId":1004,"name":"insertAfter","query":"DOM.Function.insertAfter","hash":"insertAfter","kind":4096,"flags":{}},"1008":{"id":1008,"parentId":987,"name":"insertBefore","query":"DOM.Function.insertBefore","hash":"","kind":64,"flags":{}},"1009":{"id":1009,"parentId":1008,"name":"insertBefore","query":"DOM.Function.insertBefore","hash":"insertBefore","kind":4096,"flags":{}},"1012":{"id":1012,"parentId":987,"name":"elementContains","query":"DOM.Function.elementContains","hash":"","kind":64,"flags":{}},"1013":{"id":1013,"parentId":1012,"name":"elementContains","query":"DOM.Function.elementContains","hash":"elementContains","kind":4096,"flags":{}},"1016":{"id":1016,"parentId":987,"name":"hide","query":"DOM.Function.hide","hash":"","kind":64,"flags":{}},"1017":{"id":1017,"parentId":1016,"name":"hide","query":"DOM.Function.hide","hash":"hide","kind":4096,"flags":{}},"1019":{"id":1019,"parentId":987,"name":"nodeListToArray","query":"DOM.Function.nodeListToArray","hash":"","kind":64,"flags":{}},"1020":{"id":1020,"parentId":1019,"name":"nodeListToArray","query":"DOM.Function.nodeListToArray","hash":"nodeListToArray","kind":4096,"flags":{}},"1022":{"id":1022,"parentId":987,"name":"setAttribute","query":"DOM.Function.setAttribute","hash":"","kind":64,"flags":{}},"1023":{"id":1023,"parentId":1022,"name":"setAttribute","query":"DOM.Function.setAttribute","hash":"setAttribute","kind":4096,"flags":{}},"1027":{"id":1027,"parentId":987,"name":"escapeHTML","query":"DOM.Function.escapeHTML","hash":"","kind":64,"flags":{}},"1028":{"id":1028,"parentId":1027,"name":"escapeHTML","query":"DOM.Function.escapeHTML","hash":"escapeHTML","kind":4096,"flags":{}},"1030":{"id":1030,"parentId":987,"name":"getOffsetPos","query":"DOM.Function.getOffsetPos","hash":"","kind":64,"flags":{}},"1031":{"id":1031,"parentId":1030,"name":"getOffsetPos","query":"DOM.Function.getOffsetPos","hash":"getOffsetPos","kind":4096,"flags":{}},"1034":{"id":1034,"parentId":1030,"name":"left","query":"DOM.Function.getOffsetPos","hash":"getOffsetPos.left","kind":1024,"flags":{}},"1035":{"id":1035,"parentId":1030,"name":"top","query":"DOM.Function.getOffsetPos","hash":"getOffsetPos.top","kind":1024,"flags":{}},"1036":{"id":1036,"parentId":987,"name":"getScrollTop","query":"DOM.Function.getScrollTop","hash":"","kind":64,"flags":{}},"1037":{"id":1037,"parentId":1036,"name":"getScrollTop","query":"DOM.Function.getScrollTop","hash":"getScrollTop","kind":4096,"flags":{}},"1038":{"id":1038,"parentId":987,"name":"getScrollPosition","query":"DOM.Function.getScrollPosition","hash":"","kind":64,"flags":{}},"1039":{"id":1039,"parentId":1038,"name":"getScrollPosition","query":"DOM.Function.getScrollPosition","hash":"getScrollPosition","kind":4096,"flags":{}},"1042":{"id":1042,"parentId":1038,"name":"x","query":"DOM.Function.getScrollPosition","hash":"getScrollPosition.x","kind":1024,"flags":{}},"1043":{"id":1043,"parentId":1038,"name":"y","query":"DOM.Function.getScrollPosition","hash":"getScrollPosition.y","kind":1024,"flags":{}},"1044":{"id":1044,"parentId":987,"name":"setScrollTop","query":"DOM.Function.setScrollTop","hash":"","kind":64,"flags":{}},"1045":{"id":1045,"parentId":1044,"name":"setScrollTop","query":"DOM.Function.setScrollTop","hash":"setScrollTop","kind":4096,"flags":{}},"1047":{"id":1047,"parentId":987,"name":"animateScrollTo","query":"DOM.Function.animateScrollTo","hash":"","kind":64,"flags":{}},"1048":{"id":1048,"parentId":1047,"name":"animateScrollTo","query":"DOM.Function.animateScrollTo","hash":"animateScrollTo","kind":4096,"flags":{}},"1051":{"id":1051,"parentId":987,"name":"smoothScroll","query":"DOM.Function.smoothScroll","hash":"","kind":64,"flags":{}},"1052":{"id":1052,"parentId":1051,"name":"smoothScroll","query":"DOM.Function.smoothScroll","hash":"smoothScroll","kind":4096,"flags":{}},"1054":{"id":1054,"parentId":987,"name":"disableCopy","query":"DOM.Function.disableCopy","hash":"","kind":64,"flags":{}},"1055":{"id":1055,"parentId":1054,"name":"disableCopy","query":"DOM.Function.disableCopy","hash":"disableCopy","kind":4096,"flags":{}},"1056":{"id":1056,"parentId":987,"name":"requestAnimFrame","query":"DOM.Function.requestAnimFrame","hash":"","kind":64,"flags":{}},"1057":{"id":1057,"parentId":1056,"name":"requestAnimFrame","query":"DOM.Function.requestAnimFrame","hash":"requestAnimFrame","kind":4096,"flags":{}},"1062":{"id":1062,"name":"web-utils/src/file","query":"Module.web-utils/src/file","hash":"","kind":2,"flags":{}},"1063":{"id":1063,"parentId":1062,"name":"readFile","query":"web-utils/src/file.Function.readFile","hash":"","kind":64,"flags":{}},"1064":{"id":1064,"parentId":1063,"name":"readFile","query":"web-utils/src/file.Function.readFile","hash":"readFile","kind":4096,"flags":{}},"1066":{"id":1066,"parentId":1062,"name":"readFileAsDataURL","query":"web-utils/src/file.Function.readFileAsDataURL","hash":"","kind":64,"flags":{}},"1067":{"id":1067,"parentId":1066,"name":"readFileAsDataURL","query":"web-utils/src/file.Function.readFileAsDataURL","hash":"readFileAsDataURL","kind":4096,"flags":{}},"1069":{"id":1069,"parentId":1062,"name":"downloadFile","query":"web-utils/src/file.Function.downloadFile","hash":"","kind":64,"flags":{}},"1070":{"id":1070,"parentId":1069,"name":"downloadFile","query":"web-utils/src/file.Function.downloadFile","hash":"downloadFile","kind":4096,"flags":{}},"1074":{"id":1074,"parentId":1062,"name":"downloadImageFileByUrl","query":"web-utils/src/file.Function.downloadImageFileByUrl","hash":"","kind":64,"flags":{}},"1075":{"id":1075,"parentId":1074,"name":"downloadImageFileByUrl","query":"web-utils/src/file.Function.downloadImageFileByUrl","hash":"downloadImageFileByUrl","kind":4096,"flags":{}},"1079":{"id":1079,"parentId":1062,"name":"getFileExtension","query":"web-utils/src/file.Function.getFileExtension","hash":"","kind":64,"flags":{}},"1080":{"id":1080,"parentId":1079,"name":"getFileExtension","query":"web-utils/src/file.Function.getFileExtension","hash":"getFileExtension","kind":4096,"flags":{}},"1082":{"id":1082,"name":"Image","query":"Module.Image","hash":"","kind":2,"flags":{}},"1083":{"id":1083,"parentId":1082,"name":"isImageLoaded","query":"Image.Function.isImageLoaded","hash":"","kind":64,"flags":{}},"1084":{"id":1084,"parentId":1083,"name":"isImageLoaded","query":"Image.Function.isImageLoaded","hash":"isImageLoaded","kind":4096,"flags":{}},"1086":{"id":1086,"parentId":1082,"name":"getImageSize","query":"Image.Function.getImageSize","hash":"","kind":64,"flags":{}},"1087":{"id":1087,"parentId":1086,"name":"getImageSize","query":"Image.Function.getImageSize","hash":"getImageSize","kind":4096,"flags":{}},"1089":{"id":1089,"parentId":1082,"name":"isSupportWebP","query":"Image.Function.isSupportWebP","hash":"","kind":64,"flags":{}},"1090":{"id":1090,"parentId":1089,"name":"isSupportWebP","query":"Image.Function.isSupportWebP","hash":"isSupportWebP","kind":4096,"flags":{}},"1091":{"id":1091,"parentId":1082,"name":"cropImage","query":"Image.Function.cropImage","hash":"","kind":64,"flags":{}},"1092":{"id":1092,"parentId":1091,"name":"cropImage","query":"Image.Function.cropImage","hash":"cropImage","kind":4096,"flags":{}},"1098":{"id":1098,"parentId":1082,"name":"compressImage","query":"Image.Function.compressImage","hash":"","kind":64,"flags":{}},"1099":{"id":1099,"parentId":1098,"name":"compressImage","query":"Image.Function.compressImage","hash":"compressImage","kind":4096,"flags":{}},"1102":{"id":1102,"name":"web-utils/src","query":"Module.web-utils/src","hash":"","kind":2,"flags":{}},"1103":{"id":1103,"name":"keyboard","query":"Module.keyboard","hash":"","kind":2,"flags":{}},"1104":{"id":1104,"parentId":1103,"name":"getKeyName","query":"keyboard.Function.getKeyName","hash":"","kind":64,"flags":{}},"1105":{"id":1105,"parentId":1104,"name":"getKeyName","query":"keyboard.Function.getKeyName","hash":"getKeyName","kind":4096,"flags":{}},"1107":{"id":1107,"name":"loadAssets","query":"Module.loadAssets","hash":"","kind":2,"flags":{}},"1108":{"id":1108,"parentId":1107,"name":"loadScript","query":"loadAssets.Function.loadScript","hash":"","kind":64,"flags":{}},"1109":{"id":1109,"parentId":1108,"name":"loadScript","query":"loadAssets.Function.loadScript","hash":"loadScript","kind":4096,"flags":{}},"1112":{"id":1112,"parentId":1107,"name":"loadScriptList","query":"loadAssets.Function.loadScriptList","hash":"","kind":64,"flags":{}},"1113":{"id":1113,"parentId":1112,"name":"loadScriptList","query":"loadAssets.Function.loadScriptList","hash":"loadScriptList","kind":4096,"flags":{}},"1117":{"id":1117,"parentId":1107,"name":"loadCss","query":"loadAssets.Function.loadCss","hash":"","kind":64,"flags":{}},"1118":{"id":1118,"parentId":1117,"name":"loadCss","query":"loadAssets.Function.loadCss","hash":"loadCss","kind":4096,"flags":{}},"1120":{"id":1120,"parentId":1107,"name":"loadCssList","query":"loadAssets.Function.loadCssList","hash":"","kind":64,"flags":{}},"1121":{"id":1121,"parentId":1120,"name":"loadCssList","query":"loadAssets.Function.loadCssList","hash":"loadCssList","kind":4096,"flags":{}},"1123":{"id":1123,"parentId":1107,"name":"loadImage","query":"loadAssets.Function.loadImage","hash":"","kind":64,"flags":{}},"1124":{"id":1124,"parentId":1123,"name":"loadImage","query":"loadAssets.Function.loadImage","hash":"loadImage","kind":4096,"flags":{}},"1126":{"id":1126,"parentId":1107,"name":"loadImageList","query":"loadAssets.Function.loadImageList","hash":"","kind":64,"flags":{}},"1127":{"id":1127,"parentId":1126,"name":"loadImageList","query":"loadAssets.Function.loadImageList","hash":"loadImageList","kind":4096,"flags":{}},"1129":{"id":1129,"parentId":1107,"name":"loadCSV","query":"loadAssets.Function.loadCSV","hash":"","kind":64,"flags":{}},"1130":{"id":1130,"parentId":1129,"name":"loadCSV","query":"loadAssets.Function.loadCSV","hash":"loadCSV","kind":4096,"flags":{}},"1134":{"id":1134,"name":"web-utils/src/others","query":"Module.web-utils/src/others","hash":"","kind":2,"flags":{}},"1135":{"id":1135,"parentId":1134,"name":"isBase64","query":"web-utils/src/others.Function.isBase64","hash":"","kind":64,"flags":{}},"1136":{"id":1136,"parentId":1135,"name":"isBase64","query":"web-utils/src/others.Function.isBase64","hash":"isBase64","kind":4096,"flags":{}},"1138":{"id":1138,"name":"Platform","query":"Module.Platform","hash":"","kind":2,"flags":{}},"1139":{"id":1139,"parentId":1138,"name":"isPC","query":"Platform.Function.isPC","hash":"","kind":64,"flags":{}},"1140":{"id":1140,"parentId":1139,"name":"isPC","query":"Platform.Function.isPC","hash":"isPC","kind":4096,"flags":{}},"1141":{"id":1141,"parentId":1138,"name":"getPcExplore","query":"Platform.Function.getPcExplore","hash":"","kind":64,"flags":{}},"1142":{"id":1142,"parentId":1141,"name":"getPcExplore","query":"Platform.Function.getPcExplore","hash":"getPcExplore","kind":4096,"flags":{}},"1143":{"id":1143,"parentId":1138,"name":"getSystemOS","query":"Platform.Function.getSystemOS","hash":"","kind":64,"flags":{}},"1144":{"id":1144,"parentId":1143,"name":"getSystemOS","query":"Platform.Function.getSystemOS","hash":"getSystemOS","kind":4096,"flags":{}},"1145":{"id":1145,"parentId":1138,"name":"getMobilePlatform","query":"Platform.Function.getMobilePlatform","hash":"","kind":64,"flags":{}},"1146":{"id":1146,"parentId":1145,"name":"getMobilePlatform","query":"Platform.Function.getMobilePlatform","hash":"getMobilePlatform","kind":4096,"flags":{}},"1147":{"id":1147,"parentId":1138,"name":"getMobileOS","query":"Platform.Function.getMobileOS","hash":"","kind":64,"flags":{}},"1148":{"id":1148,"parentId":1147,"name":"getMobileOS","query":"Platform.Function.getMobileOS","hash":"getMobileOS","kind":4096,"flags":{}},"1150":{"id":1150,"parentId":1147,"name":"android","query":"Platform.Function.getMobileOS","hash":"getMobileOS.android","kind":1024,"flags":{}},"1151":{"id":1151,"parentId":1147,"name":"ios","query":"Platform.Function.getMobileOS","hash":"getMobileOS.ios","kind":1024,"flags":{}},"1152":{"id":1152,"parentId":1138,"name":"getMobileBrandIdentify","query":"Platform.Function.getMobileBrandIdentify","hash":"","kind":64,"flags":{}},"1153":{"id":1153,"parentId":1152,"name":"getMobileBrandIdentify","query":"Platform.Function.getMobileBrandIdentify","hash":"getMobileBrandIdentify","kind":4096,"flags":{}},"1154":{"id":1154,"parentId":1138,"name":"ua","query":"Platform.Variable.ua","hash":"","kind":32,"flags":{"isConst":true}},"1155":{"id":1155,"name":"web-utils/src/rem","query":"Module.web-utils/src/rem","hash":"","kind":2,"flags":{}},"1156":{"id":1156,"parentId":1155,"name":"Window","query":"web-utils/src/rem.Interface.Window","hash":"","kind":256,"flags":{}},"1157":{"id":1157,"parentId":1156,"name":"norem","query":"web-utils/src/rem.Interface.Window","hash":"norem","kind":1024,"flags":{"isOptional":true}},"1158":{"id":1158,"parentId":1156,"name":"flexible","query":"web-utils/src/rem.Interface.Window","hash":"flexible","kind":1024,"flags":{}},"1159":{"id":1159,"name":"Screen","query":"Module.Screen","hash":"","kind":2,"flags":{}},"1160":{"id":1160,"parentId":1159,"name":"isFullScreen","query":"Screen.Function.isFullScreen","hash":"","kind":64,"flags":{}},"1161":{"id":1161,"parentId":1160,"name":"isFullScreen","query":"Screen.Function.isFullScreen","hash":"isFullScreen","kind":4096,"flags":{}},"1162":{"id":1162,"parentId":1159,"name":"isFullScreenEnabled","query":"Screen.Function.isFullScreenEnabled","hash":"","kind":64,"flags":{}},"1163":{"id":1163,"parentId":1162,"name":"isFullScreenEnabled","query":"Screen.Function.isFullScreenEnabled","hash":"isFullScreenEnabled","kind":4096,"flags":{}},"1164":{"id":1164,"parentId":1159,"name":"enterFullscreen","query":"Screen.Function.enterFullscreen","hash":"","kind":64,"flags":{}},"1165":{"id":1165,"parentId":1164,"name":"enterFullscreen","query":"Screen.Function.enterFullscreen","hash":"enterFullscreen","kind":4096,"flags":{}},"1167":{"id":1167,"parentId":1159,"name":"exitFullscreen","query":"Screen.Function.exitFullscreen","hash":"","kind":64,"flags":{}},"1168":{"id":1168,"parentId":1167,"name":"exitFullscreen","query":"Screen.Function.exitFullscreen","hash":"exitFullscreen","kind":4096,"flags":{}},"1169":{"id":1169,"parentId":1159,"name":"getClientHeight","query":"Screen.Function.getClientHeight","hash":"","kind":64,"flags":{}},"1170":{"id":1170,"parentId":1169,"name":"getClientHeight","query":"Screen.Function.getClientHeight","hash":"getClientHeight","kind":4096,"flags":{}},"1171":{"id":1171,"parentId":1159,"name":"getClientWidth","query":"Screen.Function.getClientWidth","hash":"","kind":64,"flags":{}},"1172":{"id":1172,"parentId":1171,"name":"getClientWidth","query":"Screen.Function.getClientWidth","hash":"getClientWidth","kind":4096,"flags":{}},"1173":{"id":1173,"name":"web-utils/src/storage","query":"Module.web-utils/src/storage","hash":"","kind":2,"flags":{}},"1174":{"id":1174,"parentId":1173,"name":"default","query":"web-utils/src/storage.Function.default","hash":"","kind":64,"flags":{}},"1175":{"id":1175,"parentId":1174,"name":"default","query":"web-utils/src/storage.Function.default","hash":"default","kind":4096,"flags":{}},"1178":{"id":1178,"parentId":1174,"name":"set","query":"web-utils/src/storage.Function.default","hash":"default.set","kind":2048,"flags":{}},"1179":{"id":1179,"parentId":1174,"name":"set","query":"web-utils/src/storage.Function.default","hash":"default.set.set","kind":4096,"flags":{}},"1186":{"id":1186,"parentId":1174,"name":"get","query":"web-utils/src/storage.Function.default","hash":"default.get","kind":2048,"flags":{}},"1187":{"id":1187,"parentId":1174,"name":"get","query":"web-utils/src/storage.Function.default","hash":"default.get.get","kind":4096,"flags":{}},"1189":{"id":1189,"parentId":1174,"name":"remove","query":"web-utils/src/storage.Function.default","hash":"default.remove","kind":2048,"flags":{}},"1190":{"id":1190,"parentId":1174,"name":"remove","query":"web-utils/src/storage.Function.default","hash":"default.remove.remove","kind":4096,"flags":{}},"1192":{"id":1192,"name":"Url","query":"Module.Url","hash":"","kind":2,"flags":{}},"1193":{"id":1193,"parentId":1192,"name":"parseQueryString","query":"Url.Function.parseQueryString","hash":"","kind":64,"flags":{}},"1194":{"id":1194,"parentId":1193,"name":"parseQueryString","query":"Url.Function.parseQueryString","hash":"parseQueryString","kind":4096,"flags":{}},"1196":{"id":1196,"parentId":1192,"name":"getUrlParam","query":"Url.Function.getUrlParam","hash":"","kind":64,"flags":{}},"1197":{"id":1197,"parentId":1196,"name":"getUrlParam","query":"Url.Function.getUrlParam","hash":"getUrlParam","kind":4096,"flags":{}},"1203":{"id":1203,"parentId":1192,"name":"httpsRedirect","query":"Url.Function.httpsRedirect","hash":"","kind":64,"flags":{}},"1204":{"id":1204,"parentId":1203,"name":"httpsRedirect","query":"Url.Function.httpsRedirect","hash":"httpsRedirect","kind":4096,"flags":{}},"1206":{"id":1206,"parentId":1192,"name":"paramsJoinUrl","query":"Url.Function.paramsJoinUrl","hash":"","kind":64,"flags":{}},"1207":{"id":1207,"parentId":1206,"name":"paramsJoinUrl","query":"Url.Function.paramsJoinUrl","hash":"paramsJoinUrl","kind":4096,"flags":{}},"1212":{"id":1212,"parentId":1192,"name":"getBaseUrl","query":"Url.Function.getBaseUrl","hash":"","kind":64,"flags":{}},"1213":{"id":1213,"parentId":1212,"name":"getBaseUrl","query":"Url.Function.getBaseUrl","hash":"getBaseUrl","kind":4096,"flags":{}},"1215":{"id":1215,"parentId":1192,"name":"getUrlDomain","query":"Url.Function.getUrlDomain","hash":"","kind":64,"flags":{}},"1216":{"id":1216,"parentId":1215,"name":"getUrlDomain","query":"Url.Function.getUrlDomain","hash":"getUrlDomain","kind":4096,"flags":{}},"1218":{"id":1218,"parentId":1192,"name":"uniqueSlash","query":"Url.Function.uniqueSlash","hash":"","kind":64,"flags":{}},"1219":{"id":1219,"parentId":1218,"name":"uniqueSlash","query":"Url.Function.uniqueSlash","hash":"uniqueSlash","kind":4096,"flags":{}},"1221":{"id":1221,"name":"canvas-utils/src","query":"Module.canvas-utils/src","hash":"","kind":2,"flags":{}},"1222":{"id":1222,"name":"ai-utils/src","query":"Module.ai-utils/src","hash":"","kind":2,"flags":{}},"1223":{"id":1223,"name":"node-img-build/src/handleImg","query":"Module.node-img-build/src/handleImg","hash":"","kind":2,"flags":{}},"1224":{"id":1224,"parentId":1223,"name":"getGmStream","query":"node-img-build/src/handleImg.Function.getGmStream","hash":"","kind":64,"flags":{}},"1225":{"id":1225,"parentId":1224,"name":"getGmStream","query":"node-img-build/src/handleImg.Function.getGmStream","hash":"getGmStream","kind":4096,"flags":{}},"1233":{"id":1233,"parentId":1223,"name":"toWebpImg","query":"node-img-build/src/handleImg.Function.toWebpImg","hash":"","kind":64,"flags":{}},"1234":{"id":1234,"parentId":1233,"name":"toWebpImg","query":"node-img-build/src/handleImg.Function.toWebpImg","hash":"toWebpImg","kind":4096,"flags":{}},"1242":{"id":1242,"parentId":1223,"name":"toBlurImg","query":"node-img-build/src/handleImg.Function.toBlurImg","hash":"","kind":64,"flags":{}},"1243":{"id":1243,"parentId":1242,"name":"toBlurImg","query":"node-img-build/src/handleImg.Function.toBlurImg","hash":"toBlurImg","kind":4096,"flags":{}},"1246":{"id":1246,"parentId":1223,"name":"toBase64","query":"node-img-build/src/handleImg.Function.toBase64","hash":"","kind":64,"flags":{}},"1247":{"id":1247,"parentId":1246,"name":"toBase64","query":"node-img-build/src/handleImg.Function.toBase64","hash":"toBase64","kind":4096,"flags":{}},"1254":{"id":1254,"parentId":1223,"name":"resizeImg","query":"node-img-build/src/handleImg.Function.resizeImg","hash":"","kind":64,"flags":{}},"1255":{"id":1255,"parentId":1254,"name":"resizeImg","query":"node-img-build/src/handleImg.Function.resizeImg","hash":"resizeImg","kind":4096,"flags":{}},"1259":{"id":1259,"parentId":1223,"name":"default","query":"node-img-build/src/handleImg.Variable.default","hash":"","kind":32,"flags":{}},"1261":{"id":1261,"parentId":1259,"name":"getGmStream","query":"node-img-build/src/handleImg.Variable.default","hash":"getGmStream","kind":4096,"flags":{}},"1271":{"id":1271,"parentId":1259,"name":"toWebpImg","query":"node-img-build/src/handleImg.Variable.default","hash":"toWebpImg","kind":4096,"flags":{}},"1281":{"id":1281,"parentId":1259,"name":"toBlurImg","query":"node-img-build/src/handleImg.Variable.default","hash":"toBlurImg","kind":4096,"flags":{}},"1286":{"id":1286,"parentId":1259,"name":"toBase64","query":"node-img-build/src/handleImg.Variable.default","hash":"toBase64","kind":4096,"flags":{}},"1295":{"id":1295,"parentId":1259,"name":"resizeImg","query":"node-img-build/src/handleImg.Variable.default","hash":"resizeImg","kind":4096,"flags":{}},"1301":{"id":1301,"parentId":540,"name":"arrayMax","query":"Module.utils/src","hash":"arrayMax","kind":8388608,"flags":{}},"1302":{"id":1302,"parentId":540,"name":"arrayMin","query":"Module.utils/src","hash":"arrayMin","kind":8388608,"flags":{}},"1303":{"id":1303,"parentId":540,"name":"arrayAverage","query":"Module.utils/src","hash":"arrayAverage","kind":8388608,"flags":{}},"1304":{"id":1304,"parentId":540,"name":"arraySum","query":"Module.utils/src","hash":"arraySum","kind":8388608,"flags":{}},"1305":{"id":1305,"parentId":540,"name":"size","query":"Module.utils/src","hash":"size","kind":8388608,"flags":{}},"1306":{"id":1306,"parentId":540,"name":"arrayToCSV","query":"Module.utils/src","hash":"arrayToCSV","kind":8388608,"flags":{}},"1307":{"id":1307,"parentId":540,"name":"castArray","query":"Module.utils/src","hash":"castArray","kind":8388608,"flags":{}},"1308":{"id":1308,"parentId":540,"name":"chunk","query":"Module.utils/src","hash":"chunk","kind":8388608,"flags":{}},"1309":{"id":1309,"parentId":540,"name":"compact","query":"Module.utils/src","hash":"compact","kind":8388608,"flags":{}},"1310":{"id":1310,"parentId":540,"name":"countOccurrences","query":"Module.utils/src","hash":"countOccurrences","kind":8388608,"flags":{}},"1311":{"id":1311,"parentId":540,"name":"deepFlatten","query":"Module.utils/src","hash":"deepFlatten","kind":8388608,"flags":{}},"1312":{"id":1312,"parentId":540,"name":"flatten","query":"Module.utils/src","hash":"flatten","kind":8388608,"flags":{}},"1313":{"id":1313,"parentId":540,"name":"difference","query":"Module.utils/src","hash":"difference","kind":8388608,"flags":{}},"1314":{"id":1314,"parentId":540,"name":"differenceBy","query":"Module.utils/src","hash":"differenceBy","kind":8388608,"flags":{}},"1315":{"id":1315,"parentId":540,"name":"drop","query":"Module.utils/src","hash":"drop","kind":8388608,"flags":{}},"1316":{"id":1316,"parentId":540,"name":"dropWhile","query":"Module.utils/src","hash":"dropWhile","kind":8388608,"flags":{}},"1317":{"id":1317,"parentId":540,"name":"indexOfAll","query":"Module.utils/src","hash":"indexOfAll","kind":8388608,"flags":{}},"1318":{"id":1318,"parentId":540,"name":"intersection","query":"Module.utils/src","hash":"intersection","kind":8388608,"flags":{}},"1319":{"id":1319,"parentId":540,"name":"intersectionBy","query":"Module.utils/src","hash":"intersectionBy","kind":8388608,"flags":{}},"1320":{"id":1320,"parentId":540,"name":"intersectionWith","query":"Module.utils/src","hash":"intersectionWith","kind":8388608,"flags":{}},"1321":{"id":1321,"parentId":540,"name":"negate","query":"Module.utils/src","hash":"negate","kind":8388608,"flags":{}},"1322":{"id":1322,"parentId":540,"name":"sample","query":"Module.utils/src","hash":"sample","kind":8388608,"flags":{}},"1323":{"id":1323,"parentId":540,"name":"sampleSize","query":"Module.utils/src","hash":"sampleSize","kind":8388608,"flags":{}},"1324":{"id":1324,"parentId":540,"name":"shuffle","query":"Module.utils/src","hash":"shuffle","kind":8388608,"flags":{}},"1325":{"id":1325,"parentId":540,"name":"everyNth","query":"Module.utils/src","hash":"everyNth","kind":8388608,"flags":{}},"1326":{"id":1326,"parentId":540,"name":"unique","query":"Module.utils/src","hash":"unique","kind":8388608,"flags":{}},"1327":{"id":1327,"parentId":540,"name":"filterNonUnique","query":"Module.utils/src","hash":"filterNonUnique","kind":8388608,"flags":{}},"1328":{"id":1328,"parentId":540,"name":"initializeArrayWithValues","query":"Module.utils/src","hash":"initializeArrayWithValues","kind":8388608,"flags":{}},"1329":{"id":1329,"parentId":540,"name":"remove","query":"Module.utils/src","hash":"remove","kind":8388608,"flags":{}},"1330":{"id":1330,"parentId":540,"name":"digitize","query":"Module.utils/src","hash":"digitize","kind":8388608,"flags":{}},"1331":{"id":1331,"parentId":540,"name":"fibonacci","query":"Module.utils/src","hash":"fibonacci","kind":8388608,"flags":{}},"1332":{"id":1332,"parentId":540,"name":"median","query":"Module.utils/src","hash":"median","kind":8388608,"flags":{}},"1333":{"id":1333,"parentId":540,"name":"NumberArr","query":"Module.utils/src","hash":"NumberArr","kind":8388608,"flags":{}},"1334":{"id":1334,"parentId":540,"name":"AnyArr","query":"Module.utils/src","hash":"AnyArr","kind":8388608,"flags":{}},"1335":{"id":1335,"parentId":540,"name":"allEqual","query":"Module.utils/src","hash":"allEqual","kind":8388608,"flags":{}},"1336":{"id":1336,"parentId":540,"name":"validatePassport","query":"Module.utils/src","hash":"validatePassport","kind":8388608,"flags":{}},"1337":{"id":1337,"parentId":540,"name":"validateLicensePlate","query":"Module.utils/src","hash":"validateLicensePlate","kind":8388608,"flags":{}},"1338":{"id":1338,"parentId":540,"name":"checkPwdStrength","query":"Module.utils/src","hash":"checkPwdStrength","kind":8388608,"flags":{}},"1339":{"id":1339,"parentId":540,"name":"checkIdcard","query":"Module.utils/src","hash":"checkIdcard","kind":8388608,"flags":{}},"1340":{"id":1340,"parentId":540,"name":"isEmail","query":"Module.utils/src","hash":"isEmail","kind":8388608,"flags":{}},"1341":{"id":1341,"parentId":540,"name":"isIdCard","query":"Module.utils/src","hash":"isIdCard","kind":8388608,"flags":{}},"1342":{"id":1342,"parentId":540,"name":"isUrl","query":"Module.utils/src","hash":"isUrl","kind":8388608,"flags":{}},"1343":{"id":1343,"parentId":540,"name":"isPhoneNumber","query":"Module.utils/src","hash":"isPhoneNumber","kind":8388608,"flags":{}},"1344":{"id":1344,"parentId":540,"name":"isPostalCode","query":"Module.utils/src","hash":"isPostalCode","kind":8388608,"flags":{}},"1345":{"id":1345,"parentId":540,"name":"isBankCard","query":"Module.utils/src","hash":"isBankCard","kind":8388608,"flags":{}},"1346":{"id":1346,"parentId":540,"name":"randomHexColor","query":"Module.utils/src","hash":"randomHexColor","kind":8388608,"flags":{}},"1347":{"id":1347,"parentId":540,"name":"getColorRgbArr","query":"Module.utils/src","hash":"getColorRgbArr","kind":8388608,"flags":{}},"1348":{"id":1348,"parentId":540,"name":"getColorRgba","query":"Module.utils/src","hash":"getColorRgba","kind":8388608,"flags":{}},"1349":{"id":1349,"parentId":540,"name":"isTransparentColor","query":"Module.utils/src","hash":"isTransparentColor","kind":8388608,"flags":{}},"1350":{"id":1350,"parentId":540,"name":"dayOfYear","query":"Module.utils/src","hash":"dayOfYear","kind":8388608,"flags":{}},"1351":{"id":1351,"parentId":540,"name":"getColonTimeFromDate","query":"Module.utils/src","hash":"getColonTimeFromDate","kind":8388608,"flags":{}},"1352":{"id":1352,"parentId":540,"name":"getDaysDiffBetweenDates","query":"Module.utils/src","hash":"getDaysDiffBetweenDates","kind":8388608,"flags":{}},"1353":{"id":1353,"parentId":540,"name":"isAfterDate","query":"Module.utils/src","hash":"isAfterDate","kind":8388608,"flags":{}},"1354":{"id":1354,"parentId":540,"name":"isBeforeDate","query":"Module.utils/src","hash":"isBeforeDate","kind":8388608,"flags":{}},"1355":{"id":1355,"parentId":540,"name":"daysLater","query":"Module.utils/src","hash":"daysLater","kind":8388608,"flags":{}},"1356":{"id":1356,"parentId":540,"name":"getFormattedRemainTime","query":"Module.utils/src","hash":"getFormattedRemainTime","kind":8388608,"flags":{}},"1357":{"id":1357,"parentId":540,"name":"EasingFunction","query":"Module.utils/src","hash":"EasingFunction","kind":8388608,"flags":{}},"1358":{"id":1358,"parentId":540,"name":"attempt","query":"Module.utils/src","hash":"attempt","kind":8388608,"flags":{}},"1359":{"id":1359,"parentId":540,"name":"defer","query":"Module.utils/src","hash":"defer","kind":8388608,"flags":{}},"1360":{"id":1360,"parentId":540,"name":"runPromisesInSeries","query":"Module.utils/src","hash":"runPromisesInSeries","kind":8388608,"flags":{}},"1361":{"id":1361,"parentId":540,"name":"timeTaken","query":"Module.utils/src","hash":"timeTaken","kind":8388608,"flags":{}},"1362":{"id":1362,"parentId":540,"name":"memoize","query":"Module.utils/src","hash":"memoize","kind":8388608,"flags":{}},"1363":{"id":1363,"parentId":540,"name":"once","query":"Module.utils/src","hash":"once","kind":8388608,"flags":{}},"1364":{"id":1364,"parentId":540,"name":"chainAsync","query":"Module.utils/src","hash":"chainAsync","kind":8388608,"flags":{}},"1365":{"id":1365,"parentId":540,"name":"compose","query":"Module.utils/src","hash":"compose","kind":8388608,"flags":{}},"1366":{"id":1366,"parentId":540,"name":"pipe","query":"Module.utils/src","hash":"pipe","kind":8388608,"flags":{}},"1367":{"id":1367,"parentId":540,"name":"functionName","query":"Module.utils/src","hash":"functionName","kind":8388608,"flags":{}},"1368":{"id":1368,"parentId":540,"name":"promisify","query":"Module.utils/src","hash":"promisify","kind":8388608,"flags":{}},"1369":{"id":1369,"parentId":540,"name":"sleep","query":"Module.utils/src","hash":"sleep","kind":8388608,"flags":{}},"1370":{"id":1370,"parentId":540,"name":"throttle","query":"Module.utils/src","hash":"throttle","kind":8388608,"flags":{}},"1371":{"id":1371,"parentId":540,"name":"debounce","query":"Module.utils/src","hash":"debounce","kind":8388608,"flags":{}},"1372":{"id":1372,"parentId":540,"name":"NOOP","query":"Module.utils/src","hash":"NOOP","kind":8388608,"flags":{}},"1373":{"id":1373,"parentId":540,"name":"curry","query":"Module.utils/src","hash":"curry","kind":8388608,"flags":{}},"1374":{"id":1374,"parentId":540,"name":"factorial","query":"Module.utils/src","hash":"factorial","kind":8388608,"flags":{}},"1375":{"id":1375,"parentId":540,"name":"gcd","query":"Module.utils/src","hash":"gcd","kind":8388608,"flags":{}},"1376":{"id":1376,"parentId":540,"name":"isDivisible","query":"Module.utils/src","hash":"isDivisible","kind":8388608,"flags":{}},"1377":{"id":1377,"parentId":540,"name":"lcm","query":"Module.utils/src","hash":"lcm","kind":8388608,"flags":{}},"1378":{"id":1378,"parentId":540,"name":"isOdd","query":"Module.utils/src","hash":"isOdd","kind":8388608,"flags":{}},"1379":{"id":1379,"parentId":540,"name":"isValidNumber","query":"Module.utils/src","hash":"isValidNumber","kind":8388608,"flags":{}},"1380":{"id":1380,"parentId":540,"name":"isApproximatelyEqual","query":"Module.utils/src","hash":"isApproximatelyEqual","kind":8388608,"flags":{}},"1381":{"id":1381,"parentId":540,"name":"average","query":"Module.utils/src","hash":"average","kind":8388608,"flags":{}},"1382":{"id":1382,"parentId":540,"name":"randomIntegerInRange","query":"Module.utils/src","hash":"randomIntegerInRange","kind":8388608,"flags":{}},"1383":{"id":1383,"parentId":540,"name":"randomNumberInRange","query":"Module.utils/src","hash":"randomNumberInRange","kind":8388608,"flags":{}},"1384":{"id":1384,"parentId":540,"name":"randomIntArrayInRange","query":"Module.utils/src","hash":"randomIntArrayInRange","kind":8388608,"flags":{}},"1385":{"id":1385,"parentId":540,"name":"round","query":"Module.utils/src","hash":"round","kind":8388608,"flags":{}},"1386":{"id":1386,"parentId":540,"name":"sum","query":"Module.utils/src","hash":"sum","kind":8388608,"flags":{}},"1387":{"id":1387,"parentId":540,"name":"clamp","query":"Module.utils/src","hash":"clamp","kind":8388608,"flags":{}},"1388":{"id":1388,"parentId":540,"name":"isInt","query":"Module.utils/src","hash":"isInt","kind":8388608,"flags":{}},"1389":{"id":1389,"parentId":540,"name":"isFloat","query":"Module.utils/src","hash":"isFloat","kind":8388608,"flags":{}},"1390":{"id":1390,"parentId":540,"name":"forOwn","query":"Module.utils/src","hash":"forOwn","kind":8388608,"flags":{}},"1391":{"id":1391,"parentId":540,"name":"objectFromPairs","query":"Module.utils/src","hash":"objectFromPairs","kind":8388608,"flags":{}},"1392":{"id":1392,"parentId":540,"name":"mapObject","query":"Module.utils/src","hash":"mapObject","kind":8388608,"flags":{}},"1393":{"id":1393,"parentId":540,"name":"pick","query":"Module.utils/src","hash":"pick","kind":8388608,"flags":{}},"1394":{"id":1394,"parentId":540,"name":"hasOwnProperty","query":"Module.utils/src","hash":"hasOwnProperty","kind":8388608,"flags":{}},"1395":{"id":1395,"parentId":540,"name":"isEmptyObj","query":"Module.utils/src","hash":"isEmptyObj","kind":8388608,"flags":{}},"1396":{"id":1396,"parentId":540,"name":"PlainObject","query":"Module.utils/src","hash":"PlainObject","kind":8388608,"flags":{}},"1397":{"id":1397,"parentId":540,"name":"compareVersion","query":"Module.utils/src","hash":"compareVersion","kind":8388608,"flags":{}},"1398":{"id":1398,"parentId":540,"name":"digitUppercase","query":"Module.utils/src","hash":"digitUppercase","kind":8388608,"flags":{}},"1399":{"id":1399,"parentId":540,"name":"byteSize","query":"Module.utils/src","hash":"byteSize","kind":8388608,"flags":{}},"1400":{"id":1400,"parentId":540,"name":"capitalize","query":"Module.utils/src","hash":"capitalize","kind":8388608,"flags":{}},"1401":{"id":1401,"parentId":540,"name":"capitalizeEveryWord","query":"Module.utils/src","hash":"capitalizeEveryWord","kind":8388608,"flags":{}},"1402":{"id":1402,"parentId":540,"name":"decapitalize","query":"Module.utils/src","hash":"decapitalize","kind":8388608,"flags":{}},"1403":{"id":1403,"parentId":540,"name":"splitLines","query":"Module.utils/src","hash":"splitLines","kind":8388608,"flags":{}},"1404":{"id":1404,"parentId":540,"name":"stripHTMLTags","query":"Module.utils/src","hash":"stripHTMLTags","kind":8388608,"flags":{}},"1405":{"id":1405,"parentId":540,"name":"palindrome","query":"Module.utils/src","hash":"palindrome","kind":8388608,"flags":{}},"1406":{"id":1406,"parentId":540,"name":"fromCamelCase","query":"Module.utils/src","hash":"fromCamelCase","kind":8388608,"flags":{}},"1407":{"id":1407,"parentId":540,"name":"reverseString","query":"Module.utils/src","hash":"reverseString","kind":8388608,"flags":{}},"1408":{"id":1408,"parentId":540,"name":"truncateString","query":"Module.utils/src","hash":"truncateString","kind":8388608,"flags":{}},"1409":{"id":1409,"parentId":540,"name":"isChinese","query":"Module.utils/src","hash":"isChinese","kind":8388608,"flags":{}},"1410":{"id":1410,"parentId":540,"name":"camelize","query":"Module.utils/src","hash":"camelize","kind":8388608,"flags":{}},"1411":{"id":1411,"parentId":540,"name":"luhnCheck","query":"Module.utils/src","hash":"luhnCheck","kind":8388608,"flags":{}},"1412":{"id":1412,"parentId":540,"name":"toCurrency","query":"Module.utils/src","hash":"toCurrency","kind":8388608,"flags":{}},"1413":{"id":1413,"parentId":540,"name":"type","query":"Module.utils/src","hash":"type","kind":8388608,"flags":{}},"1414":{"id":1414,"parentId":540,"name":"isUndefined","query":"Module.utils/src","hash":"isUndefined","kind":8388608,"flags":{}},"1415":{"id":1415,"parentId":540,"name":"isString","query":"Module.utils/src","hash":"isString","kind":8388608,"flags":{}},"1416":{"id":1416,"parentId":540,"name":"isNumber","query":"Module.utils/src","hash":"isNumber","kind":8388608,"flags":{}},"1417":{"id":1417,"parentId":540,"name":"isObject","query":"Module.utils/src","hash":"isObject","kind":8388608,"flags":{}},"1418":{"id":1418,"parentId":540,"name":"isFunction","query":"Module.utils/src","hash":"isFunction","kind":8388608,"flags":{}},"1419":{"id":1419,"parentId":540,"name":"equals","query":"Module.utils/src","hash":"equals","kind":8388608,"flags":{}},"1420":{"id":1420,"parentId":540,"name":"isArray","query":"Module.utils/src","hash":"isArray","kind":8388608,"flags":{}},"1421":{"id":1421,"parentId":540,"name":"isPrimitive","query":"Module.utils/src","hash":"isPrimitive","kind":8388608,"flags":{}},"1422":{"id":1422,"parentId":540,"name":"isDate","query":"Module.utils/src","hash":"isDate","kind":8388608,"flags":{}},"1423":{"id":1423,"parentId":732,"name":"Fs","query":"node-utils/src.Variable.Fs","hash":"","kind":32,"flags":{}},"1425":{"id":1425,"parentId":1423,"name":"travelFolderSync","query":"node-utils/src.Variable.Fs","hash":"travelFolderSync","kind":4096,"flags":{}},"1437":{"id":1437,"parentId":1423,"name":"fsExistsSync","query":"node-utils/src.Variable.Fs","hash":"fsExistsSync","kind":4096,"flags":{}},"1441":{"id":1441,"parentId":1423,"name":"setFolderSync","query":"node-utils/src.Variable.Fs","hash":"setFolderSync","kind":4096,"flags":{}},"1446":{"id":1446,"parentId":1423,"name":"mkdirsSync","query":"node-utils/src.Variable.Fs","hash":"mkdirsSync","kind":4096,"flags":{}},"1450":{"id":1450,"parentId":1423,"name":"rmdirsSync","query":"node-utils/src.Variable.Fs","hash":"rmdirsSync","kind":4096,"flags":{}},"1454":{"id":1454,"parentId":1423,"name":"writeFile","query":"node-utils/src.Variable.Fs","hash":"writeFile","kind":4096,"flags":{}},"1460":{"id":1460,"parentId":1423,"name":"readFileSync","query":"node-utils/src.Variable.Fs","hash":"readFileSync","kind":4096,"flags":{}},"1464":{"id":1464,"parentId":1423,"name":"readJson","query":"node-utils/src.Variable.Fs","hash":"readJson","kind":4096,"flags":{}},"1468":{"id":1468,"parentId":732,"name":"OS","query":"node-utils/src.Variable.OS","hash":"","kind":32,"flags":{}},"1470":{"id":1470,"parentId":1468,"name":"platform","query":"node-utils/src.Variable.OS","hash":"platform","kind":4096,"flags":{}},"1473":{"id":1473,"parentId":1468,"name":"cpuCount","query":"node-utils/src.Variable.OS","hash":"cpuCount","kind":4096,"flags":{}},"1476":{"id":1476,"parentId":1468,"name":"sysUptime","query":"node-utils/src.Variable.OS","hash":"sysUptime","kind":4096,"flags":{}},"1479":{"id":1479,"parentId":1468,"name":"processUptime","query":"node-utils/src.Variable.OS","hash":"processUptime","kind":4096,"flags":{}},"1482":{"id":1482,"parentId":1468,"name":"freemem","query":"node-utils/src.Variable.OS","hash":"freemem","kind":4096,"flags":{}},"1485":{"id":1485,"parentId":1468,"name":"totalmem","query":"node-utils/src.Variable.OS","hash":"totalmem","kind":4096,"flags":{}},"1488":{"id":1488,"parentId":1468,"name":"freememPercentage","query":"node-utils/src.Variable.OS","hash":"freememPercentage","kind":4096,"flags":{}},"1491":{"id":1491,"parentId":1468,"name":"freeCommand","query":"node-utils/src.Variable.OS","hash":"freeCommand","kind":4096,"flags":{}},"1495":{"id":1495,"parentId":1468,"name":"harddrive","query":"node-utils/src.Variable.OS","hash":"harddrive","kind":4096,"flags":{}},"1499":{"id":1499,"parentId":1468,"name":"getProcesses","query":"node-utils/src.Variable.OS","hash":"getProcesses","kind":4096,"flags":{}},"1504":{"id":1504,"parentId":1468,"name":"allLoadavg","query":"node-utils/src.Variable.OS","hash":"allLoadavg","kind":4096,"flags":{}},"1507":{"id":1507,"parentId":1468,"name":"loadavg","query":"node-utils/src.Variable.OS","hash":"loadavg","kind":4096,"flags":{}},"1511":{"id":1511,"parentId":1468,"name":"cpuFree","query":"node-utils/src.Variable.OS","hash":"cpuFree","kind":4096,"flags":{}},"1515":{"id":1515,"parentId":1468,"name":"cpuUsage","query":"node-utils/src.Variable.OS","hash":"cpuUsage","kind":4096,"flags":{}},"1519":{"id":1519,"parentId":1468,"name":"getCPUUsage","query":"node-utils/src.Variable.OS","hash":"getCPUUsage","kind":4096,"flags":{}},"1524":{"id":1524,"parentId":1468,"name":"getCPUInfo","query":"node-utils/src.Variable.OS","hash":"getCPUInfo","kind":4096,"flags":{}},"1530":{"id":1530,"parentId":732,"name":"Run","query":"node-utils/src.Variable.Run","hash":"","kind":32,"flags":{}},"1532":{"id":1532,"parentId":1530,"name":"forceRunAsync","query":"node-utils/src.Variable.Run","hash":"forceRunAsync","kind":4096,"flags":{}},"1538":{"id":1538,"parentId":1530,"name":"runPromise","query":"node-utils/src.Variable.Run","hash":"runPromise","kind":4096,"flags":{}},"1542":{"id":1542,"parentId":1530,"name":"runAsync","query":"node-utils/src.Variable.Run","hash":"runAsync","kind":4096,"flags":{}},"1548":{"id":1548,"parentId":1530,"name":"runSync","query":"node-utils/src.Variable.Run","hash":"runSync","kind":4096,"flags":{}},"1554":{"id":1554,"parentId":1530,"name":"exit","query":"node-utils/src.Variable.Run","hash":"exit","kind":4096,"flags":{}},"1557":{"id":1557,"parentId":732,"name":"Fn","query":"node-utils/src.Variable.Fn","hash":"","kind":32,"flags":{}},"1559":{"id":1559,"parentId":1557,"name":"isBuffer","query":"node-utils/src.Variable.Fn","hash":"isBuffer","kind":1024,"flags":{}},"1560":{"id":1560,"parentId":1557,"name":"getTimeStr","query":"node-utils/src.Variable.Fn","hash":"getTimeStr","kind":4096,"flags":{}},"1564":{"id":1564,"parentId":732,"name":"Colors","query":"node-utils/src.Variable.Colors","hash":"","kind":32,"flags":{}},"1566":{"id":1566,"parentId":1564,"name":"colors","query":"node-utils/src.Variable.Colors","hash":"colors","kind":1024,"flags":{}},"1568":{"id":1568,"parentId":1564,"name":"end","query":"node-utils/src.Variable.Colors","hash":"colors.end","kind":1024,"flags":{}},"1569":{"id":1569,"parentId":1564,"name":"Reset","query":"node-utils/src.Variable.Colors","hash":"colors.Reset","kind":1024,"flags":{}},"1570":{"id":1570,"parentId":1564,"name":"Bright","query":"node-utils/src.Variable.Colors","hash":"colors.Bright","kind":1024,"flags":{}},"1571":{"id":1571,"parentId":1564,"name":"Dim","query":"node-utils/src.Variable.Colors","hash":"colors.Dim","kind":1024,"flags":{}},"1572":{"id":1572,"parentId":1564,"name":"Underscore","query":"node-utils/src.Variable.Colors","hash":"colors.Underscore","kind":1024,"flags":{}},"1573":{"id":1573,"parentId":1564,"name":"Blink","query":"node-utils/src.Variable.Colors","hash":"colors.Blink","kind":1024,"flags":{}},"1574":{"id":1574,"parentId":1564,"name":"Reverse","query":"node-utils/src.Variable.Colors","hash":"colors.Reverse","kind":1024,"flags":{}},"1575":{"id":1575,"parentId":1564,"name":"Hidden","query":"node-utils/src.Variable.Colors","hash":"colors.Hidden","kind":1024,"flags":{}},"1576":{"id":1576,"parentId":1564,"name":"FgBlack","query":"node-utils/src.Variable.Colors","hash":"colors.FgBlack","kind":1024,"flags":{}},"1577":{"id":1577,"parentId":1564,"name":"FgRed","query":"node-utils/src.Variable.Colors","hash":"colors.FgRed","kind":1024,"flags":{}},"1578":{"id":1578,"parentId":1564,"name":"FgGreen","query":"node-utils/src.Variable.Colors","hash":"colors.FgGreen","kind":1024,"flags":{}},"1579":{"id":1579,"parentId":1564,"name":"FgYellow","query":"node-utils/src.Variable.Colors","hash":"colors.FgYellow","kind":1024,"flags":{}},"1580":{"id":1580,"parentId":1564,"name":"FgBlue","query":"node-utils/src.Variable.Colors","hash":"colors.FgBlue","kind":1024,"flags":{}},"1581":{"id":1581,"parentId":1564,"name":"FgMagenta","query":"node-utils/src.Variable.Colors","hash":"colors.FgMagenta","kind":1024,"flags":{}},"1582":{"id":1582,"parentId":1564,"name":"FgCyan","query":"node-utils/src.Variable.Colors","hash":"colors.FgCyan","kind":1024,"flags":{}},"1583":{"id":1583,"parentId":1564,"name":"FgWhite","query":"node-utils/src.Variable.Colors","hash":"colors.FgWhite","kind":1024,"flags":{}},"1584":{"id":1584,"parentId":1564,"name":"BgBlack","query":"node-utils/src.Variable.Colors","hash":"colors.BgBlack","kind":1024,"flags":{}},"1585":{"id":1585,"parentId":1564,"name":"BgRed","query":"node-utils/src.Variable.Colors","hash":"colors.BgRed","kind":1024,"flags":{}},"1586":{"id":1586,"parentId":1564,"name":"BgGreen","query":"node-utils/src.Variable.Colors","hash":"colors.BgGreen","kind":1024,"flags":{}},"1587":{"id":1587,"parentId":1564,"name":"BgYellow","query":"node-utils/src.Variable.Colors","hash":"colors.BgYellow","kind":1024,"flags":{}},"1588":{"id":1588,"parentId":1564,"name":"BgBlue","query":"node-utils/src.Variable.Colors","hash":"colors.BgBlue","kind":1024,"flags":{}},"1589":{"id":1589,"parentId":1564,"name":"BgMagenta","query":"node-utils/src.Variable.Colors","hash":"colors.BgMagenta","kind":1024,"flags":{}},"1590":{"id":1590,"parentId":1564,"name":"BgCyan","query":"node-utils/src.Variable.Colors","hash":"colors.BgCyan","kind":1024,"flags":{}},"1591":{"id":1591,"parentId":1564,"name":"BgWhite","query":"node-utils/src.Variable.Colors","hash":"colors.BgWhite","kind":1024,"flags":{}},"1592":{"id":1592,"parentId":1564,"name":"get","query":"node-utils/src.Variable.Colors","hash":"get","kind":4096,"flags":{}},"1596":{"id":1596,"parentId":732,"name":"Tip","query":"node-utils/src.Variable.Tip","hash":"","kind":32,"flags":{"isConst":true}},"1598":{"id":1598,"parentId":1596,"name":"safe","query":"node-utils/src.Variable.Tip","hash":"safe","kind":4096,"flags":{}},"1603":{"id":1603,"parentId":1596,"name":"success","query":"node-utils/src.Variable.Tip","hash":"success","kind":4096,"flags":{}},"1608":{"id":1608,"parentId":1596,"name":"log","query":"node-utils/src.Variable.Tip","hash":"log","kind":4096,"flags":{}},"1613":{"id":1613,"parentId":1596,"name":"info","query":"node-utils/src.Variable.Tip","hash":"info","kind":4096,"flags":{}},"1618":{"id":1618,"parentId":1596,"name":"err","query":"node-utils/src.Variable.Tip","hash":"err","kind":4096,"flags":{}},"1623":{"id":1623,"parentId":1596,"name":"error","query":"node-utils/src.Variable.Tip","hash":"error","kind":4096,"flags":{}},"1628":{"id":1628,"parentId":1596,"name":"strongError","query":"node-utils/src.Variable.Tip","hash":"strongError","kind":4096,"flags":{}},"1633":{"id":1633,"parentId":1596,"name":"warn","query":"node-utils/src.Variable.Tip","hash":"warn","kind":4096,"flags":{}},"1638":{"id":1638,"parentId":1596,"name":"strongWarn","query":"node-utils/src.Variable.Tip","hash":"strongWarn","kind":4096,"flags":{}},"1643":{"id":1643,"parentId":732,"name":"Env","query":"node-utils/src.Variable.Env","hash":"","kind":32,"flags":{"isConst":true}},"1644":{"id":1644,"parentId":1102,"name":"getCookie","query":"Module.web-utils/src","hash":"getCookie","kind":8388608,"flags":{}},"1645":{"id":1645,"parentId":1102,"name":"setCookie","query":"Module.web-utils/src","hash":"setCookie","kind":8388608,"flags":{}},"1646":{"id":1646,"parentId":1102,"name":"delCookie","query":"Module.web-utils/src","hash":"delCookie","kind":8388608,"flags":{}},"1647":{"id":1647,"parentId":1102,"name":"getPrefix","query":"Module.web-utils/src","hash":"getPrefix","kind":8388608,"flags":{}},"1648":{"id":1648,"parentId":1102,"name":"getStyle","query":"Module.web-utils/src","hash":"getStyle","kind":8388608,"flags":{}},"1649":{"id":1649,"parentId":1102,"name":"getElementSize","query":"Module.web-utils/src","hash":"getElementSize","kind":8388608,"flags":{}},"1650":{"id":1650,"parentId":1102,"name":"readClipboardText","query":"Module.web-utils/src","hash":"readClipboardText","kind":8388608,"flags":{}},"1651":{"id":1651,"parentId":1102,"name":"copyToClipboard","query":"Module.web-utils/src","hash":"copyToClipboard","kind":8388608,"flags":{}},"1652":{"id":1652,"parentId":1102,"name":"isBrowser","query":"Module.web-utils/src","hash":"isBrowser","kind":8388608,"flags":{}},"1653":{"id":1653,"parentId":1102,"name":"isBrowserTab","query":"Module.web-utils/src","hash":"isBrowserTab","kind":8388608,"flags":{}},"1654":{"id":1654,"parentId":1102,"name":"hasClass","query":"Module.web-utils/src","hash":"hasClass","kind":8388608,"flags":{}},"1655":{"id":1655,"parentId":1102,"name":"addClass","query":"Module.web-utils/src","hash":"addClass","kind":8388608,"flags":{}},"1656":{"id":1656,"parentId":1102,"name":"removeClass","query":"Module.web-utils/src","hash":"removeClass","kind":8388608,"flags":{}},"1657":{"id":1657,"parentId":1102,"name":"insertAfter","query":"Module.web-utils/src","hash":"insertAfter","kind":8388608,"flags":{}},"1658":{"id":1658,"parentId":1102,"name":"insertBefore","query":"Module.web-utils/src","hash":"insertBefore","kind":8388608,"flags":{}},"1659":{"id":1659,"parentId":1102,"name":"elementContains","query":"Module.web-utils/src","hash":"elementContains","kind":8388608,"flags":{}},"1660":{"id":1660,"parentId":1102,"name":"hide","query":"Module.web-utils/src","hash":"hide","kind":8388608,"flags":{}},"1661":{"id":1661,"parentId":1102,"name":"nodeListToArray","query":"Module.web-utils/src","hash":"nodeListToArray","kind":8388608,"flags":{}},"1662":{"id":1662,"parentId":1102,"name":"setAttribute","query":"Module.web-utils/src","hash":"setAttribute","kind":8388608,"flags":{}},"1663":{"id":1663,"parentId":1102,"name":"escapeHTML","query":"Module.web-utils/src","hash":"escapeHTML","kind":8388608,"flags":{}},"1664":{"id":1664,"parentId":1102,"name":"getOffsetPos","query":"Module.web-utils/src","hash":"getOffsetPos","kind":8388608,"flags":{}},"1665":{"id":1665,"parentId":1102,"name":"getScrollTop","query":"Module.web-utils/src","hash":"getScrollTop","kind":8388608,"flags":{}},"1666":{"id":1666,"parentId":1102,"name":"getScrollPosition","query":"Module.web-utils/src","hash":"getScrollPosition","kind":8388608,"flags":{}},"1667":{"id":1667,"parentId":1102,"name":"setScrollTop","query":"Module.web-utils/src","hash":"setScrollTop","kind":8388608,"flags":{}},"1668":{"id":1668,"parentId":1102,"name":"animateScrollTo","query":"Module.web-utils/src","hash":"animateScrollTo","kind":8388608,"flags":{}},"1669":{"id":1669,"parentId":1102,"name":"smoothScroll","query":"Module.web-utils/src","hash":"smoothScroll","kind":8388608,"flags":{}},"1670":{"id":1670,"parentId":1102,"name":"disableCopy","query":"Module.web-utils/src","hash":"disableCopy","kind":8388608,"flags":{}},"1671":{"id":1671,"parentId":1102,"name":"requestAnimFrame","query":"Module.web-utils/src","hash":"requestAnimFrame","kind":8388608,"flags":{}},"1672":{"id":1672,"parentId":1102,"name":"readFile","query":"Module.web-utils/src","hash":"readFile","kind":8388608,"flags":{}},"1673":{"id":1673,"parentId":1102,"name":"readFileAsDataURL","query":"Module.web-utils/src","hash":"readFileAsDataURL","kind":8388608,"flags":{}},"1674":{"id":1674,"parentId":1102,"name":"downloadFile","query":"Module.web-utils/src","hash":"downloadFile","kind":8388608,"flags":{}},"1675":{"id":1675,"parentId":1102,"name":"downloadImageFileByUrl","query":"Module.web-utils/src","hash":"downloadImageFileByUrl","kind":8388608,"flags":{}},"1676":{"id":1676,"parentId":1102,"name":"getFileExtension","query":"Module.web-utils/src","hash":"getFileExtension","kind":8388608,"flags":{}},"1677":{"id":1677,"parentId":1102,"name":"isImageLoaded","query":"Module.web-utils/src","hash":"isImageLoaded","kind":8388608,"flags":{}},"1678":{"id":1678,"parentId":1102,"name":"getImageSize","query":"Module.web-utils/src","hash":"getImageSize","kind":8388608,"flags":{}},"1679":{"id":1679,"parentId":1102,"name":"isSupportWebP","query":"Module.web-utils/src","hash":"isSupportWebP","kind":8388608,"flags":{}},"1680":{"id":1680,"parentId":1102,"name":"cropImage","query":"Module.web-utils/src","hash":"cropImage","kind":8388608,"flags":{}},"1681":{"id":1681,"parentId":1102,"name":"compressImage","query":"Module.web-utils/src","hash":"compressImage","kind":8388608,"flags":{}},"1682":{"id":1682,"parentId":1102,"name":"getKeyName","query":"Module.web-utils/src","hash":"getKeyName","kind":8388608,"flags":{}},"1683":{"id":1683,"parentId":1102,"name":"loadScript","query":"Module.web-utils/src","hash":"loadScript","kind":8388608,"flags":{}},"1684":{"id":1684,"parentId":1102,"name":"loadScriptList","query":"Module.web-utils/src","hash":"loadScriptList","kind":8388608,"flags":{}},"1685":{"id":1685,"parentId":1102,"name":"loadCss","query":"Module.web-utils/src","hash":"loadCss","kind":8388608,"flags":{}},"1686":{"id":1686,"parentId":1102,"name":"loadCssList","query":"Module.web-utils/src","hash":"loadCssList","kind":8388608,"flags":{}},"1687":{"id":1687,"parentId":1102,"name":"loadImage","query":"Module.web-utils/src","hash":"loadImage","kind":8388608,"flags":{}},"1688":{"id":1688,"parentId":1102,"name":"loadImageList","query":"Module.web-utils/src","hash":"loadImageList","kind":8388608,"flags":{}},"1689":{"id":1689,"parentId":1102,"name":"loadCSV","query":"Module.web-utils/src","hash":"loadCSV","kind":8388608,"flags":{}},"1690":{"id":1690,"parentId":1102,"name":"isPC","query":"Module.web-utils/src","hash":"isPC","kind":8388608,"flags":{}},"1691":{"id":1691,"parentId":1102,"name":"getPcExplore","query":"Module.web-utils/src","hash":"getPcExplore","kind":8388608,"flags":{}},"1692":{"id":1692,"parentId":1102,"name":"getSystemOS","query":"Module.web-utils/src","hash":"getSystemOS","kind":8388608,"flags":{}},"1693":{"id":1693,"parentId":1102,"name":"getMobilePlatform","query":"Module.web-utils/src","hash":"getMobilePlatform","kind":8388608,"flags":{}},"1694":{"id":1694,"parentId":1102,"name":"getMobileOS","query":"Module.web-utils/src","hash":"getMobileOS","kind":8388608,"flags":{}},"1695":{"id":1695,"parentId":1102,"name":"getMobileBrandIdentify","query":"Module.web-utils/src","hash":"getMobileBrandIdentify","kind":8388608,"flags":{}},"1696":{"id":1696,"parentId":1102,"name":"ua","query":"Module.web-utils/src","hash":"ua","kind":8388608,"flags":{}},"1697":{"id":1697,"parentId":1102,"name":"isFullScreen","query":"Module.web-utils/src","hash":"isFullScreen","kind":8388608,"flags":{}},"1698":{"id":1698,"parentId":1102,"name":"isFullScreenEnabled","query":"Module.web-utils/src","hash":"isFullScreenEnabled","kind":8388608,"flags":{}},"1699":{"id":1699,"parentId":1102,"name":"enterFullscreen","query":"Module.web-utils/src","hash":"enterFullscreen","kind":8388608,"flags":{}},"1700":{"id":1700,"parentId":1102,"name":"exitFullscreen","query":"Module.web-utils/src","hash":"exitFullscreen","kind":8388608,"flags":{}},"1701":{"id":1701,"parentId":1102,"name":"getClientHeight","query":"Module.web-utils/src","hash":"getClientHeight","kind":8388608,"flags":{}},"1702":{"id":1702,"parentId":1102,"name":"getClientWidth","query":"Module.web-utils/src","hash":"getClientWidth","kind":8388608,"flags":{}},"1703":{"id":1703,"parentId":1102,"name":"parseQueryString","query":"Module.web-utils/src","hash":"parseQueryString","kind":8388608,"flags":{}},"1704":{"id":1704,"parentId":1102,"name":"getUrlParam","query":"Module.web-utils/src","hash":"getUrlParam","kind":8388608,"flags":{}},"1705":{"id":1705,"parentId":1102,"name":"httpsRedirect","query":"Module.web-utils/src","hash":"httpsRedirect","kind":8388608,"flags":{}},"1706":{"id":1706,"parentId":1102,"name":"paramsJoinUrl","query":"Module.web-utils/src","hash":"paramsJoinUrl","kind":8388608,"flags":{}},"1707":{"id":1707,"parentId":1102,"name":"getBaseUrl","query":"Module.web-utils/src","hash":"getBaseUrl","kind":8388608,"flags":{}},"1708":{"id":1708,"parentId":1102,"name":"getUrlDomain","query":"Module.web-utils/src","hash":"getUrlDomain","kind":8388608,"flags":{}},"1709":{"id":1709,"parentId":1102,"name":"uniqueSlash","query":"Module.web-utils/src","hash":"uniqueSlash","kind":8388608,"flags":{}},"1710":{"id":1710,"parentId":1102,"name":"isBase64","query":"Module.web-utils/src","hash":"isBase64","kind":8388608,"flags":{}},"1711":{"id":1711,"parentId":1221,"name":"__DEV__","query":"canvas-utils/src.Variable.__DEV__","hash":"","kind":32,"flags":{"isConst":true}},"1712":{"id":1712,"parentId":1221,"name":"isWeapp","query":"canvas-utils/src.Variable.isWeapp","hash":"","kind":32,"flags":{"isConst":true}},"1713":{"id":1713,"parentId":1221,"name":"isWeb","query":"canvas-utils/src.Variable.isWeb","hash":"","kind":32,"flags":{"isConst":true}},"1714":{"id":1714,"parentId":1221,"name":"isNode","query":"canvas-utils/src.Variable.isNode","hash":"","kind":32,"flags":{"isConst":true}},"1715":{"id":1715,"parentId":1221,"name":"each","query":"canvas-utils/src.Function.each","hash":"","kind":64,"flags":{}},"1716":{"id":1716,"parentId":1715,"name":"each","query":"canvas-utils/src.Function.each","hash":"each","kind":4096,"flags":{}},"1723":{"id":1723,"parentId":1221,"name":"cloneObjDeep","query":"canvas-utils/src.Function.cloneObjDeep","hash":"","kind":64,"flags":{}},"1724":{"id":1724,"parentId":1723,"name":"cloneObjDeep","query":"canvas-utils/src.Function.cloneObjDeep","hash":"cloneObjDeep","kind":4096,"flags":{}},"1727":{"id":1727,"parentId":1221,"name":"throwError","query":"canvas-utils/src.Function.throwError","hash":"","kind":64,"flags":{}},"1728":{"id":1728,"parentId":1727,"name":"throwError","query":"canvas-utils/src.Function.throwError","hash":"throwError","kind":4096,"flags":{}},"1732":{"id":1732,"parentId":1221,"name":"NOOP","query":"canvas-utils/src.Function.NOOP","hash":"","kind":64,"flags":{}},"1733":{"id":1733,"parentId":1732,"name":"NOOP","query":"canvas-utils/src.Function.NOOP","hash":"NOOP","kind":4096,"flags":{}},"1734":{"id":1734,"parentId":1221,"name":"cloneArray","query":"canvas-utils/src.Function.cloneArray","hash":"","kind":64,"flags":{}},"1735":{"id":1735,"parentId":1734,"name":"cloneArray","query":"canvas-utils/src.Function.cloneArray","hash":"cloneArray","kind":4096,"flags":{}},"1739":{"id":1739,"parentId":1221,"name":"getListExtremum","query":"canvas-utils/src.Function.getListExtremum","hash":"","kind":64,"flags":{}},"1740":{"id":1740,"parentId":1739,"name":"getListExtremum","query":"canvas-utils/src.Function.getListExtremum","hash":"getListExtremum","kind":4096,"flags":{}},"1742":{"id":1742,"parentId":1221,"name":"getAxisLimit","query":"canvas-utils/src.Function.getAxisLimit","hash":"","kind":64,"flags":{}},"1743":{"id":1743,"parentId":1742,"name":"getAxisLimit","query":"canvas-utils/src.Function.getAxisLimit","hash":"getAxisLimit","kind":4096,"flags":{}},"1745":{"id":1745,"parentId":1221,"name":"getPointsAngle","query":"canvas-utils/src.Function.getPointsAngle","hash":"","kind":64,"flags":{}},"1746":{"id":1746,"parentId":1745,"name":"getPointsAngle","query":"canvas-utils/src.Function.getPointsAngle","hash":"getPointsAngle","kind":4096,"flags":{}},"1749":{"id":1749,"parentId":1221,"name":"getPointsDistance","query":"canvas-utils/src.Function.getPointsDistance","hash":"","kind":64,"flags":{}},"1750":{"id":1750,"parentId":1749,"name":"getPointsDistance","query":"canvas-utils/src.Function.getPointsDistance","hash":"getPointsDistance","kind":4096,"flags":{}},"1753":{"id":1753,"parentId":1221,"name":"min","query":"canvas-utils/src.Function.min","hash":"","kind":64,"flags":{}},"1754":{"id":1754,"parentId":1753,"name":"min","query":"canvas-utils/src.Function.min","hash":"min","kind":4096,"flags":{}},"1756":{"id":1756,"parentId":1221,"name":"max","query":"canvas-utils/src.Function.max","hash":"","kind":64,"flags":{}},"1757":{"id":1757,"parentId":1756,"name":"max","query":"canvas-utils/src.Function.max","hash":"max","kind":4096,"flags":{}},"1759":{"id":1759,"parentId":1221,"name":"getColorRgbList","query":"canvas-utils/src.Function.getColorRgbList","hash":"","kind":64,"flags":{}},"1760":{"id":1760,"parentId":1759,"name":"getColorRgbList","query":"canvas-utils/src.Function.getColorRgbList","hash":"getColorRgbList","kind":4096,"flags":{}},"1762":{"id":1762,"parentId":1221,"name":"getColorRgba","query":"canvas-utils/src.Function.getColorRgba","hash":"","kind":64,"flags":{}},"1763":{"id":1763,"parentId":1762,"name":"getColorRgba","query":"canvas-utils/src.Function.getColorRgba","hash":"getColorRgba","kind":4096,"flags":{}},"1766":{"id":1766,"parentId":1221,"name":"isTransparentColor","query":"canvas-utils/src.Function.isTransparentColor","hash":"","kind":64,"flags":{}},"1767":{"id":1767,"parentId":1766,"name":"isTransparentColor","query":"canvas-utils/src.Function.isTransparentColor","hash":"isTransparentColor","kind":4096,"flags":{}},"1769":{"id":1769,"parentId":1221,"name":"getLightfulRgbList","query":"canvas-utils/src.Function.getLightfulRgbList","hash":"","kind":64,"flags":{}},"1770":{"id":1770,"parentId":1769,"name":"getLightfulRgbList","query":"canvas-utils/src.Function.getLightfulRgbList","hash":"getLightfulRgbList","kind":4096,"flags":{}},"1773":{"id":1773,"parentId":1221,"name":"drawLine","query":"canvas-utils/src.Function.drawLine","hash":"","kind":64,"flags":{}},"1774":{"id":1774,"parentId":1773,"name":"drawLine","query":"canvas-utils/src.Function.drawLine","hash":"drawLine","kind":4096,"flags":{}},"1778":{"id":1778,"parentId":1221,"name":"drawDashLine","query":"canvas-utils/src.Function.drawDashLine","hash":"","kind":64,"flags":{}},"1779":{"id":1779,"parentId":1778,"name":"drawDashLine","query":"canvas-utils/src.Function.drawDashLine","hash":"drawDashLine","kind":4096,"flags":{}},"1784":{"id":1784,"parentId":1221,"name":"drawPoint","query":"canvas-utils/src.Function.drawPoint","hash":"","kind":64,"flags":{}},"1785":{"id":1785,"parentId":1784,"name":"drawPoint","query":"canvas-utils/src.Function.drawPoint","hash":"drawPoint","kind":4096,"flags":{}},"1792":{"id":1792,"parentId":1221,"name":"drawRotateText","query":"canvas-utils/src.Function.drawRotateText","hash":"","kind":64,"flags":{}},"1793":{"id":1793,"parentId":1792,"name":"drawRotateText","query":"canvas-utils/src.Function.drawRotateText","hash":"drawRotateText","kind":4096,"flags":{}},"1798":{"id":1798,"parentId":1221,"name":"clearArc","query":"canvas-utils/src.Function.clearArc","hash":"","kind":64,"flags":{}},"1799":{"id":1799,"parentId":1798,"name":"clearArc","query":"canvas-utils/src.Function.clearArc","hash":"clearArc","kind":4096,"flags":{}},"1803":{"id":1803,"parentId":1221,"name":"retinaScale","query":"canvas-utils/src.Function.retinaScale","hash":"","kind":64,"flags":{}},"1804":{"id":1804,"parentId":1803,"name":"retinaScale","query":"canvas-utils/src.Function.retinaScale","hash":"retinaScale","kind":4096,"flags":{}},"1807":{"id":1807,"parentId":1221,"name":"createCanvasElem","query":"canvas-utils/src.Function.createCanvasElem","hash":"","kind":64,"flags":{}},"1808":{"id":1808,"parentId":1807,"name":"createCanvasElem","query":"canvas-utils/src.Function.createCanvasElem","hash":"createCanvasElem","kind":4096,"flags":{}},"1815":{"id":1815,"parentId":1221,"name":"getCurvePoints","query":"canvas-utils/src.Function.getCurvePoints","hash":"","kind":64,"flags":{}},"1816":{"id":1816,"parentId":1815,"name":"getCurvePoints","query":"canvas-utils/src.Function.getCurvePoints","hash":"getCurvePoints","kind":4096,"flags":{}},"1818":{"id":1818,"parentId":1221,"name":"mixins","query":"canvas-utils/src.Function.mixins","hash":"","kind":64,"flags":{}},"1819":{"id":1819,"parentId":1818,"name":"mixins","query":"canvas-utils/src.Function.mixins","hash":"mixins","kind":4096,"flags":{}},"1824":{"id":1824,"parentId":1221,"name":"setAnimationHooks","query":"canvas-utils/src.Function.setAnimationHooks","hash":"","kind":64,"flags":{}},"1825":{"id":1825,"parentId":1824,"name":"setAnimationHooks","query":"canvas-utils/src.Function.setAnimationHooks","hash":"setAnimationHooks","kind":4096,"flags":{}},"1827":{"id":1827,"parentId":1221,"name":"setEnvContext","query":"canvas-utils/src.Function.setEnvContext","hash":"","kind":64,"flags":{}},"1828":{"id":1828,"parentId":1827,"name":"setEnvContext","query":"canvas-utils/src.Function.setEnvContext","hash":"setEnvContext","kind":4096,"flags":{}},"1832":{"id":1832,"parentId":1221,"name":"animate","query":"canvas-utils/src.Function.animate","hash":"","kind":64,"flags":{}},"1833":{"id":1833,"parentId":1832,"name":"animate","query":"canvas-utils/src.Function.animate","hash":"animate","kind":4096,"flags":{}},"1835":{"id":1835,"parentId":1221,"name":"PointPosition","query":"canvas-utils/src.Interface.PointPosition","hash":"","kind":256,"flags":{}},"1836":{"id":1836,"parentId":1835,"name":"x","query":"canvas-utils/src.Interface.PointPosition","hash":"x","kind":1024,"flags":{}},"1837":{"id":1837,"parentId":1835,"name":"y","query":"canvas-utils/src.Interface.PointPosition","hash":"y","kind":1024,"flags":{}},"1838":{"id":1838,"parentId":1221,"name":"PointsMap","query":"canvas-utils/src.TypeAlias.PointsMap","hash":"","kind":4194304,"flags":{}},"1839":{"id":1839,"parentId":1221,"name":"ListExtremum","query":"canvas-utils/src.TypeAlias.ListExtremum","hash":"","kind":4194304,"flags":{}},"1841":{"id":1841,"parentId":1839,"name":"max","query":"canvas-utils/src.TypeAlias.ListExtremum","hash":"max","kind":1024,"flags":{}},"1842":{"id":1842,"parentId":1839,"name":"min","query":"canvas-utils/src.TypeAlias.ListExtremum","hash":"min","kind":1024,"flags":{}},"1843":{"id":1843,"parentId":1221,"name":"SimpleObj","query":"canvas-utils/src.TypeAlias.SimpleObj","hash":"","kind":4194304,"flags":{}},"1847":{"id":1847,"parentId":1222,"name":"getCodeReviewPromptTxt","query":"ai-utils/src.Function.getCodeReviewPromptTxt","hash":"","kind":64,"flags":{}},"1848":{"id":1848,"parentId":1847,"name":"getCodeReviewPromptTxt","query":"ai-utils/src.Function.getCodeReviewPromptTxt","hash":"getCodeReviewPromptTxt","kind":4096,"flags":{}},"1850":{"id":1850,"parentId":1222,"name":"genCodeReviewPrompt","query":"ai-utils/src.Function.genCodeReviewPrompt","hash":"","kind":64,"flags":{}},"1851":{"id":1851,"parentId":1850,"name":"genCodeReviewPrompt","query":"ai-utils/src.Function.genCodeReviewPrompt","hash":"genCodeReviewPrompt","kind":4096,"flags":{}},"1854":{"id":1854,"parentId":1222,"name":"getSqlPrompt","query":"ai-utils/src.Function.getSqlPrompt","hash":"","kind":64,"flags":{}},"1855":{"id":1855,"parentId":1854,"name":"getSqlPrompt","query":"ai-utils/src.Function.getSqlPrompt","hash":"getSqlPrompt","kind":4096,"flags":{}},"1858":{"id":1858,"parentId":1222,"name":"getCreateUnitTestCases","query":"ai-utils/src.Function.getCreateUnitTestCases","hash":"","kind":64,"flags":{}},"1859":{"id":1859,"parentId":1858,"name":"getCreateUnitTestCases","query":"ai-utils/src.Function.getCreateUnitTestCases","hash":"getCreateUnitTestCases","kind":4096,"flags":{}},"1861":{"id":1861,"parentId":1222,"name":"genUnitTestCasesPrompt","query":"ai-utils/src.Function.genUnitTestCasesPrompt","hash":"","kind":64,"flags":{}},"1862":{"id":1862,"parentId":1861,"name":"genUnitTestCasesPrompt","query":"ai-utils/src.Function.genUnitTestCasesPrompt","hash":"genUnitTestCasesPrompt","kind":4096,"flags":{}},"1865":{"id":1865,"parentId":1222,"name":"estimateTokenLength","query":"ai-utils/src.Function.estimateTokenLength","hash":"","kind":64,"flags":{}},"1866":{"id":1866,"parentId":1865,"name":"estimateTokenLength","query":"ai-utils/src.Function.estimateTokenLength","hash":"estimateTokenLength","kind":4096,"flags":{}},"1868":{"id":1868,"parentId":1222,"name":"getBoa","query":"ai-utils/src.Function.getBoa","hash":"","kind":64,"flags":{}},"1869":{"id":1869,"parentId":1868,"name":"getBoa","query":"ai-utils/src.Function.getBoa","hash":"getBoa","kind":4096,"flags":{}},"project":{"id":0,"name":"fe-tools utils - v1.0.0-beta01","query":"index","hash":"","kind":1,"flags":{}}} diff --git a/docs/v1.0.0-beta01/frontend/YafElementDrawers.d.ts b/docs/v1.0.0-beta01/frontend/YafElementDrawers.d.ts new file mode 100644 index 00000000..f1cada1b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/YafElementDrawers.d.ts @@ -0,0 +1,46 @@ +import { drawerState, flagCounts } from '../types/frontendTypes.js'; +export type DrawerElement = HTMLElement & YafElementDrawers; +/** + * Utility class for folding, hierarchical drawers + */ +export declare class YafElementDrawers { + drawer: HTMLElement; + drawerParent: DrawerElement; + drawerTrigger: HTMLElement; + drawerId: string; + parentDrawerElement?: DrawerElement; + debounceResize: ReturnType | null; + isDrawer: boolean; + hasContent: boolean; + drawers: YafElementDrawers; + childDrawers: DrawerElement[]; + constructor(drawerParent: DrawerElement, drawer: HTMLElement, drawerTrigger: HTMLElement, id: string, parentDrawerElement?: DrawerElement); + drawerHasDisconnected: () => void; + private eventsList; + renderDrawers: (init?: boolean) => void; + openDrawer: () => void; + closeDrawer: () => void; + toggleDrawerState: () => void; + heightControl: { + initDataHeight: (clientHeight: number) => void; + setMaxHeightStyle: () => void; + updateHeightAbove: (height: number) => void; + reRenderDrawers: (init?: boolean) => void; + resetHeights: (init?: boolean) => void; + debounceReset: () => void; + }; + get dataHeight(): number; + set dataHeight(height: number); + get dataExtraHeight(): number; + set dataExtraHeight(height: number); + set dataExtraReset(height: number); + get maxHeightPixels(): string; + get drawerState(): drawerState; + get childDrawerElements(): DrawerElement[]; + get isRoot(): boolean; + get isBranch(): boolean; + get isLeaf(): boolean; + get flagCounts(): flagCounts; + static findParentDrawers: (child: HTMLElement, parents?: DrawerElement[]) => DrawerElement[]; + static hasClosedDrawers: (drawers: DrawerElement[]) => boolean | 0; +} diff --git a/docs/v1.0.0-beta01/frontend/YafElementDrawers.js b/docs/v1.0.0-beta01/frontend/YafElementDrawers.js new file mode 100644 index 00000000..7fd330a1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/YafElementDrawers.js @@ -0,0 +1,185 @@ +import appState from './handlers/AppState.js'; +import { events } from './handlers/index.js'; +const { trigger } = events; +/** + * Utility class for folding, hierarchical drawers + */ +export class YafElementDrawers { + constructor(drawerParent, drawer, drawerTrigger, id, parentDrawerElement) { + this.debounceResize = null; + this.isDrawer = true; + this.hasContent = false; + this.drawerHasDisconnected = () => { + this.eventsList.forEach((event) => events.off(...event)); + }; + this.eventsList = [ + ['resize', () => this.heightControl.debounceReset(), window], + [ + trigger.drawers.resetHeight, + () => this.heightControl.resetHeights(true), + ], + [ + trigger.options.display, + ({ detail }) => { + const { key, value } = detail; + this.drawerParent.setAttribute(key, value); + }, + ], + ]; + this.renderDrawers = (init = false) => { + if (init && !this.isRoot) + return; + this.hasContent = !!this.drawer.innerHTML; + this.heightControl.initDataHeight(this.drawer.clientHeight); + this.drawerParent.classList.add('closed'); + appState.openDrawers[this.drawerId] + ? this.openDrawer() + : this.closeDrawer(); + this.childDrawerElements.forEach((child) => { + child.drawers.renderDrawers(); + }); + setTimeout(() => this.drawerParent.classList.add('rendered')); + }; + this.openDrawer = () => { + if (this.drawerState === 'open' || !this.hasContent) + return; + this.heightControl.updateHeightAbove(this.dataHeight); + this.drawerParent.classList.remove('closed'); + this.drawerParent.classList.add('open'); + appState.openDrawer = this.drawerId; + }; + this.closeDrawer = () => { + if (this.drawerState === 'closed' || !this.hasContent) + return; + this.heightControl.updateHeightAbove(this.dataHeight * -1); + this.drawerParent.classList.remove('open'); + this.drawerParent.classList.add('closed'); + appState.closeDrawer = this.drawerId; + }; + this.toggleDrawerState = () => { + this.drawerState === 'open' ? this.closeDrawer() : this.openDrawer(); + }; + this.heightControl = { + initDataHeight: (clientHeight) => { + this.dataHeight = this.dataHeight + clientHeight; + this.heightControl.setMaxHeightStyle(); + }, + setMaxHeightStyle: () => { + this.drawer.setAttribute('style', `max-height: ${this.maxHeightPixels};`); + }, + updateHeightAbove: (height) => { + this.dataExtraHeight = height; + this.heightControl.setMaxHeightStyle(); + if (this.parentDrawerElement) + this.parentDrawerElement.drawers.heightControl.updateHeightAbove(height); + }, + reRenderDrawers: (init = false) => { + if (init && !this.isLeaf) + return; + if (init) + this.renderDrawers(true); + if (this.parentDrawerElement) + this.parentDrawerElement.drawers.heightControl.reRenderDrawers(); + }, + resetHeights: (init = false) => { + if (init && !this.isRoot) + return; + this.dataHeight = 0; + this.dataExtraReset = 0; + this.drawer.removeAttribute('style'); + ['rendered', 'open', 'closed'].forEach((className) => { + if (this.drawerParent.classList.contains(className)) + this.drawerParent.classList.remove(className); + }); + this.childDrawerElements.forEach((child) => { + child.drawers.heightControl.resetHeights(); + }); + this.renderDrawers(true); + }, + debounceReset: () => { + this.debounceResize && clearTimeout(this.debounceResize); + this.debounceResize = setTimeout(() => { + this.heightControl.resetHeights(true); + }, 100); + }, + }; + this.drawer = drawer; + this.drawerParent = drawerParent; + this.drawerTrigger = drawerTrigger; + this.drawerId = id; + this.parentDrawerElement = parentDrawerElement; + this.drawerParent.isDrawer = true; + this.drawerParent.classList.add('yaf-parent-drawer'); + this.drawer.classList.add('yaf-drawer'); + this.drawerParent.setAttribute('data-height', '0'); + this.drawerParent.setAttribute('data-height-extra', '0'); + Object.keys(appState.options.display).forEach((key) => { + this.drawerParent.setAttribute(key, appState.options.display[key]); + }); + this.drawerTrigger.onclick = () => this.toggleDrawerState(); + this.eventsList.forEach((event) => events.on(...event)); + } + get dataHeight() { + return parseFloat(this.drawerParent.getAttribute('data-height') || '0'); + } + set dataHeight(height) { + this.drawerParent.setAttribute('data-height', String(height)); + } + get dataExtraHeight() { + return parseFloat(this.drawerParent.getAttribute('data-height-extra') || '0'); + } + set dataExtraHeight(height) { + this.drawerParent.setAttribute('data-height-extra', String(this.dataExtraHeight + height)); + } + set dataExtraReset(height) { + this.drawerParent.setAttribute('data-height-extra', String(height)); + } + get maxHeightPixels() { + return String(this.dataHeight + this.dataExtraHeight) + 'px'; + } + get drawerState() { + return this.drawerParent.classList.contains('open') ? 'open' : 'closed'; + } + get childDrawerElements() { + if (this.childDrawers) + return this.childDrawers; + this.childDrawers = [...this.drawer.children] + .map((element) => { + if ('drawers' in element) + return element; + const nestedDrawer = [...element.children].find((childElement) => 'drawers' in childElement); + return nestedDrawer || undefined; + }) + .filter((element) => !!element); + return this.childDrawers; + } + get isRoot() { + return !this.parentDrawerElement; + } + get isBranch() { + return !!this.parentDrawerElement; + } + get isLeaf() { + return !this.childDrawerElements.length; + } + get flagCounts() { + return { + private: this.drawer.querySelectorAll(':scope > .private').length, + inherited: this.drawer.querySelectorAll(':scope > .inherited') + .length, + }; + } +} +YafElementDrawers.findParentDrawers = (child, parents = []) => { + const parent = child.parentElement; + if (parent && parent.isDrawer) + parents.push(parent); + if (parent) + return YafElementDrawers.findParentDrawers(parent, parents); + return parents; +}; +YafElementDrawers.hasClosedDrawers = (drawers) => { + return (drawers.length && + !!drawers.find((drawer) => drawer.drawers.drawerState === 'closed')); +}; +//# sourceMappingURL=YafElementDrawers.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/YafElementDrawers.js.map b/docs/v1.0.0-beta01/frontend/YafElementDrawers.js.map new file mode 100644 index 00000000..3f36b14f --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/YafElementDrawers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafElementDrawers.js","sourceRoot":"","sources":["../../../src/frontend/YafElementDrawers.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/YafHTMLElement.d.ts b/docs/v1.0.0-beta01/frontend/YafHTMLElement.d.ts new file mode 100644 index 00000000..4ec3f021 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/YafHTMLElement.d.ts @@ -0,0 +1,19 @@ +/** + * A base class extension for all custom HTML WebComponents. + * + * It provides: + * - The often used `appendChildren` utility as a convenience to all Yaf components. + * - overrides the default `connectedCallback` with the purpose of providing a de-bouncer.\ + * For inexplicable reasons, some nested custom WebComponents get multiple connected signals. + */ +export default class YafHtmlElement> extends HTMLElement { + props: T; + appendChildren: (children: (HTMLElement | undefined)[] | undefined) => void; + private debounceCount; + /** + * The standard Web Component connect entry. + * + * This debounces or triggers the new `onConnect` trigger used in all ancestor Yaf theme components. + */ + connectedCallback(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/YafHTMLElement.js b/docs/v1.0.0-beta01/frontend/YafHTMLElement.js new file mode 100644 index 00000000..54e5e758 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/YafHTMLElement.js @@ -0,0 +1,37 @@ +import { appendChildren } from './yafElement.js'; +/** + * A base class extension for all custom HTML WebComponents. + * + * It provides: + * - The often used `appendChildren` utility as a convenience to all Yaf components. + * - overrides the default `connectedCallback` with the purpose of providing a de-bouncer.\ + * For inexplicable reasons, some nested custom WebComponents get multiple connected signals. + */ +export default class YafHtmlElement extends HTMLElement { + constructor() { + super(...arguments); + this.appendChildren = appendChildren(this); + this.debounceCount = 0; + } + /** + * The standard Web Component connect entry. + * + * This debounces or triggers the new `onConnect` trigger used in all ancestor Yaf theme components. + */ + connectedCallback() { + if (this.debounceCount) { + /* + console.debug( + `${this.constructor.name} was debounced [${this.debounceCount}]` + ); + */ + this.debounceCount += 1; + return; + } + this.debounceCount += 1; + if ('onConnect' in this && typeof this.onConnect === 'function') { + this.onConnect(); + } + } +} +//# sourceMappingURL=YafHTMLElement.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/YafHTMLElement.js.map b/docs/v1.0.0-beta01/frontend/YafHTMLElement.js.map new file mode 100644 index 00000000..ade19d21 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/YafHTMLElement.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafHTMLElement.js","sourceRoot":"","sources":["../../../src/frontend/YafHTMLElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,cAEnB,SAAQ,WAAW;IAFrB;;QAIC,mBAAc,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;QAC9B,kBAAa,GAAG,CAAC,CAAC;IAsB3B,CAAC;IApBA;;;;OAIG;IACH,iBAAiB;QAChB,IAAI,IAAI,CAAC,aAAa,EAAE;YACvB;;;;cAIE;YACF,IAAI,CAAC,aAAa,IAAI,CAAC,CAAC;YACxB,OAAO;SACP;QACD,IAAI,CAAC,aAAa,IAAI,CAAC,CAAC;QACxB,IAAI,WAAW,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,UAAU,EAAE;YAChE,IAAI,CAAC,SAAS,EAAE,CAAC;SACjB;IACF,CAAC;CACD"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/AppState.d.ts b/docs/v1.0.0-beta01/frontend/handlers/AppState.d.ts new file mode 100644 index 00000000..6e641c16 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/AppState.d.ts @@ -0,0 +1,45 @@ +import { yafDisplayOptions } from '../../types/frontendTypes.js'; +import { reflectionMap, kindSymbols, treeMenuRoot, YAFDataObject, needsParenthesis } from '../../types/types.js'; +/** + * + */ +export declare class AppState { + private state; + private static defaultDataDir; + private static defaultOptions; + constructor(); + initCache(): Promise; + get reflectionMap(): reflectionMap; + get reflectionKind(): typeof import("typedoc").ReflectionKind; + get kindSymbols(): kindSymbols; + get needsParenthesis(): needsParenthesis; + get navigationMenu(): treeMenuRoot; + get options(): { + display: { + inherited: import("../../types/frontendTypes.js").displayStates; + private: import("../../types/frontendTypes.js").displayStates; + }; + }; + get openDrawers(): { + [key: string]: import("../../types/frontendTypes.js").drawerState; + }; + get scrollTops(): { + [key: string]: number; + }; + set openDrawer(id: string); + set closeDrawer(id: string); + get callTypes(): number[]; + get projectName(): string; + toggleDisplayOption: (flag: yafDisplayOptions) => "show" | "hide"; + setScrollTop: (id: string, position: number) => number; + getPageData: (fileName: string) => Promise; + getBreadcrumb: (id: number, crumbArray?: number[]) => number[] | undefined; + private flushStateCache; + private static fetchDataFromFile; + private static fetchFile; + private static getLocalStorageItem; + private static saveToLocalStorage; + private static deepFreeze; +} +declare const appState: AppState; +export default appState; diff --git a/docs/v1.0.0-beta01/frontend/handlers/AppState.js b/docs/v1.0.0-beta01/frontend/handlers/AppState.js new file mode 100644 index 00000000..3e777fea --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/AppState.js @@ -0,0 +1,181 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var _a; +import ErrorHandlers from './ErrorHandlers.js'; +/** + * + */ +export class AppState { + constructor() { + this.toggleDisplayOption = (flag) => { + const displayState = this.options.display[flag]; + const newDisplayState = displayState === 'show' ? 'hide' : 'show'; + this.state.options.display[flag] = newDisplayState; + return newDisplayState; + }; + this.setScrollTop = (id, position) => (this.state.scrollTop[id] = position); + this.getPageData = (fileName) => this.state.pageData[fileName] + ? Promise.resolve(this.state.pageData[fileName]) + : AppState.fetchDataFromFile(fileName).then((data) => { + this.state.pageData[fileName] = + AppState.deepFreeze(data); + return this.state.pageData[fileName]; + }); + this.getBreadcrumb = (id, crumbArray = []) => { + crumbArray.unshift(id); + const link = this.reflectionMap[id]; + if (!link) + return undefined; + if (link.parentId) + return this.getBreadcrumb(link.parentId, crumbArray); + return crumbArray; + }; + this.flushStateCache = () => { + localStorage.clear(); + this.initCache().then(() => AppState.saveToLocalStorage(this.state)); + }; + window.addEventListener('beforeunload', () => AppState.saveToLocalStorage(this.state)); + window.yaf = { flushStateCache: this.flushStateCache }; + } + initCache() { + return __awaiter(this, void 0, void 0, function* () { + const { deepFreeze } = AppState; + const Promises = [ + AppState.fetchDataFromFile('yafReflectionMap'), + AppState.fetchDataFromFile('yafReflectionKind'), + AppState.fetchDataFromFile('yafKindSymbols'), + AppState.fetchDataFromFile('yafNavigationMenu'), + AppState.fetchDataFromFile('yafNeedsParenthesis'), + ]; + try { + const [reflectionMap, relectionKind, kindSymbols, navigationMenu, needsParenthesis,] = yield Promise.all(Promises); + this.state = { + pageData: {}, + reflectionMap: deepFreeze(reflectionMap), + reflectionKind: deepFreeze(relectionKind), + kindSymbols: deepFreeze(kindSymbols), + needsParenthesis: deepFreeze(needsParenthesis), + navigationMenu: deepFreeze(navigationMenu), + drawers: AppState.getLocalStorageItem('drawers') || {}, + scrollTop: AppState.getLocalStorageItem('scrollTop') || {}, + options: { + display: AppState.getLocalStorageItem('displayOptions') || + AppState.defaultOptions.display, + }, + }; + Object.freeze(this.state); + } + catch (err) { + ErrorHandlers.data(err); + } + }); + } + get reflectionMap() { + return this.state.reflectionMap; + } + get reflectionKind() { + return this.state.reflectionKind; + } + get kindSymbols() { + return this.state.kindSymbols; + } + get needsParenthesis() { + return this.state.needsParenthesis; + } + get navigationMenu() { + return this.state.navigationMenu; + } + get options() { + return this.state.options; + } + get openDrawers() { + return this.state.drawers; + } + get scrollTops() { + return this.state.scrollTop; + } + set openDrawer(id) { + this.state.drawers[id] = 'open'; + } + set closeDrawer(id) { + delete this.state.drawers[id]; + } + get callTypes() { + return [ + this.reflectionKind.CallSignature, + this.reflectionKind.ConstructorSignature, + this.reflectionKind.Function, + this.reflectionKind.FunctionOrMethod, + this.reflectionKind.GetSignature, + this.reflectionKind.Method, + this.reflectionKind.SetSignature, + ]; + } + get projectName() { + var _b; + return (_b = this.reflectionMap['project']) === null || _b === void 0 ? void 0 : _b.name; + } +} +_a = AppState; +AppState.defaultDataDir = './data/'; +AppState.defaultOptions = { + display: { + inherited: 'hide', + private: 'hide', + }, +}; +AppState.fetchDataFromFile = (fileName) => __awaiter(void 0, void 0, void 0, function* () { + fileName = fileName.replace(/.JSON$/i, '.json'); + fileName = fileName.endsWith('.json') ? fileName : `${fileName}.json`; + const filePath = `${AppState.defaultDataDir}${fileName}`; + const data = yield AppState.fetchFile(filePath, 'json'); + return data; +}); +AppState.fetchFile = (filePath, type) => new Promise((resolve, reject) => { + return fetch(filePath).then((stream) => { + if (stream.ok) { + resolve(stream[type]()); + } + else { + reject(new Error(`${stream.statusText}: ${filePath}`)); + } + }); +}); +AppState.getLocalStorageItem = (key) => { + try { + const stringData = localStorage.getItem(key); + const data = stringData ? JSON.parse(stringData) : undefined; + return data; + } + catch (err) { + ErrorHandlers.localStorage(key); + } +}; +AppState.saveToLocalStorage = (state) => { + localStorage.setItem('drawers', JSON.stringify(state.drawers)); + localStorage.setItem('scrollTop', JSON.stringify(state.scrollTop)); + localStorage.setItem('displayOptions', JSON.stringify(state.options.display)); +}; +AppState.deepFreeze = (property) => { + if (!property || typeof property !== 'object') + return property; + if (!Object.isFrozen(property)) + Object.freeze(property); + if (Array.isArray(property)) { + property.forEach((child) => _a.deepFreeze(child)); + } + else { + Object.values(property).forEach((child) => _a.deepFreeze(child)); + } + return property; +}; +const appState = new AppState(); +export default appState; +//# sourceMappingURL=AppState.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/AppState.js.map b/docs/v1.0.0-beta01/frontend/handlers/AppState.js.map new file mode 100644 index 00000000..0b03e419 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/AppState.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AppState.js","sourceRoot":"","sources":["../../../../src/frontend/handlers/AppState.ts"],"names":[],"mappings":";;;;;;;;;;AAaA,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAE/C;;GAEG;AACH,MAAM,OAAO,QAAQ;IAUpB;QA4FA,wBAAmB,GAAG,CAAC,IAAuB,EAAE,EAAE;YACjD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAChD,MAAM,eAAe,GAAG,YAAY,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;YAClE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC;YAEnD,OAAO,eAAe,CAAC;QACxB,CAAC,CAAC;QACF,iBAAY,GAAG,CAAC,EAAU,EAAE,QAAgB,EAAE,EAAE,CAC/C,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC;QAEvC,gBAAW,GAAG,CAAC,QAAgB,EAA0B,EAAE,CAC1D,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAC5B,CAAC,CAAC,OAAO,CAAC,OAAO,CAAgB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC/D,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAgB,QAAQ,CAAC,CAAC,IAAI,CACxD,CAAC,IAAI,EAAE,EAAE;gBACR,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC;oBAC5B,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC3B,OAAsB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACrD,CAAC,CACA,CAAC;QACN,kBAAa,GAAG,CACf,EAAU,EACV,aAAuB,EAAE,EACF,EAAE;YACzB,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACvB,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;YACpC,IAAI,CAAC,IAAI;gBAAE,OAAO,SAAS,CAAC;YAC5B,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YACxE,OAAO,UAAU,CAAC;QACnB,CAAC,CAAC;QACM,oBAAe,GAAG,GAAG,EAAE;YAC9B,YAAY,CAAC,KAAK,EAAE,CAAC;YACrB,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QACtE,CAAC,CAAC;QA5HD,MAAM,CAAC,gBAAgB,CAAC,cAAc,EAAE,GAAG,EAAE,CAC5C,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CACvC,CAAC;QACF,MAAM,CAAC,GAAG,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC;IACxD,CAAC;IACK,SAAS;;YACd,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC;YAChC,MAAM,QAAQ,GAAG;gBAChB,QAAQ,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;gBAC9C,QAAQ,CAAC,iBAAiB,CAAC,mBAAmB,CAAC;gBAC/C,QAAQ,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;gBAC5C,QAAQ,CAAC,iBAAiB,CAAC,mBAAmB,CAAC;gBAC/C,QAAQ,CAAC,iBAAiB,CAAC,qBAAqB,CAAC;aACjD,CAAC;YACF,IAAI;gBACH,MAAM,CACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAEhC,IAAI,CAAC,KAAK,GAAG;oBACZ,QAAQ,EAAE,EAAE;oBACZ,aAAa,EAAE,UAAU,CAAgB,aAAa,CAAC;oBACvD,cAAc,EAAE,UAAU,CAAiB,aAAa,CAAC;oBACzD,WAAW,EAAE,UAAU,CAAc,WAAW,CAAC;oBACjD,gBAAgB,EACf,UAAU,CAAmB,gBAAgB,CAAC;oBAC/C,cAAc,EAAE,UAAU,CAAe,cAAc,CAAC;oBACxD,OAAO,EAAE,QAAQ,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,EAAE;oBACtD,SAAS,EAAE,QAAQ,CAAC,mBAAmB,CAAC,WAAW,CAAC,IAAI,EAAE;oBAC1D,OAAO,EAAE;wBACR,OAAO,EACN,QAAQ,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;4BAC9C,QAAQ,CAAC,cAAc,CAAC,OAAO;qBAChC;iBACD,CAAC;gBAEF,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aAC1B;YAAC,OAAO,GAAG,EAAE;gBACb,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aACxB;QACF,CAAC;KAAA;IAED,IAAI,aAAa;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;IACjC,CAAC;IACD,IAAI,cAAc;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;IAClC,CAAC;IACD,IAAI,WAAW;QACd,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;IAC/B,CAAC;IACD,IAAI,gBAAgB;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC;IACpC,CAAC;IACD,IAAI,cAAc;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;IAClC,CAAC;IACD,IAAI,OAAO;QACV,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;IAC3B,CAAC;IACD,IAAI,WAAW;QACd,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;IAC3B,CAAC;IACD,IAAI,UAAU;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;IAC7B,CAAC;IACD,IAAI,UAAU,CAAC,EAAU;QACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;IACjC,CAAC;IACD,IAAI,WAAW,CAAC,EAAU;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD,IAAI,SAAS;QACZ,OAAO;YACN,IAAI,CAAC,cAAc,CAAC,aAAa;YACjC,IAAI,CAAC,cAAc,CAAC,oBAAoB;YACxC,IAAI,CAAC,cAAc,CAAC,QAAQ;YAC5B,IAAI,CAAC,cAAc,CAAC,gBAAgB;YACpC,IAAI,CAAC,cAAc,CAAC,YAAY;YAChC,IAAI,CAAC,cAAc,CAAC,MAAM;YAC1B,IAAI,CAAC,cAAc,CAAC,YAAY;SAChC,CAAC;IACH,CAAC;IACD,IAAI,WAAW;;QACd,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,0CAAE,IAAI,CAAC;IAC5C,CAAC;;;AAlGc,uBAAc,GAAG,SAAS,CAAC;AAC3B,uBAAc,GAAwB;IACpD,OAAO,EAAE;QACR,SAAS,EAAE,MAAM;QACjB,OAAO,EAAE,MAAM;KACf;CACD,CAAC;AAiIa,0BAAiB,GAAG,CAAmB,QAAgB,EAAE,EAAE;IACzE,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,OAAO,CAAC;IAEtE,MAAM,QAAQ,GAAG,GAAG,QAAQ,CAAC,cAAc,GAAG,QAAQ,EAAE,CAAC;IACzD,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACxD,OAAmB,IAAI,CAAC;AACzB,CAAC,CAAA,CAAC;AACa,kBAAS,GAAG,CAC1B,QAAgB,EAChB,IAAqB,EACM,EAAE,CAC7B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IAC/B,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QACtC,IAAI,MAAM,CAAC,EAAE,EAAE;YACd,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACxB;aAAM;YACN,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC,CAAC,CAAC;SACvD;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AACW,4BAAmB,GAAG,CAAC,GAAoB,EAAE,EAAE;IAC7D,IAAI;QACH,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC7C,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE7D,OAAO,IAAI,CAAC;KACZ;IAAC,OAAO,GAAG,EAAE;QACb,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;KAChC;AACF,CAAC,CAAC;AAEa,2BAAkB,GAAG,CAAC,KAAe,EAAE,EAAE;IACvD,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IACnE,YAAY,CAAC,OAAO,CACnB,gBAAgB,EAChB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CACrC,CAAC;AACH,CAAC,CAAC;AAEa,mBAAU,GAAG,CAAI,QAAiB,EAAK,EAAE;IACvD,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ;QAAE,OAAO,QAAa,CAAC;IACpE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACxD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC5B,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,EAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;KACpD;SAAM;QACN,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,EAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;KACnE;IACD,OAAO,QAAa,CAAC;AACtB,CAAC,CAAC;AAGH,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;AAChC,eAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.d.ts b/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.d.ts new file mode 100644 index 00000000..dadc5ac2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.d.ts @@ -0,0 +1,8 @@ +import { localStorageKey } from '../../types/frontendTypes.js'; +import { htmlString } from '../../types/types.js'; +export default class ErrorHandlers { + static template: (err: unknown) => htmlString; + static data: (err: unknown) => unknown; + static notFound: (message: string) => never; + static localStorage: (key: localStorageKey) => void; +} diff --git a/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.js b/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.js new file mode 100644 index 00000000..ea98243a --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.js @@ -0,0 +1,15 @@ +export default class ErrorHandlers { +} +ErrorHandlers.template = (err) => `${err.message}`; +ErrorHandlers.data = (err) => { + console.error(err); + return err; +}; +ErrorHandlers.notFound = (message) => { + throw Error(message); +}; +ErrorHandlers.localStorage = (key) => { + console.error(`There was a problem with "localStorage.${key}. It is being removed.`); + window.localStorage.removeItem('key'); +}; +//# sourceMappingURL=ErrorHandlers.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.js.map b/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.js.map new file mode 100644 index 00000000..8e7ac6ea --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/ErrorHandlers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ErrorHandlers.js","sourceRoot":"","sources":["../../../../src/frontend/handlers/ErrorHandlers.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,OAAO,aAAa;;AAC1B,sBAAQ,GAAG,CAAC,GAAY,EAAc,EAAE,CAC9C,cAAoC,GAAI,CAAC,OAAO,cAAc,CAAC;AAEzD,kBAAI,GAAG,CAAC,GAAY,EAAE,EAAE;IAC9B,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,GAAG,CAAC;AACZ,CAAC,CAAC;AAEK,sBAAQ,GAAG,CAAC,OAAe,EAAE,EAAE;IACrC,MAAM,KAAK,CAAC,OAAO,CAAC,CAAC;AACtB,CAAC,CAAC;AAEK,0BAAY,GAAG,CAAC,GAAoB,EAAE,EAAE;IAC9C,OAAO,CAAC,KAAK,CACZ,0CAA0C,GAAG,wBAAwB,CACrE,CAAC;IACF,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/Router.d.ts b/docs/v1.0.0-beta01/frontend/handlers/Router.d.ts new file mode 100644 index 00000000..646bdbcc --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/Router.d.ts @@ -0,0 +1,9 @@ +import { clickEvent } from '../../types/frontendTypes.js'; +import { YafNavigationLink } from '../webComponents/Navigation/index.js'; +export default class Router { + static baseUrl: string; + static route: (link: YafNavigationLink, e: clickEvent) => void; + static getTargetURL: (link: YafNavigationLink) => URL; + private static getHrefWithoutHash; + private static getHash; +} diff --git a/docs/v1.0.0-beta01/frontend/handlers/Router.js b/docs/v1.0.0-beta01/frontend/handlers/Router.js new file mode 100644 index 00000000..b6fc5a61 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/Router.js @@ -0,0 +1,44 @@ +var _a; +import { events } from './index.js'; +const { action } = events; +export default class Router { +} +_a = Router; +Router.baseUrl = `${window.location.origin}${window.location.pathname}`; +Router.route = (link, e) => { + const href = link.getAttribute('href'); + const hrefOrigin = href ? href.split('?')[0] : href; + const target = link.getAttribute('target') || undefined; + const isExternalLink = !href || + target === '_blank' || + (hrefOrigin && !window.location.href.startsWith(hrefOrigin)) || + e.ctrlKey; + if (isExternalLink) + return; + e.preventDefault(); + const linkIsOnCurrentPage = Router.getHrefWithoutHash(window.location.href) === + Router.getHrefWithoutHash(href); + if (linkIsOnCurrentPage) { + const hash = _a.getHash(href); + events.dispatch(action.content.scrollTo(hash)); + if (hash) { + history.pushState('', '', `#${hash}`); + } + else { + history.pushState({ path: href }, '', href); + } + } + else { + history.pushState({ path: href }, '', href); + events.dispatch(action.content.setLocation()); + } +}; +Router.getTargetURL = (link) => new URL(link.getAttribute('href') || '', _a.baseUrl); +Router.getHrefWithoutHash = (href) => href ? href.split('#')[0] : href; +Router.getHash = (href) => { + if (!href) + return 0; + const hash = href.split('#')[1]; + return hash || 0; +}; +//# sourceMappingURL=Router.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/Router.js.map b/docs/v1.0.0-beta01/frontend/handlers/Router.js.map new file mode 100644 index 00000000..ed9bc359 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/Router.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Router.js","sourceRoot":"","sources":["../../../../src/frontend/handlers/Router.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;AAE1B,MAAM,CAAC,OAAO,OAAO,MAAM;;;AACnB,cAAO,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAEjE,YAAK,GAAG,CAAC,IAAuB,EAAE,CAAa,EAAE,EAAE;IACzD,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACvC,MAAM,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpD,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC;IAExD,MAAM,cAAc,GACnB,CAAC,IAAI;QACL,MAAM,KAAK,QAAQ;QACnB,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAC5D,CAAC,CAAC,OAAO,CAAC;IAEX,IAAI,cAAc;QAAE,OAAO;IAC3B,CAAC,CAAC,cAAc,EAAE,CAAC;IAEnB,MAAM,mBAAmB,GACxB,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC/C,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,mBAAmB,EAAE;QACxB,MAAM,IAAI,GAAG,EAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,IAAI,IAAI,EAAE;YACT,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;SACtC;aAAM;YACN,OAAO,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAC5C;KACD;SAAM;QACN,OAAO,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAC5C,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;KAC9C;AACF,CAAC,CAAC;AAEK,mBAAY,GAAG,CAAC,IAAuB,EAAE,EAAE,CACjD,IAAI,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAI,CAAC,OAAO,CAAC,CAAC;AAEzC,yBAAkB,GAAG,CAAC,IAAmB,EAAE,EAAE,CAC3D,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAEnB,cAAO,GAAG,CAAC,IAAmB,EAAE,EAAE;IAChD,IAAI,CAAC,IAAI;QAAE,OAAO,CAAC,CAAC;IACpB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,OAAO,IAAI,IAAI,CAAC,CAAC;AAClB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/Events.d.ts b/docs/v1.0.0-beta01/frontend/handlers/events/Events.d.ts new file mode 100644 index 00000000..2e38ebdf --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/Events.d.ts @@ -0,0 +1,56 @@ +import * as actions from './index.js'; +export declare class Events { + trigger: { + content: { + setLocation: string; + scrollTo: string; + scrollTop: string; + getPageId: string; + breadcrumb: string; + }; + menu: { + rollMenuDown: string; + rollMenuUp: string; + scrollTo: string; + toggle: string; + search: string; + }; + drawers: { + resetHeight: string; + }; + options: { + display: string; + }; + }; + action: { + content: { + setLocation: () => Event; + scrollTo: (target: string | number) => CustomEvent; + scrollTop: (scrollTop: number) => CustomEvent; + getPageId: (callBack: (pageId: number) => void) => CustomEvent; + breadcrumb: (id: number) => CustomEvent; + }; + menu: { + rollMenuDown: () => Event; + rollMenuUp: () => Event; + scrollTo: (target: string | number) => CustomEvent; + toggle: (state?: "open" | "close" | undefined) => CustomEvent; + search: (searchString: string) => CustomEvent; + }; + drawers: { + resetHeight: () => Event; + }; + options: { + display: (key: "private" | "inherited", value: "show" | "hide") => CustomEvent<{ + key: "private" | "inherited"; + value: "show" | "hide"; + }>; + }; + }; + dispatch: (action: CustomEvent | Event, element?: HTMLElement) => boolean; + on: (trigger: string, callBack: unknown, element?: HTMLElement | Window) => void; + off: (trigger: string, callBack: unknown, element?: HTMLElement | Window) => void; + private static body; +} +declare const events: Events; +export default events; diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/Events.js b/docs/v1.0.0-beta01/frontend/handlers/events/Events.js new file mode 100644 index 00000000..78c5e2ab --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/Events.js @@ -0,0 +1,40 @@ +import * as actions from './index.js'; +import { trigger } from './triggers.js'; +export class Events { + constructor() { + this.trigger = trigger; + this.action = { + content: { + setLocation: actions.content.setLocation, + scrollTo: actions.scrollTo.bind(null, 'content'), + scrollTop: actions.content.scrollTop, + getPageId: actions.content.getPageId, + breadcrumb: actions.content.breadcrumb, + }, + menu: { + rollMenuDown: actions.menu.rollMenuDown, + rollMenuUp: actions.menu.rollMenuUp, + scrollTo: actions.scrollTo.bind(null, 'menu'), + toggle: actions.menu.toggle, + search: actions.menu.search, + }, + drawers: { + resetHeight: actions.drawers.resetDrawerHeight, + }, + options: { + display: actions.options.display, + }, + }; + this.dispatch = (action, element = Events.body) => element.dispatchEvent(action); + this.on = (trigger, callBack, element = Events.body) => { + element.addEventListener(trigger, callBack); + }; + this.off = (trigger, callBack, element = Events.body) => { + element.removeEventListener(trigger, callBack); + }; + } +} +Events.body = document.querySelector('body'); +const events = new Events(); +export default events; +//# sourceMappingURL=Events.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/Events.js.map b/docs/v1.0.0-beta01/frontend/handlers/events/Events.js.map new file mode 100644 index 00000000..c8cdc23b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/Events.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../../../src/frontend/handlers/events/Events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,OAAO,MAAM;IAAnB;QACC,YAAO,GAAG,OAAO,CAAC;QAClB,WAAM,GAAG;YACR,OAAO,EAAE;gBACR,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,WAAW;gBACxC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;gBAChD,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS;gBACpC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS;gBACpC,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU;aACtC;YACD,IAAI,EAAE;gBACL,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACvC,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU;gBACnC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC;gBAC7C,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM;gBAC3B,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM;aAC3B;YACD,OAAO,EAAE;gBACR,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,iBAAiB;aAC9C;YACD,OAAO,EAAE;gBACR,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO;aAChC;SACD,CAAC;QACF,aAAQ,GAAG,CACV,MAA2B,EAC3B,UAAuB,MAAM,CAAC,IAAI,EACjC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACnC,OAAE,GAAG,CACJ,OAAe,EACf,QAAiB,EACjB,UAAgC,MAAM,CAAC,IAAI,EAC1C,EAAE;YACH,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,QAAyB,CAAC,CAAC;QAC9D,CAAC,CAAC;QACF,QAAG,GAAG,CACL,OAAe,EACf,QAAiB,EACjB,UAAgC,MAAM,CAAC,IAAI,EAC1C,EAAE;YACH,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,QAAyB,CAAC,CAAC;QACjE,CAAC,CAAC;IAGH,CAAC;;AADe,WAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAoB,CAAC;AAGzE,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;AAC5B,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.d.ts b/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.d.ts new file mode 100644 index 00000000..a00d624b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.d.ts @@ -0,0 +1,26 @@ +import { scrollTo } from './index.js'; +/** + * Notifies that the URL location for content has changed + * + * The actual value is later taken from the browser location, this is purely a trigger. + * @returns + */ +export declare const setLocation: () => Event; +export type scrollTop = { + scrollTop: number; +}; +export declare const scrollTop: (scrollTop: number) => CustomEvent; +export type getPageId = { + callBack: (pageId: number) => void; +}; +export declare const getPageId: (callBack: getPageId['callBack']) => CustomEvent; +export type breadcrumb = { + id: number; +}; +export declare const breadcrumb: (id: breadcrumb['id']) => CustomEvent; +export interface content { + scrollTo: scrollTo; + scrollTop: scrollTop; + getPageId: getPageId; + breadcrumb: breadcrumb; +} diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.js b/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.js new file mode 100644 index 00000000..e7a53fc3 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.js @@ -0,0 +1,16 @@ +import { trigger } from './triggers.js'; +/** + * Notifies that the URL location for content has changed + * + * The actual value is later taken from the browser location, this is purely a trigger. + * @returns + */ +export const setLocation = () => new Event(trigger.content.setLocation); +export const scrollTop = (scrollTop) => new CustomEvent(trigger.content.scrollTop, { + detail: { scrollTop }, +}); +export const getPageId = (callBack) => new CustomEvent(trigger.content.getPageId, { + detail: { callBack }, +}); +export const breadcrumb = (id) => new CustomEvent(trigger.content.breadcrumb, { detail: { id } }); +//# sourceMappingURL=actionsContent.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.js.map b/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.js.map new file mode 100644 index 00000000..3fe98c89 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsContent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"actionsContent.js","sourceRoot":"","sources":["../../../../../src/frontend/handlers/events/actionsContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAGxE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAiC,EAAE,EAAE,CAC9D,IAAI,WAAW,CAAY,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE;IACrD,MAAM,EAAE,EAAE,SAAS,EAAE;CACrB,CAAC,CAAC;AAGJ,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAA+B,EAAE,EAAE,CAC5D,IAAI,WAAW,CAAY,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE;IACrD,MAAM,EAAE,EAAE,QAAQ,EAAE;CACpB,CAAC,CAAC;AAGJ,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAoB,EAAE,EAAE,CAClD,IAAI,WAAW,CAAa,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.d.ts b/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.d.ts new file mode 100644 index 00000000..df1318bd --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.d.ts @@ -0,0 +1,4 @@ +export declare const resetDrawerHeight: () => Event; +export interface drawers { + resetDrawerHeight: null; +} diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.js b/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.js new file mode 100644 index 00000000..8767b9be --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.js @@ -0,0 +1,3 @@ +import { trigger } from './triggers.js'; +export const resetDrawerHeight = () => new Event(trigger.drawers.resetHeight); +//# sourceMappingURL=actionsDrawers.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.js.map b/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.js.map new file mode 100644 index 00000000..6d7db398 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsDrawers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"actionsDrawers.js","sourceRoot":"","sources":["../../../../../src/frontend/handlers/events/actionsDrawers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.d.ts b/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.d.ts new file mode 100644 index 00000000..f22a9b30 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.d.ts @@ -0,0 +1,30 @@ +import { scrollTo } from './index.js'; +export declare const rollMenuDown: () => Event; +export declare const rollMenuUp: () => Event; +export type toggle = { + state?: 'open' | 'close'; +}; +export declare const toggle: (state?: toggle['state']) => CustomEvent; +export type search = { + searchString: string; +}; +export declare const search: (searchString: search['searchString']) => CustomEvent; +export interface menu { + /** + * Scrolls the main navigation menu to the given id. + */ + scrollTo: scrollTo; + /** + * Expands all drawers of the main navigation menu + */ + rollMenuDown: null; + /** + * Contracts all drawers of the main navigation menu + */ + rollMenuUp: null; + /** + * Toggle the open/close state of the main navigation menu in mobile views + */ + toggle: toggle; + search: search; +} diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.js b/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.js new file mode 100644 index 00000000..d8c84557 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.js @@ -0,0 +1,8 @@ +import { trigger } from './triggers.js'; +export const rollMenuDown = () => new Event(trigger.menu.rollMenuDown); +export const rollMenuUp = () => new Event(trigger.menu.rollMenuUp); +export const toggle = (state) => new CustomEvent(trigger.menu.toggle, { + detail: { state }, +}); +export const search = (searchString) => new CustomEvent(trigger.menu.search, { detail: { searchString } }); +//# sourceMappingURL=actionsMenu.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.js.map b/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.js.map new file mode 100644 index 00000000..eb91ea51 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsMenu.js.map @@ -0,0 +1 @@ +{"version":3,"file":"actionsMenu.js","sourceRoot":"","sources":["../../../../../src/frontend/handlers/events/actionsMenu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAInE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAuB,EAAE,EAAE,CACjD,IAAI,WAAW,CAAS,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE;IAC5C,MAAM,EAAE,EAAE,KAAK,EAAE;CACjB,CAAC,CAAC;AAGJ,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,YAAoC,EAAE,EAAE,CAC9D,IAAI,WAAW,CAAS,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.d.ts b/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.d.ts new file mode 100644 index 00000000..d5a48d68 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.d.ts @@ -0,0 +1,10 @@ +import { yafDisplayOptions } from '../../../types/frontendTypes.js'; +type display = { + key: yafDisplayOptions; + value: 'show' | 'hide'; +}; +export declare const display: (key: display['key'], value: display['value']) => CustomEvent; +export interface options { + display: display; +} +export {}; diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.js b/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.js new file mode 100644 index 00000000..ce0d2a30 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.js @@ -0,0 +1,5 @@ +import { trigger } from './triggers.js'; +export const display = (key, value) => new CustomEvent(trigger.options.display, { + detail: { key, value }, +}); +//# sourceMappingURL=actionsOptions.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.js.map b/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.js.map new file mode 100644 index 00000000..6f391413 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/actionsOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"actionsOptions.js","sourceRoot":"","sources":["../../../../../src/frontend/handlers/events/actionsOptions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAMxC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAmB,EAAE,KAAuB,EAAE,EAAE,CACvE,IAAI,WAAW,CAAU,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE;IACjD,MAAM,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/index.d.ts b/docs/v1.0.0-beta01/frontend/handlers/events/index.d.ts new file mode 100644 index 00000000..ee87c625 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/index.d.ts @@ -0,0 +1,14 @@ +export * as content from './actionsContent.js'; +export * as menu from './actionsMenu.js'; +export * as drawers from './actionsDrawers.js'; +export * as options from './actionsOptions.js'; +/** + * Notifies the content or menu DOM that it needs to scroll to the given location + * @param target + * @param context + * @returns + */ +export type scrollTo = { + target: number | string; +}; +export declare const scrollTo: (context: 'menu' | 'content', target: scrollTo['target']) => CustomEvent; diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/index.js b/docs/v1.0.0-beta01/frontend/handlers/events/index.js new file mode 100644 index 00000000..dd6fcc21 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/index.js @@ -0,0 +1,13 @@ +import { trigger } from './triggers.js'; +import * as content_1 from './actionsContent.js'; +export { content_1 as content }; +import * as menu_1 from './actionsMenu.js'; +export { menu_1 as menu }; +import * as drawers_1 from './actionsDrawers.js'; +export { drawers_1 as drawers }; +import * as options_1 from './actionsOptions.js'; +export { options_1 as options }; +export const scrollTo = (context, target) => new CustomEvent(trigger[context].scrollTo, { + detail: { target }, +}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/index.js.map b/docs/v1.0.0-beta01/frontend/handlers/events/index.js.map new file mode 100644 index 00000000..e0dbd4bf --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/frontend/handlers/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;2BAEf,qBAAqB;sBAAlC,OAAO;wBACG,kBAAkB;mBAA5B,IAAI;2BACS,qBAAqB;sBAAlC,OAAO;2BACM,qBAAqB;sBAAlC,OAAO;AASnB,MAAM,CAAC,MAAM,QAAQ,GAAG,CACvB,OAA2B,EAC3B,MAA0B,EACzB,EAAE,CACH,IAAI,WAAW,CAAW,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;IACpD,MAAM,EAAE,EAAE,MAAM,EAAE;CAClB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/triggers.d.ts b/docs/v1.0.0-beta01/frontend/handlers/events/triggers.d.ts new file mode 100644 index 00000000..15c1ce9a --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/triggers.d.ts @@ -0,0 +1,22 @@ +export declare const trigger: { + content: { + setLocation: string; + scrollTo: string; + scrollTop: string; + getPageId: string; + breadcrumb: string; + }; + menu: { + rollMenuDown: string; + rollMenuUp: string; + scrollTo: string; + toggle: string; + search: string; + }; + drawers: { + resetHeight: string; + }; + options: { + display: string; + }; +}; diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/triggers.js b/docs/v1.0.0-beta01/frontend/handlers/events/triggers.js new file mode 100644 index 00000000..494e1021 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/triggers.js @@ -0,0 +1,23 @@ +export const trigger = { + content: { + setLocation: 'yaf.content.setLocation', + scrollTo: 'yaf.content.scrollTo', + scrollTop: 'yaf.content.scrollTop', + getPageId: 'yaf.content.getPageId', + breadcrumb: 'yaf.content.breadcrumb', + }, + menu: { + rollMenuDown: 'yaf.menu.rollMenuDown', + rollMenuUp: 'yaf.menu.rollMenuUp', + scrollTo: 'yaf.menu.scrollTo', + toggle: 'yaf.menu.toggle', + search: 'yaf.menu.search', + }, + drawers: { + resetHeight: 'yaf.drawer.resetHeight', + }, + options: { + display: 'yaf.options.display', + }, +}; +//# sourceMappingURL=triggers.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/events/triggers.js.map b/docs/v1.0.0-beta01/frontend/handlers/events/triggers.js.map new file mode 100644 index 00000000..ff1e5c45 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/events/triggers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../../../../src/frontend/handlers/events/triggers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACtB,OAAO,EAAE;QACR,WAAW,EAAE,yBAAyB;QACtC,QAAQ,EAAE,sBAAsB;QAChC,SAAS,EAAE,uBAAuB;QAClC,SAAS,EAAE,uBAAuB;QAClC,UAAU,EAAE,wBAAwB;KACpC;IACD,IAAI,EAAE;QACL,YAAY,EAAE,uBAAuB;QACrC,UAAU,EAAE,qBAAqB;QACjC,QAAQ,EAAE,mBAAmB;QAC7B,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE,iBAAiB;KACzB;IACD,OAAO,EAAE;QACR,WAAW,EAAE,wBAAwB;KACrC;IACD,OAAO,EAAE;QACR,OAAO,EAAE,qBAAqB;KAC9B;CACD,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/index.d.ts b/docs/v1.0.0-beta01/frontend/handlers/index.d.ts new file mode 100644 index 00000000..f9ea8714 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/index.d.ts @@ -0,0 +1,14 @@ +export { default as events, Events } from './events/Events.js'; +export { default as Router } from './Router.js'; +export { default as appState, AppState } from './AppState.js'; +export { default as ErrorHandlers } from './ErrorHandlers.js'; +import { content } from './events/actionsContent.js'; +import { drawers } from './events/actionsDrawers.js'; +import { menu } from './events/actionsMenu.js'; +import { options } from './events/actionsOptions.js'; +export interface action { + content: content; + drawers: drawers; + menu: menu; + options: options; +} diff --git a/docs/v1.0.0-beta01/frontend/handlers/index.js b/docs/v1.0.0-beta01/frontend/handlers/index.js new file mode 100644 index 00000000..1d8a4985 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/index.js @@ -0,0 +1,5 @@ +export { default as events, Events } from './events/Events.js'; +export { default as Router } from './Router.js'; +export { default as appState, AppState } from './AppState.js'; +export { default as ErrorHandlers } from './ErrorHandlers.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/handlers/index.js.map b/docs/v1.0.0-beta01/frontend/handlers/index.js.map new file mode 100644 index 00000000..3580c89c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/handlers/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/frontend/handlers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/index.d.ts b/docs/v1.0.0-beta01/frontend/index.d.ts new file mode 100644 index 00000000..e0d4bd56 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/index.d.ts @@ -0,0 +1,34 @@ +/** + * `typedoc-theme-yaf` Is a data driven single page application (SPA).\ + * You are hopefully looking at it right now. + * + * This frontend is a zero dependency construct of native [Web Components](https://en.wikipedia.org/wiki/Web_Components), + * all being ancestors of {@link frontend.webComponents.TypedocThemeYaf}. + * + * Much of the frontend architecture is {@link frontend.handlers.Events event driven}. + * + * The {@link frontend.handlers.AppState application state} is generally immutable, and persisted across sessions using `localstorage`. + * + * @module frontend + */ +export { default as YafHTMLElement } from './YafHTMLElement.js'; +export * from './YafElementDrawers.js'; +/** + * A Yaf Theme factory for fetching, creating, manipulating, querying + * and appending HTML Elements and Text. + */ +export * as yafElement from './yafElement.js'; +/** + * Handler classes and libraries for state, routing, errors and events. + */ +export * as handlers from './handlers/index.js'; +/** + * Yaf Theme is an assembly of native HTML [Web Components](https://en.wikipedia.org/wiki/Web_Components). + * + * This library replicates (in principle) the semantics of the default TypeDoc theme backend templating into the frontend scope. + * It tries to be semantically as close as possible to the default, but does depart in some details and sometimes takes it own tangent... + * + * All data to feed the frontend component logic is {@link backend!YafTheme#saveYafThemeAssets | generated at document build time} as .json fragments + * (instead of the default theme HTML pages) and loaded into the browser as required. + */ +export * as webComponents from './webComponents/index.js'; diff --git a/docs/v1.0.0-beta01/frontend/index.js b/docs/v1.0.0-beta01/frontend/index.js new file mode 100644 index 00000000..8aa17c34 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/index.js @@ -0,0 +1,22 @@ +/** + * `typedoc-theme-yaf` Is a data driven single page application (SPA).\ + * You are hopefully looking at it right now. + * + * This frontend is a zero dependency construct of native [Web Components](https://en.wikipedia.org/wiki/Web_Components), + * all being ancestors of {@link frontend.webComponents.TypedocThemeYaf}. + * + * Much of the frontend architecture is {@link frontend.handlers.Events event driven}. + * + * The {@link frontend.handlers.AppState application state} is generally immutable, and persisted across sessions using `localstorage`. + * + * @module frontend + */ +export { default as YafHTMLElement } from './YafHTMLElement.js'; +export * from './YafElementDrawers.js'; +import * as yafElement_1 from './yafElement.js'; +export { yafElement_1 as yafElement }; +import * as handlers_1 from './handlers/index.js'; +export { handlers_1 as handlers }; +import * as webComponents_1 from './webComponents/index.js'; +export { webComponents_1 as webComponents }; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/index.js.map b/docs/v1.0.0-beta01/frontend/index.js.map new file mode 100644 index 00000000..a6b453bd --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/frontend/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,cAAc,wBAAwB,CAAC;8BAKX,iBAAiB;yBAAjC,UAAU;4BAII,qBAAqB;uBAAnC,QAAQ;iCAUW,0BAA0B;4BAA7C,aAAa"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.d.ts new file mode 100644 index 00000000..2a12a211 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.d.ts @@ -0,0 +1,15 @@ +import { YafHTMLElement } from '../../index.js'; +/** + * **The app chrome wrapping around the main content portal.** + * + * This component deals primarily with opening drawers and scrolling to content.\ + * It reacts to location input events. + */ +export declare class YafChromeContent extends YafHTMLElement { + scrollTimer: ReturnType; + onConnect(): void; + disconnectedCallback(): void; + private focusContent; + private emitScroll; + private events; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.js b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.js new file mode 100644 index 00000000..f3249f63 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.js @@ -0,0 +1,43 @@ +import { events } from '../../handlers/index.js'; +import { YafHTMLElement } from '../../index.js'; +import { getHtmlTemplate, scrollToAnchor } from '../../yafElement.js'; +const { action, trigger } = events; +/** + * **The app chrome wrapping around the main content portal.** + * + * This component deals primarily with opening drawers and scrolling to content.\ + * It reacts to location input events. + */ +export class YafChromeContent extends YafHTMLElement { + constructor() { + super(...arguments); + this.focusContent = ({ detail, }) => { + const { target } = detail; + isNaN(Number(target)) + ? scrollToAnchor(this, detail.target) + : (this.scrollTop = Number(target)); + events.dispatch(action.menu.toggle('close')); + }; + this.emitScroll = () => { + if (this.scrollTimer) + clearTimeout(this.scrollTimer); + this.scrollTimer = setTimeout(() => { + events.dispatch(action.content.scrollTop(this.scrollTop)); + }, 100); + }; + this.events = [ + [trigger.content.scrollTo, this.focusContent], + ['scroll', this.emitScroll, this], + ]; + } + onConnect() { + this.events.forEach((event) => events.on(...event)); + this.appendChild(getHtmlTemplate(yafChromeContent)); + } + disconnectedCallback() { + this.events.forEach((event) => events.off(...event)); + } +} +const yafChromeContent = 'yaf-chrome-content'; +customElements.define(yafChromeContent, YafChromeContent); +//# sourceMappingURL=YafChromeContent.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.js.map new file mode 100644 index 00000000..6aaa6b8f --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeContent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafChromeContent.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Chrome/YafChromeContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,OAAO,gBAAiB,SAAQ,cAAc;IAApD;;QAWS,iBAAY,GAAG,CAAC,EACvB,MAAM,GACsC,EAAE,EAAE;YAChD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;YAE1B,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACpB,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;gBACrC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;YAErC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9C,CAAC,CAAC;QAEM,eAAU,GAAG,GAAG,EAAE;YACzB,IAAI,IAAI,CAAC,WAAW;gBAAE,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACrD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,GAAG,EAAE;gBAClC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;YAC3D,CAAC,EAAE,GAAG,CAAC,CAAC;QACT,CAAC,CAAC;QACM,WAAM,GAAiB;YAC9B,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC;YAC7C,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC;SACjC,CAAC;IACH,CAAC;IA/BA,SAAS;QACR,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,oBAAoB;QACnB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IACtD,CAAC;CAwBD;AAED,MAAM,gBAAgB,GAAkB,oBAAoB,CAAC;AAC7D,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.d.ts new file mode 100644 index 00000000..00c6ecd1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.d.ts @@ -0,0 +1,16 @@ +import { yafEventList } from '../../../types/frontendTypes.js'; +import { YafHTMLElement } from '../../index.js'; +/** + * **The app chrome wrapping around the main content portal.** + * + * This component deals primarily with opening drawers and scrolling to content.\ + * It reacts to location input events. + */ +export declare class YafChromeHeader extends YafHTMLElement { + breadcrumbHTMLElement: HTMLElement; + onConnect(): HTMLElement | undefined; + disconnectedCallback(): void; + private toggleMenu; + private makeBreadcrumb; + eventsList: yafEventList; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.js b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.js new file mode 100644 index 00000000..b6adbc0a --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.js @@ -0,0 +1,70 @@ +import { YafHTMLElement } from '../../index.js'; +import { events, appState } from '../../handlers/index.js'; +import { makeElement, makeIconSpan, makeLinkElement, } from '../../yafElement.js'; +const { trigger, action } = events; +/** + * **The app chrome wrapping around the main content portal.** + * + * This component deals primarily with opening drawers and scrolling to content.\ + * It reacts to location input events. + */ +export class YafChromeHeader extends YafHTMLElement { + constructor() { + super(...arguments); + this.toggleMenu = () => events.dispatch(action.menu.toggle()); + this.makeBreadcrumb = ({ detail, }) => { + const breadcrumbs = appState.getBreadcrumb(detail.id); + if (!breadcrumbs) + return this.breadcrumbHTMLElement.replaceChildren(); + const breadcrumbHTMLElements = breadcrumbs + .map((id, i) => { + const link = appState.reflectionMap[id]; + const linkHTMLElement = makeLinkElement(`?page=${link.query}`, undefined, link.name); + return i < breadcrumbs.length - 1 + ? [linkHTMLElement, makeElement('span', 'divider', '>')] + : linkHTMLElement; + }) + .flat(); + this.breadcrumbHTMLElement.replaceChildren(...breadcrumbHTMLElements); + }; + this.eventsList = [ + [trigger.content.breadcrumb, this.makeBreadcrumb], + ]; + } + onConnect() { + const context = this.getAttribute('context'); + this.eventsList.forEach((event) => events.on(...event)); + this.breadcrumbHTMLElement = makeElement('span', 'breadcrumb'); + if (context === 'desktop') { + return this.appendChild(this.breadcrumbHTMLElement); + } + const mobileHTMLElement = makeElement('span'); + const openMenuHTMLElement = makeIconSpan('menu', 36); + const closeMenHTMLElement = makeIconSpan('menu_open', 36); + const hamburgerHTMLElement = makeElement('span'); + const wrapperHTMLElement = makeElement('span', 'wrapper'); + hamburgerHTMLElement.id = 'hamburger'; + openMenuHTMLElement.classList.add('open'); + closeMenHTMLElement.classList.add('close'); + mobileHTMLElement.id = 'mobileNav'; + [openMenuHTMLElement, closeMenHTMLElement].forEach((menuToggle) => (menuToggle.onclick = this.toggleMenu)); + hamburgerHTMLElement.appendChildren([ + openMenuHTMLElement, + closeMenHTMLElement, + ]); + mobileHTMLElement.appendChildren([ + makeLinkElement('/', 'projectHome', appState.projectName), + ]); + wrapperHTMLElement.appendChildren([ + mobileHTMLElement, + this.breadcrumbHTMLElement, + ]); + this.appendChildren([hamburgerHTMLElement, wrapperHTMLElement]); + } + disconnectedCallback() { + this.eventsList.forEach((event) => events.off(...event)); + } +} +const yafChromeHeader = 'yaf-chrome-header'; +customElements.define(yafChromeHeader, YafChromeHeader); +//# sourceMappingURL=YafChromeHeader.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.js.map new file mode 100644 index 00000000..ad97fbb3 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeHeader.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafChromeHeader.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Chrome/YafChromeHeader.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.d.ts new file mode 100644 index 00000000..0c9dbcd8 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.d.ts @@ -0,0 +1,10 @@ +import { YafHTMLElement } from '../../index.js'; +/** + * + */ +export declare class YafChromeLeft extends YafHTMLElement { + onConnect(): void; + disconnectedCallback(): void; + private toggleSearch; + private eventsList; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.js b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.js new file mode 100644 index 00000000..ae7c6418 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.js @@ -0,0 +1,31 @@ +import { YafHTMLElement } from '../../index.js'; +import { getHtmlTemplate } from '../../yafElement.js'; +import { events } from '../../handlers/index.js'; +const { trigger, action } = events; +/** + * + */ +export class YafChromeLeft extends YafHTMLElement { + constructor() { + super(...arguments); + this.toggleSearch = ({ detail, }) => { + const { searchString } = detail; + searchString.length >= 3 + ? this.classList.add('activeSearch') + : this.classList.remove('activeSearch'); + }; + this.eventsList = [ + [trigger.menu.search, this.toggleSearch], + ]; + } + onConnect() { + this.appendChild(getHtmlTemplate(yafChromeLeft)); + this.eventsList.forEach((event) => events.on(...event)); + } + disconnectedCallback() { + this.eventsList.forEach((event) => events.off(...event)); + } +} +const yafChromeLeft = 'yaf-chrome-left'; +customElements.define(yafChromeLeft, YafChromeLeft); +//# sourceMappingURL=YafChromeLeft.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.js.map new file mode 100644 index 00000000..b36512a1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/YafChromeLeft.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafChromeLeft.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Chrome/YafChromeLeft.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAU,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACzD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;AAEnC;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,cAAc;IAAjD;;QAWS,iBAAY,GAAG,CAAC,EACvB,MAAM,GACiC,EAAE,EAAE;YAC3C,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;YAChC,YAAY,CAAC,MAAM,IAAI,CAAC;gBACvB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC;gBACpC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC1C,CAAC,CAAC;QAEM,eAAU,GAAiB;YAClC,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC;SACxC,CAAC;IACH,CAAC;IAtBA,SAAS;QACR,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC;QAEjD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,oBAAoB;QACnB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;CAcD;AACD,MAAM,aAAa,GAAkB,iBAAiB,CAAC;AACvD,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.d.ts new file mode 100644 index 00000000..0e7160f2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.d.ts @@ -0,0 +1,3 @@ +export * from './YafChromeLeft.js'; +export * from './YafChromeContent.js'; +export * from './YafChromeHeader.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.js b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.js new file mode 100644 index 00000000..e1dbf04a --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.js @@ -0,0 +1,4 @@ +export * from './YafChromeLeft.js'; +export * from './YafChromeContent.js'; +export * from './YafChromeHeader.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.js.map new file mode 100644 index 00000000..841c4e51 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Chrome/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Chrome/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.d.ts new file mode 100644 index 00000000..214ec00b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.d.ts @@ -0,0 +1,14 @@ +import { YafHTMLElement } from '../../index.js'; +export declare class YafContent extends YafHTMLElement { + onConnect(): void; + disconnectedCallback(): void; + private initPageData; + private renderPageContent; + private saveScrollTop; + private returnPageId; + /** + * @event + */ + private events; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.js b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.js new file mode 100644 index 00000000..0ba0ce7e --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.js @@ -0,0 +1,112 @@ +import appState from '../../handlers/AppState.js'; +import { makeElement } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +import { events } from '../../handlers/index.js'; +const { trigger, action } = events; +export class YafContent extends YafHTMLElement { + constructor() { + super(...arguments); + this.initPageData = () => { + const url = new URL(window.location.href); + let page = url.searchParams.get('page'); + page = decodeURIComponent(page || ''); + appState.getPageData(page || 'index').then((data) => { + const newId = String(data.id); + if (this.id !== newId) + this.renderPageContent(data); + this.id = newId; + const scrollTop = appState.scrollTops[this.id] || 0; + events.dispatch(action.content.scrollTo(url.hash ? url.hash.replace('#', '') : scrollTop)); + }); + }; + this.saveScrollTop = ({ detail, }) => { + appState.setScrollTop(this.id, Number(detail.scrollTop)); + }; + this.returnPageId = (e) => e.detail.callBack(Number(this.id)); + /** + * @event + */ + this.events = [ + [trigger.content.setLocation, this.initPageData], + [trigger.content.getPageId, this.returnPageId], + [trigger.content.scrollTop, this.saveScrollTop], + ['popstate', this.initPageData, window], + ]; + } + onConnect() { + this.events.forEach((event) => events.on(...event)); + const bodyHTMLElement = document.querySelector('body'); + bodyHTMLElement === null || bodyHTMLElement === void 0 ? void 0 : bodyHTMLElement.classList.remove('loaded'); + bodyHTMLElement === null || bodyHTMLElement === void 0 ? void 0 : bodyHTMLElement.classList.add('loading'); + this.initPageData(); + bodyHTMLElement === null || bodyHTMLElement === void 0 ? void 0 : bodyHTMLElement.classList.remove('loading'); + setTimeout(() => { + bodyHTMLElement === null || bodyHTMLElement === void 0 ? void 0 : bodyHTMLElement.classList.add('loaded'); + }, 600); + } + disconnectedCallback() { + this.events.forEach((event) => events.off(...event)); + } + renderPageContent(data) { + const { kind, typeParameter, signatures, text, hierarchy, id, is } = data; + const { factory } = YafContent; + const { Variable, TypeAlias } = appState.reflectionKind; + const isVarOrTypeDeclaration = [Variable, TypeAlias].includes(kind) && data.is.declaration; + const hasReadme = !!(text === null || text === void 0 ? void 0 : text.readme); + const hasComment = !!(text === null || text === void 0 ? void 0 : text.comment); + const hasHierchy = is.declaration && hierarchy; + const HTMLElements = isVarOrTypeDeclaration + ? [ + factory.contentHeader(data), + factory.memberDeclaration(data), + ] + : [ + hasReadme + ? factory.contentMarked(text.readme) + : factory.contentHeader(data), + hasComment + ? factory.contentMarked(text.comment) + : undefined, + typeParameter + ? factory.typeParameters(typeParameter) + : undefined, + hasHierchy + ? factory.contentHierarchy(hierarchy, id) + : undefined, + signatures + ? factory.memberSignatures(signatures) + : factory.memberSources(data), + factory.memberGroups(data), + ]; + this.replaceChildren(); + HTMLElements.forEach((element) => { + if (!element) + return; + this.appendChild(element); + if ('drawers' in element) + element.drawers.renderDrawers(); + }); + events.dispatch(action.content.breadcrumb(id)); + } +} +YafContent.factory = { + contentHeader: (data) => makeElement('yaf-content-header', null, null, data), + contentMarked: (html) => makeElement('yaf-content-marked', null, null, html), + memberDeclaration: (data) => makeElement('yaf-member-declaration', null, null, { data, idPrefix: '' }), + memberGroups: (data) => makeElement('yaf-content-members', null, null, data), + typeParameters: (typeParameter) => makeElement('yaf-type-parameters', null, null, typeParameter), + memberSignatures: (signatures) => makeElement('yaf-member-signatures', null, null, signatures), + memberSources: (data) => { + return data + ? makeElement('yaf-member-sources', null, null, data) + : undefined; + }, + contentHierarchy: (hierarchy, id) => makeElement('yaf-content-hierarchy', null, null, { + hierarchy, + pageId: String(id), + init: true, + }), +}; +const yafContent = 'yaf-content'; +customElements.define(yafContent, YafContent); +//# sourceMappingURL=YafContent.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.js.map new file mode 100644 index 00000000..3632d0eb --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafContent.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Content/YafContent.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.d.ts new file mode 100644 index 00000000..525eb1c9 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.d.ts @@ -0,0 +1,5 @@ +import { YAFDataObject } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafContentHeader extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.js b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.js new file mode 100644 index 00000000..a8925adb --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.js @@ -0,0 +1,25 @@ +import { makeElement, makeKindSpan, makeNameSpan, makeFlags, } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +import { events } from '../../handlers/index.js'; +const { action } = events; +export class YafContentHeader extends YafHTMLElement { + onConnect() { + const { typeParameters, kindString, name, is, id, flags, comment, signatures, } = this.props; + const titleHTMLElement = makeElement('h1'); + const nameHTMLElement = makeNameSpan(name); + nameHTMLElement.onclick = () => events.dispatch(action.menu.scrollTo(String(id))); + if (!is.project) + titleHTMLElement.appendChild(makeKindSpan(kindString || 'unknown')); + if (typeParameters && typeParameters.length) { + nameHTMLElement.appendChild(makeElement('yaf-type-parameters', null, null, typeParameters)); + } + titleHTMLElement.appendChild(nameHTMLElement); + titleHTMLElement.appendChild(makeFlags(flags, comment)); + if ((signatures === null || signatures === void 0 ? void 0 : signatures.length) === 1) + titleHTMLElement.appendChild(makeFlags(signatures[0].flags, signatures[0].comment)); + this.appendChild(titleHTMLElement); + } +} +const yafContentHeader = 'yaf-content-header'; +customElements.define(yafContentHeader, YafContentHeader); +//# sourceMappingURL=YafContentHeader.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.js.map new file mode 100644 index 00000000..a4d3a264 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHeader.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafContentHeader.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Content/YafContentHeader.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,SAAS,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;AAE1B,MAAM,OAAO,gBAAiB,SAAQ,cAA6B;IAClE,SAAS;QACR,MAAM,EACL,cAAc,EACd,UAAU,EACV,IAAI,EACJ,EAAE,EACF,EAAE,EACF,KAAK,EACL,OAAO,EACP,UAAU,GACV,GAAG,IAAI,CAAC,KAAK,CAAC;QAEf,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QAE3C,eAAe,CAAC,OAAO,GAAG,GAAG,EAAE,CAC9B,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAEnD,IAAI,CAAC,EAAE,CAAC,OAAO;YACd,gBAAgB,CAAC,WAAW,CAAC,YAAY,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC,CAAC;QACrE,IAAI,cAAc,IAAI,cAAc,CAAC,MAAM,EAAE;YAC5C,eAAe,CAAC,WAAW,CAC1B,WAAW,CACV,qBAAqB,EACrB,IAAI,EACJ,IAAI,EACJ,cAAc,CACd,CACD,CAAC;SACF;QACD,gBAAgB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC9C,gBAAgB,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;QACxD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,CAAC;YAC3B,gBAAgB,CAAC,WAAW,CAC3B,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CACrD,CAAC;QAEH,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACpC,CAAC;CACD;AAED,MAAM,gBAAgB,GAAkB,oBAAoB,CAAC;AAC7D,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.d.ts new file mode 100644 index 00000000..d37a95be --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.d.ts @@ -0,0 +1,12 @@ +import { YafHTMLElement } from '../../index.js'; +import { YafElementDrawers } from '../../YafElementDrawers.js'; +import { yafContentHierarchyProps } from '../../../types/frontendTypes.js'; +export declare class YafContentHierarchy extends YafHTMLElement { + drawers?: YafElementDrawers; + drawerTrigger: HTMLElement; + drawer: HTMLElement & import("../../../types/frontendTypes.js").yafHTMLExtension; + onConnect(): void; + private initDrawers; + private get isOrphan(); + private factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.js b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.js new file mode 100644 index 00000000..aa9a6296 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.js @@ -0,0 +1,63 @@ +import { YafHTMLElement } from '../../index.js'; +import appState from '../../handlers/AppState.js'; +import { makeElement, makeIconSpan, makeLinkElement, } from '../../yafElement.js'; +import { YafElementDrawers } from '../../YafElementDrawers.js'; +export class YafContentHierarchy extends YafHTMLElement { + constructor() { + super(...arguments); + this.drawer = makeElement('ul'); + this.initDrawers = (pageId) => { + this.drawerTrigger = makeElement('h5'); + this.drawerTrigger.appendChild(makeElement('span', null, 'Hierarchy')); + this.drawerTrigger.appendChild(makeIconSpan('expand_less')); + this.appendChild(this.drawerTrigger); + this.drawers = new YafElementDrawers(this, this.drawer, this.drawerTrigger, `hierarchy_${pageId}`); + }; + this.factory = { + li: (item) => makeElement('li', item.isTarget ? 'target' : null, item.name), + linkLi: (item) => { + const linkData = appState.reflectionMap[item.linkId]; + const parentLi = makeElement('li'); + parentLi.appendChild(makeLinkElement(`?page=${linkData.query}#${linkData.hash}`, undefined, item.name)); + return parentLi; + }, + hierarchy: (item) => makeElement('yaf-content-hierarchy', null, null, { + hierarchy: item.children, + }), + }; + } + onConnect() { + var _a; + const { hierarchy, pageId, init } = this.props; + const HTMLElements = hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.map((item) => { + const isLink = !(item.isTarget || !item.linkId); + const hasChildren = !(!item.children || !item.children.length); + const parentLi = isLink + ? this.factory.linkLi(item) + : this.factory.li(item); + if (!hasChildren) + return parentLi; + const childrenLi = makeElement('li'); + childrenLi.appendChild(this.factory.hierarchy(item)); + return [parentLi, childrenLi]; + }); + if (init) + this.initDrawers(pageId); + this.drawer.appendChildren(HTMLElements === null || HTMLElements === void 0 ? void 0 : HTMLElements.flat()); + init + ? this.appendChild(this.drawer) + : (_a = this.parentElement) === null || _a === void 0 ? void 0 : _a.replaceChild(this.drawer, this); + } + get isOrphan() { + const { hierarchy, init } = this.props; + if (!hierarchy || !hierarchy.length) + return true; + return (init && + hierarchy && + hierarchy.length === 1 && + (!hierarchy[0].children || !hierarchy[0].children.length)); + } +} +const yafContentHierarchy = 'yaf-content-hierarchy'; +customElements.define(yafContentHierarchy, YafContentHierarchy); +//# sourceMappingURL=YafContentHierarchy.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.js.map new file mode 100644 index 00000000..b1d579c2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentHierarchy.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafContentHierarchy.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Content/YafContentHierarchy.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.d.ts new file mode 100644 index 00000000..ad2682ba --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.d.ts @@ -0,0 +1,5 @@ +import { htmlString } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafContentMarked extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.js b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.js new file mode 100644 index 00000000..9750326b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.js @@ -0,0 +1,21 @@ +import { YafHTMLElement } from '../../index.js'; +import { makeLinkElement } from '../../yafElement.js'; +export class YafContentMarked extends YafHTMLElement { + onConnect() { + this.classList.add('markdown-body'); + this.innerHTML = this.props || ''; + const HTMLLinks = this.querySelectorAll('a'); + HTMLLinks.forEach((link) => { + var _a; + const href = link.getAttribute('href'); + if (!href || href.startsWith('#')) + return; + const yafLink = makeLinkElement(href); + yafLink.innerHTML = link.innerHTML; + (_a = link.parentElement) === null || _a === void 0 ? void 0 : _a.replaceChild(yafLink, link); + }); + } +} +const yafContentMarked = 'yaf-content-marked'; +customElements.define(yafContentMarked, YafContentMarked); +//# sourceMappingURL=YafContentMarked.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.js.map new file mode 100644 index 00000000..0db410da --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMarked.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafContentMarked.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Content/YafContentMarked.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,OAAO,gBAAiB,SAAQ,cAAsC;IAC3E,SAAS;QACR,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAClC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAE7C,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;;YAC1B,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YACvC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;gBAAE,OAAO;YAE1C,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;YACtC,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YACnC,MAAA,IAAI,CAAC,aAAa,0CAAE,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;IACJ,CAAC;CACD;AAED,MAAM,gBAAgB,GAAkB,oBAAoB,CAAC;AAC7D,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.d.ts new file mode 100644 index 00000000..da7ed048 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.d.ts @@ -0,0 +1,11 @@ +import { YAFDataObject } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +/** + * + */ +export declare class YafContentMembers extends YafHTMLElement { + onConnect(): void; + private static factory; + private linkReferencPageTypes; + private static serialiseLinkGroup; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.js b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.js new file mode 100644 index 00000000..e247093a --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.js @@ -0,0 +1,96 @@ +var _a; +import { YafMember } from '../Member/YafMember.js'; +import errorHandlers from '../../handlers/ErrorHandlers.js'; +import { YafMemberGroupReflection, } from '../Member/index.js'; +import appState from '../../handlers/AppState.js'; +import { makeElement } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +/** + * + */ +export class YafContentMembers extends YafHTMLElement { + constructor() { + super(...arguments); + this.linkReferencPageTypes = [ + 'Namespace', + 'Module', + 'Project', + ].map((kindString) => appState.reflectionKind[kindString]); + } + onConnect() { + var _b, _c; + const { groups, children, id, kind } = this.props; + const { factory } = YafContentMembers; + const isLinkList = this.linkReferencPageTypes.includes(kind); + const constructorGroup = groups === null || groups === void 0 ? void 0 : groups.find((group) => group.title === 'Constructors'); + const hasConstructor = constructorGroup && ((_b = constructorGroup.children) === null || _b === void 0 ? void 0 : _b.length) === 1; + const HTMLElements = [ + hasConstructor + ? factory.constructorElement(constructorGroup, children || []) + : undefined, + groups + ? (_c = [...groups]) === null || _c === void 0 ? void 0 : _c.sort((a, b) => a.title.localeCompare(b.title)).map((group) => { + var _b; + const isConstructorGroup = group.title === 'Constructors' && + hasConstructor; + if (isConstructorGroup || !((_b = group.children) === null || _b === void 0 ? void 0 : _b.length)) + return undefined; + return isLinkList + ? factory.linkGroup(group, children || []) + : factory.reflectionGroup(group, children || [], String(id)); + }) + : undefined, + ].flat(); + this.appendChildren(HTMLElements); + YafMemberGroupReflection.renderDrawersFromRoot(this); + } +} +_a = YafContentMembers; +YafContentMembers.factory = { + /** + * Returns a HTMLElement for the consructor member + * @param constructorGroup + * @param children + * @returns + */ + constructorElement: (constructorGroup, children) => { + const childId = constructorGroup.children[0]; + const data = children.find((child) => child.id === childId); + if (data) { + const HTMLElement = makeElement('yaf-member', null, null, { data, idPrefix: '' }); + HTMLElement.id = 'constructor'; + return HTMLElement; + } + else { + errorHandlers.notFound(`Could not find reflection id: ${childId} in group ${constructorGroup.title}`); + } + }, + linkGroup: (group, children) => { + const serialisedChildren = _a.serialiseLinkGroup(group, children); + return makeElement('yaf-member-group-link', null, null, { + title: group.title, + children: serialisedChildren, + }); + }, + reflectionGroup: (group, children, pageId) => { + const serialisedGroup = YafMember.serialiseReflectionGroup(group, children); + return makeElement('yaf-member-group-reflection', null, null, { + title: group.title, + children: serialisedGroup.children, + pageId, + }); + }, +}; +YafContentMembers.serialiseLinkGroup = (group, children) => { + var _b; + return ((_b = group.children) === null || _b === void 0 ? void 0 : _b.map((id) => { + const child = children.find((child) => child.id == id) || + appState.reflectionMap[id]; + const childClone = Object.assign({}, child); + childClone.id = id; + return childClone; + }).filter((child) => !!child)) || []; +}; +const yafContentMembers = 'yaf-content-members'; +customElements.define(yafContentMembers, YafContentMembers); +//# sourceMappingURL=YafContentMembers.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.js.map new file mode 100644 index 00000000..99e4693d --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/YafContentMembers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafContentMembers.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Content/YafContentMembers.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Content/index.d.ts new file mode 100644 index 00000000..a74cdfe4 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/index.d.ts @@ -0,0 +1,5 @@ +export * from './YafContent.js'; +export * from './YafContentHeader.js'; +export * from './YafContentMarked.js'; +export * from './YafContentMembers.js'; +export * from './YafContentHierarchy.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/index.js b/docs/v1.0.0-beta01/frontend/webComponents/Content/index.js new file mode 100644 index 00000000..5d5455bc --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/index.js @@ -0,0 +1,6 @@ +export * from './YafContent.js'; +export * from './YafContentHeader.js'; +export * from './YafContentMarked.js'; +export * from './YafContentMembers.js'; +export * from './YafContentHierarchy.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Content/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Content/index.js.map new file mode 100644 index 00000000..d64f2ee0 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Content/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Content/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.d.ts new file mode 100644 index 00000000..81813469 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.d.ts @@ -0,0 +1,13 @@ +import { YAFDataObject, YAFReflectionLink } from '../../../types/types.js'; +import { yafReflectionGroup } from '../../../types/frontendTypes.js'; +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafMember extends YafHTMLElement<{ + data: Omit; + idPrefix: string; +}> { + onConnect(): void; + private focusMember; + private factory; + static serialiseReflectionGroup: (group: JSONOutput.ReflectionGroup, children: YAFDataObject[]) => yafReflectionGroup; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.js b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.js new file mode 100644 index 00000000..5f22364e --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.js @@ -0,0 +1,80 @@ +import { makeFlags, makeElement, makeLinkElement } from '../../yafElement.js'; +import appState from '../../handlers/AppState.js'; +import errorHandlers from '../../handlers/ErrorHandlers.js'; +import { YafHTMLElement } from '../../index.js'; +import { events } from '../../handlers/index.js'; +const { action } = events; +export class YafMember extends YafHTMLElement { + constructor() { + super(...arguments); + this.focusMember = () => { + events.dispatch(action.menu.scrollTo(String(this.props.data.id))); + //events.dispatch(action.content.setLocation()); + }; + this.factory = { + signatures: (signatures) => makeElement('yaf-member-signatures', null, null, signatures), + getterOrSetter: () => makeElement('yaf-member-getter-setter', null, null, this.props.data), + memberDeclaration: (idPrefix) => makeElement('yaf-member-declaration', null, null, { data: this.props.data, idPrefix }), + }; + } + onConnect() { + const { name, kind, signatures, flags, comment, groups, getSignature, setSignature, id, } = this.props.data; + const { idPrefix } = this.props; + const { query, hash } = appState.reflectionMap[id]; + let href = `?page=${query}`; + if (hash) + href += `#${hash}`; + const flagsElement = flags ? makeFlags(flags, comment) : undefined; + const headerElement = makeElement('h3', 'header'); + headerElement.onclick = this.focusMember; + const linkHTMLElement = makeLinkElement(href, 'name', name); + //const nameElement = linkHTMLElement.querySelector('a'); + const inner = makeElement('div', 'inner'); + const hasGetterOrSetter = !!getSignature || !!setSignature; + const isReferenceReflection = kind && appState.reflectionKind[kind] === 'Reference'; + //nameElement!.appendChildren([makeNameSpan(name), makeIconSpan('link')]); + headerElement.appendChildren([ + linkHTMLElement, + flagsElement ? flagsElement : undefined, + ]); + const memberType = signatures + ? 'signatures' + : hasGetterOrSetter + ? 'getterOrSetter' + : isReferenceReflection + ? 'referenceReflection' + : 'memberDeclaration'; + switch (memberType) { + case 'signatures': + inner.appendChild(this.factory.signatures(signatures)); + break; + case 'getterOrSetter': + inner.appendChild(this.factory.getterOrSetter()); + break; + case 'referenceReflection': + console.error('TODO: is this ever hit?', this.props); + break; + case 'memberDeclaration': + inner.appendChild(this.factory.memberDeclaration(idPrefix)); + } + this.appendChildren([headerElement, inner]); + if (groups) + console.warn('TODO', groups); + } +} +YafMember.serialiseReflectionGroup = (group, children) => { + var _a; + if (!group.children) + return { title: group.title, children: [] }; + const mappedChildren = (_a = group.children) === null || _a === void 0 ? void 0 : _a.map((id) => (children === null || children === void 0 ? void 0 : children.find((child) => child.id === id)) || + appState.reflectionMap[id] || + id).filter((child) => { + if (typeof child === 'number') + errorHandlers.notFound(`Did not find reflection id: ${child}`); + return !!child; + }); + return { title: group.title, children: mappedChildren || [] }; +}; +const yafMember = 'yaf-member'; +customElements.define(yafMember, YafMember); +//# sourceMappingURL=YafMember.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.js.map new file mode 100644 index 00000000..ec0171bf --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMember.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafMember.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Member/YafMember.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.d.ts new file mode 100644 index 00000000..96946be4 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.d.ts @@ -0,0 +1,12 @@ +import { YafDeclarationReflection } from '../../../types/types'; +import { YafHTMLElement } from '../../index.js'; +/** + * + */ +export declare class YafMemberDeclaration extends YafHTMLElement<{ + data: YafDeclarationReflection; + idPrefix: string; +}> { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.js b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.js new file mode 100644 index 00000000..c53b7064 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.js @@ -0,0 +1,60 @@ +import { YafMember, YafMemberGroupReflection, } from './index.js'; +import { makeElement } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +/** + * + */ +export class YafMemberDeclaration extends YafHTMLElement { + onConnect() { + var _a, _b; + const { type, id } = this.props.data; + const { idPrefix } = this.props; + const { factory } = YafMemberDeclaration; + const isReflection = (type === null || type === void 0 ? void 0 : type.type) === 'reflection'; + const isReflectionSignature = isReflection && !!((_a = type.declaration) === null || _a === void 0 ? void 0 : _a.signatures); + const isReflectionGroup = isReflection && !!((_b = type.declaration) === null || _b === void 0 ? void 0 : _b.groups); + const HTMLElements = [ + !isReflectionSignature + ? factory.memberSignatures(this.props.data) + : undefined, + isReflectionGroup + ? factory.memberGroups(type, id, idPrefix) + : undefined, + isReflectionSignature ? factory.memberSignatures(type) : undefined, + ] + .filter((element) => !!element) + .flat(); + this.appendChildren(HTMLElements); + YafMemberGroupReflection.renderDrawersFromRoot(this); + } +} +YafMemberDeclaration.factory = { + memberGroups: (type, parentId, idPrefix) => { + var _a; + if (!type.declaration || + !type.declaration.children || + !((_a = type.declaration.children) === null || _a === void 0 ? void 0 : _a.length)) + return undefined; + const { groups, children, id } = type.declaration; + const serialisedGroups = groups === null || groups === void 0 ? void 0 : groups.map((group) => YafMember.serialiseReflectionGroup(group, children || [])); + return ((serialisedGroups === null || serialisedGroups === void 0 ? void 0 : serialisedGroups.map((group) => { + return makeElement('yaf-member-group-reflection', null, null, { + title: group.title, + children: group.children, + pageId: String(id), + nested: true, + idPrefix, + }); + })) || undefined); + }, + memberSignatures: (member) => { + const declaration = member.declaration; + const signatures = declaration + ? declaration.signatures + : undefined; + return makeElement('yaf-member-signatures', null, null, signatures || [member]); + }, +}; +const yafMemberDeclaration = 'yaf-member-declaration'; +customElements.define(yafMemberDeclaration, YafMemberDeclaration); +//# sourceMappingURL=YafMemberDeclaration.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.js.map new file mode 100644 index 00000000..57950120 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberDeclaration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafMemberDeclaration.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Member/YafMemberDeclaration.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.d.ts new file mode 100644 index 00000000..de3df217 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.d.ts @@ -0,0 +1,6 @@ +import { YAFDataObject } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafMemberGetterSetter extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.js b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.js new file mode 100644 index 00000000..aa0e5360 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.js @@ -0,0 +1,40 @@ +import { makeElement, makeSymbolSpan, makeNameSpan } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +export class YafMemberGetterSetter extends YafHTMLElement { + onConnect() { + const { getSignature, setSignature } = this.props; + const { factory } = YafMemberGetterSetter; + if (getSignature) { + this.appendChildren([ + factory.makeSignature('get', getSignature), + factory.makeBody(getSignature), + ]); + } + if (setSignature) { + this.appendChildren([ + factory.makeSignature('set', setSignature), + factory.makeBody(setSignature), + ]); + } + if (this.props.sources) + this.appendChild(factory.makeBody({ + sources: this.props.sources, + })); + } +} +YafMemberGetterSetter.factory = { + makeSignature: (prefix, data) => { + const title = makeElement('yaf-signature-title', null, null, Object.assign(Object.assign({}, data), { hideName: true })); + const preHTMLElement = makeElement('pre', 'highlight'); + preHTMLElement.appendChildren([ + makeSymbolSpan(`${prefix} `), + makeNameSpan(data.name), + title, + ]); + return preHTMLElement; + }, + makeBody: (data) => makeElement('yaf-signature-body', null, null, data), +}; +const yafMemberGetterSetter = 'yaf-member-getter-setter'; +customElements.define(yafMemberGetterSetter, YafMemberGetterSetter); +//# sourceMappingURL=YafMemberGetterSetter.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.js.map new file mode 100644 index 00000000..ac20f85c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGetterSetter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafMemberGetterSetter.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Member/YafMemberGetterSetter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,MAAM,OAAO,qBAAsB,SAAQ,cAA6B;IACvE,SAAS;QACR,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAClD,MAAM,EAAE,OAAO,EAAE,GAAG,qBAAqB,CAAC;QAE1C,IAAI,YAAY,EAAE;YACjB,IAAI,CAAC,cAAc,CAAC;gBACnB,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,YAAY,CAAC;gBAC1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;aAC9B,CAAC,CAAC;SACH;QAED,IAAI,YAAY,EAAE;YACjB,IAAI,CAAC,cAAc,CAAC;gBACnB,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,YAAY,CAAC;gBAC1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;aAC9B,CAAC,CAAC;SACH;QAED,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO;YACrB,IAAI,CAAC,WAAW,CACf,OAAO,CAAC,QAAQ,CAAC;gBAChB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAQ;aACF,CAAC,CAC5B,CAAC;IACJ,CAAC;;AAEc,6BAAO,GAAG;IACxB,aAAa,EAAE,CAAC,MAAc,EAAE,IAA4B,EAAE,EAAE;QAC/D,MAAM,KAAK,GAAG,WAAW,CAGvB,qBAAqB,EAAE,IAAI,EAAE,IAAI,kCAAO,IAAI,KAAE,QAAQ,EAAE,IAAI,IAAG,CAAC;QAElE,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QACvD,cAAc,CAAC,cAAc,CAAC;YAC7B,cAAc,CAAC,GAAG,MAAM,GAAG,CAAC;YAC5B,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;YACvB,KAAK;SACL,CAAC,CAAC;QAEH,OAAO,cAAc,CAAC;IACvB,CAAC;IACD,QAAQ,EAAE,CAAC,IAA4B,EAAE,EAAE,CAC1C,WAAW,CACV,oBAAoB,EACpB,IAAI,EACJ,IAAI,EACJ,IAAI,CACJ;CACF,CAAC;AAGH,MAAM,qBAAqB,GAAkB,0BAA0B,CAAC;AACxE,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.d.ts new file mode 100644 index 00000000..d82be662 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.d.ts @@ -0,0 +1,12 @@ +import { yafMemberGroupLinkProps } from '../../../types/frontendTypes'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafMemberGroupLink extends YafHTMLElement { + onConnect(): void; + /** + * If the link is to a `Reference` kind, this modifies the name + * to indicate how the original target has been modified. + * @param child + * @returns + */ + private serialiseReferencedChild; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.js b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.js new file mode 100644 index 00000000..77a327fb --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.js @@ -0,0 +1,69 @@ +import { appState, events } from '../../handlers/index.js'; +import { makeElement, makeTitleSpan, makeLinkElement, } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +const { action } = events; +export class YafMemberGroupLink extends YafHTMLElement { + constructor() { + super(...arguments); + /** + * If the link is to a `Reference` kind, this modifies the name + * to indicate how the original target has been modified. + * @param child + * @returns + */ + this.serialiseReferencedChild = (child) => { + if (!child.kind || child.kind !== appState.reflectionKind.Reference) + return child; + const target = child.target + ? appState.reflectionMap[child.target] + : undefined; + const referenceType = !target + ? 'ReExports' + : child.name === target.name + ? 'ReExportsLink' + : 'ReExportsRenameLink'; + switch (referenceType) { + case 'ReExports': + child.query = appState.reflectionMap[child.id].query; + child.name = `Re-exported: "${child.name}"`; + break; + case 'ReExportsLink': + child.query = appState.reflectionMap[child.target].query; + child.name = `Re-exported: "${child.name}"`; + break; + case 'ReExportsRenameLink': + child.query = appState.reflectionMap[child.target].query; + child.name = `Re-named/exported: "${target.name}" to "${child.name}"`; + } + return child; + }; + } + onConnect() { + const { children, title } = this.props; + const ulHTMLElement = makeElement(`ul`, 'links'); + const groupHeaderHTMLElement = makeElement('h2'); + const groupTitleHTMLElement = makeTitleSpan(`${title}`); + const groupCountHTMLElement = makeElement('yaf-widget-counter', null, null, { + count: children.length, + }); + groupHeaderHTMLElement.appendChildren([ + groupTitleHTMLElement, + groupCountHTMLElement, + ]); + children.forEach((child) => { + const liHTMLElement = makeElement(`li`); + liHTMLElement.id = child.name; + child = this.serialiseReferencedChild(child); + const linkHTMLElement = makeLinkElement(child.hash + ? `?page=${child.query}#${child.hash}` + : `?page=${child.query}`, undefined, child.name); + liHTMLElement.appendChild(linkHTMLElement); + liHTMLElement.onclick = () => events.dispatch(action.content.scrollTo(`menu_${child.id}`)); + ulHTMLElement.appendChild(liHTMLElement); + }); + this.appendChildren([groupHeaderHTMLElement, ulHTMLElement]); + } +} +const yafMemberGroupLink = 'yaf-member-group-link'; +customElements.define(yafMemberGroupLink, YafMemberGroupLink); +//# sourceMappingURL=YafMemberGroupLink.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.js.map new file mode 100644 index 00000000..e99c3d9d --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupLink.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafMemberGroupLink.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Member/YafMemberGroupLink.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.d.ts new file mode 100644 index 00000000..69447d82 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.d.ts @@ -0,0 +1,18 @@ +import { yafMemberGroupReflectionProps } from '../../../types/frontendTypes.js'; +import { YafElementDrawers } from '../../YafElementDrawers.js'; +import { YafHTMLElement } from '../../index.js'; +/** + * + */ +export declare class YafMemberGroupReflection extends YafHTMLElement { + drawers: YafElementDrawers; + onConnect(): void; + disconnectedCallback(): void; + get pageId(): number; + private static factory; + /** + * Calls `renderDrawers()` from the root of the drawer tree only. + * @param parent + */ + static renderDrawersFromRoot: (parent: HTMLElement) => void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.js b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.js new file mode 100644 index 00000000..66e35062 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.js @@ -0,0 +1,117 @@ +var _a; +import { YafElementDrawers } from '../../YafElementDrawers.js'; +import { makeElement, makeTitleSpan, makeIconSpan, normaliseFlags, makeSymbolSpan, makeLinkElement, } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +import { events } from '../../handlers/index.js'; +const { action } = events; +/** + * + */ +export class YafMemberGroupReflection extends YafHTMLElement { + onConnect() { + const { title, children, pageId, nested, idPrefix } = this.props; + const { factory } = YafMemberGroupReflection; + this.id = `member_${pageId}_${title}`; + const drawerHTMLElement = makeElement(`ul`); + const drawerTriggerHTMLElement = makeElement('span', 'trigger'); + const groupHeaderHTMLElement = makeElement(nested ? 'h3' : 'h2'); + const groupTitleHTMLElement = factory.makeNestedTitleSpan(title, idPrefix, this.pageId, drawerTriggerHTMLElement); + const groupCountHTMLElement = factory.counterWidget(children.length); + const drawerLiHTMLElements = factory.drawerListChildren(children, idPrefix); + groupHeaderHTMLElement.appendChildren([ + groupTitleHTMLElement, + groupCountHTMLElement, + ]); + drawerHTMLElement.appendChildren(drawerLiHTMLElements); + this.appendChildren([groupHeaderHTMLElement, drawerHTMLElement]); + this.drawers = new YafElementDrawers(this, drawerHTMLElement, drawerTriggerHTMLElement, this.id); + drawerHTMLElement.prepend(factory.tagToggles(this.drawers)); + /** + * NOTE: `drawers.renderDrawers()` is called from `YafMemberDeclaration` or `YafContentMembers`. + * That is the root of the drawer tree and propagates downwards to branches + * from within the `renderDrawers` method itself. + */ + } + disconnectedCallback() { + this.drawers.drawerHasDisconnected(); + } + get pageId() { + let id; + events.dispatch(action.content.getPageId((pageId) => { + id = pageId; + })); + return id; + } +} +_a = YafMemberGroupReflection; +YafMemberGroupReflection.factory = { + drawerListChildren: (children, idPrefix = '') => children.map((child) => { + const liHTMLElement = _a.factory.listItem(child.flags); + const id = `${idPrefix ? idPrefix + '.' : ''}${child.name}`; + liHTMLElement.id = id; + liHTMLElement.appendChild(_a.factory.member(child, id)); + return liHTMLElement; + }), + listItem: (flags) => makeElement('li', flags ? normaliseFlags(flags).join(' ') : ''), + member: (data, idPrefix) => makeElement('yaf-member', null, null, { data, idPrefix }), + tagToggles: (drawers) => { + const toggleHTMLElement = makeElement('yaf-widget-tag-toggle', 'tagtoggles', null, { + flagCounts: drawers.flagCounts, + }); + const liHTMLElement = makeElement('li'); + liHTMLElement.appendChild(toggleHTMLElement); + return liHTMLElement; + }, + counterWidget: (count) => makeElement('yaf-widget-counter', null, null, { + count, + }), + makeNestedTitleSpan: (titleString, idPrefix, pageId, drawerTriggerHTMLElement) => { + const { makeDrawerToggle } = _a.factory; + const wrapperHTMLElement = makeElement('span', 'wrapper'); + if (!idPrefix) { + wrapperHTMLElement.appendChild(makeDrawerToggle(titleString, drawerTriggerHTMLElement)); + return wrapperHTMLElement; + } + const fragments = idPrefix.split('.'); + const fragmentHTMLElements = []; + fragments.forEach((fragment, i) => { + const linkHTMLElement = makeLinkElement(`#${fragments.slice(0, i + 1).join('.')}`, undefined, fragment); + /* + makeElement('a', undefined, fragment); + linkHTMLElement.setAttribute( + 'href', + `#${fragments.slice(0, i + 1).join('.')}` + ); + */ + fragmentHTMLElements.push(linkHTMLElement); + if (i < fragments.length - 1) + fragmentHTMLElements.push(makeSymbolSpan(' : ')); + }); + wrapperHTMLElement.appendChildren([ + ...fragmentHTMLElements, + makeDrawerToggle(titleString, drawerTriggerHTMLElement), + ]); + return wrapperHTMLElement; + }, + makeDrawerToggle: (title, drawerTriggerHTMLElement) => { + const handleIconHTMLElement = makeIconSpan('expand_less'); + const iconHTMLElement = makeElement('span', 'icon'); + iconHTMLElement.appendChild(handleIconHTMLElement); + drawerTriggerHTMLElement.appendChildren([ + iconHTMLElement, + makeTitleSpan(title), + ]); + return drawerTriggerHTMLElement; + }, +}; +/** + * Calls `renderDrawers()` from the root of the drawer tree only. + * @param parent + */ +YafMemberGroupReflection.renderDrawersFromRoot = (parent) => { + const drawerHTMLElements = [...parent.children].filter((child) => 'drawers' in child); + drawerHTMLElements.forEach((drawer) => drawer.drawers.renderDrawers()); +}; +const yafMemberGroupReflection = 'yaf-member-group-reflection'; +customElements.define(yafMemberGroupReflection, YafMemberGroupReflection); +//# sourceMappingURL=YafMemberGroupReflection.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.js.map new file mode 100644 index 00000000..d4a5be4a --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberGroupReflection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafMemberGroupReflection.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Member/YafMemberGroupReflection.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.d.ts new file mode 100644 index 00000000..06e0d36b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.d.ts @@ -0,0 +1,6 @@ +import { YafSignatureReflection } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafMemberSignatures extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.js b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.js new file mode 100644 index 00000000..9e07f4f9 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.js @@ -0,0 +1,27 @@ +import appState from '../../handlers/AppState.js'; +import { makeFlags, makeElement } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +export class YafMemberSignatures extends YafHTMLElement { + onConnect() { + this.props.forEach((signature) => { + const { flags, comment } = signature; + const { factory } = YafMemberSignatures; + const flagsHTMLElement = this.props.length > 1 ? makeFlags(flags, comment) : undefined; + const titleHTMLElement = factory.signatureTitle(signature); + const bodyHTMLElement = factory.signatureBody(signature); + this.appendChildren([ + flagsHTMLElement, + titleHTMLElement, + bodyHTMLElement, + ]); + }); + } +} +YafMemberSignatures.factory = { + signatureTitle: (signature) => makeElement('yaf-signature-title', null, null, Object.assign(Object.assign({}, signature), { hideName: false, arrowStyle: signature.kind === + appState.reflectionKind.CallSignature, wrappedInPre: true })), + signatureBody: (signature) => makeElement('yaf-signature-body', null, null, signature), +}; +const yafMemberSignatures = 'yaf-member-signatures'; +customElements.define(yafMemberSignatures, YafMemberSignatures); +//# sourceMappingURL=YafMemberSignatures.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.js.map new file mode 100644 index 00000000..d80fa276 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSignatures.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafMemberSignatures.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Member/YafMemberSignatures.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,OAAO,mBAAoB,SAAQ,cAExC;IACA,SAAS;QACR,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAChC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;YACrC,MAAM,EAAE,OAAO,EAAE,GAAG,mBAAmB,CAAC;YAExC,MAAM,gBAAgB,GACrB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC/D,MAAM,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;YAC3D,MAAM,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;YAEzD,IAAI,CAAC,cAAc,CAAC;gBACnB,gBAAgB;gBAChB,gBAAgB;gBAChB,eAAe;aACf,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;;AAEc,2BAAO,GAAG;IACxB,cAAc,EAAE,CAAC,SAAiC,EAAE,EAAE,CACrD,WAAW,CACV,qBAAqB,EACrB,IAAI,EACJ,IAAI,kCAEA,SAAS,KACZ,QAAQ,EAAE,KAAK,EACf,UAAU,EACT,SAAS,CAAC,IAAI;YACd,QAAQ,CAAC,cAAc,CAAC,aAAa,EACtC,YAAY,EAAE,IAAI,IAEnB;IACF,aAAa,EAAE,CAAC,SAAiC,EAAE,EAAE,CACpD,WAAW,CACV,oBAAoB,EACpB,IAAI,EACJ,IAAI,EACJ,SAAS,CACT;CACF,CAAC;AAGH,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AACpD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.d.ts new file mode 100644 index 00000000..2c9922cd --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.d.ts @@ -0,0 +1,5 @@ +import { YafDeclarationReflection, YafSignatureReflection } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafMemberSources extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.js b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.js new file mode 100644 index 00000000..aa8ea48b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.js @@ -0,0 +1,22 @@ +import { YafHTMLElement } from '../../index.js'; +import { makeElement, makeLinkElement } from '../../yafElement.js'; +export class YafMemberSources extends YafHTMLElement { + onConnect() { + const { sources } = this.props; + const headerHTMLElement = makeElement('h5', null, 'Defined in:'); + const ulHTMLElement = makeElement('ul', 'references'); + const sourcelistHTMLElements = sources === null || sources === void 0 ? void 0 : sources.map((source) => { + const { fileName, line, url } = source; + const liHTMLElement = makeElement('li'); + url + ? liHTMLElement.appendChild(makeLinkElement(url, undefined, `${fileName}:${line}`)) + : (liHTMLElement.innerText = `${fileName}:${line}`); + return liHTMLElement; + }); + ulHTMLElement.appendChildren(sourcelistHTMLElements); + this.appendChildren([headerHTMLElement, ulHTMLElement]); + } +} +const yafMemberSources = 'yaf-member-sources'; +customElements.define(yafMemberSources, YafMemberSources); +//# sourceMappingURL=YafMemberSources.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.js.map new file mode 100644 index 00000000..dbee2ccf --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/YafMemberSources.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafMemberSources.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Member/YafMemberSources.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,OAAO,gBAAiB,SAAQ,cAErC;IACA,SAAS;QACR,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE/B,MAAM,iBAAiB,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;QACjE,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QACtD,MAAM,sBAAsB,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YACtD,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YACvC,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YACxC,GAAG;gBACF,CAAC,CAAC,aAAa,CAAC,WAAW,CACzB,eAAe,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC,CACrD;gBACH,CAAC,CAAC,CAAC,aAAa,CAAC,SAAS,GAAG,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAC;YAErD,OAAO,aAAa,CAAC;QACtB,CAAC,CAAC,CAAC;QAEH,aAAa,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC;QACrD,IAAI,CAAC,cAAc,CAAC,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;IACzD,CAAC;CACD;AAED,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAC9C,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Member/index.d.ts new file mode 100644 index 00000000..53485c67 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/index.d.ts @@ -0,0 +1,7 @@ +export * from './YafMember.js'; +export * from './YafMemberDeclaration.js'; +export * from './YafMemberGetterSetter.js'; +export * from './YafMemberGroupLink.js'; +export * from './YafMemberGroupReflection.js'; +export * from './YafMemberSignatures.js'; +export * from './YafMemberSources.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/index.js b/docs/v1.0.0-beta01/frontend/webComponents/Member/index.js new file mode 100644 index 00000000..cbe9fada --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/index.js @@ -0,0 +1,8 @@ +export * from './YafMember.js'; +export * from './YafMemberDeclaration.js'; +export * from './YafMemberGetterSetter.js'; +export * from './YafMemberGroupLink.js'; +export * from './YafMemberGroupReflection.js'; +export * from './YafMemberSignatures.js'; +export * from './YafMemberSources.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Member/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Member/index.js.map new file mode 100644 index 00000000..79e8f476 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Member/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Member/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.d.ts new file mode 100644 index 00000000..7ad9d548 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.d.ts @@ -0,0 +1,13 @@ +import { YafElementDrawers } from '../../YafElementDrawers.js'; +import { YafHTMLElement } from '../../index.js'; +/** + * + */ +export declare class YafNavigationHeader extends YafHTMLElement { + drawers: YafElementDrawers; + id: string; + onConnect(): void; + disconnectedCallback(): void; + private static factory; + private keyKinds; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.js b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.js new file mode 100644 index 00000000..aca95b15 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.js @@ -0,0 +1,112 @@ +var _a; +import appState from '../../handlers/AppState.js'; +import { YafElementDrawers } from '../../YafElementDrawers.js'; +import { makeIconSpan, makeElement, makeLinkElement, makeNameSpan, } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +import { events } from '../../handlers/index.js'; +const { action } = events; +/** + * + */ +export class YafNavigationHeader extends YafHTMLElement { + constructor() { + super(...arguments); + this.id = 'yafNavigationHeader'; + this.keyKinds = [ + appState.reflectionKind.Property, + appState.reflectionKind.Method, + appState.reflectionKind.Accessor, + appState.reflectionKind.Variable, + appState.reflectionKind.TypeAlias, + appState.reflectionKind.Constructor, + appState.reflectionKind.Function, + appState.reflectionKind.Class, + appState.reflectionKind.Namespace, + appState.reflectionKind.Interface, + appState.reflectionKind.Namespace, + appState.reflectionKind.Enum, + appState.reflectionKind.Reference, + ]; + } + onConnect() { + const { factory } = YafNavigationHeader; + const drawerTriggerHTMLElement = makeElement('span', 'info'); + const navigationControlsHTMLElement = factory.navigationControls(drawerTriggerHTMLElement); + const drawerHTMLElement = factory.infoDrawer(this.keyKinds, appState.kindSymbols); + drawerTriggerHTMLElement.appendChildren([ + makeIconSpan('question_mark', 18), + makeIconSpan('highlight_off'), + ]); + this.appendChildren([ + factory.projectTitle(), + navigationControlsHTMLElement, + drawerHTMLElement, + ]); + this.drawers = new YafElementDrawers(this, drawerHTMLElement, drawerTriggerHTMLElement, this.id); + this.drawers.renderDrawers(true); + } + disconnectedCallback() { + this.drawers.drawerHasDisconnected(); + } +} +_a = YafNavigationHeader; +YafNavigationHeader.factory = { + projectTitle: () => { + const homeLinkHTMLElement = makeLinkElement('/', 'button'); + const titleHTMLElement = makeElement('div'); + titleHTMLElement.id = 'projectTitle'; + homeLinkHTMLElement.appendChild(makeIconSpan('home')); + titleHTMLElement.appendChildren([ + homeLinkHTMLElement, + makeElement('span', 'title', appState.projectName), + ]); + return titleHTMLElement; + }, + navigationControls: (drawerTriggerHTMLElement) => { + const navigationControlsHTMLElement = makeElement('div', 'controls-navigation'); + navigationControlsHTMLElement.appendChildren([ + makeElement('yaf-navigation-searchbar'), + _a.factory.menuRollControls(drawerTriggerHTMLElement), + ]); + return navigationControlsHTMLElement; + }, + menuRollControls: (drawerTriggerHTMLElement) => { + const openAllHTMLElement = makeElement('span', 'open button'); + const closeAllHTMLElement = makeElement('span', 'close button'); + const drawerControlsHTMLElement = makeElement('span', 'controls-drawers'); + openAllHTMLElement.appendChild(makeIconSpan('expand_more')); + closeAllHTMLElement.appendChild(makeIconSpan('expand_less')); + drawerControlsHTMLElement.appendChildren([ + drawerTriggerHTMLElement, + openAllHTMLElement, + closeAllHTMLElement, + ]); + openAllHTMLElement.onclick = () => events.dispatch(action.menu.rollMenuDown()); + closeAllHTMLElement.onclick = () => events.dispatch(action.menu.rollMenuUp()); + return drawerControlsHTMLElement; + }, + infoDrawer: (keyKinds, kindSymbols) => { + const infoDrawerHTMLElement = makeElement('div', 'drawers-info'); + const innerHTMLElement = makeElement('span', 'inner'); + const keySymbolHTMLElements = keyKinds.map((keyKind) => { + let nameString = kindSymbols[keyKind].className; + nameString = + nameString.charAt(0).toUpperCase() + nameString.slice(1); + const widgetHTMLElement = makeElement('span', 'widget'); + const nameHTMLElement = makeNameSpan(nameString); + const kindIconHTMLElement = _a.factory.kindIcon(String(keyKind)); + widgetHTMLElement.appendChildren([ + kindIconHTMLElement, + nameHTMLElement, + ]); + return widgetHTMLElement; + }); + innerHTMLElement.appendChildren(keySymbolHTMLElements); + infoDrawerHTMLElement.appendChild(innerHTMLElement); + return infoDrawerHTMLElement; + }, + kindIcon: (kind) => makeElement('yaf-widget-kind', null, null, { kind }), +}; +const yafNavigationHeader = 'yaf-navigation-header'; +customElements.define(yafNavigationHeader, YafNavigationHeader); +//# sourceMappingURL=YafNavigationHeader.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.js.map new file mode 100644 index 00000000..52b9dae2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationHeader.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafNavigationHeader.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Navigation/YafNavigationHeader.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.d.ts new file mode 100644 index 00000000..ef5f69d9 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.d.ts @@ -0,0 +1,6 @@ +import { YafHTMLElement } from '../../index.js'; +export declare class YafNavigationLink extends YafHTMLElement { + aHTMLElement: HTMLAnchorElement; + onConnect(): void; + disconnectedCallback(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.js b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.js new file mode 100644 index 00000000..42608dcc --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.js @@ -0,0 +1,47 @@ +import { YafHTMLElement } from '../../index.js'; +import router from '../../handlers/Router.js'; +import { makeElement } from '../../yafElement.js'; +import appState from '../../handlers/AppState.js'; +import { events } from '../../handlers/index.js'; +export class YafNavigationLink extends YafHTMLElement { + onConnect() { + this.aHTMLElement = makeElement('a'); + this.classList.forEach((className) => { + this.aHTMLElement.classList.add(className); + this.classList.remove(className); + }); + const Href = this.getAttribute('href'); + if (Href === '/') + this.setAttribute('href', router.baseUrl); + if (Href === null || Href === void 0 ? void 0 : Href.startsWith('#')) + this.setAttribute('href', window.location.search + Href); + let targetURL = router.getTargetURL(this); + if (!isNaN(Number(Href))) { + const reflectionLink = appState.reflectionMap[Href]; + if (!reflectionLink) + return; + const { query, hash } = reflectionLink; + this.setAttribute('href', hash ? `?page=${query}#${hash}` : `?page=${query}`); + targetURL = router.getTargetURL(this); + } + if (targetURL.origin !== window.location.origin) { + this.setAttribute('target', '_blank'); + } + this.setAttribute('href', encodeURI(targetURL.href)); + this.getAttributeNames().forEach((name) => { + const value = this.getAttribute(name); + if (value) { + this.aHTMLElement.setAttribute(name, value); + } + }); + this.aHTMLElement.replaceChildren(...[...this.childNodes]); + this.replaceChildren(this.aHTMLElement); + events.on('click', (e) => router.route(this, e), this.aHTMLElement); + } + disconnectedCallback() { + events.off('click', (e) => router.route(this, e), this.aHTMLElement); + } +} +const yafNavigationLink = 'yaf-navigation-link'; +customElements.define(yafNavigationLink, YafNavigationLink); +//# sourceMappingURL=YafNavigationLink.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.js.map new file mode 100644 index 00000000..4f6e84f9 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationLink.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafNavigationLink.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Navigation/YafNavigationLink.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.d.ts new file mode 100644 index 00000000..82dfc0c0 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.d.ts @@ -0,0 +1,16 @@ +import { YafHTMLElement } from '../../index.js'; +import { treeMenuRoot } from '../../../types/types.js'; +/** + * + */ +export declare class YafNavigationMenu extends YafHTMLElement { + onConnect(): void; + disconnectedCallback(): void; + private recordScrollTop; + private focusIndex; + private eventsList; + static treeBranchSort: (tree: treeMenuRoot) => { + links: import("../../../types/types.js").YAFReflectionLink[]; + tree: treeMenuRoot; + }; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.js b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.js new file mode 100644 index 00000000..e39b1e08 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.js @@ -0,0 +1,79 @@ +import appState from '../../handlers/AppState.js'; +import { makeElement, scrollToAnchor } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +import ErrorHandlers from '../../handlers/ErrorHandlers.js'; +import { events } from '../../handlers/index.js'; +const { trigger, action } = events; +/** + * + */ +export class YafNavigationMenu extends YafHTMLElement { + constructor() { + super(...arguments); + this.recordScrollTop = () => { + appState.setScrollTop('menu', this.scrollTop); + }; + this.focusIndex = ({ detail, }) => { + events.dispatch(action.menu.search('')); + events.dispatch(action.menu.toggle('open')); + setTimeout(() => { + scrollToAnchor(this, `menu_${detail.target}`); + }); + }; + this.eventsList = [ + ['scroll', this.recordScrollTop, this], + [trigger.menu.scrollTo, this.focusIndex], + ]; + } + onConnect() { + const menuData = appState.navigationMenu; + const navHTMLElement = makeElement('nav'); + const menuHTMLElement = makeElement('menu'); + const sortedBranches = YafNavigationMenu.treeBranchSort(menuData); + const { links, tree } = sortedBranches; + const listHTMLElements = links.map((link) => { + if (link.kind === appState.reflectionKind.Project) + return undefined; + const liHTMLElement = makeElement('li'); + const menuItemHTMLElement = makeElement('yaf-navigation-menu-branch', null, null, { + link, + branch: tree[link.id], + }); + menuItemHTMLElement.setAttribute('root', ''); + liHTMLElement.appendChild(menuItemHTMLElement); + return liHTMLElement; + }); + menuHTMLElement.appendChildren(listHTMLElements); + navHTMLElement.appendChild(menuHTMLElement); + this.appendChild(navHTMLElement); + /** + * NOTE: Calls `renderDrawers()` from the root of the drawer tree only. + */ + [...menuHTMLElement.children].forEach((menuItem) => { + const drawer = [...menuItem.children].find((child) => 'drawers' in child); + drawer === null || drawer === void 0 ? void 0 : drawer.drawers.renderDrawers(); + }); + this.scrollTop = appState.scrollTops['menu'] || 0; + this.eventsList.forEach((event) => events.on(...event)); + } + disconnectedCallback() { + this.eventsList.forEach((event) => events.off(...event)); + } +} +YafNavigationMenu.treeBranchSort = (tree) => { + const branchLinkList = Object.keys(tree) + .map((id) => { + const reflectionLink = appState.reflectionMap[id]; + if (!reflectionLink) + ErrorHandlers.notFound(`id "${id}" not found on reflectionMap`); + return reflectionLink; + }) + .filter((reflectionLink) => !!reflectionLink); + const sortedBranchLinkList = branchLinkList + .sort((a, b) => a.name.localeCompare(b.name)) + .sort((a, b) => (a.kind > b.kind ? -1 : a.kind === b.kind ? 0 : 1)); + return { links: sortedBranchLinkList, tree }; +}; +const yafNavigationMenu = 'yaf-navigation-menu'; +customElements.define(yafNavigationMenu, YafNavigationMenu); +//# sourceMappingURL=YafNavigationMenu.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.js.map new file mode 100644 index 00000000..e2491034 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenu.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafNavigationMenu.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Navigation/YafNavigationMenu.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.d.ts new file mode 100644 index 00000000..3e1b1b68 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.d.ts @@ -0,0 +1,17 @@ +import { treeMenuBranch, YAFReflectionLink } from '../../../types/types.js'; +import { YafElementDrawers } from '../../YafElementDrawers.js'; +import { YafHTMLElement } from '../../index.js'; +/** + * + */ +export declare class YafNavigationMenuBranch extends YafHTMLElement<{ + link: YAFReflectionLink; + branch: treeMenuBranch; + parentDrawerElement?: HTMLElement; +}> { + drawers: YafElementDrawers; + onConnect(): void; + disconnectedCallback(): void; + private eventsList; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.js b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.js new file mode 100644 index 00000000..11771a5c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.js @@ -0,0 +1,132 @@ +var _a; +import appState from '../../handlers/AppState.js'; +import { YafElementDrawers } from '../../YafElementDrawers.js'; +import { makeElement, normaliseFlags, makeLinkElement, makeNameSpan, makeIconSpan, } from '../../yafElement.js'; +import { YafNavigationMenu } from './index.js'; +import { YafHTMLElement } from '../../index.js'; +import { events } from '../../handlers/index.js'; +const { trigger } = events; +/** + * + */ +export class YafNavigationMenuBranch extends YafHTMLElement { + constructor() { + super(...arguments); + this.eventsList = () => { + var _b, _c; + return [ + [trigger.menu.rollMenuDown, (_b = this.drawers) === null || _b === void 0 ? void 0 : _b.openDrawer], + [trigger.menu.rollMenuUp, (_c = this.drawers) === null || _c === void 0 ? void 0 : _c.closeDrawer], + ]; + }; + } + onConnect() { + const { children } = this.props.branch; + const { kind, id } = this.props.link; + const { parentDrawerElement } = this.props; + const { factory } = YafNavigationMenuBranch; + this.id = `menu_${id}`; + this.classList.add(appState.reflectionKind[kind].toLowerCase()); + const childCount = Object.keys(children).length; + const drawerTriggerHTMLElement = makeElement('span', 'trigger'); + const drawerHeaderHTMLElement = factory.makeDrawerheader(this.props.link, 'span', drawerTriggerHTMLElement, childCount); + if (childCount) { + const drawerHTMLElement = makeElement('ul'); + drawerHTMLElement.replaceChildren(...factory.makeDrawerChildrenArray(drawerTriggerHTMLElement, childCount, this)); + this.appendChildren([drawerHeaderHTMLElement, drawerHTMLElement]); + this.drawers = new YafElementDrawers(this, drawerHTMLElement, drawerTriggerHTMLElement, `menu_${id}`, parentDrawerElement); + /** + * NOTE: `drawers.renderDrawers()` is called from `YafNavigationMenu`. + * That is the root of the menu tree and propagates downwards to branches + * from within the `renderDrawers` method itself. + */ + drawerHTMLElement.prepend(factory.makeDrawerTagToggles(this.drawers)); + } + else { + this.appendChild(drawerHeaderHTMLElement); + } + this.eventsList().forEach((event) => events.on(...event)); + } + disconnectedCallback() { + this.drawers.drawerHasDisconnected(); + this.eventsList().forEach((event) => events.off(...event)); + } +} +_a = YafNavigationMenuBranch; +YafNavigationMenuBranch.factory = { + makeDrawerChildrenArray: (drawerTrigger, childCount, self) => { + if (!childCount) + return []; + const { children } = self.props.branch; + const sortedBranches = YafNavigationMenu.treeBranchSort(children); + const { links, tree } = sortedBranches; + const newMenuElements = links.map((link) => { + const childCount = Object.keys(tree[link.id].children).length; + const menuLiHTMLElement = _a.factory.makeDrawerheader(link, 'li', drawerTrigger, childCount); + if (childCount) { + return _a.factory.makeBranch(tree[link.id], link, self, menuLiHTMLElement); + } + menuLiHTMLElement.id = `menu_${link.id}`; + return menuLiHTMLElement; + }); + return newMenuElements; + }, + makeBranch: (branch, link, self, liHTMLElement) => { + //const liHTMLElement = makeElement('li'); + const branchHTMLElement = makeElement('yaf-navigation-menu-branch', normaliseFlags(self.props.link.flags).join(' '), null, { branch, link, parentDrawerElement: self }); + liHTMLElement.appendChild(branchHTMLElement); + return liHTMLElement; + }, + makeDrawerheader: (reflectionLink, wrapper, drawerTriggerHTMLElement, childCount) => { + const { query, hash, name, kind, flags } = reflectionLink; + const flagClasses = normaliseFlags(flags).join(' ').trim(); + const isBranchList = wrapper === 'li' && childCount; + let href = `?page=${query}`; + if (hash) + href += `#${hash}`; + const classes = isBranchList + ? flagClasses + : childCount + ? 'header parent' + : `header ${flagClasses}`; + const headerHTMLElement = makeElement(wrapper, classes); + if (isBranchList) + return headerHTMLElement; + const headerLinkHTMLElement = makeLinkElement(href); + const nameHTMLElement = makeNameSpan(name); + const linkSymbolHTMLElement = makeElement('yaf-widget-kind', null, null, { kind: String(kind) }); + headerLinkHTMLElement.appendChild(nameHTMLElement); + headerHTMLElement.appendChildren([ + linkSymbolHTMLElement, + headerLinkHTMLElement, + ]); + if (!childCount) + return headerHTMLElement; + return childCount + ? _a.factory.extendHeader(headerHTMLElement, drawerTriggerHTMLElement, childCount) + : headerHTMLElement; + }, + extendHeader: (header, drawerTrigger, childCount) => { + const countWidget = makeElement('yaf-widget-counter', null, null, { + count: childCount, + fontSize: '.8rem', + }); + const icon = makeElement('span', 'icon'); + icon.appendChild(makeIconSpan('expand_less')); + drawerTrigger.appendChild(countWidget); + drawerTrigger.appendChild(icon); + header.appendChild(drawerTrigger); + return header; + }, + makeDrawerTagToggles: (drawers) => { + const toggleHTMLElement = makeElement('yaf-widget-tag-toggle', 'tagtoggles', null, { + flagCounts: drawers.flagCounts, + }); + const liHTMLElement = makeElement('li'); + liHTMLElement.appendChild(toggleHTMLElement); + return liHTMLElement; + }, +}; +const yafNavigationBranch = 'yaf-navigation-menu-branch'; +customElements.define(yafNavigationBranch, YafNavigationMenuBranch); +//# sourceMappingURL=YafNavigationMenuBranch.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.js.map new file mode 100644 index 00000000..90a3548f --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationMenuBranch.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafNavigationMenuBranch.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Navigation/YafNavigationMenuBranch.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.d.ts new file mode 100644 index 00000000..ef8b26c0 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.d.ts @@ -0,0 +1,16 @@ +import YafHTMLElement from '../../YafHTMLElement.js'; +/** + * + */ +export declare class YafNavigationSearch extends YafHTMLElement { + private resultsHTMLElement; + private debouncer; + private dictionary; + constructor(); + onConnect(): void; + disconnectedCallback(): void; + private search; + private match; + private eventsList; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.js b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.js new file mode 100644 index 00000000..8c153f1e --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.js @@ -0,0 +1,167 @@ +var _a; +import { appState, events } from '../../handlers/index.js'; +import { makeElement, makeLinkElement, makeNameSpan, makeSymbolSpan, normaliseFlags, } from '../../yafElement.js'; +import YafHTMLElement from '../../YafHTMLElement.js'; +const { trigger, action } = events; +/** + * + */ +export class YafNavigationSearch extends YafHTMLElement { + constructor() { + super(); + this.resultsHTMLElement = makeElement('ul', 'results'); + this.search = ({ detail }) => { + clearTimeout(this.debouncer); + this.debouncer = setTimeout(() => { + const { resultLink, tagToggles } = YafNavigationSearch.factory; + const { searchString } = detail; + const results = []; + this.dictionary.forEach((reflection) => { + if (!this.match(results, searchString, reflection)) { + this.match(results, searchString, reflection, 'query', 100); + } + }); + const resultHTMLListItems = results + .sort((a, b) => (a[0] > b[0] ? 1 : a[0] < b[0] ? -1 : 0)) + .map((result) => resultLink(result[1], searchString)); + this.resultsHTMLElement.replaceChildren(); + this.resultsHTMLElement.appendChildren(resultHTMLListItems); + const tagToggleHTMLElement = tagToggles(this.resultsHTMLElement); + this.resultsHTMLElement.prepend(tagToggleHTMLElement); + this.scrollTop = 0; + }, 600); + }; + this.match = (results, searchString, reflection, target = 'name', offset = 0) => { + searchString = searchString.trim(); + let targetString = reflection[target]; + if (searchString === targetString) { + results.push([0 + offset, reflection]); + return true; + } + if (targetString.startsWith(searchString)) { + results.push([1 + offset, reflection]); + return true; + } + if (targetString.includes(searchString)) { + results.push([2 + offset, reflection]); + return true; + } + searchString = searchString.toLocaleLowerCase(); + targetString = targetString.toLocaleLowerCase(); + if (searchString === targetString) { + results.push([3 + offset, reflection]); + return true; + } + if (targetString.startsWith(searchString)) { + results.push([4 + offset, reflection]); + return true; + } + if (targetString.includes(searchString)) { + results.push([5 + offset, reflection]); + return true; + } + return false; + }; + this.eventsList = [ + [trigger.menu.search, this.search], + [ + trigger.options.display, + ({ detail }) => { + const { key, value } = detail; + this.setAttribute(key, value); + }, + ], + ]; + const { SignatureContainer, SetSignature, GetSignature, SomeSignature, CallSignature, IndexSignature, ConstructorSignature, ContainsCallSignatures, } = appState.reflectionKind; + const excluded = [ + SignatureContainer, + SetSignature, + GetSignature, + SomeSignature, + CallSignature, + IndexSignature, + ConstructorSignature, + ContainsCallSignatures, + ]; + this.dictionary = Object.keys(appState.reflectionMap) + .map((id) => appState.reflectionMap[id]) + .filter((reflection) => excluded.indexOf(reflection.kind) === -1); + } + onConnect() { + const { display } = appState.options; + Object.keys(display).forEach((key) => { + this.setAttribute(key, appState.options.display[key]); + }); + this.eventsList.forEach((event) => events.on(...event)); + this.appendChild(this.resultsHTMLElement); + } + disconnectedCallback() { + this.eventsList.forEach((event) => events.off(...event)); + } +} +_a = YafNavigationSearch; +YafNavigationSearch.factory = { + resultLink: (reflectionLink, searchString) => { + const { highlight } = _a.factory; + const { query, hash, name, kind, flags } = reflectionLink; + const flagClasses = normaliseFlags(flags).join(' ').trim(); + const listHTMLElement = makeElement('li', flagClasses); + let href = `?page=${query}`; + if (hash) + href += `#${hash}`; + const linkHTMLElement = makeLinkElement(href); + const nameHTMLElement = highlight(makeNameSpan(name), searchString); + const queryHTMLElement = highlight(makeSymbolSpan(query), searchString); + const linkSymbolHTMLElement = makeElement('yaf-widget-kind', null, null, { kind: String(kind) }); + linkHTMLElement.appendChildren([nameHTMLElement, queryHTMLElement]); + listHTMLElement.appendChildren([ + linkSymbolHTMLElement, + linkHTMLElement, + ]); + return listHTMLElement; + }, + highlight: (span, searchString, anycase) => { + searchString = anycase + ? searchString.toLocaleLowerCase() + : searchString; + const resultString = anycase + ? span.innerText.toLocaleLowerCase() + : span.innerText; + if (resultString === searchString) { + span.classList.add('lit'); + return span; + } + if (resultString.includes(searchString)) { + const regexString = `(${searchString})`; + const regex = anycase + ? new RegExp(regexString, 'ig') + : new RegExp(regexString, 'g'); + const spanHTMLElements = span.innerText + .split(regex) + .map((part) => { + return makeElement('span', (anycase ? part.toLocaleLowerCase() : part) === + searchString + ? 'lit' + : undefined, part); + }); + span.innerText = ''; + span.appendChildren(spanHTMLElements); + return span; + } + return anycase + ? span + : _a.factory.highlight(span, searchString, true); + }, + tagToggles: (resultsHTMLElement) => { + const flagCounts = { + private: resultsHTMLElement.querySelectorAll('.private').length, + inherited: resultsHTMLElement.querySelectorAll('.inherited').length, + }; + const wrapperHTMLElement = makeElement('li'); + wrapperHTMLElement.appendChild(makeElement('yaf-widget-tag-toggle', undefined, undefined, { flagCounts })); + return wrapperHTMLElement; + }, +}; +const yafNavigationSearch = 'yaf-navigation-search'; +customElements.define(yafNavigationSearch, YafNavigationSearch); +//# sourceMappingURL=YafNavigationSearch.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.js.map new file mode 100644 index 00000000..2e89ffe7 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearch.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafNavigationSearch.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Navigation/YafNavigationSearch.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.d.ts new file mode 100644 index 00000000..eace51d8 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.d.ts @@ -0,0 +1,14 @@ +import YafHTMLElement from '../../YafHTMLElement.js'; +/** + * + */ +export declare class YafNavigationSearchbar extends YafHTMLElement { + onConnect(): void; + disconnectedCallback(): void; + private focussed; + private blurred; + private searchChanged; + private setSearchState; + private eventsList; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.js b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.js new file mode 100644 index 00000000..a9b65ed5 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.js @@ -0,0 +1,82 @@ +import { events } from '../../handlers/index.js'; +import { makeElement, makeIconSpan } from '../../yafElement.js'; +import YafHTMLElement from '../../YafHTMLElement.js'; +const { action, trigger } = events; +/** + * + */ +export class YafNavigationSearchbar extends YafHTMLElement { + constructor() { + super(...arguments); + this.focussed = () => { + this.classList.add('focussed'); + }; + this.blurred = () => { + this.classList.remove('focussed'); + }; + this.searchChanged = (e) => { + const target = e.target; + if (!target.validity.tooShort && target.validity.patternMismatch) + return; + const searchString = target.value; + events.dispatch(action.menu.search(searchString)); + }; + this.setSearchState = ({ detail, }) => { + const { searchString } = detail; + searchString.length > 0 ? this.classList.add('busy') : clear(this); + function clear(self) { + self.classList.remove('busy'); + self.querySelector('input').value = ''; + } + }; + this.eventsList = [ + [trigger.menu.search, this.setSearchState], + ]; + } + onConnect() { + const { searchInput, searchIcon, clearIcon } = YafNavigationSearchbar.factory; + const searchHTMLInput = searchInput(); + const iconsHTMLElement = makeElement('span', 'wrapper'); + searchHTMLInput.onfocus = this.focussed; + searchHTMLInput.onblur = this.blurred; + searchHTMLInput.oninput = this.searchChanged; + iconsHTMLElement.appendChildren([ + searchIcon(), + clearIcon(searchHTMLInput), + ]); + this.appendChildren([searchHTMLInput, iconsHTMLElement]); + this.eventsList.forEach((event) => events.on(...event)); + } + disconnectedCallback() { + this.eventsList.forEach((event) => events.off(...event)); + } +} +YafNavigationSearchbar.factory = { + searchInput: () => { + const searchHTMLInput = makeElement('input'); + searchHTMLInput.setAttribute('type', 'search'); + searchHTMLInput.setAttribute('placeholder', 'Search the documents...'); + searchHTMLInput.setAttribute('aria-label', 'Search the documents'); + searchHTMLInput.setAttribute('minlength', '3'); + searchHTMLInput.setAttribute('pattern', '^[a-z|A-Z|0-9|.|_|-]+$'); + return searchHTMLInput; + }, + searchIcon: () => { + const searchIconHTMLElement = makeIconSpan('search', 18); + searchIconHTMLElement.classList.add('searchIcon'); + return searchIconHTMLElement; + }, + clearIcon: (searchHTMLInput) => { + const clearIconHTMLElement = makeIconSpan('clear', 18); + clearIconHTMLElement.classList.add('clearIcon'); + clearIconHTMLElement.onmousedown = () => { + searchHTMLInput.value = ''; + searchHTMLInput.blur(); + events.dispatch(action.menu.search('')); + }; + return clearIconHTMLElement; + }, +}; +const yafNavigationSearchbar = 'yaf-navigation-searchbar'; +customElements.define(yafNavigationSearchbar, YafNavigationSearchbar); +//# sourceMappingURL=YafNavigationSearchbar.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.js.map new file mode 100644 index 00000000..30917d2c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/YafNavigationSearchbar.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafNavigationSearchbar.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Navigation/YafNavigationSearchbar.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.d.ts new file mode 100644 index 00000000..e7909f9c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.d.ts @@ -0,0 +1,6 @@ +export * from './YafNavigationHeader.js'; +export * from './YafNavigationLink.js'; +export * from './YafNavigationMenu.js'; +export * from './YafNavigationMenuBranch.js'; +export * from './YafNavigationSearchbar.js'; +export * from './YafNavigationSearch.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.js b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.js new file mode 100644 index 00000000..63b483b2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.js @@ -0,0 +1,7 @@ +export * from './YafNavigationHeader.js'; +export * from './YafNavigationLink.js'; +export * from './YafNavigationMenu.js'; +export * from './YafNavigationMenuBranch.js'; +export * from './YafNavigationSearchbar.js'; +export * from './YafNavigationSearch.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.js.map new file mode 100644 index 00000000..a0f5c8b5 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Navigation/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Navigation/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.d.ts new file mode 100644 index 00000000..3e0cea61 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.d.ts @@ -0,0 +1,20 @@ +import { yafSignatureProps } from '../../../types/frontendTypes.js'; +import { YafHTMLElement } from '../../index.js'; +/** + * A factory class that produces Yaf theme HTMLCustomElements for the given props.type and props.context. \ + * The class replaces itself (`this`) in the DOM with the appropriate signature type CustomElement. + * + * This class is best used with the helper {@link frontend.yafElement}.renderSignatureType + * + */ +export declare class YafSignature extends YafHTMLElement { + onConnect(): (HTMLElement & import("../../../types/frontendTypes.js").yafHTMLExtension) | undefined; + /** + * Transforms a TypeDoc camelCased "type name" string into a hyphen separated lowercase string + * + * @param name + * @returns + */ + private static parseTypeName; + static isCallSignature: (kind: number) => boolean; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.js new file mode 100644 index 00000000..70c4b6d0 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.js @@ -0,0 +1,37 @@ +import { YafHTMLElement } from '../../index.js'; +import appState from '../../handlers/AppState.js'; +import { makeElement, makeNameSpan } from '../../yafElement.js'; +/** + * A factory class that produces Yaf theme HTMLCustomElements for the given props.type and props.context. \ + * The class replaces itself (`this`) in the DOM with the appropriate signature type CustomElement. + * + * This class is best used with the helper {@link frontend.yafElement}.renderSignatureType + * + */ +export class YafSignature extends YafHTMLElement { + onConnect() { + var _a; + const { context, type } = this.props; + if (!type || type.type === 'unknown') + return this.appendChild(makeNameSpan(type ? type.name : 'unknown')); + const parenthesis = appState.needsParenthesis[type.type][context]; + const typeSignature = makeElement(`yaf-signature-${YafSignature.parseTypeName(type.type)}`); + typeSignature.props = type; + if (parenthesis) + typeSignature.setAttribute('needsParenthesis', ''); + (_a = this.parentElement) === null || _a === void 0 ? void 0 : _a.replaceChild(typeSignature, this); + } +} +/** + * Transforms a TypeDoc camelCased "type name" string into a hyphen separated lowercase string + * + * @param name + * @returns + */ +YafSignature.parseTypeName = (name) => name.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`); +YafSignature.isCallSignature = (kind) => { + return appState.callTypes.includes(kind); +}; +const yafSignature = 'yaf-signature'; +customElements.define(yafSignature, YafSignature); +//# sourceMappingURL=YafSignature.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.js.map new file mode 100644 index 00000000..1058acd1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignature.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignature.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Signature/YafSignature.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,OAAO,YAAa,SAAQ,cAAiC;IAClE,SAAS;;QACR,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAErC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;YACnC,OAAO,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QAErE,MAAM,WAAW,GAAG,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;QAElE,MAAM,aAAa,GAEf,WAAW,CACd,iBAAiB,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACxD,CAAC;QACF,aAAa,CAAC,KAAK,GAAG,IAAI,CAAC;QAC3B,IAAI,WAAW;YAAE,aAAa,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QAEpE,MAAA,IAAI,CAAC,aAAa,0CAAE,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;;AAED;;;;;GAKG;AACY,0BAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAC/C,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAE/C,4BAAe,GAAG,CAAC,IAAY,EAAE,EAAE;IACzC,OAAO,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC,CAAC;AAGH,MAAM,YAAY,GAAkB,eAAe,CAAC;AACpD,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.d.ts new file mode 100644 index 00000000..ac7e60ad --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.d.ts @@ -0,0 +1,6 @@ +import { YafSignatureReflection } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafSignatureBody extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.js new file mode 100644 index 00000000..94c42469 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.js @@ -0,0 +1,84 @@ +var _a; +import { YafSignature, } from './index.js'; +import { makeElement, makeLinkElement, renderSignatureType, } from '../../yafElement.js'; +import { YafHTMLElement } from '../../index.js'; +import appState from '../../handlers/AppState.js'; +export class YafSignatureBody extends YafHTMLElement { + onConnect() { + const { text, typeParameter, parameters, type, kind, inheritedFrom, overwrites, implementationOf, } = this.props; + const { factory } = YafSignatureBody; + const isCallSignature = YafSignature.isCallSignature(kind); + const HTMLElements = [ + factory.textComment(text), + factory.sources(this.props), + factory.typeParameters(typeParameter), + factory.parameters(parameters), + factory.modifier(implementationOf, 'Implementation of:'), + factory.modifier(inheritedFrom, 'Inherited from:'), + factory.modifier(overwrites, 'Overrides:'), + factory.returns(type, isCallSignature), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +_a = YafSignatureBody; +YafSignatureBody.factory = { + makeElement: (element, props) => makeElement(element, null, null, props), + textComment: (text) => (text === null || text === void 0 ? void 0 : text.comment) + ? _a.factory.makeElement('yaf-content-marked', text.comment) + : undefined, + typeParameters: (typeParameter) => typeParameter && typeParameter.length + ? _a.factory.makeElement('yaf-signature-parameters-type', typeParameter) + : undefined, + parameters: (parameters) => parameters && parameters.length + ? _a.factory.makeElement('yaf-signature-parameters', parameters) + : undefined, + sources: (reflection) => { + var _b; + if (!((_b = reflection.sources) === null || _b === void 0 ? void 0 : _b.length)) + return undefined; + return _a.factory.makeElement('yaf-member-sources', reflection); + }, + returns: (type, isCallSignature) => { + if (!(type && isCallSignature)) + return undefined; + const ulHTMLElement = makeElement('ul', 'references'); + const liHTMLElement = makeElement('li'); + liHTMLElement.appendChild(renderSignatureType(type, 'none')); + ulHTMLElement.appendChild(liHTMLElement); + return [makeElement('h5', null, 'Returns:'), ulHTMLElement]; + }, + modifier: (modifierData, modifierHeading) => { + if (!modifierData) + return undefined; + let data; + if (modifierData.id) { + const reflection = appState.reflectionMap[modifierData.id]; + let name = reflection.name.split(' ').pop(); + const refName = reflection.query.split('.').pop(); + const isConstructor = name === refName; + name = isConstructor + ? `${refName}.constructor` + : `${refName}.${name}`; + data = { + name, + link: isConstructor + ? `?page=${reflection.query}#constructor` + : `?page=${reflection.query}#${name}`, + }; + } + else { + data = { name: modifierData.name, link: null }; + } + const headingEHTMLElement = makeElement('h5', null, modifierHeading); + const ulHTMLElement = makeElement('ul', 'references'); + const liHTMLElement = makeElement('li', null, data.link ? '' : data.name); + if (data.link) + liHTMLElement.appendChild(makeLinkElement(data.link, undefined, data.name)); + ulHTMLElement.appendChild(liHTMLElement); + return [headingEHTMLElement, ulHTMLElement]; + }, +}; +const yafSignatureBody = 'yaf-signature-body'; +customElements.define(yafSignatureBody, YafSignatureBody); +//# sourceMappingURL=YafSignatureBody.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.js.map new file mode 100644 index 00000000..50c0bc2c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureBody.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Signature/YafSignatureBody.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.d.ts new file mode 100644 index 00000000..b70af249 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.d.ts @@ -0,0 +1,17 @@ +import { YafParameterReflection } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafSignatureParameters extends YafHTMLElement { + onConnect(): void; + makeFlags: (parameter: YafParameterReflection) => HTMLElement & import("../../../types/frontendTypes.js").yafHTMLExtension; + makeName: (parameter: YafParameterReflection) => HTMLElement & import("../../../types/frontendTypes.js").yafHTMLExtension; + makeType: (parameter: YafParameterReflection) => HTMLElement & import("../../../types/frontendTypes.js").yafHTMLExtension; + makeDefault: (parameter: YafParameterReflection) => HTMLElement & import("../../../types/frontendTypes.js").yafHTMLExtension; + /** + * Places parameter comments into the table cell. \ + * Because links in these comments are stringified by the BackEnd as `` HTML elements, the string is regexed to replace `a` with `yaf-navigation-link` elements. + * + * @param parameter A meta example of `yaf-navigation-link` parsed correctly: {@link types.common.YafParameterReflection} + * @returns + */ + makeComment: (parameter: YafParameterReflection) => HTMLElement & import("../../../types/frontendTypes.js").yafHTMLExtension; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.js new file mode 100644 index 00000000..6029ac25 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.js @@ -0,0 +1,83 @@ +import { YafHTMLElement } from '../../index.js'; +import { makeElement, makeFlags } from '../../yafElement.js'; +export class YafSignatureParameters extends YafHTMLElement { + constructor() { + super(...arguments); + this.makeFlags = (parameter) => { + const { flags, comment } = parameter; + const td = makeElement('td'); + const flagsElement = makeFlags(flags, comment); + td.appendChild(flagsElement); + return td; + }; + this.makeName = (parameter) => { + const { flags, name } = parameter; + const td = makeElement('td', null, flags.isRest ? `...${name}` : name); + return td; + }; + this.makeType = (parameter) => { + const { type } = parameter; + const td = makeElement('td', 'type'); + const pre = makeElement('pre', 'highlight'); + const typeSignature = makeElement('yaf-signature'); + typeSignature.props = { type, context: 'none' }; + pre.appendChild(typeSignature); + td.appendChild(pre); + return td; + }; + this.makeDefault = (parameter) => { + const { defaultValue } = parameter; + const td = makeElement('td', null, defaultValue); + return td; + }; + /** + * Places parameter comments into the table cell. \ + * Because links in these comments are stringified by the BackEnd as `` HTML elements, the string is regexed to replace `a` with `yaf-navigation-link` elements. + * + * @param parameter A meta example of `yaf-navigation-link` parsed correctly: {@link types.common.YafParameterReflection} + * @returns + */ + this.makeComment = (parameter) => { + const { text } = parameter; + const td = makeElement('td'); + if (text === null || text === void 0 ? void 0 : text.comment) { + const comment = text.comment + .replace(/'); + td.innerHTML = comment; + } + return td; + }; + } + onConnect() { + if (!this.props) + return; + this.classList.add('scroller'); + this.classList.add('horizontal'); + this.appendChild(makeElement('h5', null, 'Parameters:')); + const table = makeElement('table'); + const thead = makeElement('thead'); + const headers = makeElement('tr'); + ['flags', 'name', 'type', 'default', 'comment'].forEach((heading) => headers.appendChild(makeElement('th', null, heading))); + thead.appendChild(headers); + table.appendChild(thead); + const tbody = makeElement('tbody'); + this.props.forEach((parameter) => { + const row = makeElement('tr'); + row.appendChildren([ + this.makeFlags(parameter), + this.makeName(parameter), + this.makeType(parameter), + this.makeDefault(parameter), + this.makeComment(parameter), + ]); + tbody.appendChild(row); + }); + table.appendChild(tbody); + this.appendChild(table); + this.appendChild(table); + } +} +const yafSignatureParameters = 'yaf-signature-parameters'; +customElements.define(yafSignatureParameters, YafSignatureParameters); +//# sourceMappingURL=YafSignatureParameters.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.js.map new file mode 100644 index 00000000..4f68d930 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureParameters.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Signature/YafSignatureParameters.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.d.ts new file mode 100644 index 00000000..2030e30c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.d.ts @@ -0,0 +1,5 @@ +import { YafTypeParameterReflection } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafSignatureParametersType extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.js new file mode 100644 index 00000000..5854d844 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.js @@ -0,0 +1,45 @@ +import { YafHTMLElement } from '../../index.js'; +import { makeElement, renderSignatureType } from '../../yafElement.js'; +export class YafSignatureParametersType extends YafHTMLElement { + onConnect() { + if (!this.props) + return; + this.classList.add('scroller'); + this.classList.add('horizontal'); + this.appendChild(makeElement('h5', null, 'Type Parameters:')); + const table = makeElement('table'); + const thead = makeElement('thead'); + const headers = makeElement('tr'); + ['name', 'modifier', 'extends', 'default', 'comment'].forEach((heading) => headers.appendChild(makeElement('th', null, heading))); + thead.appendChild(headers); + table.appendChild(thead); + const tbody = makeElement('tbody'); + this.props.forEach((parameter) => { + const { varianceModifier, name, type, text } = parameter; + const defaultValue = parameter.default; + const row = makeElement('tr'); + let td = makeElement('td', null, name); + row.appendChild(td); + td = makeElement('td', null, varianceModifier); + row.appendChild(td); + td = makeElement('td'); + if (type) + td.appendChild(renderSignatureType(type, 'none')); + row.appendChild(td); + td = makeElement('td'); + if (defaultValue) + td.appendChild(renderSignatureType(defaultValue, 'none')); + row.appendChild(td); + td = makeElement('td'); + if (text === null || text === void 0 ? void 0 : text.comment) + td.innerHTML = text.comment; + row.appendChild(td); + tbody.appendChild(row); + }); + table.appendChild(tbody); + this.appendChild(table); + } +} +const yafSignatureParametersType = 'yaf-signature-parameters-type'; +customElements.define(yafSignatureParametersType, YafSignatureParametersType); +//# sourceMappingURL=YafSignatureParametersType.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.js.map new file mode 100644 index 00000000..df3a7e2b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureParametersType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureParametersType.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Signature/YafSignatureParametersType.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAEvE,MAAM,OAAO,0BAA2B,SAAQ,cAE/C;IACA,SAAS;QACR,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO;QAExB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAEjC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC;QAC9D,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,OAAO,CAC5D,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAClE,CAAC;QACF,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC3B,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAEzB,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAChC,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;YACzD,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO,CAAC;YAEvC,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YAE9B,IAAI,EAAE,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YACvC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAEpB,EAAE,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,CAAC,CAAC;YAC/C,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAEpB,EAAE,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YACvB,IAAI,IAAI;gBAAE,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;YAC5D,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAEpB,EAAE,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YACvB,IAAI,YAAY;gBACf,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;YAC3D,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAEpB,EAAE,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YACvB,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO;gBAAE,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;YAC/C,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAEpB,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;CACD;AAED,MAAM,0BAA0B,GAC/B,+BAA+B,CAAC;AACjC,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.d.ts new file mode 100644 index 00000000..541d2aa3 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.d.ts @@ -0,0 +1,6 @@ +import { yafSignatureTitleProps } from '../../../types/frontendTypes.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafSignatureTitle extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.js new file mode 100644 index 00000000..1d74396e --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.js @@ -0,0 +1,84 @@ +import appState from '../../handlers/AppState.js'; +import { makeSymbolSpan, makeTitleSpan, makeElement, makeParameterSpan, makeValueSpan, renderSignatureType, stringify, } from '../../yafElement.js'; +import { YafSignature } from './YafSignature.js'; +import { YafHTMLElement } from '../../index.js'; +export class YafSignatureTitle extends YafHTMLElement { + onConnect() { + const { name, kind, flags, typeParameter, parameters, type, hideName, arrowStyle, defaultValue, wrappedInPre, } = this.props; + const { factory } = YafSignatureTitle; + const isConstructorSignature = kind === appState.reflectionKind.ConstructorSignature; + const isCallSignature = YafSignature.isCallSignature(kind); + const HTMLElements = []; + const preHTMLElement = wrappedInPre + ? makeElement('pre', 'highlight scroller horizontal pre') + : undefined; + if (!hideName) { + HTMLElements.push(factory.name(name)); + } + else if (isConstructorSignature) { + HTMLElements.push(factory.constructor(flags)); + } + HTMLElements.push([ + factory.typeParameter(typeParameter), + isCallSignature ? makeSymbolSpan('(') : undefined, + ]); + const parameterWrapperHTMLElements = parameters === null || parameters === void 0 ? void 0 : parameters.map((parameter, i) => { + const isRest = parameter.flags.isRest; + const isOptional = parameter.flags.isOptional; + const defaultValue = parameter.defaultValue; + const parameterWrapperHTMLElement = makeElement('span', 'wrapper'); + const paramterHTMLElements = [ + isRest ? makeSymbolSpan('...') : undefined, + makeParameterSpan(parameter.name), + isOptional ? makeSymbolSpan('?') : undefined, + defaultValue ? makeSymbolSpan('?') : undefined, + makeSymbolSpan(':'), + renderSignatureType(parameter.type, 'none'), + i < parameters.length - 1 ? makeSymbolSpan(', ') : undefined, + ]; + parameterWrapperHTMLElement.appendChildren(paramterHTMLElements); + return parameterWrapperHTMLElement; + }); + HTMLElements.push(parameterWrapperHTMLElements); + if (isCallSignature) + HTMLElements.push(makeSymbolSpan(')')); + if (type) { + HTMLElements.push([ + makeSymbolSpan(`${arrowStyle ? ' => ' : ': '}`), + renderSignatureType(type, 'none'), + factory.defaultValue(defaultValue), + ].flat()); + } + preHTMLElement + ? preHTMLElement.appendChildren(HTMLElements.flat()) + : this.appendChildren(HTMLElements.flat()); + if (preHTMLElement) + this.appendChild(preHTMLElement); + } +} +YafSignatureTitle.factory = { + name: (name) => { + const nameParts = name.split(' '); + const signatureName = nameParts.pop(); + const signatureNameConstructor = nameParts.join(' '); + return [ + signatureNameConstructor.length + ? makeSymbolSpan(`${signatureNameConstructor} `) + : undefined, + makeTitleSpan(signatureName), + ]; + }, + constructor: (flags) => makeSymbolSpan(`${flags.isAbstract ? 'abstract new ' : 'new '}`), + typeParameter: (typeParameter) => typeParameter + ? makeElement('yaf-type-parameters', null, null, typeParameter) + : undefined, + defaultValue: (defaultValue) => defaultValue + ? [ + makeSymbolSpan(' = '), + makeValueSpan(stringify(defaultValue)), + ] + : undefined, +}; +const yafSignatureTitle = 'yaf-signature-title'; +customElements.define(yafSignatureTitle, YafSignatureTitle); +//# sourceMappingURL=YafSignatureTitle.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.js.map new file mode 100644 index 00000000..d09c52ea --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/YafSignatureTitle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureTitle.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Signature/YafSignatureTitle.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.d.ts new file mode 100644 index 00000000..c918d555 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.d.ts @@ -0,0 +1,6 @@ +export * from './YafSignature.js'; +export * from './YafSignatureBody.js'; +export * from './YafSignatureParameters.js'; +export * from './YafSignatureParametersType.js'; +export * from './YafSignatureTitle.js'; +export * as signatureTypes from './signatureTypes/index.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.js new file mode 100644 index 00000000..a30522d8 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.js @@ -0,0 +1,8 @@ +export * from './YafSignature.js'; +export * from './YafSignatureBody.js'; +export * from './YafSignatureParameters.js'; +export * from './YafSignatureParametersType.js'; +export * from './YafSignatureTitle.js'; +import * as signatureTypes_1 from './signatureTypes/index.js'; +export { signatureTypes_1 as signatureTypes }; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.js.map new file mode 100644 index 00000000..f77a310f --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Signature/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;kCAEP,2BAA2B;6BAA/C,cAAc"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.d.ts new file mode 100644 index 00000000..973d68fc --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.d.ts @@ -0,0 +1,6 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureArray extends YafHTMLElement { + array: string; + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.js new file mode 100644 index 00000000..f291032c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.js @@ -0,0 +1,23 @@ +import { YafHTMLElement } from '../../../index.js'; +import { makeSymbolSpan, needsParenthesis, renderSignatureType, } from '../../../yafElement.js'; +export class YafSignatureArray extends YafHTMLElement { + constructor() { + super(...arguments); + this.array = 'array'; + } + onConnect() { + const { elementType } = this.props; + const HTMLElements = [ + renderSignatureType(elementType, 'arrayElement'), + makeSymbolSpan('[]'), + ]; + if (needsParenthesis(this)) { + HTMLElements.unshift(makeSymbolSpan('(')); + HTMLElements.push(makeSymbolSpan(')')); + } + this.appendChildren(HTMLElements); + } +} +const yafSignatureArray = 'yaf-signature-array'; +customElements.define(yafSignatureArray, YafSignatureArray); +//# sourceMappingURL=YafSignatureArray.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.js.map new file mode 100644 index 00000000..179d1ba2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureArray.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureArray.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EACN,cAAc,EACd,gBAAgB,EAChB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,OAAO,iBAAkB,SAAQ,cAAoC;IAA3E;;QACC,UAAK,GAAG,OAAO,CAAC;IAejB,CAAC;IAdA,SAAS;QACR,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEnC,MAAM,YAAY,GAAG;YACpB,mBAAmB,CAAC,WAAW,EAAE,cAAc,CAAC;YAChD,cAAc,CAAC,IAAI,CAAC;SACpB,CAAC;QACF,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC3B,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1C,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;SACvC;QAED,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;CACD;AACD,MAAM,iBAAiB,GAAkB,qBAAqB,CAAC;AAC/D,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.d.ts new file mode 100644 index 00000000..e73036e2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureConditional extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.js new file mode 100644 index 00000000..97f858ca --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.js @@ -0,0 +1,20 @@ +import { YafHTMLElement } from '../../../index.js'; +import { renderSignatureType, makeSymbolSpan } from '../../../yafElement.js'; +export class YafSignatureConditional extends YafHTMLElement { + onConnect() { + const { checkType, extendsType, falseType, trueType } = this.props; + const HTMLElements = [ + renderSignatureType(checkType, 'conditionalCheck'), + makeSymbolSpan(' extends '), + renderSignatureType(extendsType, 'conditionalExtends'), + makeSymbolSpan(' ? '), + renderSignatureType(trueType, 'conditionalTrue'), + makeSymbolSpan(' : '), + renderSignatureType(falseType, 'conditionalFalse'), + ]; + this.appendChildren(HTMLElements); + } +} +const yafSignatureConditional = 'yaf-signature-conditional'; +customElements.define(yafSignatureConditional, YafSignatureConditional); +//# sourceMappingURL=YafSignatureConditional.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.js.map new file mode 100644 index 00000000..55584e47 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureConditional.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureConditional.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,MAAM,OAAO,uBAAwB,SAAQ,cAA0C;IACtF,SAAS;QACR,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEnE,MAAM,YAAY,GAAG;YACpB,mBAAmB,CAAC,SAAS,EAAE,kBAAkB,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC;YAC3B,mBAAmB,CAAC,WAAW,EAAE,oBAAoB,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC;YACrB,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,CAAC;YAChD,cAAc,CAAC,KAAK,CAAC;YACrB,mBAAmB,CAAC,SAAS,EAAE,kBAAkB,CAAC;SAClD,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;CACD;AAED,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AAC5D,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.d.ts new file mode 100644 index 00000000..849320d3 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.d.ts @@ -0,0 +1,18 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureIndexedAccess extends YafHTMLElement { + onConnect(): void; + private static factory; +} +/** + * With reference to typedoc definitions: \ + * `JSONOutput.IndexedAccessType['objectType']` has an untyped `id?` property \ + * which carries from a `reference` objectType. + * + * This type is a hack to work with the `id` to determine the frontend url link. + * + * @see https://typedoc.org/api/interfaces/JSONOutput.IndexedAccessType.html + */ +export type objectWithId = JSONOutput.IndexedAccessType['objectType'] & { + id?: number; +}; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.js new file mode 100644 index 00000000..d6060019 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.js @@ -0,0 +1,32 @@ +import { YafHTMLElement } from '../../../index.js'; +import appState from '../../../handlers/AppState.js'; +import { renderSignatureType, makeLinkElement, makeSymbolSpan, } from '../../../yafElement.js'; +export class YafSignatureIndexedAccess extends YafHTMLElement { + onConnect() { + const { indexType, objectType } = this.props; + const { factory } = YafSignatureIndexedAccess; + const referenceId = objectType.id; + const linkTheSignature = !!referenceId && objectType.type !== 'reference'; + const indexTypeHTMLElement = renderSignatureType(indexType, 'indexedIndex'); + const indexSignatureHTMLElement = linkTheSignature + ? factory.wrapSignatureInLink(String(referenceId), indexTypeHTMLElement) + : indexTypeHTMLElement; + const HTMLElements = [ + renderSignatureType(objectType, 'indexedObject'), + makeSymbolSpan('['), + indexSignatureHTMLElement, + makeSymbolSpan(']'), + ]; + this.appendChildren(HTMLElements); + } +} +YafSignatureIndexedAccess.factory = { + wrapSignatureInLink: (referenceId, indexTypeElement) => { + const linkElement = makeLinkElement(`?page=${appState.reflectionMap[referenceId].query}`); + linkElement.appendChild(indexTypeElement); + return linkElement; + }, +}; +const yafSignatureIndexedAccess = 'yaf-signature-indexed-access'; +customElements.define(yafSignatureIndexedAccess, YafSignatureIndexedAccess); +//# sourceMappingURL=YafSignatureIndexedAccess.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.js.map new file mode 100644 index 00000000..bb733a4c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureIndexedAccess.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureIndexedAccess.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,QAAQ,MAAM,+BAA+B,CAAC;AACrD,OAAO,EACN,mBAAmB,EACnB,eAAe,EACf,cAAc,GACd,MAAM,wBAAwB,CAAC;AAEhC,MAAM,OAAO,yBAA0B,SAAQ,cAA4C;IAC1F,SAAS;QACR,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC7C,MAAM,EAAE,OAAO,EAAE,GAAG,yBAAyB,CAAC;QAE9C,MAAM,WAAW,GAAkB,UAAW,CAAC,EAAE,CAAC;QAClD,MAAM,gBAAgB,GACrB,CAAC,CAAC,WAAW,IAAI,UAAU,CAAC,IAAI,KAAK,WAAW,CAAC;QAClD,MAAM,oBAAoB,GAAG,mBAAmB,CAC/C,SAAS,EACT,cAAc,CACd,CAAC;QACF,MAAM,yBAAyB,GAAG,gBAAgB;YACjD,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAC3B,MAAM,CAAC,WAAY,CAAC,EACpB,oBAAoB,CACnB;YACH,CAAC,CAAC,oBAAoB,CAAC;QAExB,MAAM,YAAY,GAAG;YACpB,mBAAmB,CAAC,UAAU,EAAE,eAAe,CAAC;YAChD,cAAc,CAAC,GAAG,CAAC;YACnB,yBAAyB;YACzB,cAAc,CAAC,GAAG,CAAC;SACnB,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;;AAEc,iCAAO,GAAG;IACxB,mBAAmB,EAAE,CACpB,WAAmB,EACnB,gBAA6B,EAC5B,EAAE;QACH,MAAM,WAAW,GAAG,eAAe,CAClC,SAAS,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,CACpD,CAAC;QACF,WAAW,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAC1C,OAAO,WAAW,CAAC;IACpB,CAAC;CACD,CAAC;AAGH,MAAM,yBAAyB,GAAG,8BAA8B,CAAC;AACjE,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.d.ts new file mode 100644 index 00000000..c9458ade --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureInferred extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.js new file mode 100644 index 00000000..ec64e553 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.js @@ -0,0 +1,21 @@ +import { YafHTMLElement } from '../../../index.js'; +import { makeSymbolSpan, makeTypeSpan, renderSignatureType, } from '../../../yafElement.js'; +export class YafSignatureInferred extends YafHTMLElement { + onConnect() { + const { name, constraint } = this.props; + const HTMLElements = [ + makeSymbolSpan('infer '), + makeTypeSpan(name), + ]; + if (constraint) { + HTMLElements.push([ + makeSymbolSpan(' extends '), + renderSignatureType(constraint, 'inferredConstraint'), + ]); + } + this.appendChildren(HTMLElements.flat()); + } +} +const yafSignatureinferred = 'yaf-signature-inferred'; +customElements.define(yafSignatureinferred, YafSignatureInferred); +//# sourceMappingURL=YafSignatureInferred.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.js.map new file mode 100644 index 00000000..622b390d --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureInferred.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureInferred.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EACN,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,OAAO,oBAAqB,SAAQ,cAAuC;IAChF,SAAS;QACR,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACxC,MAAM,YAAY,GAAoC;YACrD,cAAc,CAAC,QAAQ,CAAC;YACxB,YAAY,CAAC,IAAI,CAAC;SAClB,CAAC;QAEF,IAAI,UAAU,EAAE;YACf,YAAY,CAAC,IAAI,CAAC;gBACjB,cAAc,CAAC,WAAW,CAAC;gBAC3B,mBAAmB,CAAC,UAAU,EAAE,oBAAoB,CAAC;aACrD,CAAC,CAAC;SACH;QAED,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AACtD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.d.ts new file mode 100644 index 00000000..5cd861e5 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureIntersection extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.js new file mode 100644 index 00000000..90f0a625 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.js @@ -0,0 +1,15 @@ +import { YafHTMLElement } from '../../../index.js'; +import { renderSignatureType, makeSymbolSpan } from '../../../yafElement.js'; +export class YafSignatureIntersection extends YafHTMLElement { + onConnect() { + const { types } = this.props; + const HTMLElements = types.map((type, i) => [ + renderSignatureType(type, 'intersectionElement'), + i < types.length - 1 ? makeSymbolSpan(' & ') : undefined, + ]); + this.appendChildren(HTMLElements.flat()); + } +} +const yafSignatureIntersection = 'yaf-signature-intersection'; +customElements.define(yafSignatureIntersection, YafSignatureIntersection); +//# sourceMappingURL=YafSignatureIntersection.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.js.map new file mode 100644 index 00000000..46fd8db6 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureIntersection.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureIntersection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,MAAM,OAAO,wBAAyB,SAAQ,cAA2C;IACxF,SAAS;QACR,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE7B,MAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3C,mBAAmB,CAAC,IAAI,EAAE,qBAAqB,CAAC;YAChD,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SACxD,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AAC9D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.d.ts new file mode 100644 index 00000000..3072dee4 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafContentSignatureIntrinsic extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.js new file mode 100644 index 00000000..02a09fc1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.js @@ -0,0 +1,16 @@ +import { needsParenthesis, makeIntrinsicSpan, makeSymbolSpan, } from '../../../yafElement.js'; +import { YafHTMLElement } from '../../../index.js'; +export class YafContentSignatureIntrinsic extends YafHTMLElement { + onConnect() { + const { name: typeName } = this.props; + const HTMLElements = [makeIntrinsicSpan(typeName)]; + if (needsParenthesis(this)) { + HTMLElements.unshift(makeSymbolSpan('(')); + HTMLElements.push(makeSymbolSpan(')')); + } + this.appendChildren(HTMLElements.flat()); + } +} +const componentName = 'yaf-signature-intrinsic'; +customElements.define(componentName, YafContentSignatureIntrinsic); +//# sourceMappingURL=YafSignatureIntrinsic.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.js.map new file mode 100644 index 00000000..01e45791 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureIntrinsic.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureIntrinsic.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,GACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,OAAO,4BAA6B,SAAQ,cAAwC;IACzF,SAAS;QACR,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtC,MAAM,YAAY,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEnD,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC3B,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1C,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;SACvC;QACD,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,aAAa,GAAkB,yBAAyB,CAAC;AAC/D,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,4BAA4B,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.d.ts new file mode 100644 index 00000000..e18dc481 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafContentSignatureLiteral extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.js new file mode 100644 index 00000000..50584693 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.js @@ -0,0 +1,16 @@ +import { needsParenthesis, makeElement, makeSymbolSpan, stringify, } from '../../../yafElement.js'; +import { YafHTMLElement } from '../../../index.js'; +export class YafContentSignatureLiteral extends YafHTMLElement { + onConnect() { + const { value } = this.props; + const HTMLElements = [makeElement('span', null, stringify(value))]; + if (needsParenthesis(this)) { + HTMLElements.unshift(makeSymbolSpan('(')); + HTMLElements.push(makeSymbolSpan(')')); + } + this.appendChildren(HTMLElements.flat()); + } +} +const componentName = 'yaf-signature-literal'; +customElements.define(componentName, YafContentSignatureLiteral); +//# sourceMappingURL=YafSignatureLiteral.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.js.map new file mode 100644 index 00000000..007a6c03 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureLiteral.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureLiteral.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,SAAS,GACT,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,OAAO,0BAA2B,SAAQ,cAAsC;IACrF,SAAS;QACR,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC7B,MAAM,YAAY,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAEnE,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC3B,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1C,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;SACvC;QAED,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,aAAa,GAAkB,uBAAuB,CAAC;AAC7D,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.d.ts new file mode 100644 index 00000000..336c49e1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.d.ts @@ -0,0 +1,6 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureMapped extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.js new file mode 100644 index 00000000..72e377a7 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.js @@ -0,0 +1,44 @@ +import { YafHTMLElement } from '../../../index.js'; +import { makeSymbolSpan, makeTypeSpan, renderSignatureType, } from '../../../yafElement.js'; +export class YafSignatureMapped extends YafHTMLElement { + onConnect() { + const { parameter, parameterType, templateType, nameType, optionalModifier, readonlyModifier, } = this.props; + const { factory } = YafSignatureMapped; + const readonlyModifierHTMLElement = factory.readonlyModifier(readonlyModifier); + const nameTypeHTMLElements = factory.nameType(nameType); + const HTMLElements = [ + makeSymbolSpan('{'), + readonlyModifierHTMLElement, + makeSymbolSpan('['), + makeTypeSpan(parameter), + makeSymbolSpan(' in '), + renderSignatureType(parameterType, 'mappedParameter'), + nameTypeHTMLElements, + makeSymbolSpan(']'), + makeSymbolSpan(factory.colon(optionalModifier)), + renderSignatureType(templateType, 'mappedTemplate'), + makeSymbolSpan('}'), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +YafSignatureMapped.factory = { + readonlyModifier: (readonlyModifier) => readonlyModifier + ? makeSymbolSpan(readonlyModifier === '+' ? 'readonly ' : '-readonly ') + : undefined, + nameType: (nameType) => nameType + ? [ + makeSymbolSpan(' as '), + renderSignatureType(nameType, 'mappedName'), + ] + : undefined, + colon: (optionalModifier) => { + let colon = ': '; + if (optionalModifier) + colon = optionalModifier === '+' ? '?: ' : '-?: '; + return colon; + }, +}; +const yafSignatureMapped = 'yaf-signature-mapped'; +customElements.define(yafSignatureMapped, YafSignatureMapped); +//# sourceMappingURL=YafSignatureMapped.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.js.map new file mode 100644 index 00000000..e4882ca1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureMapped.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureMapped.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EACN,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,OAAO,kBAAmB,SAAQ,cAAqC;IAC5E,SAAS;QACR,MAAM,EACL,SAAS,EACT,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,GAChB,GAAG,IAAI,CAAC,KAAK,CAAC;QACf,MAAM,EAAE,OAAO,EAAE,GAAG,kBAAkB,CAAC;QAEvC,MAAM,2BAA2B,GAChC,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;QAC5C,MAAM,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAExD,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,GAAG,CAAC;YACnB,2BAA2B;YAC3B,cAAc,CAAC,GAAG,CAAC;YACnB,YAAY,CAAC,SAAS,CAAC;YACvB,cAAc,CAAC,MAAM,CAAC;YACtB,mBAAmB,CAAC,aAAa,EAAE,iBAAiB,CAAC;YACrD,oBAAoB;YACpB,cAAc,CAAC,GAAG,CAAC;YACnB,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAC/C,mBAAmB,CAAC,YAAY,EAAE,gBAAgB,CAAC;YACnD,cAAc,CAAC,GAAG,CAAC;SACnB,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;;AAEc,0BAAO,GAAG;IACxB,gBAAgB,EAAE,CAAC,gBAAuC,EAAE,EAAE,CAC7D,gBAAgB;QACf,CAAC,CAAC,cAAc,CACd,gBAAgB,KAAK,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CACpD;QACH,CAAC,CAAC,SAAS;IACb,QAAQ,EAAE,CAAC,QAA2C,EAAE,EAAE,CACzD,QAAQ;QACP,CAAC,CAAC;YACA,cAAc,CAAC,MAAM,CAAC;YACtB,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC;SAC1C;QACH,CAAC,CAAC,SAAS;IACb,KAAK,EAAE,CAAC,gBAAuC,EAAE,EAAE;QAClD,IAAI,KAAK,GAAG,IAAI,CAAC;QACjB,IAAI,gBAAgB;YACnB,KAAK,GAAG,gBAAgB,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACnD,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAC;AAGH,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAClD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.d.ts new file mode 100644 index 00000000..75e26ba4 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureNamedTupleMember extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.js new file mode 100644 index 00000000..e7d55b41 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.js @@ -0,0 +1,16 @@ +import { makeNameSpan, makeSymbolSpan, renderSignatureType, } from '../../../yafElement.js'; +import { YafHTMLElement } from '../../../index.js'; +export class YafSignatureNamedTupleMember extends YafHTMLElement { + onConnect() { + const { name, isOptional, element } = this.props; + const HTMLElements = [ + makeNameSpan(name), + makeSymbolSpan(isOptional ? '?:' : ':'), + renderSignatureType(element, 'tupleElement'), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +const yafSignatureNamedTupleMember = 'yaf-signature-named-tuple-member'; +customElements.define(yafSignatureNamedTupleMember, YafSignatureNamedTupleMember); +//# sourceMappingURL=YafSignatureNamedTupleMember.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.js.map new file mode 100644 index 00000000..e7b88fec --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureNamedTupleMember.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureNamedTupleMember.ts"],"names":[],"mappings":"AACA,OAAO,EACN,YAAY,EACZ,cAAc,EACd,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,OAAO,4BAA6B,SAAQ,cAA+C;IAChG,SAAS;QACR,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEjD,MAAM,YAAY,GAAG;YACpB,YAAY,CAAC,IAAI,CAAC;YAClB,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;YACvC,mBAAmB,CAAC,OAAO,EAAE,cAAc,CAAC;SAC5C,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,4BAA4B,GAAG,kCAAkC,CAAC;AACxE,cAAc,CAAC,MAAM,CACpB,4BAA4B,EAC5B,4BAA4B,CAC5B,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.d.ts new file mode 100644 index 00000000..e854a133 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureOptional extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.js new file mode 100644 index 00000000..27e141ce --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.js @@ -0,0 +1,15 @@ +import { YafHTMLElement } from '../../../index.js'; +import { renderSignatureType, makeSymbolSpan } from '../../../yafElement.js'; +export class YafSignatureOptional extends YafHTMLElement { + onConnect() { + const { elementType } = this.props; + const HTMLElements = [ + renderSignatureType(elementType, 'optionalElement'), + makeSymbolSpan('?'), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +const yafSignatureOptional = 'yaf-signature-optional'; +customElements.define(yafSignatureOptional, YafSignatureOptional); +//# sourceMappingURL=YafSignatureOptional.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.js.map new file mode 100644 index 00000000..28e37cb2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureOptional.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureOptional.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,MAAM,OAAO,oBAAqB,SAAQ,cAAuC;IAChF,SAAS;QACR,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACnC,MAAM,YAAY,GAAG;YACpB,mBAAmB,CAAC,WAAW,EAAE,iBAAiB,CAAC;YACnD,cAAc,CAAC,GAAG,CAAC;SACnB,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AACtD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.d.ts new file mode 100644 index 00000000..08b4f511 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.d.ts @@ -0,0 +1,6 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignaturePredicate extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.js new file mode 100644 index 00000000..121e71f6 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.js @@ -0,0 +1,26 @@ +import { YafHTMLElement } from '../../../index.js'; +import { makeSymbolSpan, makeNameSpan, renderSignatureType, } from '../../../yafElement.js'; +export class YafSignaturePredicate extends YafHTMLElement { + onConnect() { + const { name, asserts, targetType } = this.props; + const { factory } = YafSignaturePredicate; + const HTMLElements = [ + factory.asserts(asserts), + makeNameSpan(name), + factory.targetType(targetType), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +YafSignaturePredicate.factory = { + asserts: (asserts) => asserts ? makeSymbolSpan('asserts ') : undefined, + targetType: (targetType) => targetType + ? [ + makeSymbolSpan(' is '), + renderSignatureType(targetType, 'predicateTarget'), + ] + : undefined, +}; +const yafSignaturePredicate = 'yaf-signature-predicate'; +customElements.define(yafSignaturePredicate, YafSignaturePredicate); +//# sourceMappingURL=YafSignaturePredicate.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.js.map new file mode 100644 index 00000000..59863e17 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignaturePredicate.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignaturePredicate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EACN,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,OAAO,qBAAsB,SAAQ,cAAwC;IAClF,SAAS;QACR,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACjD,MAAM,EAAE,OAAO,EAAE,GAAG,qBAAqB,CAAC;QAE1C,MAAM,YAAY,GAAG;YACpB,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;YACxB,YAAY,CAAC,IAAI,CAAC;YAClB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;SAC9B,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;;AAEc,6BAAO,GAAG;IACxB,OAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAC7B,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS;IACjD,UAAU,EAAE,CAAC,UAAkD,EAAE,EAAE,CAClE,UAAU;QACT,CAAC,CAAC;YACA,cAAc,CAAC,MAAM,CAAC;YACtB,mBAAmB,CAAC,UAAU,EAAE,iBAAiB,CAAC;SACjD;QACH,CAAC,CAAC,SAAS;CACb,CAAC;AAGH,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;AACxD,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.d.ts new file mode 100644 index 00000000..bf9df708 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureQuery extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.js new file mode 100644 index 00000000..15ac4f7b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.js @@ -0,0 +1,15 @@ +import { YafHTMLElement } from '../../../index.js'; +import { makeSymbolSpan, renderSignatureType } from '../../../yafElement.js'; +export class YafSignatureQuery extends YafHTMLElement { + onConnect() { + const { queryType } = this.props; + const HTMLElements = [ + makeSymbolSpan('typeof '), + renderSignatureType(queryType, 'queryTypeTarget'), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +const yafSignatureQuery = 'yaf-signature-query'; +customElements.define(yafSignatureQuery, YafSignatureQuery); +//# sourceMappingURL=YafSignatureQuery.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.js.map new file mode 100644 index 00000000..afd91276 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureQuery.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,MAAM,OAAO,iBAAkB,SAAQ,cAAoC;IAC1E,SAAS;QACR,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACjC,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,SAAS,CAAC;YACzB,mBAAmB,CAAC,SAAS,EAAE,iBAAiB,CAAC;SACjD,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAChD,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.d.ts new file mode 100644 index 00000000..6129bf26 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.d.ts @@ -0,0 +1,9 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +/** + * + */ +export declare class YafSignatureReference extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.js new file mode 100644 index 00000000..af852c9c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.js @@ -0,0 +1,49 @@ +var _a; +import appState from '../../../handlers/AppState.js'; +import { makeLinkElement, makeElement, makeTypeSpan, } from '../../../yafElement.js'; +import { YafHTMLElement } from '../../../index.js'; +/** + * + */ +export class YafSignatureReference extends YafHTMLElement { + onConnect() { + const { externalUrl, id, name: typeName, typeArguments } = this.props; + const { factory } = YafSignatureReference; + const fileLink = id ? appState.reflectionMap[id] : undefined; + const fileLinkName = fileLink ? fileLink.query : undefined; + const typeHTMLElement = externalUrl + ? factory.externalUrl(externalUrl, typeName) + : fileLinkName + ? factory.fileLinkName(fileLinkName, typeName) + : makeTypeSpan(typeName); + const HTMLElements = [ + typeHTMLElement, + factory.typeArguments(typeArguments), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +_a = YafSignatureReference; +YafSignatureReference.factory = { + renderTypeArguments: (args) => makeElement('yaf-type-arguments', null, null, { + args, + context: 'referenceTypeArgument', + }), + externalUrl: (externalUrl, typeName) => { + const linkHTMLElement = makeLinkElement(externalUrl); + linkHTMLElement.setAttribute('target', '_blank'); + linkHTMLElement.appendChild(makeTypeSpan(typeName)); + return linkHTMLElement; + }, + fileLinkName: (fileLinkName, typeName) => { + const linkHTMLElement = makeLinkElement(`?page=${fileLinkName}`); + linkHTMLElement.appendChild(makeTypeSpan(typeName)); + return linkHTMLElement; + }, + typeArguments: (typeArguments) => typeArguments && typeArguments.length + ? _a.factory.renderTypeArguments(typeArguments) + : undefined, +}; +const componentName = 'yaf-signature-reference'; +customElements.define(componentName, YafSignatureReference); +//# sourceMappingURL=YafSignatureReference.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.js.map new file mode 100644 index 00000000..b643d971 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureReference.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureReference.ts"],"names":[],"mappings":";AAGA,OAAO,QAAQ,MAAM,+BAA+B,CAAC;AACrD,OAAO,EACN,eAAe,EACf,WAAW,EACX,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,cAAwC;IAClF,SAAS;QACR,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtE,MAAM,EAAE,OAAO,EAAE,GAAG,qBAAqB,CAAC;QAC1C,MAAM,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC7D,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;QAE3D,MAAM,eAAe,GAAG,WAAW;YAClC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC;YAC5C,CAAC,CAAC,YAAY;gBACd,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAC;gBAC9C,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAE1B,MAAM,YAAY,GAAG;YACpB,eAAe;YACf,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC;SACpC,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;;;AAEc,6BAAO,GAAG;IACxB,mBAAmB,EAAE,CACpB,IAA+C,EAC9C,EAAE,CACH,WAAW,CACV,oBAAoB,EACpB,IAAI,EACJ,IAAI,EACJ;QACC,IAAI;QACJ,OAAO,EAAE,uBAAuB;KAChC,CACD;IACF,WAAW,EAAE,CAAC,WAAmB,EAAE,QAAgB,EAAE,EAAE;QACtD,MAAM,eAAe,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;QACrD,eAAe,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACjD,eAAe,CAAC,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEpD,OAAO,eAAe,CAAC;IACxB,CAAC;IACD,YAAY,EAAE,CAAC,YAAoB,EAAE,QAAgB,EAAE,EAAE;QACxD,MAAM,eAAe,GAAG,eAAe,CAAC,SAAS,YAAY,EAAE,CAAC,CAAC;QACjE,eAAe,CAAC,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEpD,OAAO,eAAe,CAAC;IACxB,CAAC;IACD,aAAa,EAAE,CACd,aAAwD,EACvD,EAAE,CACH,aAAa,IAAI,aAAa,CAAC,MAAM;QACpC,CAAC,CAAC,EAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,aAAa,CAAC;QACjD,CAAC,CAAC,SAAS;CACb,CAAC;AAGH,MAAM,aAAa,GAAkB,yBAAyB,CAAC;AAC/D,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.d.ts new file mode 100644 index 00000000..39848cd3 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.d.ts @@ -0,0 +1,10 @@ +import { JSONOutput } from 'typedoc'; +import { YafSignatureTitle } from '../index.js'; +import { YafHTMLElement } from '../../../index.js'; +/** + * + */ +export declare class YafSignatureReflection extends YafHTMLElement { + onConnect(): (YafSignatureTitle & import("../../../../types/frontendTypes").yafHTMLExtension) | undefined; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.js new file mode 100644 index 00000000..b51c9bb1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.js @@ -0,0 +1,122 @@ +import { makeSymbolSpan, makeNameSpan, renderSignatureType, makeElement, } from '../../../yafElement.js'; +import { YafHTMLElement } from '../../../index.js'; +/** + * + */ +export class YafSignatureReflection extends YafHTMLElement { + onConnect() { + var _a, _b, _c; + const { declaration } = this.props; + const { factory } = YafSignatureReflection; + const HTMLElementGroups = []; + let i = 0; + for (const child of (declaration === null || declaration === void 0 ? void 0 : declaration.children) || []) { + if (child.getSignature && child.setSignature) { + HTMLElementGroups.push(factory.getAndSetSignatures(child)); + continue; + } + if (child.getSignature) { + HTMLElementGroups.push(factory.getSignature(child)); + continue; + } + if (child.setSignature) { + HTMLElementGroups.push(factory.setSignature(child)); + continue; + } + if (child.signatures) { + HTMLElementGroups.push(factory.signatures(child, i)); + continue; + } + HTMLElementGroups.push([ + makeNameSpan(!i ? child.name : `\n${child.name}`), + makeSymbolSpan(child.flags.isOptional ? '?: ' : ': '), + renderSignatureType(child.type, 'none'), + ]); + i++; + } + if (declaration === null || declaration === void 0 ? void 0 : declaration.indexSignature) { + const index = declaration.indexSignature; + HTMLElementGroups.push([ + makeSymbolSpan('['), + makeNameSpan(index.parameters[0].name), + makeSymbolSpan(':'), + renderSignatureType(index.parameters[0].type, 'none'), + makeSymbolSpan(']'), + makeSymbolSpan(':'), + renderSignatureType(index.type, 'none'), + ]); + } + if (!HTMLElementGroups.length && + ((_a = declaration === null || declaration === void 0 ? void 0 : declaration.signatures) === null || _a === void 0 ? void 0 : _a.length) === 1) { + return this.appendChild(factory.signatureTitle(declaration)); + } + if (declaration) + HTMLElementGroups.push(factory.declarationSignatures(declaration).flat()); + if (HTMLElementGroups.length) { + const openBrace = makeSymbolSpan('{ '); + const closeBrace = makeSymbolSpan('}'); + this.classList.add('block'); + (_b = this.parentElement) === null || _b === void 0 ? void 0 : _b.insertBefore(openBrace, this); + HTMLElementGroups.forEach((elements) => { + const HTMLElements = factory.mapElementGroups(elements, this.tagName); + this.appendChildren(HTMLElements.flat()); + }); + (_c = this.parentElement) === null || _c === void 0 ? void 0 : _c.insertBefore(closeBrace, this.nextSibling); + } + } +} +YafSignatureReflection.factory = { + mapElementGroups: (elements, tagName) => elements.map((element, i) => { + const hasSemicolon = i === elements.length - 1 && element.tagName !== tagName; + return [ + element, + hasSemicolon ? makeSymbolSpan('; ') : undefined, + ]; + }), + declarationSignatures: (declaration) => { + var _a; + return ((_a = declaration === null || declaration === void 0 ? void 0 : declaration.signatures) === null || _a === void 0 ? void 0 : _a.map((signature) => [ + makeElement('yaf-signature-title', null, null, Object.assign(Object.assign({}, signature), { hideName: true })), + ])) || []; + }, + signatureTitle: (declaration) => makeElement('yaf-signature-title', null, null, Object.assign(Object.assign({}, declaration.signatures[0]), { hideName: true, arrowStyle: true })), + getAndSetSignatures: (child) => [ + makeNameSpan(child.name), + makeSymbolSpan(': '), + renderSignatureType(child.getSignature.type, 'none'), + ], + getSignature: (child) => [ + makeSymbolSpan('get '), + makeNameSpan(child.name), + makeSymbolSpan('(): '), + renderSignatureType(child.getSignature.type, 'none'), + ], + setSignature: (child) => { + var _a; + const HTMLElements = [ + makeSymbolSpan('set '), + makeNameSpan(child.name), + makeSymbolSpan('('), + ]; + (_a = child.setSignature.parameters) === null || _a === void 0 ? void 0 : _a.forEach((parameter) => { + HTMLElements.push(makeNameSpan(parameter.name)); + HTMLElements.push(renderSignatureType(parameter.type, 'none')); + }); + HTMLElements.push(makeSymbolSpan(')')); + return HTMLElements; + }, + signatures: (child, i) => { + return child.signatures + .map((signature) => { + return [ + makeNameSpan(!i ? child.name : `\n${child.name}`), + makeSymbolSpan(child.flags.isOptional ? '?: ' : ': '), + makeElement('yaf-signature-title', null, null, Object.assign(Object.assign({}, signature), { hideName: true, arrowStyle: false })), + ]; + }) + .flat(); + }, +}; +const yafSignatureReflection = 'yaf-signature-reflection'; +customElements.define(yafSignatureReflection, YafSignatureReflection); +//# sourceMappingURL=YafSignatureReflection.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.js.map new file mode 100644 index 00000000..9362f886 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureReflection.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureReflection.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.d.ts new file mode 100644 index 00000000..de57b9ad --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureRest extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.js new file mode 100644 index 00000000..b14d4ed0 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.js @@ -0,0 +1,15 @@ +import { YafHTMLElement } from '../../../index.js'; +import { makeSymbolSpan, renderSignatureType } from '../../../yafElement.js'; +export class YafSignatureRest extends YafHTMLElement { + onConnect() { + const { elementType } = this.props; + const HTMLElements = [ + makeSymbolSpan('...'), + renderSignatureType(elementType, 'restElement'), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +const yafSignatureRest = 'yaf-signature-rest'; +customElements.define(yafSignatureRest, YafSignatureRest); +//# sourceMappingURL=YafSignatureRest.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.js.map new file mode 100644 index 00000000..adf52511 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureRest.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureRest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,MAAM,OAAO,gBAAiB,SAAQ,cAAmC;IACxE,SAAS;QACR,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEnC,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,KAAK,CAAC;YACrB,mBAAmB,CAAC,WAAW,EAAE,aAAa,CAAC;SAC/C,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,gBAAgB,GAAkB,oBAAoB,CAAC;AAC7D,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.d.ts new file mode 100644 index 00000000..2acfb7ba --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.d.ts @@ -0,0 +1,6 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureTemplateLiteral extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.js new file mode 100644 index 00000000..278eb2eb --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.js @@ -0,0 +1,33 @@ +import { makeSymbolSpan, makeLiteralSpan, renderSignatureType, } from '../../../yafElement.js'; +import { YafHTMLElement } from '../../../index.js'; +export class YafSignatureTemplateLiteral extends YafHTMLElement { + onConnect() { + const { head, tail } = this.props; + const { factory } = YafSignatureTemplateLiteral; + const HTMLElements = [ + makeSymbolSpan('`'), + head ? makeLiteralSpan(head) : undefined, + factory.tail(tail), + makeSymbolSpan('`'), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +YafSignatureTemplateLiteral.factory = { + tail: (tail) => tail + .map((item) => { + const tailElements = [ + makeSymbolSpan('${'), + renderSignatureType(item[0], 'templateLiteralElement'), + makeSymbolSpan('}'), + ]; + if (item[1]) { + tailElements.push(makeLiteralSpan(item[1])); + } + return tailElements; + }) + .flat(), +}; +const componentName = 'yaf-signature-template-literal'; +customElements.define(componentName, YafSignatureTemplateLiteral); +//# sourceMappingURL=YafSignatureTemplateLiteral.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.js.map new file mode 100644 index 00000000..cbd70003 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureTemplateLiteral.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureTemplateLiteral.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,cAAc,EACd,eAAe,EACf,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,OAAO,2BAA4B,SAAQ,cAA8C;IAC9F,SAAS;QACR,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAClC,MAAM,EAAE,OAAO,EAAE,GAAG,2BAA2B,CAAC;QAEhD,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,GAAG,CAAC;YACnB,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;YACxC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;YAClB,cAAc,CAAC,GAAG,CAAC;SACnB,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;;AAEc,mCAAO,GAAG;IACxB,IAAI,EAAE,CAAC,IAA4C,EAAE,EAAE,CACtD,IAAI;SACF,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACb,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,IAAI,CAAC;YACpB,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,wBAAwB,CAAC;YACtD,cAAc,CAAC,GAAG,CAAC;SACnB,CAAC;QACF,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE;YACZ,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC5C;QACD,OAAO,YAAY,CAAC;IACrB,CAAC,CAAC;SACD,IAAI,EAAE;CACT,CAAC;AAGH,MAAM,aAAa,GAAkB,gCAAgC,CAAC;AACtE,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,2BAA2B,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.d.ts new file mode 100644 index 00000000..d16f64ef --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.d.ts @@ -0,0 +1,6 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureTuple extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.js new file mode 100644 index 00000000..e6462134 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.js @@ -0,0 +1,25 @@ +import { makeSymbolSpan, renderSignatureType } from '../../../yafElement.js'; +import { YafHTMLElement } from '../../../index.js'; +export class YafSignatureTuple extends YafHTMLElement { + onConnect() { + const { elements: tupleTypes } = this.props; + const { factory } = YafSignatureTuple; + const HTMLElements = [ + makeSymbolSpan('['), + factory.tupleTypes(tupleTypes), + makeSymbolSpan(']'), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +YafSignatureTuple.factory = { + tupleTypes: (tupleTypes) => tupleTypes === null || tupleTypes === void 0 ? void 0 : tupleTypes.map((type, i) => [ + renderSignatureType(type, 'tupleElement'), + i < tupleTypes.length - 1 + ? makeSymbolSpan(', ') + : undefined, + ]).flat(), +}; +const yafSignatureTuple = 'yaf-signature-tuple'; +customElements.define(yafSignatureTuple, YafSignatureTuple); +//# sourceMappingURL=YafSignatureTuple.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.js.map new file mode 100644 index 00000000..c890e874 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureTuple.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureTuple.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,OAAO,iBAAkB,SAAQ,cAAoC;IAC1E,SAAS;QACR,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5C,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC;QAEtC,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,GAAG,CAAC;YACnB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;YAC9B,cAAc,CAAC,GAAG,CAAC;SACnB,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;;AAEc,yBAAO,GAAG;IACxB,UAAU,EAAE,CAAC,UAA4C,EAAE,EAAE,CAC5D,UAAU,aAAV,UAAU,uBAAV,UAAU,CACP,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;QAClB,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC;QACzC,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC;YACxB,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC;YACtB,CAAC,CAAC,SAAS;KACZ,EACA,IAAI,EAAE;CACT,CAAC;AAGH,MAAM,iBAAiB,GAAkB,qBAAqB,CAAC;AAC/D,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.d.ts new file mode 100644 index 00000000..08bcabec --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureTypeOperator extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.js new file mode 100644 index 00000000..e278aca2 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.js @@ -0,0 +1,15 @@ +import { YafHTMLElement } from '../../../index.js'; +import { makeSymbolSpan, renderSignatureType } from '../../../yafElement.js'; +export class YafSignatureTypeOperator extends YafHTMLElement { + onConnect() { + const { operator, target } = this.props; + const HTMLElements = [ + makeSymbolSpan(`${operator} `), + renderSignatureType(target, 'typeOperatorTarget'), + ]; + this.appendChildren(HTMLElements.flat()); + } +} +const yafSignatureTypeOperator = 'yaf-signature-type-operator'; +customElements.define(yafSignatureTypeOperator, YafSignatureTypeOperator); +//# sourceMappingURL=YafSignatureTypeOperator.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.js.map new file mode 100644 index 00000000..134f5a57 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureTypeOperator.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureTypeOperator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,MAAM,OAAO,wBAAyB,SAAQ,cAA2C;IACxF,SAAS;QACR,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAExC,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,GAAG,QAAQ,GAAG,CAAC;YAC9B,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,CAAC;SACjD,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,wBAAwB,GAAkB,6BAA6B,CAAC;AAC9E,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.d.ts new file mode 100644 index 00000000..e01d177f --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.d.ts @@ -0,0 +1,5 @@ +import { JSONOutput } from 'typedoc'; +import { YafHTMLElement } from '../../../index.js'; +export declare class YafSignatureUnion extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.js new file mode 100644 index 00000000..07d1ef4c --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.js @@ -0,0 +1,15 @@ +import { renderSignatureType, makeSymbolSpan } from '../../../yafElement.js'; +import { YafHTMLElement } from '../../../index.js'; +export class YafSignatureUnion extends YafHTMLElement { + onConnect() { + const { types } = this.props; + const HTMLElements = types.map((type, i) => [ + renderSignatureType(type, 'unionElement'), + i < types.length - 1 ? makeSymbolSpan(' | ') : undefined, + ]); + this.appendChildren(HTMLElements.flat()); + } +} +const componentName = 'yaf-signature-union'; +customElements.define(componentName, YafSignatureUnion); +//# sourceMappingURL=YafSignatureUnion.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.js.map new file mode 100644 index 00000000..499fbe0b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafSignatureUnion.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/YafSignatureUnion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,OAAO,iBAAkB,SAAQ,cAAoC;IAC1E,SAAS;QACR,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE7B,MAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3C,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC;YACzC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SACxD,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,MAAM,aAAa,GAAkB,qBAAqB,CAAC;AAC3D,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.d.ts new file mode 100644 index 00000000..5071c54a --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.d.ts @@ -0,0 +1,19 @@ +export * from './YafSignatureArray.js'; +export * from './YafSignatureConditional.js'; +export * from './YafSignatureIndexedAccess.js'; +export * from './YafSignatureInferred.js'; +export * from './YafSignatureIntersection.js'; +export * from './YafSignatureIntrinsic.js'; +export * from './YafSignatureLiteral.js'; +export * from './YafSignatureMapped.js'; +export * from './YafSignatureNamedTupleMember.js'; +export * from './YafSignatureOptional.js'; +export * from './YafSignaturePredicate.js'; +export * from './YafSignatureQuery.js'; +export * from './YafSignatureReference.js'; +export * from './YafSignatureReflection.js'; +export * from './YafSignatureRest.js'; +export * from './YafSignatureTemplateLiteral.js'; +export * from './YafSignatureTuple.js'; +export * from './YafSignatureTypeOperator.js'; +export * from './YafSignatureUnion.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.js b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.js new file mode 100644 index 00000000..f5166255 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.js @@ -0,0 +1,20 @@ +export * from './YafSignatureArray.js'; +export * from './YafSignatureConditional.js'; +export * from './YafSignatureIndexedAccess.js'; +export * from './YafSignatureInferred.js'; +export * from './YafSignatureIntersection.js'; +export * from './YafSignatureIntrinsic.js'; +export * from './YafSignatureLiteral.js'; +export * from './YafSignatureMapped.js'; +export * from './YafSignatureNamedTupleMember.js'; +export * from './YafSignatureOptional.js'; +export * from './YafSignaturePredicate.js'; +export * from './YafSignatureQuery.js'; +export * from './YafSignatureReference.js'; +export * from './YafSignatureReflection.js'; +export * from './YafSignatureRest.js'; +export * from './YafSignatureTemplateLiteral.js'; +export * from './YafSignatureTuple.js'; +export * from './YafSignatureTypeOperator.js'; +export * from './YafSignatureUnion.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.js.map new file mode 100644 index 00000000..3f91740a --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Signature/signatureTypes/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/frontend/webComponents/Signature/signatureTypes/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.d.ts new file mode 100644 index 00000000..998cd22b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.d.ts @@ -0,0 +1,6 @@ +import { yafTypeArgumentsProps } from '../../../types/frontendTypes.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafTypeArguments extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.js b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.js new file mode 100644 index 00000000..977fe2d7 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.js @@ -0,0 +1,32 @@ +import { YafHTMLElement } from '../../index.js'; +import { makeSymbolSpan, makeElement } from '../../yafElement.js'; +export class YafTypeArguments extends YafHTMLElement { + onConnect() { + const { args } = this.props; + const { factory } = YafTypeArguments; + if (!args || !args.length) + return; + const HTMLElements = [ + makeSymbolSpan('<'), + factory.mapArguments(args), + makeSymbolSpan('>'), + ].flat(); + this.appendChildren(HTMLElements); + } +} +YafTypeArguments.factory = { + mapArguments: (args = []) => args + .map((argument, i) => { + const signature = makeElement('yaf-signature', null, null, { + type: argument, + context: 'referenceTypeArgument', + }); + if (i >= args.length - 1) + return signature; + return [signature, makeSymbolSpan(', ')]; + }) + .flat(), +}; +const yafTypeArguments = 'yaf-type-arguments'; +customElements.define(yafTypeArguments, YafTypeArguments); +//# sourceMappingURL=YafTypeArguments.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.js.map new file mode 100644 index 00000000..2b736983 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeArguments.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafTypeArguments.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Type/YafTypeArguments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlE,MAAM,OAAO,gBAAiB,SAAQ,cAAqC;IAC1E,SAAS;QACR,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5B,MAAM,EAAE,OAAO,EAAE,GAAG,gBAAgB,CAAC;QACrC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO;QAElC,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,GAAG,CAAC;YACnB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC;YAC1B,cAAc,CAAC,GAAG,CAAC;SACnB,CAAC,IAAI,EAAE,CAAC;QAET,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;;AAEc,wBAAO,GAAG;IACxB,YAAY,EAAE,CAAC,OAAsC,EAAE,EAAE,EAAE,CAC1D,IAAI;SACF,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,WAAW,CAG3B,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE;YAC9B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,uBAAuB;SAChC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,SAAS,CAAC;QAC3C,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC;SACD,IAAI,EAAE;CACT,CAAC;AAEH,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAC9C,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.d.ts new file mode 100644 index 00000000..86a772af --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.d.ts @@ -0,0 +1,6 @@ +import { YAFDataObject } from '../../../types/types.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafTypeParameters extends YafHTMLElement { + onConnect(): void; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.js b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.js new file mode 100644 index 00000000..2303aea5 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.js @@ -0,0 +1,34 @@ +import { YafHTMLElement } from '../../index.js'; +import { makeElement, makeSymbolSpan } from '../../yafElement.js'; +export class YafTypeParameters extends YafHTMLElement { + onConnect() { + const { factory } = YafTypeParameters; + const HTMLElements = [ + makeSymbolSpan('<'), + factory.mapParams(factory.makeParams(this.props)), + makeSymbolSpan('>'), + ].flat(); + this.appendChildren(HTMLElements); + } +} +YafTypeParameters.factory = { + makeParams: (params) => (params || []).flatMap((param) => { + const span = makeElement('span', `type ${param.kindString ? ` ${param.kindString}` : ''}`, param.name); + return param.varianceModifier + ? [ + makeElement('span', 'modifier', `${param.varianceModifier}`), + span, + ] + : span; + }), + mapParams: (params) => params + .map((param, i) => { + if (i >= params.length - 1) + return param; + return [param, makeSymbolSpan(',')]; + }) + .flat(), +}; +const yafTypeParameters = 'yaf-type-parameters'; +customElements.define(yafTypeParameters, YafTypeParameters); +//# sourceMappingURL=YafTypeParameters.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.js.map new file mode 100644 index 00000000..3b07db41 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/YafTypeParameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafTypeParameters.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Type/YafTypeParameters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAElE,MAAM,OAAO,iBAAkB,SAAQ,cAEtC;IACA,SAAS;QACR,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC;QAEtC,MAAM,YAAY,GAAG;YACpB,cAAc,CAAC,GAAG,CAAC;YACnB,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACjD,cAAc,CAAC,GAAG,CAAC;SACnB,CAAC,IAAI,EAAE,CAAC;QAET,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;;AAEc,yBAAO,GAAG;IACxB,UAAU,EAAE,CAAC,MAAuC,EAAE,EAAE,CACvD,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAChC,MAAM,IAAI,GAAG,WAAW,CACvB,MAAM,EACN,QAAQ,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EACxD,KAAK,CAAC,IAAI,CACV,CAAC;QACF,OAAO,KAAK,CAAC,gBAAgB;YAC5B,CAAC,CAAC;gBACA,WAAW,CACV,MAAM,EACN,UAAU,EACV,GAAG,KAAK,CAAC,gBAAgB,EAAE,CAC3B;gBACD,IAAI;aACH;YACH,CAAC,CAAC,IAAI,CAAC;IACT,CAAC,CAAC;IACH,SAAS,EAAE,CAAC,MAAqB,EAAE,EAAE,CACpC,MAAM;SACJ,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;QACjB,IAAI,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,KAAK,CAAC;QACzC,OAAO,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC;SACD,IAAI,EAAE;CACT,CAAC;AAEH,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAChD,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Type/index.d.ts new file mode 100644 index 00000000..3940a2fc --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/index.d.ts @@ -0,0 +1,2 @@ +export * from './YafTypeArguments.js'; +export * from './YafTypeParameters.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/index.js b/docs/v1.0.0-beta01/frontend/webComponents/Type/index.js new file mode 100644 index 00000000..3197f951 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/index.js @@ -0,0 +1,3 @@ +export * from './YafTypeArguments.js'; +export * from './YafTypeParameters.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Type/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Type/index.js.map new file mode 100644 index 00000000..f91f4d38 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Type/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Type/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.d.ts new file mode 100644 index 00000000..5161a6f6 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.d.ts @@ -0,0 +1,12 @@ +import { YafHTMLElement } from '../index.js'; +/** + * This is the highest level component of the theme, parent container to all other custom theme elements + */ +export declare class TypedocThemeYaf extends YafHTMLElement { + onConnect(): void; + disconnectedCallback(): void; + private setTitle; + private initVersions; + private toggleMenu; + private events; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.js b/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.js new file mode 100644 index 00000000..654e9807 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.js @@ -0,0 +1,47 @@ +import { getHtmlTemplate } from '../yafElement.js'; +import appState from '../handlers/AppState.js'; +import { YafHTMLElement } from '../index.js'; +import { events } from '../handlers/index.js'; +const { trigger } = events; +/** + * This is the highest level component of the theme, parent container to all other custom theme elements + */ +export class TypedocThemeYaf extends YafHTMLElement { + constructor() { + super(...arguments); + this.setTitle = () => { + const titleHTMLElement = document.querySelector('title'); + titleHTMLElement.innerText = appState.projectName; + }; + this.initVersions = () => { + const versionHTMLElement = document.getElementById('plugin-versions-select'); + const footerHTMLElement = document.querySelector('yaf-navigation-footer'); + footerHTMLElement === null || footerHTMLElement === void 0 ? void 0 : footerHTMLElement.appendChild(versionHTMLElement); + document.querySelector('body').classList.remove('init'); + }; + this.toggleMenu = ({ detail, }) => { + const { state } = detail; + if (state === 'close' || this.classList.contains('menuOpen')) { + this.classList.remove('menuOpen'); + } + else { + this.classList.add('menuOpen'); + } + }; + this.events = [[trigger.menu.toggle, this.toggleMenu]]; + } + onConnect() { + appState + .initCache() + .then(this.setTitle) + .then(() => this.appendChild(getHtmlTemplate(typedocThemeYaf))) + .then(this.initVersions); + this.events.forEach((event) => events.on(...event)); + } + disconnectedCallback() { + this.events.forEach((event) => events.off(...event)); + } +} +const typedocThemeYaf = 'typedoc-theme-yaf'; +customElements.define(typedocThemeYaf, TypedocThemeYaf); +//# sourceMappingURL=TypedocThemeYaf.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.js.map b/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.js.map new file mode 100644 index 00000000..8ecf93a4 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/TypedocThemeYaf.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypedocThemeYaf.js","sourceRoot":"","sources":["../../../../src/frontend/webComponents/TypedocThemeYaf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAU,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;AAE3B;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,cAAc;IAAnD;;QAYS,aAAQ,GAAG,GAAG,EAAE;YACvB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YACzD,gBAAiB,CAAC,SAAS,GAAG,QAAQ,CAAC,WAAW,CAAC;QACpD,CAAC,CAAC;QACM,iBAAY,GAAG,GAAG,EAAE;YAC3B,MAAM,kBAAkB,GAAG,QAAQ,CAAC,cAAc,CACjD,wBAAwB,CACxB,CAAC;YACF,MAAM,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAC/C,uBAAuB,CACvB,CAAC;YAEF,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,CAAC,kBAAmB,CAAC,CAAC;YACpD,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAE,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1D,CAAC,CAAC;QACM,eAAU,GAAG,CAAC,EACrB,MAAM,GACiC,EAAE,EAAE;YAC3C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;YACzB,IAAI,KAAK,KAAK,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;gBAC7D,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;aAClC;iBAAM;gBACN,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;aAC/B;QACF,CAAC,CAAC;QACM,WAAM,GAAiB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACzE,CAAC;IArCA,SAAS;QACR,QAAQ;aACN,SAAS,EAAE;aACX,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;aACnB,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;aAC9D,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,oBAAoB;QACnB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IACtD,CAAC;CA2BD;AACD,MAAM,eAAe,GAAkB,mBAAmB,CAAC;AAC3D,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.d.ts new file mode 100644 index 00000000..afe68b94 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.d.ts @@ -0,0 +1,5 @@ +import { yafWidgetCounterProps } from '../../../types/frontendTypes.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafWidgetCounter extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.js b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.js new file mode 100644 index 00000000..355f97ba --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.js @@ -0,0 +1,14 @@ +import { YafHTMLElement } from '../../index.js'; +const countFontSize = '0.9rem'; +export class YafWidgetCounter extends YafHTMLElement { + onConnect() { + if (!this.props.fontSize) + this.props.fontSize = countFontSize; + this.innerHTML = `[ ${this.props.count} ]`; + if (this.props.fontSize) + this.setAttribute('style', `font-size: ${this.props.fontSize};`); + } +} +const yafWidgetCounter = 'yaf-widget-counter'; +customElements.define(yafWidgetCounter, YafWidgetCounter); +//# sourceMappingURL=YafWidgetCounter.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.js.map new file mode 100644 index 00000000..05523dbb --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetCounter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafWidgetCounter.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Widget/YafWidgetCounter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,aAAa,GAAG,QAAQ,CAAC;AAE/B,MAAM,OAAO,gBAAiB,SAAQ,cAAqC;IAC1E,SAAS;QACR,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ;YAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,aAAa,CAAC;QAE9D,IAAI,CAAC,SAAS,GAAG,yBAAyB,IAAI,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC;QACtE,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ;YACtB,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC;IACnE,CAAC;CACD;AACD,MAAM,gBAAgB,GAAkB,oBAAoB,CAAC;AAC7D,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.d.ts new file mode 100644 index 00000000..a78afe27 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.d.ts @@ -0,0 +1,5 @@ +import { yafWidgetFlagsProps } from '../../../types/frontendTypes.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafWidgetFlags extends YafHTMLElement { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.js b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.js new file mode 100644 index 00000000..e13548af --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.js @@ -0,0 +1,13 @@ +import { YafHTMLElement } from '../../index.js'; +import { makeElement } from '../../yafElement.js'; +export class YafWidgetFlags extends YafHTMLElement { + onConnect() { + const { flags, comment } = this.props; + const allFlags = [...flags, ...((comment === null || comment === void 0 ? void 0 : comment.modifierTags) || [])]; + const HTMLElements = allFlags.map((flag) => makeElement('span', 'flag', flag.replace(/^@/, ''))); + this.appendChildren(HTMLElements); + } +} +const yafWidgetFlags = 'yaf-widget-flags'; +customElements.define(yafWidgetFlags, YafWidgetFlags); +//# sourceMappingURL=YafWidgetFlags.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.js.map new file mode 100644 index 00000000..afb7da88 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetFlags.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafWidgetFlags.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Widget/YafWidgetFlags.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,OAAO,cAAe,SAAQ,cAAmC;IACtE,SAAS;QACR,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEtC,MAAM,QAAQ,GAAG,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,KAAI,EAAE,CAAC,CAAC,CAAC;QAE9D,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC1C,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CACnD,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;CACD;AAED,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAC1C,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.d.ts new file mode 100644 index 00000000..9e27ea79 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.d.ts @@ -0,0 +1,6 @@ +import { YafHTMLElement } from '../../index.js'; +export declare class YafWidgetKind extends YafHTMLElement<{ + kind: string; +}> { + onConnect(): void; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.js b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.js new file mode 100644 index 00000000..6a3937d3 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.js @@ -0,0 +1,19 @@ +import { YafHTMLElement } from '../../index.js'; +import appState from '../../handlers/AppState.js'; +export class YafWidgetKind extends YafHTMLElement { + onConnect() { + var _a; + const { kind } = this.props; + if (kind) { + const data = appState.kindSymbols[Number(kind)]; + this.classList.add(data.className || 'notfound'); + this.innerHTML = `${data.symbol || '*'}`; + } + else { + (_a = this.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(this); + } + } +} +const yafWidgetKind = 'yaf-widget-kind'; +customElements.define(yafWidgetKind, YafWidgetKind); +//# sourceMappingURL=YafWidgetKind.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.js.map new file mode 100644 index 00000000..ca5ebd48 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetKind.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafWidgetKind.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Widget/YafWidgetKind.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAElD,MAAM,OAAO,aAAc,SAAQ,cAAgC;IAClE,SAAS;;QACR,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5B,IAAI,IAAI,EAAE;YACT,MAAM,IAAI,GAAG,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,CAAC;YACjD,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,CAAC,MAAM,IAAI,GAAG,SAAS,CAAC;SACtD;aAAM;YACN,MAAA,IAAI,CAAC,aAAa,0CAAE,WAAW,CAAC,IAAI,CAAC,CAAC;SACtC;IACF,CAAC;CACD;AACD,MAAM,aAAa,GAAkB,iBAAiB,CAAC;AACvD,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.d.ts new file mode 100644 index 00000000..50d38f11 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.d.ts @@ -0,0 +1,12 @@ +import { displayStates, flagCounts, yafDisplayOptions } from '../../../types/frontendTypes.js'; +import { YafHTMLElement } from '../../index.js'; +export declare class YafWidgetTagToggle extends YafHTMLElement<{ + flagCounts: flagCounts; +}> { + static get observedAttributes(): string[]; + attributeChangedCallback(name: yafDisplayOptions, oldValue: displayStates, newValue: displayStates): void; + onConnect(): void; + disconnectedCallback(): void; + private eventList; + private static factory; +} diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.js b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.js new file mode 100644 index 00000000..b978f928 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.js @@ -0,0 +1,71 @@ +import { YafHTMLElement } from '../../index.js'; +import appState from '../../handlers/AppState.js'; +import { makeElement, flashElementBackground } from '../../yafElement.js'; +import { events } from '../../handlers/index.js'; +const { action, trigger } = events; +export class YafWidgetTagToggle extends YafHTMLElement { + constructor() { + super(...arguments); + this.eventList = [ + [ + trigger.options.display, + ({ detail }) => { + const { key, value } = detail; + this.setAttribute(key, value); + }, + ], + ]; + } + static get observedAttributes() { + return ['inherited', 'private']; + } + attributeChangedCallback(name, oldValue, newValue) { + if (!oldValue || oldValue === newValue) + return; + const HTMLElement = this.querySelector(`.${name}`); + if (HTMLElement === null || HTMLElement === void 0 ? void 0 : HTMLElement.textContent) + HTMLElement.textContent = HTMLElement.textContent.replace(newValue, oldValue); + } + onConnect() { + const { factory } = YafWidgetTagToggle; + const { flagCounts } = this.props; + Object.keys(flagCounts).forEach((flag) => { + const count = flagCounts[flag]; + if (!count) + return; + let display = appState.options.display[flag]; + this.setAttribute(flag, display); + display = display === 'hide' ? 'show' : 'hide'; + this.appendChild(makeElement('span', flag, `${display} [ ${count} ] ${flag}`)).onclick = (e) => { + const newState = appState.toggleDisplayOption(flag); + events.dispatch(action.options.display(flag, newState)); + events.dispatch(action.drawers.resetHeight()); + factory.handleClickAnimations(e); + }; + this.eventList.forEach((event) => events.on(...event)); + }); + } + disconnectedCallback() { + this.eventList.forEach((event) => events.off(...event)); + } +} +YafWidgetTagToggle.factory = { + handleClickAnimations: (e) => { + setTimeout(() => { + const target = e.target; + const container = getScrollContainer(target); + container.classList.add('instant'); + container.scrollTop = target.offsetTop; + container.classList.remove('instant'); + flashElementBackground(e.target); + }); + function getScrollContainer(target) { + return target.classList.contains('scroller') + ? target + : getScrollContainer(target.parentElement); + } + }, +}; +const yafWidgetTagToggle = 'yaf-widget-tag-toggle'; +customElements.define(yafWidgetTagToggle, YafWidgetTagToggle); +//# sourceMappingURL=YafWidgetTagToggle.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.js.map new file mode 100644 index 00000000..e5c7afff --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/YafWidgetTagToggle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"YafWidgetTagToggle.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Widget/YafWidgetTagToggle.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.d.ts new file mode 100644 index 00000000..884bd8e9 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.d.ts @@ -0,0 +1,4 @@ +export * from './YafWidgetTagToggle.js'; +export * from './YafWidgetFlags.js'; +export * from './YafWidgetCounter.js'; +export * from './YafWidgetKind.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.js b/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.js new file mode 100644 index 00000000..696b09df --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.js @@ -0,0 +1,5 @@ +export * from './YafWidgetTagToggle.js'; +export * from './YafWidgetFlags.js'; +export * from './YafWidgetCounter.js'; +export * from './YafWidgetKind.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.js.map new file mode 100644 index 00000000..6fe29f62 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/Widget/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/frontend/webComponents/Widget/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/index.d.ts b/docs/v1.0.0-beta01/frontend/webComponents/index.d.ts new file mode 100644 index 00000000..686fac7b --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/index.d.ts @@ -0,0 +1,8 @@ +export * as Chrome from './Chrome/index.js'; +export * as Content from './Content/index.js'; +export * as Member from './Member/index.js'; +export * as Navigation from './Navigation/index.js'; +export * as Signature from './Signature/index.js'; +export * as Type from './Type/index.js'; +export * as Widget from './Widget/index.js'; +export * from './TypedocThemeYaf.js'; diff --git a/docs/v1.0.0-beta01/frontend/webComponents/index.js b/docs/v1.0.0-beta01/frontend/webComponents/index.js new file mode 100644 index 00000000..3d2d85f5 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/index.js @@ -0,0 +1,16 @@ +import * as Chrome_1 from './Chrome/index.js'; +export { Chrome_1 as Chrome }; +import * as Content_1 from './Content/index.js'; +export { Content_1 as Content }; +import * as Member_1 from './Member/index.js'; +export { Member_1 as Member }; +import * as Navigation_1 from './Navigation/index.js'; +export { Navigation_1 as Navigation }; +import * as Signature_1 from './Signature/index.js'; +export { Signature_1 as Signature }; +import * as Type_1 from './Type/index.js'; +export { Type_1 as Type }; +import * as Widget_1 from './Widget/index.js'; +export { Widget_1 as Widget }; +export * from './TypedocThemeYaf.js'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/webComponents/index.js.map b/docs/v1.0.0-beta01/frontend/webComponents/index.js.map new file mode 100644 index 00000000..8ef5a803 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/webComponents/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/frontend/webComponents/index.ts"],"names":[],"mappings":"0BAAwB,mBAAmB;qBAA/B,MAAM;2BACO,oBAAoB;sBAAjC,OAAO;0BACK,mBAAmB;qBAA/B,MAAM;8BACU,uBAAuB;yBAAvC,UAAU;6BACK,sBAAsB;wBAArC,SAAS;wBACC,iBAAiB;mBAA3B,IAAI;0BACQ,mBAAmB;qBAA/B,MAAM;AAElB,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/yafElement.d.ts b/docs/v1.0.0-beta01/frontend/yafElement.d.ts new file mode 100644 index 00000000..e317f72e --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/yafElement.d.ts @@ -0,0 +1,39 @@ +import { componentName, materialIcon, TypeContext, yafHTMLExtension } from '../types/frontendTypes.js'; +import { JSONOutput } from 'typedoc'; +import { YAFDataObject } from '../types/types'; +import { YafNavigationLink } from './webComponents/Navigation/index.js'; +import { YafWidgetFlags } from './webComponents/Widget/index.js'; +export declare const appendChildren: (element: HTMLElement) => yafHTMLExtension['appendChildren']; +export declare const makeElement: >(tagName: string, className?: string | null, innerText?: string | null, props?: P | undefined) => T & yafHTMLExtension; +export declare const makeSymbolSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeNameSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeTypeSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeTitleSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeParameterSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeIntrinsicSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeKindSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeValueSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeParametersSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeLiteralSpan: (text: string) => HTMLElement & yafHTMLExtension; +export declare const makeIconSpan: (iconInnerHtml: materialIcon, size?: 18 | 24 | 36 | 48) => HTMLElement; +export declare const makeLinkElement: (href: string, className?: string, innerText?: string) => YafNavigationLink & yafHTMLExtension; +export declare const makeFlags: (flags: JSONOutput.ReflectionFlags, comment: JSONOutput.Comment | undefined) => YafWidgetFlags & yafHTMLExtension; +/** + * Converts a ReflectionFlags Record object into an array of flags + * @param flags + * @returns + */ +export declare const normaliseFlags: (flags: JSONOutput.ReflectionFlags | undefined) => string[]; +/** + * Fetches the given document template from `index.html`. + * @param id The DOM id of the template + * @returns + */ +export declare const getHtmlTemplate: (id: componentName) => DocumentFragment; +export declare const needsParenthesis: (element: HTMLElement) => boolean; +export declare const renderSignatureType: (type: YAFDataObject['type'], context: TypeContext) => HTMLElement & yafHTMLExtension; +export declare const initCap: (text: string) => string; +export declare const getTransitionDuration: (drawer: HTMLElement) => number; +export declare const scrollToAnchor: (container: HTMLElement, anchor: string | number) => 0 | undefined; +export declare const flashElementBackground: (element: HTMLElement) => void; +export declare const stringify: (value: unknown) => string; diff --git a/docs/v1.0.0-beta01/frontend/yafElement.js b/docs/v1.0.0-beta01/frontend/yafElement.js new file mode 100644 index 00000000..d532ebd1 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/yafElement.js @@ -0,0 +1,130 @@ +import errorHandlers from './handlers/ErrorHandlers.js'; +import { YafElementDrawers } from './YafElementDrawers.js'; +const iconClass = 'material-icons-sharp'; +export const appendChildren = (element) => (children = []) => { + children.forEach((child) => { + if (child) + element.appendChild(child); + }); +}; +export const makeElement = (tagName, className, innerText, props) => { + const element = document.createElement(tagName); + if (className) + className.split(' ').forEach((c) => { + if (c.length) + element.classList.add(c); + }); + if (innerText) + element.innerText = innerText; + element.props = props ? props : {}; + element.appendChildren = + appendChildren(element); + return element; +}; +export const makeSymbolSpan = (text) => makeElement('span', 'symbol', text); +export const makeNameSpan = (text) => makeElement('span', 'name', text); +export const makeTypeSpan = (text) => makeElement('span', 'type', text); +export const makeTitleSpan = (text) => makeElement('span', 'title', text); +export const makeParameterSpan = (text) => makeElement('span', 'parameter', text); +export const makeIntrinsicSpan = (text) => makeElement('span', 'intrinsic', text); +export const makeKindSpan = (text) => makeElement('span', 'kind', text); +export const makeValueSpan = (text) => makeElement('span', 'value', text); +export const makeParametersSpan = (text) => makeElement('span', 'parameters', text); +export const makeLiteralSpan = (text) => makeElement('span', 'literal', text); +export const makeIconSpan = (iconInnerHtml, size = 24) => { + return makeElement('span', `${iconClass} md-${size} yaficon`, iconInnerHtml); +}; +export const makeLinkElement = (href, className, innerText) => { + const link = makeElement('yaf-navigation-link', className, innerText, undefined); + link.setAttribute('href', href); + return link; +}; +export const makeFlags = (flags, comment) => { + const normalisedFlags = normaliseFlags(flags); + const flagElement = makeElement('yaf-widget-flags', null, null, { + flags: normalisedFlags, + comment, + }); + return flagElement; +}; +/** + * Converts a ReflectionFlags Record object into an array of flags + * @param flags + * @returns + */ +export const normaliseFlags = (flags) => { + if (!flags) + return []; + const flagsArray = Object.keys(flags) + .map((flag) => flag.replace('is', '').replace('has', '').toLowerCase().trim()) + .filter((flag) => !!flag); + return flagsArray; +}; +/** + * Fetches the given document template from `index.html`. + * @param id The DOM id of the template + * @returns + */ +export const getHtmlTemplate = (id) => { + const template = document.getElementById(id); + return template + ? template.content + : errorHandlers.notFound(`Could not find the HTMLTemplate for "#${id}".`); +}; +export const needsParenthesis = (element) => { + return element.hasAttribute('needsParenthesis'); +}; +export const renderSignatureType = (type, context) => { + if (!type) + return makeElement('span', null, 'null'); + return makeElement('yaf-signature', null, null, { + type, + context, + }); +}; +export const initCap = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`; +export const getTransitionDuration = (drawer) => { + const animationDelay = getComputedStyle(drawer).getPropertyValue('transition-duration'); + return parseFloat(animationDelay) * 1000; +}; +export const scrollToAnchor = (container, anchor) => { + if (typeof anchor === 'number') + return (container.scrollTop = 0); + const targetElement = document.getElementById(anchor); + if (targetElement) { + const drawerParents = YafElementDrawers.findParentDrawers(targetElement); + const scrollIntoView = () => { + container.scrollTop = targetElement.offsetTop; + hackFixMobileScrolling(); + flashElementBackground(targetElement); + }; + if (!YafElementDrawers.hasClosedDrawers(drawerParents)) { + scrollIntoView(); + } + else if (drawerParents.length) { + drawerParents.forEach((element) => element.drawers.openDrawer()); + setTimeout(() => scrollIntoView(), getTransitionDuration(drawerParents[0].drawers.drawer) / 2); + } + } + else { + return errorHandlers.notFound(`Could not find element for "#${anchor}"`); + } + function hackFixMobileScrolling() { + const containerHTMLElements = document.querySelectorAll('html, body, typedoc-theme-yaf, yaf-chrome-left, yaf-chrome-right'); + [...containerHTMLElements].forEach((containerHTMLElement) => { + if (containerHTMLElement) + containerHTMLElement.scrollTop = 0; + }); + } +}; +export const flashElementBackground = (element) => { + element.classList.add('flash'); + setTimeout(() => element.classList.remove('flash'), 1000); +}; +export const stringify = (value) => { + if (typeof value === 'bigint') { + return String(value) + 'n'; + } + return JSON.stringify(value).replace(/^"|"$/g, ''); +}; +//# sourceMappingURL=yafElement.js.map \ No newline at end of file diff --git a/docs/v1.0.0-beta01/frontend/yafElement.js.map b/docs/v1.0.0-beta01/frontend/yafElement.js.map new file mode 100644 index 00000000..7a0806e5 --- /dev/null +++ b/docs/v1.0.0-beta01/frontend/yafElement.js.map @@ -0,0 +1 @@ +{"version":3,"file":"yafElement.js","sourceRoot":"","sources":["../../../src/frontend/yafElement.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/index.html b/docs/v1.0.0-beta01/index.html new file mode 100644 index 00000000..121aa778 --- /dev/null +++ b/docs/v1.0.0-beta01/index.html @@ -0,0 +1,62 @@ + + + + + + + Document + + + + + + + + + +
+ loop +
+ + + + + + + diff --git a/docs/v1.0.0-beta01/media/favicon.ico b/docs/v1.0.0-beta01/media/favicon.ico new file mode 100644 index 00000000..98d4c61e Binary files /dev/null and b/docs/v1.0.0-beta01/media/favicon.ico differ diff --git a/docs/v1.0.0-beta01/media/fonts/materialIcons/LICENSE b/docs/v1.0.0-beta01/media/fonts/materialIcons/LICENSE new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs/v1.0.0-beta01/media/fonts/materialIcons/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs/v1.0.0-beta01/media/fonts/materialIcons/material-icons-sharp.woff b/docs/v1.0.0-beta01/media/fonts/materialIcons/material-icons-sharp.woff new file mode 100644 index 00000000..80d8c991 Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/materialIcons/material-icons-sharp.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/materialIcons/material-icons-sharp.woff2 b/docs/v1.0.0-beta01/media/fonts/materialIcons/material-icons-sharp.woff2 new file mode 100644 index 00000000..40626852 Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/materialIcons/material-icons-sharp.woff2 differ diff --git a/docs/v1.0.0-beta01/media/fonts/materialIcons/sharp.css b/docs/v1.0.0-beta01/media/fonts/materialIcons/sharp.css new file mode 100644 index 00000000..d8cf2cfd --- /dev/null +++ b/docs/v1.0.0-beta01/media/fonts/materialIcons/sharp.css @@ -0,0 +1,27 @@ +/* Derived from Google Material Icons */ + +@font-face { + font-family: 'Material Icons Sharp'; + font-style: normal; + font-weight: 400; + font-display: block; + src: url('./material-icons-sharp.woff2') format('woff2'), + url('./material-icons-sharp.woff') format('woff'); +} +.material-icons-sharp { + font-family: 'Material Icons Sharp'; + font-weight: normal; + font-style: normal; + font-size: 24px; + line-height: 1; + letter-spacing: normal; + text-transform: none; + display: inline-block; + white-space: nowrap; + word-wrap: normal; + direction: ltr; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; + font-feature-settings: 'liga'; +} diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/Apache License.txt b/docs/v1.0.0-beta01/media/fonts/roboto/Apache License.txt new file mode 100644 index 00000000..63d53024 --- /dev/null +++ b/docs/v1.0.0-beta01/media/fonts/roboto/Apache License.txt @@ -0,0 +1,203 @@ +Font data copyright Google 2012 + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/Bold.woff b/docs/v1.0.0-beta01/media/fonts/roboto/Bold.woff new file mode 100644 index 00000000..ee614ee1 Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/Bold.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/BoldItalic.woff b/docs/v1.0.0-beta01/media/fonts/roboto/BoldItalic.woff new file mode 100644 index 00000000..38facd2e Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/BoldItalic.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/Light.woff b/docs/v1.0.0-beta01/media/fonts/roboto/Light.woff new file mode 100644 index 00000000..8f5552d8 Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/Light.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/LightItalic.woff b/docs/v1.0.0-beta01/media/fonts/roboto/LightItalic.woff new file mode 100644 index 00000000..f6c57b8c Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/LightItalic.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/Medium.woff b/docs/v1.0.0-beta01/media/fonts/roboto/Medium.woff new file mode 100644 index 00000000..7796d82b Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/Medium.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/MediumItalic.woff b/docs/v1.0.0-beta01/media/fonts/roboto/MediumItalic.woff new file mode 100644 index 00000000..c80ebf61 Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/MediumItalic.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/Regular.woff b/docs/v1.0.0-beta01/media/fonts/roboto/Regular.woff new file mode 100644 index 00000000..8aa07d73 Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/Regular.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/RegularItalic.woff b/docs/v1.0.0-beta01/media/fonts/roboto/RegularItalic.woff new file mode 100644 index 00000000..a5fc52fc Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/RegularItalic.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/Thin.woff b/docs/v1.0.0-beta01/media/fonts/roboto/Thin.woff new file mode 100644 index 00000000..f9d70170 Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/Thin.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/ThinItalic.woff b/docs/v1.0.0-beta01/media/fonts/roboto/ThinItalic.woff new file mode 100644 index 00000000..07ca10c7 Binary files /dev/null and b/docs/v1.0.0-beta01/media/fonts/roboto/ThinItalic.woff differ diff --git a/docs/v1.0.0-beta01/media/fonts/roboto/roboto.css b/docs/v1.0.0-beta01/media/fonts/roboto/roboto.css new file mode 100644 index 00000000..56d09844 --- /dev/null +++ b/docs/v1.0.0-beta01/media/fonts/roboto/roboto.css @@ -0,0 +1,66 @@ +/* Derived from https://www.fontsquirrel.com/fonts/roboto Webfont Kit download */ + +@font-face { + font-family: 'Roboto'; + src: url('./Thin.woff') format('woff'); + font-weight: 200; + font-style: normal; +} +@font-face { + font-family: 'Roboto'; + src: url('./ThinItalic.woff') format('woff'); + font-weight: 200; + font-style: italic; +} + +@font-face { + font-family: 'Roboto'; + src: url('./Light.woff') format('woff'); + font-weight: 300; + font-style: normal; +} +@font-face { + font-family: 'Roboto'; + src: url('./LightItalic.woff') format('woff'); + font-weight: 300; + font-style: italic; +} + +@font-face { + font-family: 'Roboto'; + src: url('./Regular.woff') format('woff'); + font-weight: 400; + font-style: normal; +} +@font-face { + font-family: 'Roboto'; + src: url('./RegularItalic.woff') format('woff'); + font-weight: 400; + font-style: italic; +} + +@font-face { + font-family: 'Roboto'; + src: url('./Medium.woff') format('woff'); + font-weight: 500; + font-style: normal; +} +@font-face { + font-family: 'Roboto'; + src: url('./MediumItalic.woff') format('woff'); + font-weight: 500; + font-style: italic; +} + +@font-face { + font-family: 'Roboto'; + src: url('./Bold.woff') format('woff'); + font-weight: 600; + font-style: normal; +} +@font-face { + font-family: 'Roboto'; + src: url('./BoldItalic.woff') format('woff'); + font-weight: 600; + font-style: italic; +} diff --git a/docs/v1.0.0-beta01/media/index.css b/docs/v1.0.0-beta01/media/index.css new file mode 100644 index 00000000..5ec49ddc --- /dev/null +++ b/docs/v1.0.0-beta01/media/index.css @@ -0,0 +1,3 @@ +html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul,menu{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@media(prefers-color-scheme: dark){:root{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, 0.4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, 0.15);--color-danger-fg: #f85149}}@media(prefers-color-scheme: light){:root{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210, 18%, 87%, 1);--color-neutral-muted: rgba(175, 184, 193, 0.2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}}*{box-sizing:border-box}:root{--dim-header-height: 2.25rem;--dim-footer-height: 2.25rem;--dim-menu-width: 450px;--font: "Roboto";--transition-fades: 300ms;--transition-rotates: 600ms;--transition-drawer: 600ms;--media-max-width: 900px;--scrollBarColor: #4384d1}html,body{font-family:"Roboto";background-color:var(--color-canvas-default)}html #loading,body #loading{position:fixed;z-index:10;top:0;left:0;width:100vw;height:100vh;pointer-events:none;background:var(--color-accent-fg);color:var(--color-canvas-subtle);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity var(--transition-fades)}body.loading #loading{opacity:80%}body.loading #loading span{animation-name:loading;animation-duration:1.2s;animation-iteration-count:infinite;animation-timing-function:linear}.init #plugin-versions-select{display:none}@keyframes loading{from{rotate:0deg}to{rotate:360deg}}@media(prefers-reduced-motion: no-preference){.loaded .scroller{scroll-behavior:smooth}}.scroller.instant{scroll-behavior:auto}typedoc-theme-yaf{display:flex;height:100vh;width:100vw;position:relative;overflow:hidden}typedoc-theme-yaf .scroller.vertical{overflow-y:scroll}typedoc-theme-yaf .scroller.horizontal{overflow-x:scroll}typedoc-theme-yaf .scroller{scrollbar-color:var(--scrollBarColor) var(--color-canvas-default)}typedoc-theme-yaf .scroller::-webkit-scrollbar{width:6px;height:6px;background-color:var(--color-canvas-default)}typedoc-theme-yaf .scroller::-webkit-scrollbar-thumb{background:var(--scrollBarColor)}typedoc-theme-yaf .scroller::-webkit-scrollbar-track{background:var(--color-canvas-default)}typedoc-theme-yaf .yaf-drawer{overflow:hidden}typedoc-theme-yaf .yaf-parent-drawer.closed>.yaf-drawer{max-height:0 !important;opacity:0}typedoc-theme-yaf .yaf-parent-drawer.rendered>.yaf-drawer{transition-property:opacity,max-height;transition-duration:var(--transition-drawer)}typedoc-theme-yaf .icon{-webkit-user-select:none;-moz-user-select:none;user-select:none}typedoc-theme-yaf .flash,typedoc-theme-yaf .flash pre,typedoc-theme-yaf .flash table *{animation-name:flash;animation-duration:1s}typedoc-theme-yaf yaf-widget-tag-toggle{display:flex}typedoc-theme-yaf yaf-widget-tag-toggle span{cursor:pointer;font-size:.9rem;padding:.5rem;margin:0 .25rem;color:var(--color-fg-muted);border:1px solid var(--color-border-muted);margin-bottom:.5rem;text-align:center}typedoc-theme-yaf *[inherited=hide]>ul>.inherited{display:none !important}typedoc-theme-yaf *[private=hide]>ul>.private{display:none !important}typedoc-theme-yaf yaf-widget-counter{font-weight:300;-webkit-user-select:none;-moz-user-select:none;user-select:none}typedoc-theme-yaf yaf-widget-counter .count{font-weight:550}typedoc-theme-yaf yaf-widget-kind{display:flex;width:1.2rem;height:1.2rem;justify-content:center;align-items:center;position:relative;margin-right:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex:0 0 auto;color:var(--color-canvas-default)}typedoc-theme-yaf yaf-widget-kind>span{padding-top:1px;font-size:.65rem;font-weight:550}typedoc-theme-yaf yaf-widget-kind.accessor{background:var(--color-prettylights-syntax-entity-tag);border-radius:50%}typedoc-theme-yaf yaf-widget-kind.class{background:var(--color-prettylights-syntax-entity)}typedoc-theme-yaf yaf-widget-kind.constructor{background:var(--color-prettylights-syntax-entity);border-radius:50%}typedoc-theme-yaf yaf-widget-kind.enum{background:var(--color-prettylights-syntax-entity-tag)}typedoc-theme-yaf yaf-widget-kind.function{background:var(--color-prettylights-syntax-constant);border-radius:50%}typedoc-theme-yaf yaf-widget-kind.interface{background:var(--color-prettylights-syntax-entity)}typedoc-theme-yaf yaf-widget-kind.method{background:var(--color-prettylights-syntax-string);border-radius:50%}typedoc-theme-yaf yaf-widget-kind.namespace{background:var(--color-accent-fg)}typedoc-theme-yaf yaf-widget-kind.property{background:var(--color-prettylights-syntax-variable);border-radius:50%}typedoc-theme-yaf yaf-widget-kind.reference{background:var(--color-prettylights-syntax-entity)}typedoc-theme-yaf yaf-widget-kind.variable{background:var(--color-prettylights-syntax-variable);border-radius:50%}typedoc-theme-yaf yaf-widget-kind.typealias{background:var(--color-prettylights-syntax-variable);border-radius:50%}typedoc-theme-yaf yaf-widget-kind.module{background:var(--color-accent-fg)}typedoc-theme-yaf yaf-chrome-left,typedoc-theme-yaf yaf-chrome-header,typedoc-theme-yaf yaf-chrome-content{display:block;background:var(--color-canvas-default)}typedoc-theme-yaf yaf-chrome-left{flex:0 0 var(--dim-menu-width);overflow:hidden}typedoc-theme-yaf yaf-chrome-left.activeSearch #menuWrapper{background:var(--color-neutral-muted)}typedoc-theme-yaf yaf-chrome-left{display:flex;flex-direction:column;align-items:stretch}typedoc-theme-yaf yaf-chrome-left yaf-navigation-search{display:block;opacity:0;transition:opacity var(--transition-fades);z-index:1;position:absolute}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu{display:block;opacity:100%;transition:opacity var(--transition-fades);z-index:2;position:relative}typedoc-theme-yaf yaf-chrome-left.activeSearch yaf-navigation-search{z-index:2;opacity:100%;position:relative}typedoc-theme-yaf yaf-chrome-left.activeSearch yaf-navigation-menu{opacity:0;z-index:1;position:absolute}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header{display:flex;flex-direction:column;border:1px solid var(--color-accent-fg);border-left:none}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header #projectTitle{background:var(--color-accent-fg);color:var(--color-canvas-subtle);padding:.25rem 1rem;display:flex;align-items:center;font-weight:500;font-size:1.2rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header #projectTitle .title{flex-grow:1;padding:1rem}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header #projectTitle a{display:block;color:var(--color-canvas-subtle)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header #projectTitle a:hover{color:var(--color-border-default)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation{-webkit-user-select:none;-moz-user-select:none;user-select:none;height:2rem;display:flex;align-items:center}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar{flex-grow:1;display:flex;height:100%;position:relative;align-items:center}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar input::-ms-clear{display:none;width:0;height:0}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar input::-ms-reveal{display:none;width:0;height:0}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar input::-webkit-search-decoration,typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar input::-webkit-search-cancel-button,typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar input::-webkit-search-results-button,typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar input::-webkit-search-results-decoration{display:none}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar input{width:calc(100% - 8px);height:calc(100% - 8px);display:block;border:none;border-radius:0;padding-left:1rem;padding-right:2em;margin-left:4px;background-color:var(--color-canvas-subtle)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar input:invalid{color:var(--color-danger-fg)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar .wrapper{height:calc(100% - 8px);aspect-ratio:1/1;position:absolute;right:4px;display:flex;justify-content:center;align-items:center}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar .searchIcon,typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar .clearIcon{color:var(--color-fg-muted);width:100%;height:100%;display:flex;justify-content:center;align-items:center}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar .clearIcon{display:none;cursor:pointer;color:var(--color-danger-fg)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar.busy .clearIcon{display:flex}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation yaf-navigation-searchbar.busy .searchIcon{display:none}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation .button,typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation .info{display:flex;justify-content:center;align-items:center;width:2rem;height:2rem;cursor:pointer;color:var(--color-fg-default);text-decoration:none;transition:all var(--transition-fades)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation .button:hover,typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation .info:hover{background:var(--color-border-default);color:var(--color-accent-emphasis)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation .controls-drawers{display:flex}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation .controls-drawers .open.button{padding-left:.5rem}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation .controls-drawers .close.button{padding-right:.5rem}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .controls-navigation .info{font-size:2px !important}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header.open .info{background:var(--color-border-default);color:var(--color-accent-emphasis)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header.open .info>span:first-child{display:none}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header.open .drawers-info{border-top:1px solid var(--color-border-default)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header.closed .info>span:last-child{display:none}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .drawers-info{position:relative;width:100%;background:var(--color-border-default)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .drawers-info .inner{display:flex;padding:.5rem;flex-wrap:wrap}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .drawers-info .widget{padding:.5rem;display:flex;align-items:center;justify-content:center}typedoc-theme-yaf yaf-chrome-left yaf-navigation-header .drawers-info .name{color:var(--color-fg-muted)}typedoc-theme-yaf yaf-chrome-left #menuWrapper{flex-grow:1;border-right:1px solid var(--color-border-default);position:relative;overflow:hidden}typedoc-theme-yaf yaf-chrome-left yaf-navigation-search,typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu{padding:1rem;width:100%;height:100%}typedoc-theme-yaf yaf-chrome-left yaf-navigation-search .results{position:relative;z-index:1}typedoc-theme-yaf yaf-chrome-left yaf-navigation-search .results li{display:flex;align-items:center;padding:.5rem 0}typedoc-theme-yaf yaf-chrome-left yaf-navigation-search .results li a{display:flex;flex-direction:column;text-decoration:none}typedoc-theme-yaf yaf-chrome-left yaf-navigation-search .results li a .name{color:var(--color-fg-default)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-search .results li a .symbol{color:var(--color-fg-muted);font-size:.8rem;font-weight:300}typedoc-theme-yaf yaf-chrome-left yaf-navigation-search .results li a .lit{color:var(--color-accent-emphasis)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu .rendered .icon>span{transition:background-color var(--transition-rotates)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu menu ul,typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu ul ul{padding:0 .5rem}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu menu ul li:last-child,typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu ul ul li:last-child{padding-bottom:1rem}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch{display:list-item;padding:0}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch a{color:var(--color-fg-default);text-decoration:none;transition:color var(--transition-fades)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch a .name{padding:.5rem 0}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .yaf-drawer.show .hide a{color:var(--color-fg-muted)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .yaf-drawer.show .hide a:hover,typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch a:hover{color:var(--color-accent-fg)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header.parent{border-bottom:1px solid var(--color-border-muted);margin:.25rem 0}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header{display:flex;width:100%;align-items:center;transition:border var(--transition-fades)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header>yaf-navigation-link{display:flex;align-items:center;flex-grow:1;position:relative;overflow:hidden}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header>yaf-navigation-link a{display:block;max-width:100%;position:relative;overflow:hidden}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header>yaf-navigation-link a .name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.5rem}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header>yaf-navigation-link:hover a .name{overflow:visible;float:right}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header .trigger{cursor:pointer;display:flex;align-items:center;justify-content:flex-end;align-self:flex-end;flex:0 0 auto}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header .trigger .icon{display:flex;align-items:center;justify-content:center;border:1px solid var(--color-border-muted);border-bottom:none;width:var(--size);height:var(--size);margin-left:calc(var(--size)/2);transition:all var(--transition-fades)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header .trigger yaf-widget-counter{flex:0 0 auto;height:100%;padding-right:.5rem}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .header .trigger:hover .icon{background:var(--color-border-muted);color:var(--color-accent-fg)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .inherited_toggle{cursor:pointer;font-size:.9rem;padding:.5rem;color:var(--color-fg-muted);border:1px solid var(--color-border-muted);margin-bottom:.5rem;text-align:center}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch .yaf-drawer.hide>.hide{overflow:hidden;height:0px;opacity:0}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch yaf-navigation-menu-branch{margin-right:var(--size)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch.closed>.header .icon>span{transform:rotate(270deg)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch.open>.header{border-bottom-color:var(--color-accent-fg)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch.open>.header .name{font-weight:550}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch.open>.header .icon{border-color:var(--color-accent-fg);background:var(--color-accent-fg);color:var(--color-canvas-subtle)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-menu yaf-navigation-menu-branch.open>.header .icon>span{transform:rotate(180deg)}typedoc-theme-yaf yaf-chrome-left yaf-navigation-footer{display:block;position:relative;border-top:1px solid var(--color-border-default);border-right:1px solid var(--color-border-default);flex:0 0 var(--dim-footer-height);background-color:var(--color-accent-fg);padding:0 1rem}typedoc-theme-yaf yaf-chrome-left yaf-navigation-footer select{width:100%;height:100%;border:none;border-radius:0;box-shadow:none;background-color:var(--color-accent-fg);color:var(--color-canvas-default)}typedoc-theme-yaf yaf-chrome-right{display:flex;flex-direction:column;overflow:hidden;flex-grow:1}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content{-ms-text-size-adjust:100%;margin:0;color:var(--color-fg-default);background-color:var(--color-canvas-default);font-size:16px;line-height:1.5;word-wrap:break-word}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h1:hover .anchor .octicon-link:before,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h2:hover .anchor .octicon-link:before,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h3:hover .anchor .octicon-link:before,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h4:hover .anchor .octicon-link:before,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h5:hover .anchor .octicon-link:before,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,");mask-image:url("data:image/svg+xml,")}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content details,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content figcaption,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content figure{display:block}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content summary{display:list-item}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [hidden]{display:none !important}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content a{background-color:rgba(0,0,0,0);color:var(--color-accent-fg);text-decoration:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content a:active,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content a:hover{outline-width:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content b,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content strong{font-weight:600}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content dfn{font-style:italic}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content small{font-size:90%}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content sub,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content sub{bottom:-0.25em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content sup{top:-0.5em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content code,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content kbd,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content pre,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content samp{font-family:monospace,monospace;font-size:1em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content figure{margin:1em 40px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content hr{box-sizing:content-box;overflow:hidden;background:rgba(0,0,0,0);border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=button],typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=reset],typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=submit]{-webkit-appearance:button}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=button]::-moz-focus-inner,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=reset]::-moz-focus-inner,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=submit]::-moz-focus-inner{border-style:none;padding:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=button]:-moz-focusring,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=reset]:-moz-focusring,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=submit]:-moz-focusring{outline:1px dotted ButtonText}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=checkbox],typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=radio]{box-sizing:border-box;padding:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=number]::-webkit-inner-spin-button,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=number]::-webkit-outer-spin-button{height:auto}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=search]{-webkit-appearance:textfield;outline-offset:-2px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=search]::-webkit-search-cancel-button,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [type=search]::-webkit-search-decoration{-webkit-appearance:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ::-webkit-input-placeholder{color:inherit;opacity:.54}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content a:hover{text-decoration:underline}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content hr::before{display:table;content:""}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content hr::after{display:table;clear:both;content:""}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%;overflow:auto}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content td,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content th{padding:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content details summary{cursor:pointer}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content details:not([open])>*:not(summary){display:none !important}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h1,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h2,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h3,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h4,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h5,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h3{font-weight:600;font-size:1.25em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h4{font-weight:600;font-size:1em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h5{font-weight:500;font-size:.875em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content p{margin-top:0;margin-bottom:10px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ul,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol{margin-top:0;margin-bottom:0;padding-left:2em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol ol,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ul ol{list-style-type:lower-roman}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ul ul ol,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ul ol ol,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol ul ol,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol ol ol{list-style-type:lower-alpha}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content dd{margin-left:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content tt,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ::placeholder{color:var(--color-fg-subtle);opacity:1}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content input::-webkit-outer-spin-button,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;appearance:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-c{color:var(--color-prettylights-syntax-comment)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-c1,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-e,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-en{color:var(--color-prettylights-syntax-entity)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-smi,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-k{color:var(--color-prettylights-syntax-keyword)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-s,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-pds,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-s .pl-pse .pl-s1,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-sr,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-sr .pl-cce,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-sr .pl-sre,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-v,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-smw{color:var(--color-prettylights-syntax-variable)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-ml{color:var(--color-prettylights-syntax-markup-list)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-mh,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-mh .pl-en,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content [data-catalyst]{display:block}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content g-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal !important;font-weight:400;line-height:1;vertical-align:-0.075em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content g-emoji img{width:1em;height:1em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .markdown-body::before{display:table;content:""}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .markdown-body::after{display:table;clear:both;content:""}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .markdown-body>*:first-child{margin-top:0 !important}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .markdown-body>*:last-child{margin-bottom:0 !important}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content a:not([href]){color:inherit;text-decoration:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .absent{color:var(--color-danger-fg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .anchor:focus{outline:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content p,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content blockquote,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ul,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content dl,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content table,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content pre,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content details{margin-top:0;margin-bottom:16px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content blockquote>:first-child{margin-top:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content blockquote>:last-child{margin-bottom:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content sup>a::before{content:"["}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content sup>a::after{content:"]"}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h1 .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h2 .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h3 .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h4 .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h5 .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h1:hover .anchor,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h2:hover .anchor,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h3:hover .anchor,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h4:hover .anchor,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h5:hover .anchor,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h6:hover .anchor{text-decoration:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h1:hover .anchor .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h2:hover .anchor .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h3:hover .anchor .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h4:hover .anchor .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h5:hover .anchor .octicon-link,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h6:hover .anchor .octicon-link{visibility:visible}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h1 tt,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h1 code,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h2 tt,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h2 code,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h3 tt,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h3 code,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h4 tt,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h4 code,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h5 tt,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h5 code,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h6 tt,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content h6 code{padding:0 .2em;font-size:inherit}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ul.no-list,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol.no-list{padding:0;list-style-type:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol[type="1"]{list-style-type:decimal}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol[type=a]{list-style-type:lower-alpha}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol[type=i]{list-style-type:lower-roman}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content div>ol:not([type]){list-style-type:decimal}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ul ul,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ul ol,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol ol,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ol ul{margin-top:0;margin-bottom:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content li>p{margin-top:16px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content li+li{margin-top:.25em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content dl{padding:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content dl dd{padding:0 16px;margin-bottom:16px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content table th{font-weight:600}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content table th,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content table td{padding:6px 13px;border:1px solid var(--color-border-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content table img{background-color:rgba(0,0,0,0)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content img[align=right]{padding-left:20px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content img[align=left]{padding-right:20px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .emoji{max-width:none;vertical-align:text-top;background-color:rgba(0,0,0,0)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.frame{display:block;overflow:hidden}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.frame span img{display:block;float:left}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.align-center{display:block;overflow:hidden;clear:both}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.align-center span img{margin:0 auto;text-align:center}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.align-right{display:block;overflow:hidden;clear:both}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.align-right span img{margin:0;text-align:right}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.float-left span{margin:13px 0 0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content code,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content code br,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content tt br{display:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content del code{text-decoration:inherit}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content pre code{font-size:100%}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:rgba(0,0,0,0);border:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .highlight{margin-bottom:16px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .highlight pre{margin-bottom:0;word-break:normal}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .highlight pre,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content pre code,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content pre tt{display:inline;max-width:none;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:rgba(0,0,0,0);border:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .csv-data td,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .csv-data tr{border-top:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .footnotes ol{padding-left:16px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .footnotes li{position:relative}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .footnotes li:target::before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .footnotes li:target{color:var(--color-fg-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .footnotes .data-footnote-backref g-emoji{font-family:monospace}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .task-list-item{list-style-type:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .task-list-item label{font-weight:400}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .task-list-item.enabled label{cursor:pointer}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .task-list-item+.task-list-item{margin-top:3px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .task-list-item .handle{display:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .task-list-item-checkbox{margin:0 .2em .25em -1.6em;vertical-align:middle}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content ::-webkit-calendar-picker-indicator{filter:invert(50%)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content{flex-grow:1;display:block;max-width:900px;padding:2rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content .markdown-body ul{list-style:inside}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content h5{margin-bottom:.25rem;color:var(--color-fg-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content ul.references{list-style:circle;font-size:.9rem;font-weight:100}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content ul.references a{color:var(--color-fg-subtle);text-decoration:underline}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content ul.references a:hover{color:var(--color-fg-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .block{display:block;padding-left:1rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .name{color:var(--color-prettylights-syntax-variable)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .title{color:var(--color-prettylights-syntax-markup-heading)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .parameter{color:var(--color-prettylights-syntax-keyword)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .symbol{color:var(--color-prettylights-syntax-brackethighlighter-angle)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .type{font-style:italic;color:var(--color-prettylights-syntax-entity)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .intrinsic{font-style:italic;color:var(--color-fg-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .literal{font-weight:600;color:var(--color-accent-emphasis)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight .value{font-weight:600;color:var(--color-prettylights-syntax-variable)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight a{text-decoration:underline;text-decoration-color:var(--color-border-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content pre.highlight a:hover{text-decoration-color:var(--color-accent-fg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-widget-flags{font-size:1rem;font-weight:300;flex-grow:1;display:flex;justify-content:flex-end}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-widget-flags .flag{padding:.5rem;border:1px solid var(--color-border-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-marked.markdown-body{display:block;margin:0 1rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content>yaf-content-hierarchy>ul{background-color:var(--color-canvas-subtle)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content>yaf-content-hierarchy>ul li:last-child{margin-bottom:1rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content>yaf-content-hierarchy>ul li:first-child{margin-top:1rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-hierarchy h5{cursor:pointer;display:flex;align-items:center}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-hierarchy ul{font-size:.9rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-hierarchy li.target{font-weight:600}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-hierarchy.closed h5 .yaficon{rotate:180deg}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header pre{white-space:pre-wrap;line-height:1.2rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header h1{position:relative;display:flex;align-items:center}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header h1 .name{cursor:pointer}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header h1>span{font-size:1rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header .name,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header .parameters{color:var(--color-accent-emphasis);font-size:2.5rem;font-weight:400}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header .parameters{font-style:italic}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header .kind{position:absolute;left:0;bottom:100%;background:var(--color-accent-fg);color:var(--color-canvas-subtle);padding:5px 10px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header .signature{display:block;margin-left:1rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header .type{font-style:italic}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-content-header .symbol.nl{display:block}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-body,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters-type{display:block}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters-type{display:block}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters table,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters-type table{display:table;width:100%}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters table th,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters-type table th{background:var(--color-attention-subtle)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters table td,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters-type table td{vertical-align:top}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters table td.type pre,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-parameters-type table td.type pre{padding:0;background:none;display:block;white-space:pre-wrap}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-signature-reflection{display:inline}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h2,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h3,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h3 .trigger,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h2,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h3,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h3 .trigger{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h2,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h2{font-weight:400;border-color:var(--color-fg-subtle);color:var(--color-fg-default)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h2 span.trigger,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h2 span.trigger{display:flex;align-items:center}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h2 span.trigger .icon,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h2 span.trigger .icon{display:flex;align-items:center;justify-content:center;margin-right:1rem;border:1px solid var(--color-border-muted);-webkit-user-select:none;-moz-user-select:none;user-select:none;background:var(--color-canvas-default);width:2rem;height:2rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h2 span.trigger:hover,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h2 span.trigger:hover{cursor:pointer}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h2 span.trigger:hover .icon,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h2 span.trigger:hover .icon{background:var(--color-border-muted);transition:background var(--transition-fades)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h3 .icon,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h3 .icon{display:inline-block;height:24px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h3 .trigger,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link h3 .trigger{cursor:pointer}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection>ul,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link>ul{border:0;padding:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link ul{display:flex;flex-wrap:wrap;align-items:stretch;gap:5px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link ul a{color:var(--color-fg-muted);display:block;width:100%;height:100%}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link ul li{margin:0;border:1px solid var(--color-border-muted);flex-grow:1;flex-basis:30%;text-align:center;background:var(--color-canvas-subtle);transition:all var(--transition-fades)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link ul li a{padding:.5rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link ul li:hover{background:var(--color-border-muted);cursor:pointer}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-link ul li:hover a{text-decoration:none;color:var(--color-accent-emphasis)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection{display:block;color:var(--color-fg-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h3 .wrapper{display:flex}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h3 .wrapper a{color:var(--color-accent-fg);font-weight:400;padding:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h3 .wrapper a:hover{color:var(--color-fg-muted)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection h3 .wrapper .symbol{padding:0 .5rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection yaf-member{padding-left:.5rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection.open .icon>span{transform:rotate(180deg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection.closed .icon>span{transform:rotate(90deg)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection.rendered h2 span.trigger .icon>span{transition:transform var(--transition-rotates)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-signatures{display:block}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-group-reflection yaf-member{border-left:3px solid var(--color-fg-subtle)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-signatures,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-getter-setter{position:relative;display:block;padding-bottom:1rem;margin-bottom:3rem;border-bottom:1px solid var(--color-fg-subtle)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-signatures .flag,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-getter-setter .flag{border:none;background-color:var(--color-canvas-subtle);margin-right:1px}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-signatures pre,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member-getter-setter pre{border-radius:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member{display:block;margin-bottom:3rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member h3>yaf-navigation-link{display:flex;position:relative;align-items:center;background:var(--color-fg-subtle);left:-0.5rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member h3 yaf-navigation-link:after{content:"";position:absolute;width:100%;height:1px;background:var(--color-border-default);bottom:-1px;left:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member h3 a{padding:.25rem 1rem;cursor:pointer;display:block;color:var(--color-canvas-default);font-weight:350;font-size:1.2rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member h3 a:hover{text-decoration:none;color:var(--color-attention-subtle)}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member .inner>yaf-member-signatures>yaf-signature-title,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member yaf-member-declaration>yaf-member-signatures>yaf-signature-title{background:var(--color-canvas-subtle);width:100%;display:block;position:relative}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member .inner>yaf-member-signatures>yaf-signature-title>.wrapper,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member yaf-member-declaration>yaf-member-signatures>yaf-signature-title>.wrapper{display:block;margin-left:1rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member .inner>yaf-member-signatures>yaf-signature-title .highlight,typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member yaf-member-declaration>yaf-member-signatures>yaf-signature-title .highlight{position:relative;left:-0.5rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member yaf-member-getter-setter .highlight{position:relative;left:-0.5rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member .header{display:flex;align-items:stretch;color:var(--color-fg-subtle);border-bottom:1px solid var(--color-fg-subtle);margin-bottom:0}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member .header .flag{border-bottom:none}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member pre.highlight{border-radius:0;margin-bottom:0;margin-bottom:1rem}typedoc-theme-yaf yaf-chrome-right yaf-chrome-content yaf-content yaf-member .flag{margin-left:.5rem}typedoc-theme-yaf yaf-chrome-header[context=mobile]{display:none}typedoc-theme-yaf yaf-chrome-header[context=mobile] #mobileNav .yaficon,typedoc-theme-yaf yaf-chrome-header[context=mobile] #hamburger .yaficon{cursor:pointer}typedoc-theme-yaf yaf-chrome-header[context=mobile] #mobileNav .yaficon{padding:0 .5rem}typedoc-theme-yaf yaf-chrome-header[context=mobile] #mobileNav .projectHome{font-weight:450;font-size:1.2rem}typedoc-theme-yaf yaf-chrome-header{flex:0 0 var(--dim-header-height);background:var(--color-accent-fg);display:flex;color:var(--color-canvas-default)}typedoc-theme-yaf yaf-chrome-header *{-webkit-user-select:none;-moz-user-select:none;user-select:none}typedoc-theme-yaf yaf-chrome-header .breadcrumb{color:var(--color-canvas-subtle);display:flex;flex-wrap:wrap;align-items:center}typedoc-theme-yaf yaf-chrome-header .breadcrumb yaf-navigation-link{display:block}typedoc-theme-yaf yaf-chrome-header .breadcrumb a{padding:.5rem 0;display:block}typedoc-theme-yaf yaf-chrome-header .breadcrumb .divider{padding:0 .5rem}typedoc-theme-yaf yaf-chrome-header a{text-decoration:none;color:var(--color-canvas-subtle)}typedoc-theme-yaf yaf-chrome-content{flex-grow:1;display:flex;flex-direction:column;position:relative}typedoc-theme-yaf yaf-chrome-footer{display:flex;border-top:1px solid var(--color-border-default);flex:0 0 var(--dim-footer-height);width:100%;align-items:center;justify-content:center;font-size:.8rem;color:var(--color-fg-muted)}@media screen and (max-width: 900px){#projectTitle{display:none !important}body{width:100vw;height:100vh}typedoc-theme-yaf{display:grid;grid-template-columns:100vw;grid-template-rows:auto 100fr}typedoc-theme-yaf #hamburger{display:flex !important;align-items:center;padding:1rem}typedoc-theme-yaf #hamburger .open{display:flex}typedoc-theme-yaf #hamburger .close{display:none}typedoc-theme-yaf.menuOpen yaf-chrome-left{left:0 !important}typedoc-theme-yaf.menuOpen #hamburger .open{display:none}typedoc-theme-yaf.menuOpen #hamburger .close{display:flex}yaf-chrome-header[context=mobile]{display:flex !important;grid-column:1/2;grid-row:1/2}yaf-chrome-header[context=mobile] #mobileNav{display:flex !important;padding:.5rem 0}yaf-chrome-header[context=mobile] .wrapper{padding:.5rem 0;padding-left:1rem;display:flex;flex-direction:column;align-content:stretch;justify-content:center}yaf-chrome-header[context=desktop]{display:none}yaf-chrome-left{overflow:hidden;position:relative;grid-column:1/2;grid-row:2/3;transition:left var(--transition-drawer);z-index:10;box-shadow:10px -1px 21px -9px var(--color-fg-default);width:calc(100vw - 1rem);left:-100vw}yaf-chrome-left yaf-navigation-header{border-top:none}yaf-chrome-left yaf-navigation-header .controls-navigation{border-top:1px solid var(--color-accent-fg)}yaf-chrome-right{overflow:hidden;grid-column:1/2;grid-row:2/3}yaf-chrome-right yaf-chrome-content{height:100%}}.material-icons-sharp.md-18{font-size:18px}.material-icons-sharp.md-24{font-size:24px}.material-icons-sharp.md-36{font-size:36px}.material-icons-sharp.md-48{font-size:48px}@keyframes flash{0%{background:none}50%{background:var(--color-attention-subtle)}100%{background:none}} + +/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tZWRpYS9zY3NzL3Jlc2V0LnNjc3MiLCIuLi8uLi8uLi9zcmMvbWVkaWEvc2Nzcy9jb2xvdXJzLnNjc3MiLCIuLi8uLi8uLi9zcmMvbWVkaWEvc2Nzcy90eXBlZG9jVGhlbWVZYWYuc2NzcyIsIi4uLy4uLy4uL3NyYy9tZWRpYS9zY3NzL2NvbXBvbmVudHMveWFmV2lkZ2V0LnNjc3MiLCIuLi8uLi8uLi9zcmMvbWVkaWEvc2Nzcy9jb21wb25lbnRzL3lhZkNocm9tZS5zY3NzIiwiLi4vLi4vLi4vc3JjL21lZGlhL3Njc3MvY29tcG9uZW50cy95YWZOYXZpZ2F0aW9uLnNjc3MiLCIuLi8uLi8uLi9zcmMvbWVkaWEvc2Nzcy9naXRodWItbWFya2Rvd24uc2NzcyIsIi4uLy4uLy4uL3NyYy9tZWRpYS9zY3NzL2NvbXBvbmVudHMveWFmQ29udGVudC5zY3NzIiwiLi4vLi4vLi4vc3JjL21lZGlhL3Njc3MvY29tcG9uZW50cy95YWZTaWduYXR1cmUuc2NzcyIsIi4uLy4uLy4uL3NyYy9tZWRpYS9zY3NzL2NvbXBvbmVudHMveWFmTWVtYmVyR3JvdXBzLnNjc3MiLCIuLi8uLi8uLi9zcmMvbWVkaWEvc2Nzcy9jb21wb25lbnRzL3lhZk1lbWJlci5zY3NzIiwiLi4vLi4vLi4vc3JjL21lZGlhL3Njc3MvbW9iaWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS0EsMlpBaUZDLFFBQUEsQ0FDQSxTQUFBLENBQ0EsUUFBQSxDQUNBLGNBQUEsQ0FDQSxZQUFBLENBQ0EsdUJBQUEsQ0FHRCw4RUFXQyxhQUFBLENBRUQsS0FDQyxhQUFBLENBRUQsV0FHQyxlQUFBLENBRUQsYUFFQyxXQUFBLENBRUQsb0RBSUMsVUFBQSxDQUNBLFlBQUEsQ0FFRCxNQUNDLHdCQUFBLENBQ0EsZ0JBQUEsQ0NoSUQsbUNBQ0MsTUFDQyxpQkFBQSxDQUNBLDRDQUFBLENBQ0EsNkNBQUEsQ0FDQSwyQ0FBQSxDQUNBLDREQUFBLENBQ0EsK0NBQUEsQ0FDQSw0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 */ \ No newline at end of file diff --git a/docs/v1.0.0-beta01/media/index.css.map b/docs/v1.0.0-beta01/media/index.css.map new file mode 100644 index 00000000..8445f6ab --- /dev/null +++ b/docs/v1.0.0-beta01/media/index.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../../../src/media/scss/reset.scss","../../../src/media/scss/colours.scss","../../../src/media/scss/typedocThemeYaf.scss","../../../src/media/scss/components/yafWidget.scss","../../../src/media/scss/components/yafChrome.scss","../../../src/media/scss/components/yafNavigation.scss","../../../src/media/scss/github-markdown.scss","../../../src/media/scss/components/yafContent.scss","../../../src/media/scss/components/yafSignature.scss","../../../src/media/scss/components/yafMemberGroups.scss","../../../src/media/scss/components/yafMember.scss","../../../src/media/scss/mobile.scss"],"names":[],"mappings":"AAKA,2ZAiFC,SACA,UACA,SACA,eACA,aACA,wBAGD,8EAWC,cAED,KACC,cAED,WAGC,gBAED,aAEC,YAED,oDAIC,WACA,aAED,MACC,yBACA,iBChID,mCACC,MACC,kBACA,6CACA,8CACA,4CACA,6DACA,gDACA,6CACA,4CACA,8CACA,kEACA,0DACA,wDACA,0DACA,wDACA,mDACA,iDACA,oDACA,mDACA,iDACA,yDACA,uDACA,0DACA,wDACA,yDACA,uDACA,yDACA,uDACA,qDACA,8DACA,+DACA,mEACA,4BACA,0BACA,2BACA,gCACA,+BACA,gCACA,8BACA,gDACA,2BACA,iCACA,kDACA,4BAIF,oCACC,MACC,mBACA,6CACA,8CACA,4CACA,6DACA,gDACA,6CACA,4CACA,8CACA,kEACA,0DACA,wDACA,0DACA,wDACA,mDACA,iDACA,oDACA,mDACA,iDACA,yDACA,uDACA,0DACA,wDACA,yDACA,uDACA,yDACA,uDACA,qDACA,8DACA,+DACA,mEACA,4BACA,0BACA,2BACA,gCACA,+BACA,gCACA,6CACA,gDACA,2BACA,iCACA,kCACA,4BC5FF,EACC,sBAED,MACC,6BACA,6BACA,wBACA,iBACA,0BACA,4BACA,2BACA,yBACA,0BAGD,UAEC,qBACA,6CACA,4BACC,eACA,WACA,MACA,OACA,YACA,aACA,oBACA,kCACA,iCACA,aACA,mBACA,uBACA,UACA,2CAID,sBACC,YACA,2BACC,uBACA,wBACA,mCACA,iCAIH,8BACC,aAED,mBACC,KACC,YAED,GACC,eAGF,8CACC,kBACC,wBAGF,kBACC,qBAGD,kBACC,aACA,aACA,YACA,kBACA,gBAEA,qCACC,kBAED,uCACC,kBAED,4BACC,kEAED,+CACC,UACA,WACA,6CAED,qDACC,iCAED,qDACC,uCAED,8BACC,gBAGA,wDACC,wBACA,UAGF,0DACC,uCACA,6CAED,wBACC,iBAGD,uFAGC,qBACA,sBCnHF,wCACC,aACA,6CACC,eACA,gBACA,cACA,gBACA,4BACA,2CACA,oBACA,kBAGF,kDACC,wBAED,8CACC,wBAGD,qCACC,gBACA,iBACA,4CACC,gBAIF,kCACC,aACA,aACA,cACA,uBACA,mBACA,kBACA,oBACA,iBACA,cAMA,kCALA,uCACC,gBACA,iBACA,gBAGD,2CACC,uDACA,kBAED,wCACC,mDAED,8CACC,mDACA,kBAED,uCACC,uDAED,2CACC,qDACA,kBAED,4CACC,mDAED,yCACC,mDACA,kBAED,4CACC,kCAED,2CACC,qDACA,kBAED,4CACC,mDAED,2CACC,qDACA,kBAED,4CACC,qDACA,kBAED,yCACC,kCCxFF,2GAGC,cACA,uCAGD,kCACC,+BACA,gBACA,4DACC,sCCXF,kCACC,aACA,sBACA,oBACA,wDACC,cACA,UACA,2CACA,UACA,kBAED,sDACC,cACA,aACA,2CACA,UACA,kBAID,qEACC,UACA,aACA,kBAED,mEACC,UACA,UACA,kBAGF,wDAsBC,aACA,sBACA,wCACA,iBAxBA,sEACC,kCACA,iCACA,oBACA,aACA,mBACA,gBACA,iBACA,iBACA,6EACC,YACA,aAED,wEACC,cACA,iCAED,8EACC,kCAOF,6EACC,iBACA,YACA,aACA,mBACA,sGACC,YACA,aACA,YACA,kBACA,mBACA,uHACC,aACA,QACA,SAED,wHACC,aACA,QACA,SAED,2iBAIC,aAGD,4GACC,uBACA,wBACA,cACA,YACA,gBACA,kBACA,kBACA,gBACA,4CAED,oHACC,6BAED,+GACC,wBACA,iBACA,kBACA,UACA,aACA,uBACA,mBAED,mOAEC,4BACA,WACA,YACA,aACA,uBACA,mBAED,iHACC,aACA,eACA,6BAGA,sHACC,aAED,uHACC,aAIH,wKAEC,aACA,uBACA,mBACA,WACA,YACA,eACA,8BACA,qBACA,uCAED,oLAEC,uCACA,mCAED,+FACC,aACA,4GACC,mBAED,6GACC,oBAGF,mFACC,yBAGF,mEACC,uCACA,mCACA,oFACC,aAGF,2EACC,iDAGA,qFACC,aAGF,sEACC,kBACA,WACA,uCACA,6EACC,aACA,cACA,eAED,8EACC,cAEA,aACA,mBACA,uBAED,4EACC,4BAIH,+CACC,YAEA,mDACA,kBACA,gBAGD,8GAEC,aACA,WACA,YAGA,iEACC,kBACA,UACA,oEACC,aACA,mBACA,gBACA,sEACC,aACA,sBACA,qBACA,4EACC,8BAED,8EACC,4BACA,gBACA,gBAED,2EACC,mCAQH,2EACC,sDAKD,0HACC,gBACA,sJACC,oBAIH,iFACC,kBACA,UAEA,mFACC,8BACA,qBACA,yCACA,yFACC,gBAGF,0GACC,4BAED,yMAEC,6BAED,gGACC,kDACA,gBAED,yFACC,aACA,WACA,mBAEA,0CAEA,6GACC,aACA,mBACA,YACA,kBACA,gBACA,+GACC,cACA,eACA,kBACA,gBACA,qHACC,cACA,mBACA,gBACA,uBACA,oBAKF,2HACC,iBACA,YAIF,kGACC,eACA,aACA,mBACA,yBACA,oBACA,cACA,wGACC,aACA,mBACA,uBACA,2CACA,mBACA,kBACA,mBACA,gCACA,uCAED,qHACC,cACA,YACA,oBAID,8GACC,qCACA,6BAKH,mGACC,eACA,gBACA,cACA,4BACA,2CACA,oBACA,kBAED,wGACC,gBACA,WACA,UAGD,4GACC,yBAKA,2GACC,yBAKF,8FACC,2CACA,oGACC,gBAED,oGACC,oCACA,kCACA,iCAED,yGACC,yBAMJ,wDACC,cACA,kBACA,iDACA,mDACA,kCAEA,wCACA,eACA,+DACC,WACA,YACA,YACA,gBACA,gBACA,wCACA,kCDnYF,mCACC,aACA,sBACA,gBACA,YEnBD,sDACC,0BAEA,SACA,8BACA,6CACA,eACA,gBACA,qBAGD,+DACC,qBACA,kBACA,2BAGD,wiBAMC,WACA,YACA,YACA,qBACA,8BACA,shBACA,8gBAGD,4LAGC,cAGD,8DACC,kBAGD,+DACC,wBAGD,wDACC,+BACA,6BACA,qBAGD,6HAEC,gBAGD,kEACC,mBACA,iCAGD,qHAEC,gBAGD,0DACC,kBAGD,yDACC,eACA,gBACA,oBACA,cACA,kDAGD,2DACC,+CACA,gCAGD,4DACC,cAGD,oHAEC,cACA,cACA,kBACA,wBAGD,0DACC,eAGD,0DACC,WAGD,0DACC,kBACA,eACA,uBACA,6CAGD,0OAIC,gCACA,cAGD,6DACC,gBAGD,yDACC,uBACA,gBACA,yBACA,kDACA,aACA,UACA,cACA,6CACA,SAGD,4DACC,aACA,SACA,iBACA,oBACA,kBACA,oBAGD,2MAGC,0BAGD,iQAGC,kBACA,UAGD,wPAGC,8BAGD,yIAEC,sBACA,UAGD,8LAEC,YAGD,oEACC,6BACA,oBAGD,iMAEC,wBAGD,kFACC,cACA,YAGD,mFACC,0BACA,aAGD,8DACC,0BAGD,iEACC,cACA,WAGD,gEACC,cACA,WACA,WAGD,4DACC,iBACA,yBACA,cACA,kBACA,eACA,cAGD,kHAEC,UAGD,sEACC,eAGD,yFACC,wBAGD,0DACC,qBACA,gBACA,uFAEA,iBACA,8BACA,sBACA,4CACA,4CACA,+CACA,kBACA,qDAGD,sVAMC,gBACA,mBACA,gBACA,iBAGD,yDACC,gBACA,oBACA,gBACA,kDAGD,yDACC,gBACA,iBAGD,yDACC,gBACA,cAGD,yDACC,gBACA,iBAGD,yDACC,gBACA,gBACA,4BAGD,wDACC,aACA,mBAGD,iEACC,SACA,cACA,4BACA,oDAGD,kHAEC,aACA,gBACA,iBAGD,wHAEC,4BAGD,4PAIC,4BAGD,yDACC,cAGD,oHAEC,yFAEA,eAGD,0DACC,aACA,gBACA,yFAEA,eACA,iBAGD,+DACC,qBACA,4BACA,2BACA,kBAGD,oEACC,6BACA,UAGD,8KAEC,SACA,wBACA,gBAGD,4DACC,+CAGD,+HAEC,gDAGD,yHAEC,8CAGD,iIAEC,+DAGD,8DACC,kDAGD,4DACC,+CAGD,idAOC,8CAGD,0HAEC,gDAGD,6DACC,oEAGD,6DACC,4DACA,qEAGD,6DACC,4DACA,qEAGD,qEACC,iBACA,qDAGD,6DACC,mDAGD,8LAGC,iBACA,sDAGD,6DACC,kBACA,qDAGD,6DACC,iBACA,mDAGD,6DACC,2DACA,oEAGD,8DACC,4DACA,qEAGD,6DACC,2DACA,oEAGD,8DACC,2DACA,oEAGD,8DACC,iBACA,uDAGD,6DACC,gEAGD,6DACC,iEAGD,+DACC,0BACA,qEAGD,sEACC,cAGD,8DACC,mEACA,cACA,6BACA,gBACA,cACA,wBAGD,kEACC,UACA,WAGD,6EACC,cACA,WAGD,4EACC,cACA,WACA,WAGD,mFACC,wBAGD,kFACC,2BAGD,oEACC,cACA,qBAGD,8DACC,6BAGD,8DACC,WACA,kBACA,kBACA,cAGD,oEACC,aAGD,wdAQC,aACA,mBAGD,8EACC,aAGD,6EACC,gBAGD,oEACC,YAGD,mEACC,YAGD,0aAMC,8BACA,sBACA,kBAGD,0aAMC,qBAGD,8fAMC,mBAGD,4tBAYC,eACA,kBAGD,kIAEC,UACA,qBAGD,mEACC,wBAGD,iEACC,4BAGD,iEACC,4BAGD,yEACC,wBAGD,gPAIC,aACA,gBAGD,2DACC,gBAGD,4DACC,iBAGD,yDACC,UAGD,4DACC,UACA,gBACA,cACA,kBACA,gBAGD,4DACC,eACA,mBAGD,+DACC,gBAGD,8HAEC,iBACA,6CAGD,+DACC,6CACA,+CAGD,6EACC,4CAGD,gEACC,+BAGD,uEACC,kBAGD,sEACC,mBAGD,6DACC,eACA,wBACA,+BAGD,iEACC,cACA,gBAGD,sEACC,cACA,WACA,WACA,YACA,gBACA,gBACA,6CAGD,0EACC,cACA,WAGD,2EACC,cACA,gBACA,WACA,8BAGD,wEACC,cACA,gBACA,WAGD,6EACC,cACA,mBACA,gBACA,kBAGD,iFACC,cACA,kBAGD,uEACC,cACA,gBACA,WAGD,4EACC,cACA,gBACA,gBACA,iBAGD,gFACC,SACA,iBAGD,sEACC,cACA,WACA,kBACA,gBAGD,2EACC,gBAGD,uEACC,cACA,YACA,iBACA,gBAGD,4EACC,cACA,mBACA,gBACA,iBAGD,oHAEC,kBACA,SACA,cACA,4CACA,kBAGD,0HAEC,aAGD,+DACC,wBAGD,+DACC,eAGD,+DACC,UACA,SACA,kBACA,gBACA,yBACA,SAGD,iEACC,mBAGD,qEACC,gBACA,kBAGD,+HAEC,aACA,cACA,cACA,iBACA,4CACA,kBAGD,4HAEC,eACA,eACA,UACA,SACA,iBACA,oBACA,iBACA,+BACA,SAGD,sIAEC,YACA,gBACA,eACA,cACA,gBACA,mBAGD,0EACC,qBACA,iBACA,uCACA,SAGD,mEACC,aAGD,mEACC,gBACA,sCACA,aAGD,iEACC,eACA,4BACA,iDAGD,oEACC,kBAGD,oEACC,kBAGD,mFACC,kBACA,SACA,WACA,YACA,WACA,oBACA,WACA,8CACA,kBAGD,2EACC,8BAGD,gGACC,sBAGD,sEACC,qBAGD,4EACC,gBAGD,oFACC,eAGD,sFACC,eAGD,8EACC,aAGD,+EACC,2BACA,sBAGD,4GACC,2BAGD,0FACC,mBC56BD,kEACC,YACA,cACA,gBACA,aACA,oFACC,kBAED,qEACC,qBACA,4BAED,gFACC,kBACA,gBACA,gBACA,kFACC,6BACA,0BAED,wFACC,8BAID,uFACC,cACA,kBAED,sFACC,gDAED,uFACC,sDAED,2FACC,+CAED,wFACC,gEAED,sFACC,kBACA,8CAED,2FACC,kBACA,4BAED,yFACC,gBACA,mCAED,uFACC,gBACA,gDAED,kFACC,0BACA,kDAED,wFACC,6CAIF,mFACC,eACA,gBACA,YACA,aACA,yBACA,yFACC,cACA,6CAIF,mGACC,cACA,cAGD,2FACC,4CACA,yGACC,mBAED,0GACC,gBAID,2FACC,eACA,aACA,mBAED,2FACC,gBAED,kGACC,gBAID,2GACC,cAID,yFACC,qBACA,mBAGD,wFACC,kBACA,aACA,mBACA,8FACC,eAGF,6FACC,eAED,4LAEC,mCACA,iBACA,gBAED,iGACC,kBAED,2FACC,kBACA,OACA,YACA,kCACA,iCACA,iBAGD,gGACC,cACA,iBAED,2FACC,kBAED,gGACC,cCzJH,gRAGC,cAGD,2LAEC,cACA,uMACC,cACA,WACA,6MACC,yCAED,6MACC,mBAGA,+NACC,UACA,gBACA,cACA,qBAWJ,2FACC,eCjCA,skBAGC,aACA,8BACA,mBACA,eAGD,4LACC,gBACA,oCACA,8BACA,sNACC,aACA,mBACA,kOACC,aACA,mBACA,uBACA,kBACA,2CACA,iBACA,uCACA,WACA,YAGF,kOACC,eACA,8OACC,qCACA,8CAIH,wMACC,qBACA,YAED,8MACC,eAED,4LACC,SACA,UAID,2FACC,aACA,eACA,oBACA,QACA,6FACC,4BACA,cACA,WACA,YAED,8FACC,SACA,2CACA,YACA,eACA,kBAEA,sCACA,uCACA,gGACC,cAGF,oGACC,qCACA,eACA,sGACC,qBACA,mCAMJ,8FACC,cAsCA,4BApCC,0GACC,aACA,4GACC,6BACA,gBACA,UAED,kHACC,4BAED,kHACC,gBAIH,yGACC,mBAGA,8GACC,yBAKD,gHACC,wBAKD,kIACC,+CCzHH,qKAEC,cAED,yGACC,6CAGD,mLAEC,kBACA,cASA,oBACA,mBACA,+CAVA,+LACC,YACA,4CACA,iBAED,2LACC,gBAOF,6EACC,cACA,mBAGC,oGACC,aACA,kBACA,mBACA,kCACA,aAED,0GACC,WACA,kBACA,WACA,WACA,uCACA,YACA,OAED,kFACC,oBACA,eACA,cAEA,kCACA,gBACA,iBAGD,wFACC,qBACA,oCAGF,4QAEC,sCACA,WACA,cACA,kBACA,8RACC,cACA,iBAED,kSACC,kBACA,aAIF,iHACC,kBACA,aAGD,qFACC,aACA,oBACA,6BACA,+CACA,gBACA,2FACC,mBAIF,2FACC,gBACA,gBACA,mBAGD,mFACC,kBN1EF,oDACC,aAGC,gJACC,eAID,wEACC,gBAED,4EACC,gBACA,iBAIH,oCACC,kCACA,kCACA,aACA,kCACA,sCACC,iBAGD,gDACC,iCACA,aACA,eACA,mBACA,oEACC,cAED,kDACC,gBACA,cAED,yDACC,gBAGF,sCACC,qBACA,iCAGF,qCACC,YACA,aACA,sBACA,kBAED,oCACC,aACA,iDACA,kCACA,WACA,mBACA,uBACA,gBACA,4BOxFD,qCACC,cACC,wBAED,KACC,YACA,aAED,kBACC,aACA,4BACA,8BAEA,6BACC,wBACA,mBACA,aACA,mCACC,aAED,oCACC,aAKD,2CACC,kBAGA,4CACC,aAED,6CACC,aAKJ,kCACC,wBACA,gBACA,aAEA,6CACC,wBACA,gBAGD,2CACC,gBACA,kBACA,aACA,sBACA,sBACA,uBAGF,mCACC,aAGD,gBACC,gBACA,kBACA,gBACA,aACA,yCACA,WACA,uDACA,yBAEA,YACA,sCACC,gBACA,2DACC,4CAKH,iBACC,gBACA,gBACA,aACA,oCACC,aTqCF,4BACC,eAED,4BACC,eAED,4BACC,eAED,4BACC,eAIF,iBACC,GACC,gBAED,IACC,yCAED,KACC","file":"index.css"} \ No newline at end of file diff --git a/docs/v1.0.0-beta01/media/versionsMenu.js b/docs/v1.0.0-beta01/media/versionsMenu.js new file mode 100644 index 00000000..2f3475a6 --- /dev/null +++ b/docs/v1.0.0-beta01/media/versionsMenu.js @@ -0,0 +1,31 @@ +import { DOC_VERSIONS } from '../../versions.js'; + +const select = document.getElementById('plugin-versions-select'); + +DOC_VERSIONS.forEach((version) => { + const option = document.createElement('option'); + option.value = version; + option.innerHTML = version; + select.appendChild(option); +}); + +const locationSplit = location.pathname.split('/'); +const thisVersion = locationSplit.find((path) => + ['stable', 'dev', ...DOC_VERSIONS].includes(path) +); +select.value = DOC_VERSIONS.includes(thisVersion) + ? thisVersion + : DOC_VERSIONS[0]; +select.onchange = () => { + const newPaths = window.location.pathname.replace( + `/${thisVersion}/`, + `/${select.value}/` + ); + const newUrl = new URL(newPaths, window.location.origin); + window.location.assign(newUrl); +}; + +const header = document.querySelector('header.tsd-page-toolbar #tsd-search'); +if (!!header && select.className.includes('title')) { + header.prepend(select); +} diff --git a/docs/versions.js b/docs/versions.js new file mode 100644 index 00000000..102e554f --- /dev/null +++ b/docs/versions.js @@ -0,0 +1,6 @@ +"use strict" +export const DOC_VERSIONS = [ + 'stable', + 'v1.0', + 'dev', +];