@hfd-sdk/keyboard-kit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/ai-lighting/engine.d.ts +9 -0
- package/dist/ai-lighting/index.d.ts +6 -0
- package/dist/ai-lighting/index.es.js +946 -0
- package/dist/ai-lighting/params.d.ts +5 -0
- package/dist/ai-lighting/preset-store.d.ts +17 -0
- package/dist/ai-lighting/validate.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/keyboard-kit.es.js +10 -0
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime-core.es.js +5484 -0
- package/dist/runtime.es.js +44 -0
- package/dist/shared/composables/useKeySampler.d.ts +8 -0
- package/dist/shared/hardware/assert-hfd-device.d.ts +3 -0
- package/dist/shared/hardware/build-music-data.d.ts +4 -0
- package/dist/shared/serialize.d.ts +4 -0
- package/dist/shared/types.d.ts +123 -0
- package/package.json +58 -0
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AiLightingPreset, AiLightingPresetParamValue } from '../shared/types';
|
|
2
|
+
/**
|
|
3
|
+
* 在 Canvas 上运行 AI 灯效预设
|
|
4
|
+
* @param canvas - 目标 Canvas 元素
|
|
5
|
+
* @param preset - 灯效预设对象
|
|
6
|
+
* @param overrideParams - 覆盖默认参数(可选)
|
|
7
|
+
* @returns 停止动画的函数;若 Canvas 2D 上下文获取失败则返回 null
|
|
8
|
+
*/
|
|
9
|
+
export declare function runAiLightingPreset(canvas: HTMLCanvasElement, preset: AiLightingPreset, overrideParams?: Partial<Record<string, AiLightingPresetParamValue>>): (() => void) | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { validatePreset } from './validate';
|
|
2
|
+
export { serializePreset, deserializePreset } from '../shared/serialize';
|
|
3
|
+
export type { AiLightingPreset, AiLightingPresetParam, AiLightingPresetParamValue, AiLightingPresetContext, AiLightingInitOptions, AiLightingPresetState, ParamChangePayload, ImportPresetPayload, KeyboardSyncConfig, KeyboardKeyMeta, KeyboardLayoutState, KeyElementRef, HFDSDKDevice, RgbColor, KeyOffset, KitRef, HfdAiLightingElementInstance, } from '../shared/types';
|
|
4
|
+
export declare const HfdAiLightingElement: CustomElementConstructor;
|
|
5
|
+
export declare const HfdAiLightingKeyboardOverlayElement: CustomElementConstructor;
|
|
6
|
+
export declare function registerAiLightingElements(): void;
|