keyframekit 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/KeyframeKit.min.js +1 -0
- package/dist/KeyframeKit.min.js.map +1 -0
- package/package.json +6 -3
- package/docs/.vitepress/components/Playground/Playground.js +0 -243
- package/docs/.vitepress/components/Playground/Playground.vue +0 -208
- package/docs/.vitepress/components/Playground/defaultExample.js +0 -175
- package/docs/.vitepress/components/Playground/interFont.js +0 -14
- package/docs/.vitepress/components/Playground/themes/githubDark.js +0 -402
- package/docs/.vitepress/components/Playground/themes/githubLight.js +0 -399
- package/docs/.vitepress/components/Playground/themes.js +0 -24
- package/docs/.vitepress/config.ts +0 -136
- package/docs/.vitepress/referenceNavigation.ts +0 -37
- package/docs/.vitepress/theme/base-styles.css +0 -147
- package/docs/.vitepress/theme/env.d.ts +0 -5
- package/docs/.vitepress/theme/index.ts +0 -40
- package/docs/docs/get-started.md +0 -131
- package/docs/docs/index.md +0 -17
- package/docs/docs/public/icon.png +0 -0
- package/docs/docs/public/og-image.png +0 -0
- package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.d.ts +0 -172
- package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.d.ts.map +0 -1
- package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.js +0 -327
- package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.js.map +0 -1
- package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.min.js +0 -5
- package/docs/docs/reference/classes/KeyframeEffectParameters.md +0 -104
- package/docs/docs/reference/classes/ParsedKeyframes.md +0 -58
- package/docs/docs/reference/index.md +0 -20
- package/docs/docs/reference/interfaces/KeyframesFactory.md +0 -189
- package/docs/docs/reference/navigation.json +0 -64
- package/docs/docs/reference/type-aliases/CSSStyleSheetSource.md +0 -13
- package/docs/docs/reference/type-aliases/KeyframeArgument.md +0 -15
- package/docs/docs/reference/type-aliases/ParsedKeyframesRules.md +0 -22
- package/docs/docs/reference/variables/default.md +0 -12
- package/docs/package-lock.json +0 -2321
- package/docs/package.json +0 -22
- package/docs/typedoc/plugin-markdown-mdn-links-fix.js +0 -43
- package/docs/typedoc/plugin-markdown-see-also.js +0 -262
- package/docs/typedoc/plugin-param-names.js +0 -17
- package/docs/typedoc.config.js +0 -81
- package/docs/vercel.json +0 -14
- package/rollup.config.js +0 -42
- package/tsconfig.default.json +0 -44
- package/tsconfig.json +0 -10
package/docs/package.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "module",
|
|
3
|
-
"scripts": {
|
|
4
|
-
"dev": "vitepress dev",
|
|
5
|
-
"build": "vitepress build",
|
|
6
|
-
"preview": "vitepress preview",
|
|
7
|
-
"bump": "npm run reference && npm run playground:bumplib",
|
|
8
|
-
"reference": "typedoc",
|
|
9
|
-
"playground:bumplib": "mkdir -p ./docs/public/playground/KeyframeKit && cp -r ../dist ./docs/public/playground/KeyframeKit/"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"vitepress": "^2.0.0-alpha.16",
|
|
13
|
-
"vue": "^3.5.28",
|
|
14
|
-
"@monaco-editor/loader": "^1.7.0"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"typedoc": "^0.28.17",
|
|
18
|
-
"typedoc-plugin-markdown": "^4.10.0",
|
|
19
|
-
"typedoc-plugin-mdn-links": "^5.1.1",
|
|
20
|
-
"typedoc-plugin-no-inherit": "^1.6.1"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
import { MarkdownThemeContext } from 'typedoc-plugin-markdown';
|
|
4
|
-
import { UnionType } from 'typedoc';
|
|
5
|
-
|
|
6
|
-
/// https://typedoc-plugin-markdown.org/docs/customization#hooks
|
|
7
|
-
/**
|
|
8
|
-
* @param {import('typedoc-plugin-markdown').MarkdownApplication} app
|
|
9
|
-
*/
|
|
10
|
-
export function load(app) {
|
|
11
|
-
|
|
12
|
-
app.renderer.markdownHooks.on('page.begin', (context) => {
|
|
13
|
-
|
|
14
|
-
context.partials.unionType = (model) => { return unionType(context, model) };
|
|
15
|
-
|
|
16
|
-
// console.log(context);
|
|
17
|
-
|
|
18
|
-
return '';
|
|
19
|
-
// return `**Generated using "page.begin" hook**`;
|
|
20
|
-
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/// https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/theme/context/partials/type.union.ts
|
|
26
|
-
/**
|
|
27
|
-
* @param {MarkdownThemeContext} thiss @param {UnionType} model @returns {string}
|
|
28
|
-
*/
|
|
29
|
-
function unionType(
|
|
30
|
-
thiss,
|
|
31
|
-
model,
|
|
32
|
-
) {
|
|
33
|
-
// const useCodeBlocks = thiss.options.getValue('useCodeBlocks');
|
|
34
|
-
const typesOut = model.types.map((unionType) =>
|
|
35
|
-
thiss.partials.someType(unionType, { forceCollapse: true }),
|
|
36
|
-
);
|
|
37
|
-
/* const shouldFormat =
|
|
38
|
-
useCodeBlocks &&
|
|
39
|
-
(typesOut?.join('').length > 70 || typesOut?.join('').includes('\n')); */
|
|
40
|
-
const md = typesOut.join(` \\| `); // typesOut.join(shouldFormat ? `\n \\| ` : ` \\| `);
|
|
41
|
-
// console.log(md);
|
|
42
|
-
return md; // shouldFormat ? `\n \\| ` + md : md;
|
|
43
|
-
}
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
import { MarkdownPageEvent } from 'typedoc-plugin-markdown';
|
|
3
|
-
import { Reflection, ReflectionKind } from 'typedoc';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Recursively collect IDs of all reflections directly referenced by a type node.
|
|
7
|
-
*
|
|
8
|
-
* @param {import('typedoc').SomeType | undefined} type
|
|
9
|
-
* @param {Set<number>} out
|
|
10
|
-
*/
|
|
11
|
-
function collectRefIds(type, out) {
|
|
12
|
-
if (!type) return;
|
|
13
|
-
switch (type.type) {
|
|
14
|
-
case 'reference': {
|
|
15
|
-
const r = type.reflection;
|
|
16
|
-
if (r) out.add(r.id);
|
|
17
|
-
for (const a of type.typeArguments ?? []) collectRefIds(a, out);
|
|
18
|
-
break;
|
|
19
|
-
}
|
|
20
|
-
case 'union':
|
|
21
|
-
case 'intersection':
|
|
22
|
-
for (const t of type.types ?? []) collectRefIds(t, out);
|
|
23
|
-
break;
|
|
24
|
-
case 'array':
|
|
25
|
-
case 'optional':
|
|
26
|
-
case 'rest':
|
|
27
|
-
collectRefIds(type.elementType, out);
|
|
28
|
-
break;
|
|
29
|
-
case 'tuple':
|
|
30
|
-
for (const t of type.elements ?? []) collectRefIds(t, out);
|
|
31
|
-
break;
|
|
32
|
-
case 'namedTupleMember':
|
|
33
|
-
collectRefIds(type.element, out);
|
|
34
|
-
break;
|
|
35
|
-
case 'conditional':
|
|
36
|
-
collectRefIds(type.checkType, out);
|
|
37
|
-
collectRefIds(type.extendsType, out);
|
|
38
|
-
collectRefIds(type.trueType, out);
|
|
39
|
-
collectRefIds(type.falseType, out);
|
|
40
|
-
break;
|
|
41
|
-
case 'typeOperator':
|
|
42
|
-
collectRefIds(type.target, out);
|
|
43
|
-
break;
|
|
44
|
-
case 'mapped':
|
|
45
|
-
collectRefIds(type.parameterType, out);
|
|
46
|
-
collectRefIds(type.templateType, out);
|
|
47
|
-
collectRefIds(type.nameType, out);
|
|
48
|
-
break;
|
|
49
|
-
case 'predicate':
|
|
50
|
-
collectRefIds(type.targetType, out);
|
|
51
|
-
break;
|
|
52
|
-
case 'query':
|
|
53
|
-
collectRefIds(type.queryType, out);
|
|
54
|
-
break;
|
|
55
|
-
case 'indexedAccess':
|
|
56
|
-
collectRefIds(type.objectType, out);
|
|
57
|
-
collectRefIds(type.indexType, out);
|
|
58
|
-
break;
|
|
59
|
-
case 'reflection':
|
|
60
|
-
if (type.declaration) collectRefsInDecl(type.declaration, out);
|
|
61
|
-
break;
|
|
62
|
-
default:
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Collect all referenced reflection IDs within a DeclarationReflection
|
|
69
|
-
* (its own type, signatures, accessors, index signatures, type parameters).
|
|
70
|
-
*
|
|
71
|
-
* @param {import('typedoc').DeclarationReflection} decl
|
|
72
|
-
* @param {Set<number>} out
|
|
73
|
-
*/
|
|
74
|
-
function collectRefsInDecl(decl, out) {
|
|
75
|
-
collectRefIds(decl.type, out);
|
|
76
|
-
|
|
77
|
-
for (const sig of decl.signatures ?? []) {
|
|
78
|
-
collectRefIds(sig.type, out); // return type
|
|
79
|
-
for (const p of sig.parameters ?? []) collectRefIds(p.type, out);
|
|
80
|
-
for (const tp of sig.typeParameters ?? []) {
|
|
81
|
-
collectRefIds(tp.type, out);
|
|
82
|
-
collectRefIds(tp.default, out);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (decl.getSignature) collectRefIds(decl.getSignature.type, out);
|
|
87
|
-
if (decl.setSignature) {
|
|
88
|
-
collectRefIds(decl.setSignature.type, out);
|
|
89
|
-
for (const p of decl.setSignature.parameters ?? []) collectRefIds(p.type, out);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
for (const idx of decl.indexSignatures ?? []) {
|
|
93
|
-
collectRefIds(idx.type, out);
|
|
94
|
-
for (const p of idx.parameters ?? []) collectRefIds(p.type, out);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
for (const tp of decl.typeParameters ?? []) {
|
|
98
|
-
collectRefIds(tp.type, out);
|
|
99
|
-
collectRefIds(tp.default, out);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @typedef {object} SeeAlsoEntry
|
|
105
|
-
* @property {Map<number, Set<import('typedoc').DeclarationReflection>>} reverse
|
|
106
|
-
* Pages/members whose code references the current page's symbol.
|
|
107
|
-
* @property {Map<number, Set<import('typedoc').DeclarationReflection>>} forward
|
|
108
|
-
* Symbols/pages that the current page's code references.
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Build see-also maps with two directions computed in a single pass.
|
|
113
|
-
*
|
|
114
|
-
* For every type reference from referrer R (on page P) to symbol S (on page Q):
|
|
115
|
-
* Reverse — Q's see-also gets R (the referenced type's page links to whoever uses it)
|
|
116
|
-
* Forward — P's see-also gets S (the referrer's page links to the types it uses)
|
|
117
|
-
*
|
|
118
|
-
* @param {import('typedoc').ProjectReflection} project
|
|
119
|
-
* @param {import('typedoc').Router} router
|
|
120
|
-
* @returns {SeeAlsoEntry}
|
|
121
|
-
*/
|
|
122
|
-
function buildSeeAlsoMaps(project, router) {
|
|
123
|
-
/** @type {Map<number, Set<import('typedoc').DeclarationReflection>>} */
|
|
124
|
-
const reverse = new Map();
|
|
125
|
-
/** @type {Map<number, Set<import('typedoc').DeclarationReflection>>} */
|
|
126
|
-
const forward = new Map();
|
|
127
|
-
|
|
128
|
-
/** @type {Map<number, import('typedoc').DeclarationReflection>} */
|
|
129
|
-
const linkTargetMap = new Map();
|
|
130
|
-
/** @type {Map<number, import('typedoc').DeclarationReflection>} */
|
|
131
|
-
const pageOwnerMap = new Map();
|
|
132
|
-
|
|
133
|
-
for (const target of router.getLinkTargets()) {
|
|
134
|
-
if (!(target instanceof Reflection)) continue;
|
|
135
|
-
if (target.isProject()) continue;
|
|
136
|
-
const decl = /** @type {import('typedoc').DeclarationReflection} */ (target);
|
|
137
|
-
linkTargetMap.set(decl.id, decl);
|
|
138
|
-
if (router.hasOwnDocument(target)) {
|
|
139
|
-
pageOwnerMap.set(decl.id, decl);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Walk up to the nearest Declaration with a URL that isn't a TypeLiteral.
|
|
145
|
-
* Skips signatures and TypeLiteral (__type) nodes while keeping methods,
|
|
146
|
-
* properties, constructors, and other user-facing declarations.
|
|
147
|
-
*
|
|
148
|
-
* @param {import('typedoc').Reflection} refl
|
|
149
|
-
* @returns {import('typedoc').DeclarationReflection | undefined}
|
|
150
|
-
*/
|
|
151
|
-
function findLinkTarget(refl) {
|
|
152
|
-
/** @type {import('typedoc').Reflection | undefined} */
|
|
153
|
-
let cursor = refl;
|
|
154
|
-
while (cursor) {
|
|
155
|
-
if (cursor instanceof Reflection && linkTargetMap.has(cursor.id)) {
|
|
156
|
-
if (cursor.isDeclaration() && !cursor.kindOf(ReflectionKind.TypeLiteral)) {
|
|
157
|
-
return linkTargetMap.get(cursor.id);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
cursor = cursor.parent;
|
|
161
|
-
}
|
|
162
|
-
return undefined;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Walk up to the nearest page-owning reflection.
|
|
167
|
-
* @param {import('typedoc').Reflection} refl
|
|
168
|
-
* @returns {import('typedoc').DeclarationReflection | undefined}
|
|
169
|
-
*/
|
|
170
|
-
function findPageOwner(refl) {
|
|
171
|
-
/** @type {import('typedoc').Reflection | undefined} */
|
|
172
|
-
let cursor = refl;
|
|
173
|
-
while (cursor) {
|
|
174
|
-
if (cursor instanceof Reflection && pageOwnerMap.has(cursor.id)) {
|
|
175
|
-
return pageOwnerMap.get(cursor.id);
|
|
176
|
-
}
|
|
177
|
-
cursor = cursor.parent;
|
|
178
|
-
}
|
|
179
|
-
return undefined;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
for (const refl of Object.values(project.reflections)) {
|
|
183
|
-
if (refl.isProject()) continue;
|
|
184
|
-
const decl = /** @type {import('typedoc').DeclarationReflection} */ (refl);
|
|
185
|
-
|
|
186
|
-
const referrer = findLinkTarget(decl);
|
|
187
|
-
if (!referrer || referrer.isProject()) continue;
|
|
188
|
-
const referrerPage = findPageOwner(referrer);
|
|
189
|
-
if (!referrerPage) continue;
|
|
190
|
-
|
|
191
|
-
/** @type {Set<number>} */
|
|
192
|
-
const refIds = new Set();
|
|
193
|
-
collectRefsInDecl(decl, refIds);
|
|
194
|
-
|
|
195
|
-
for (const refId of refIds) {
|
|
196
|
-
const refRefl = project.getReflectionById(refId);
|
|
197
|
-
if (!refRefl) continue;
|
|
198
|
-
const refTarget = findLinkTarget(refRefl);
|
|
199
|
-
if (!refTarget) continue;
|
|
200
|
-
const refPage = findPageOwner(refTarget);
|
|
201
|
-
if (!refPage || refPage.id === referrerPage.id) continue;
|
|
202
|
-
|
|
203
|
-
if (!reverse.has(refPage.id)) reverse.set(refPage.id, new Set());
|
|
204
|
-
reverse.get(refPage.id)?.add(referrer);
|
|
205
|
-
|
|
206
|
-
if (!forward.has(referrerPage.id)) forward.set(referrerPage.id, new Set());
|
|
207
|
-
forward.get(referrerPage.id)?.add(refTarget);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
return { reverse, forward };
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// ─── Plugin entry point ───────────────────────────────────────────────────────
|
|
215
|
-
|
|
216
|
-
/** @param {import('typedoc-plugin-markdown').MarkdownApplication} app */
|
|
217
|
-
export function load(app) {
|
|
218
|
-
|
|
219
|
-
/** @type {SeeAlsoEntry} */
|
|
220
|
-
let seeAlso = { reverse: new Map(), forward: new Map() };
|
|
221
|
-
|
|
222
|
-
app.renderer.preMarkdownRenderAsyncJobs.push(async (event) => {
|
|
223
|
-
const router = app.renderer.router;
|
|
224
|
-
if (!router || !event.project) return;
|
|
225
|
-
seeAlso = buildSeeAlsoMaps(event.project, router);
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
app.renderer.markdownHooks.on('page.end', ({ page, router }) => {
|
|
229
|
-
if (!page.isReflectionEvent()) return '';
|
|
230
|
-
|
|
231
|
-
const model = /** @type {import('typedoc').DeclarationReflection} */ (page.model);
|
|
232
|
-
const reverseRefs = seeAlso.reverse.get(model.id);
|
|
233
|
-
const forwardRefs = seeAlso.forward.get(model.id);
|
|
234
|
-
if (!reverseRefs?.size && !forwardRefs?.size) return '';
|
|
235
|
-
|
|
236
|
-
const byName = (/** @type {import('typedoc').DeclarationReflection} */ a, /** @type {import('typedoc').DeclarationReflection} */ b) =>
|
|
237
|
-
a.getFriendlyFullName().localeCompare(b.getFriendlyFullName());
|
|
238
|
-
|
|
239
|
-
const seen = new Set();
|
|
240
|
-
let linksText = '';
|
|
241
|
-
|
|
242
|
-
/** @param {import('typedoc').DeclarationReflection} ref */
|
|
243
|
-
const formatLink = (ref) => {
|
|
244
|
-
if (ref.id === model.id || seen.has(ref.id)) return;
|
|
245
|
-
seen.add(ref.id);
|
|
246
|
-
const url = router.relativeUrl(model, ref);
|
|
247
|
-
linksText += `\n- [${ref.getFriendlyFullName()}](${url})`;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
if (forwardRefs) {
|
|
251
|
-
linksText += '\n### Referenced Here';
|
|
252
|
-
[...forwardRefs].sort(byName).forEach(formatLink);
|
|
253
|
-
}
|
|
254
|
-
if (reverseRefs) {
|
|
255
|
-
linksText += '\n### References This';
|
|
256
|
-
[...reverseRefs].sort(byName).forEach(formatLink);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if (!linksText) return '';
|
|
260
|
-
return `\n## See Also\n${linksText}\n`;
|
|
261
|
-
});
|
|
262
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
import * as td from "typedoc";
|
|
4
|
-
|
|
5
|
-
/** @param {td.Application} app */
|
|
6
|
-
export function load(app) {
|
|
7
|
-
app.converter.on(td.Converter.EVENT_CREATE_SIGNATURE, (context, sig) => {
|
|
8
|
-
if (!sig.parameters) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
for (const [i, param] of sig.parameters.entries()) {
|
|
12
|
-
if (param.name === '__namedParameters') {
|
|
13
|
-
param.name = 'obj';
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
package/docs/typedoc.config.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @type {import('typedoc').TypeDocOptions & import('typedoc-plugin-markdown').PluginOptions & { inheritNone?: boolean }}
|
|
5
|
-
*/
|
|
6
|
-
export default {
|
|
7
|
-
"name": "KeyframeKit",
|
|
8
|
-
|
|
9
|
-
"plugin": [
|
|
10
|
-
"typedoc-plugin-markdown",
|
|
11
|
-
"typedoc-plugin-mdn-links",
|
|
12
|
-
"typedoc-plugin-no-inherit",
|
|
13
|
-
"./typedoc/plugin-param-names.js",
|
|
14
|
-
"./typedoc/plugin-markdown-mdn-links-fix.js",
|
|
15
|
-
"./typedoc/plugin-markdown-see-also.js",
|
|
16
|
-
//"typedoc-plugin-inline-sources",
|
|
17
|
-
//"typedoc-plugin-remark",
|
|
18
|
-
//"typedoc-github-wiki-theme",
|
|
19
|
-
//"typedoc-plugin-missing-exports"
|
|
20
|
-
],
|
|
21
|
-
|
|
22
|
-
"entryPoints": ["../src/KeyframeKit.ts"],
|
|
23
|
-
"out": "docs/reference",
|
|
24
|
-
|
|
25
|
-
"validation": {
|
|
26
|
-
"notExported": false
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
//"excludeExternals": true,
|
|
30
|
-
//"placeInternalsInOwningModule": true,
|
|
31
|
-
|
|
32
|
-
"disableSources": true,
|
|
33
|
-
|
|
34
|
-
//"flattenOutputFiles": false,
|
|
35
|
-
|
|
36
|
-
"router": "member", // "module"
|
|
37
|
-
|
|
38
|
-
"readme": "none",
|
|
39
|
-
|
|
40
|
-
//"sidebar": {
|
|
41
|
-
//"autoConfiguration": false,
|
|
42
|
-
//"heading": "[KeyframeKit](../wiki)"
|
|
43
|
-
//},
|
|
44
|
-
|
|
45
|
-
/* "remarkPlugins": [
|
|
46
|
-
["remark-insert-headings", { "text": "Contents", "minHeadingCount": 1 }],
|
|
47
|
-
["remark-toc", { "maxDepth": 3, "tight": true }],
|
|
48
|
-
//["remark-collapse", {"test": "Contents"}]
|
|
49
|
-
], */
|
|
50
|
-
|
|
51
|
-
//"modulesFileName": "index", // KeyframeKit
|
|
52
|
-
|
|
53
|
-
"entryFileName": "index",
|
|
54
|
-
|
|
55
|
-
"expandParameters": true,
|
|
56
|
-
"expandObjects": true,
|
|
57
|
-
|
|
58
|
-
//"parametersFormat": "htmlTable",
|
|
59
|
-
|
|
60
|
-
"useCodeBlocks": true,
|
|
61
|
-
|
|
62
|
-
//"hidePageTitle": true,
|
|
63
|
-
"hidePageHeader": true,
|
|
64
|
-
|
|
65
|
-
//"namedParamName": "obj"
|
|
66
|
-
|
|
67
|
-
"navigationJson": "docs/reference/navigation.json",
|
|
68
|
-
"navigation": {
|
|
69
|
-
"includeCategories": true,
|
|
70
|
-
"includeGroups": true,
|
|
71
|
-
"includeFolders": true,
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
"inheritNone": true,
|
|
75
|
-
|
|
76
|
-
//"pageTitleTemplates": {
|
|
77
|
-
//"index": "Reference"
|
|
78
|
-
//},
|
|
79
|
-
|
|
80
|
-
//"hideBreadcrumbs": true
|
|
81
|
-
};
|
package/docs/vercel.json
DELETED
package/rollup.config.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import typescript from '@rollup/plugin-typescript';
|
|
2
|
-
import terser from '@rollup/plugin-terser';
|
|
3
|
-
|
|
4
|
-
import MagicString from 'magic-string';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @type {import('rollup').RollupOptions}
|
|
8
|
-
*/
|
|
9
|
-
export default {
|
|
10
|
-
input: {
|
|
11
|
-
'KeyframeKit.min.js': 'src/KeyframeKit.ts'
|
|
12
|
-
},
|
|
13
|
-
output: {
|
|
14
|
-
dir: 'dist',
|
|
15
|
-
entryFileNames: '[name]'
|
|
16
|
-
},
|
|
17
|
-
plugins: [typescript({ sourceMap: false }), terser(), header()]
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
function header() {
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
|
|
24
|
-
renderChunk( code ) {
|
|
25
|
-
|
|
26
|
-
code = new MagicString( code );
|
|
27
|
-
|
|
28
|
-
code.prepend( `/*
|
|
29
|
-
* KeyframeKit
|
|
30
|
-
* MIT License
|
|
31
|
-
*/\n` );
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
code: code.toString(),
|
|
35
|
-
map: code.generateMap()
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
}
|
package/tsconfig.default.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Visit https://aka.ms/tsconfig to read more about this file
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
// File Layout
|
|
5
|
-
// "rootDir": "./src",
|
|
6
|
-
// "outDir": "./dist",
|
|
7
|
-
|
|
8
|
-
// Environment Settings
|
|
9
|
-
// See also https://aka.ms/tsconfig/module
|
|
10
|
-
"module": "nodenext",
|
|
11
|
-
"target": "esnext",
|
|
12
|
-
"types": [],
|
|
13
|
-
// For nodejs:
|
|
14
|
-
// "lib": ["esnext"],
|
|
15
|
-
// "types": ["node"],
|
|
16
|
-
// and npm install -D @types/node
|
|
17
|
-
|
|
18
|
-
// Other Outputs
|
|
19
|
-
"sourceMap": true,
|
|
20
|
-
"declaration": true,
|
|
21
|
-
"declarationMap": true,
|
|
22
|
-
|
|
23
|
-
// Stricter Typechecking Options
|
|
24
|
-
"noUncheckedIndexedAccess": true,
|
|
25
|
-
"exactOptionalPropertyTypes": true,
|
|
26
|
-
|
|
27
|
-
// Style Options
|
|
28
|
-
// "noImplicitReturns": true,
|
|
29
|
-
// "noImplicitOverride": true,
|
|
30
|
-
// "noUnusedLocals": true,
|
|
31
|
-
// "noUnusedParameters": true,
|
|
32
|
-
// "noFallthroughCasesInSwitch": true,
|
|
33
|
-
// "noPropertyAccessFromIndexSignature": true,
|
|
34
|
-
|
|
35
|
-
// Recommended Options
|
|
36
|
-
"strict": true,
|
|
37
|
-
"jsx": "react-jsx",
|
|
38
|
-
"verbatimModuleSyntax": true,
|
|
39
|
-
"isolatedModules": true,
|
|
40
|
-
"noUncheckedSideEffectImports": true,
|
|
41
|
-
"moduleDetection": "force",
|
|
42
|
-
"skipLibCheck": true,
|
|
43
|
-
}
|
|
44
|
-
}
|