@laplace.live/pixijs-live2d 0.2.0 → 0.3.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/dist/extra.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Graphics, Renderer, Text } from "pixi.js";
2
2
  //#region src/tools/HitAreaFrames.d.ts
3
- declare class HitAreaFrames extends Graphics {
3
+ export declare class HitAreaFrames extends Graphics {
4
4
  initialized: boolean;
5
5
  texts: Text[];
6
6
  strokeWidth: number;
@@ -12,5 +12,4 @@ declare class HitAreaFrames extends Graphics {
12
12
  protected _render(renderer: Renderer): void;
13
13
  }
14
14
  //#endregion
15
- export { HitAreaFrames };
16
15
  //# sourceMappingURL=extra.d.ts.map
package/dist/index.d.ts CHANGED
@@ -103,17 +103,17 @@ declare class CubismIdManager {
103
103
  }
104
104
  //#endregion
105
105
  //#region vendor/cubism/src/live2dcubismframework.d.ts
106
- declare function strtod(s: string, endPtr: string[]): number;
106
+ export declare function strtod(s: string, endPtr: string[]): number;
107
107
  /**
108
108
  * Framework内で使う定数の宣言
109
109
  */
110
- declare const Constant: Readonly<Record<string, number>>;
111
- declare function csmDelete<T>(address: T): void;
110
+ export declare const Constant: Readonly<Record<string, number>>;
111
+ export declare function csmDelete<T>(address: T): void;
112
112
  /**
113
113
  * Live2D Cubism SDK Original Workflow SDKのエントリポイント
114
114
  * 利用開始時はCubismFramework.initialize()を呼び、CubismFramework.dispose()で終了する。
115
115
  */
116
- declare class CubismFramework {
116
+ export declare class CubismFramework {
117
117
  /**
118
118
  * Cubism FrameworkのAPIを使用可能にする。
119
119
  * APIを実行する前に必ずこの関数を実行すること。
@@ -178,14 +178,14 @@ declare class CubismFramework {
178
178
  */
179
179
  private constructor();
180
180
  }
181
- declare class Option {
181
+ export declare class Option {
182
182
  logFunction: Live2DCubismCore.csmLogFunction;
183
183
  loggingLevel: LogLevel;
184
184
  }
185
185
  /**
186
186
  * ログ出力のレベル
187
187
  */
188
- declare enum LogLevel {
188
+ export declare enum LogLevel {
189
189
  LogLevel_Verbose = 0 // 詳細ログ
190
190
  ,
191
191
  LogLevel_Debug = 1 // デバッグログ
@@ -200,8 +200,8 @@ declare enum LogLevel {
200
200
  }
201
201
  //#endregion
202
202
  //#region src/cubism-common/constants.d.ts
203
- declare const LOGICAL_WIDTH = 2;
204
- declare const LOGICAL_HEIGHT = 2;
203
+ export declare const LOGICAL_WIDTH = 2;
204
+ export declare const LOGICAL_HEIGHT = 2;
205
205
  //#endregion
206
206
  //#region src/types/helpers.d.ts
207
207
  type JSONObject = object;
@@ -211,7 +211,7 @@ type Mutable<T> = { -readonly [P in keyof T]: T[P]; };
211
211
  /**
212
212
  * Parses, and provides access to the settings JSON.
213
213
  */
214
- declare abstract class ModelSettings {
214
+ export declare abstract class ModelSettings {
215
215
  json: JSONObject;
216
216
  /**
217
217
  * The model's name, typically used for displaying or logging. By default it's inferred from
@@ -2724,7 +2724,7 @@ interface CommonLayout {
2724
2724
  /**
2725
2725
  * Indicates the motion priority.
2726
2726
  */
2727
- declare enum MotionPriority {
2727
+ export declare enum MotionPriority {
2728
2728
  /** States that the model is currently not playing any motion. This priority cannot be applied to a motion. */
2729
2729
  NONE = 0,
2730
2730
  /** Low priority, used when starting idle motions automatically. */
@@ -2737,7 +2737,7 @@ declare enum MotionPriority {
2737
2737
  /**
2738
2738
  * Handles the state of a MotionManager.
2739
2739
  */
2740
- declare class MotionState {
2740
+ export declare class MotionState {
2741
2741
  /**
2742
2742
  * Tag for logging.
2743
2743
  */
@@ -2937,7 +2937,7 @@ declare abstract class ParallelMotionManager<Motion = never, MotionSpec = never>
2937
2937
  /**
2938
2938
  * Interpolates the transition of focus position.
2939
2939
  */
2940
- declare class FocusController {
2940
+ export declare class FocusController {
2941
2941
  /** The focus position. */
2942
2942
  targetX: number;
2943
2943
  /** The focus position. */
@@ -2968,19 +2968,19 @@ declare class FocusController {
2968
2968
  /**
2969
2969
  * Common hit area definition shared between all Cubism versions.
2970
2970
  */
2971
- interface CommonHitArea {
2971
+ export interface CommonHitArea {
2972
2972
  id: string;
2973
2973
  name: string;
2974
2974
  index: number;
2975
2975
  }
2976
- declare function normalizeHitAreaDefs(raw: unknown, resolveIndex: (id: string) => number): CommonHitArea[];
2977
- interface Bounds {
2976
+ export declare function normalizeHitAreaDefs(raw: unknown, resolveIndex: (id: string) => number): CommonHitArea[];
2977
+ export interface Bounds {
2978
2978
  x: number;
2979
2979
  y: number;
2980
2980
  width: number;
2981
2981
  height: number;
2982
2982
  }
2983
- interface InternalModelOptions extends MotionManagerOptions {
2983
+ export interface InternalModelOptions extends MotionManagerOptions {
2984
2984
  /**
2985
2985
  * Define natural movements depth (0.0-1.0).
2986
2986
  * @default 1.0
@@ -3012,7 +3012,7 @@ interface InternalModelOptions extends MotionManagerOptions {
3012
3012
  * A wrapper that manages the states of a Live2D core model, and delegates all operations to it.
3013
3013
  * @emits {@link InternalModelEvents}
3014
3014
  */
3015
- declare abstract class InternalModel extends EventEmitter {
3015
+ export declare abstract class InternalModel extends EventEmitter {
3016
3016
  /**
3017
3017
  * The managed Live2D core model.
3018
3018
  */
@@ -3198,7 +3198,7 @@ declare abstract class InternalModel extends EventEmitter {
3198
3198
  }
3199
3199
  //#endregion
3200
3200
  //#region src/cubism-common/MotionManager.d.ts
3201
- interface MotionManagerOptions {
3201
+ export interface MotionManagerOptions {
3202
3202
  /**
3203
3203
  * How to preload the motions.
3204
3204
  * @default {@link MotionPreloadStrategy.NONE}
@@ -3215,7 +3215,7 @@ interface MotionManagerOptions {
3215
3215
  */
3216
3216
  checkMotionConsistency?: boolean;
3217
3217
  }
3218
- interface MotionStartOptions {
3218
+ export interface MotionStartOptions {
3219
3219
  sound?: string;
3220
3220
  volume?: number;
3221
3221
  expression?: number | string;
@@ -3228,11 +3228,11 @@ interface MotionStartOptions {
3228
3228
  */
3229
3229
  loop?: boolean;
3230
3230
  }
3231
- type MotionStartRandomOptions = Omit<MotionStartOptions, 'ignoreParamIds'>;
3231
+ export type MotionStartRandomOptions = Omit<MotionStartOptions, 'ignoreParamIds'>;
3232
3232
  /**
3233
3233
  * Indicates how the motions will be preloaded.
3234
3234
  */
3235
- declare enum MotionPreloadStrategy {
3235
+ export declare enum MotionPreloadStrategy {
3236
3236
  /** Preload all the motions. */
3237
3237
  ALL = "ALL",
3238
3238
  /** Preload only the idle motions. */
@@ -3245,7 +3245,7 @@ declare enum MotionPreloadStrategy {
3245
3245
  * Responsible for loading, playing, and managing motion states and audio.
3246
3246
  * @emits {@link MotionManagerEvents}
3247
3247
  */
3248
- declare abstract class MotionManager<Motion = unknown, MotionSpec = unknown> extends EventEmitter {
3248
+ export declare abstract class MotionManager<Motion = unknown, MotionSpec = unknown> extends EventEmitter {
3249
3249
  /**
3250
3250
  * Tag for logging.
3251
3251
  * @type {string}
@@ -3530,7 +3530,7 @@ declare abstract class MotionManager<Motion = unknown, MotionSpec = unknown> ext
3530
3530
  * any number can be active at once, each fading in/out on its own.
3531
3531
  * @emits {@link ExpressionManagerEvents}
3532
3532
  */
3533
- declare abstract class ExpressionManager<Expression = unknown, ExpressionSpec = unknown> extends EventEmitter<keyof ExpressionManagerEvents> {
3533
+ export declare abstract class ExpressionManager<Expression = unknown, ExpressionSpec = unknown> extends EventEmitter<keyof ExpressionManagerEvents> {
3534
3534
  /**
3535
3535
  * Indicates the content type used when loading expressions.
3536
3536
  * @default "json"
@@ -3693,11 +3693,11 @@ declare abstract class ExpressionManager<Expression = unknown, ExpressionSpec =
3693
3693
  }
3694
3694
  //#endregion
3695
3695
  //#region src/cubism-common/SoundManager.d.ts
3696
- declare const VOLUME = 0.5;
3696
+ export declare const VOLUME = 0.5;
3697
3697
  /**
3698
3698
  * Manages all the sounds.
3699
3699
  */
3700
- declare class SoundManager {
3700
+ export declare class SoundManager {
3701
3701
  /**
3702
3702
  * Audio elements playing or pending to play. Finished audios will be removed automatically.
3703
3703
  */
@@ -3873,7 +3873,7 @@ declare const CSM_LOG_LEVEL: number;
3873
3873
  /**
3874
3874
  * Global configs.
3875
3875
  */
3876
- declare const config: {
3876
+ export declare const config: {
3877
3877
  LOG_LEVEL_VERBOSE: number;
3878
3878
  LOG_LEVEL_WARNING: number;
3879
3879
  LOG_LEVEL_ERROR: number;
@@ -4020,7 +4020,7 @@ declare module '@/cubism-common/ModelSettings' {
4020
4020
  _objectURL?: string;
4021
4021
  }
4022
4022
  }
4023
- type ExtendedFileList = File[] & {
4023
+ export type ExtendedFileList = File[] & {
4024
4024
  settings?: ModelSettings;
4025
4025
  };
4026
4026
  /**
@@ -4033,7 +4033,7 @@ type ExtendedFileList = File[] & {
4033
4033
  * Though named as a "Loader", this class has nothing to do with Live2DLoader,
4034
4034
  * it only contains a middleware for the Live2DFactory.
4035
4035
  */
4036
- declare class FileLoader {
4036
+ export declare class FileLoader {
4037
4037
  static live2dFactory?: typeof Live2DFactory;
4038
4038
  /**
4039
4039
  * Stores all the object URLs of uploaded files.
@@ -4139,10 +4139,10 @@ declare class Automator {
4139
4139
  /**
4140
4140
  * Useless class. May be useful in the future.
4141
4141
  */
4142
- declare class Live2DTransform extends Transform {}
4142
+ export declare class Live2DTransform extends Transform {}
4143
4143
  //#endregion
4144
4144
  //#region src/Live2DModel.d.ts
4145
- interface Live2DModelOptions extends InternalModelOptions, AutomatorOptions {
4145
+ export interface Live2DModelOptions extends InternalModelOptions, AutomatorOptions {
4146
4146
  /**
4147
4147
  * Defines which bounds are used to resolve the normalized {@link Live2DModel.anchor}.
4148
4148
  * `'canvas'` preserves the historical model-canvas behavior, while `'drawable'`
@@ -4159,7 +4159,7 @@ interface Live2DModelOptions extends InternalModelOptions, AutomatorOptions {
4159
4159
  */
4160
4160
  textureOptions?: Live2DTextureSourceOptions;
4161
4161
  }
4162
- type Live2DConstructor = {
4162
+ export type Live2DConstructor = {
4163
4163
  new (options?: Live2DModelOptions): Live2DModel;
4164
4164
  };
4165
4165
  type Live2DPrepareInstruction = {
@@ -4200,7 +4200,7 @@ declare class Live2DPipe {
4200
4200
  * extensions.add(Live2DPlugin)
4201
4201
  * ```
4202
4202
  */
4203
- declare const Live2DPlugin: typeof Live2DPipe;
4203
+ export declare const Live2DPlugin: typeof Live2DPipe;
4204
4204
  /**
4205
4205
  * A wrapper that allows the Live2D model to be used as a DisplayObject in PixiJS.
4206
4206
  *
@@ -4210,7 +4210,7 @@ declare const Live2DPlugin: typeof Live2DPipe;
4210
4210
  * ```
4211
4211
  * @emits {@link Live2DModelEvents}
4212
4212
  */
4213
- declare class Live2DModel<IM extends InternalModel = InternalModel> extends Container {
4213
+ export declare class Live2DModel<IM extends InternalModel = InternalModel> extends Container {
4214
4214
  /** @internal */
4215
4215
  renderPipeId: string;
4216
4216
  /** @internal */
@@ -4521,7 +4521,7 @@ declare class Live2DModel<IM extends InternalModel = InternalModel> extends Cont
4521
4521
  }
4522
4522
  //#endregion
4523
4523
  //#region src/factory/Live2DFactory.d.ts
4524
- interface Live2DFactoryOptions extends Live2DModelOptions {
4524
+ export interface Live2DFactoryOptions extends Live2DModelOptions {
4525
4525
  /**
4526
4526
  * Whether to check the consistency of the moc file. It's an internal
4527
4527
  * function of Cubism core and only available since Cubism 4 R7.
@@ -4560,7 +4560,7 @@ interface Live2DFactoryOptions extends Live2DModelOptions {
4560
4560
  /**
4561
4561
  * The context transferred through the model creation middlewares.
4562
4562
  */
4563
- interface Live2DFactoryContext {
4563
+ export interface Live2DFactoryContext {
4564
4564
  source: any;
4565
4565
  options: Live2DFactoryOptions;
4566
4566
  live2dModel: Live2DModel;
@@ -4570,7 +4570,7 @@ interface Live2DFactoryContext {
4570
4570
  /**
4571
4571
  * Represents a Cubism version.
4572
4572
  */
4573
- interface Live2DRuntime {
4573
+ export interface Live2DRuntime {
4574
4574
  /**
4575
4575
  * The version number. Higher version takes priority when matching the runtime.
4576
4576
  */
@@ -4631,7 +4631,7 @@ interface Live2DRuntime {
4631
4631
  * - Motion loading: implements the load method of MotionManager.
4632
4632
  * - Expression loading: implements the load method of ExpressionManager.
4633
4633
  */
4634
- declare class Live2DFactory {
4634
+ export declare class Live2DFactory {
4635
4635
  /**
4636
4636
  * All registered runtimes, sorted by versions in descending order.
4637
4637
  */
@@ -4695,11 +4695,11 @@ declare class Live2DFactory {
4695
4695
  }
4696
4696
  //#endregion
4697
4697
  //#region src/factory/Live2DLoader.d.ts
4698
- type Live2DLoaderTarget = Live2DModel | InternalModel | MotionManager | ExpressionManager;
4698
+ export type Live2DLoaderTarget = Live2DModel | InternalModel | MotionManager | ExpressionManager;
4699
4699
  /**
4700
4700
  * The context transferred through Live2DLoader middlewares.
4701
4701
  */
4702
- interface Live2DLoaderContext {
4702
+ export interface Live2DLoaderContext {
4703
4703
  /** The XHR's response type. */
4704
4704
  type: XMLHttpRequestResponseType;
4705
4705
  /** Will be resolved by {@link ModelSettings.resolveURL} if a ModelSettings is provided. */
@@ -4714,7 +4714,7 @@ interface Live2DLoaderContext {
4714
4714
  /** Loaded data. */
4715
4715
  result?: unknown;
4716
4716
  }
4717
- declare class Live2DLoader {
4717
+ export declare class Live2DLoader {
4718
4718
  static middlewares: Middleware<Live2DLoaderContext>[];
4719
4719
  /**
4720
4720
  * Loads a resource.
@@ -4732,7 +4732,7 @@ declare class Live2DLoader {
4732
4732
  * - `status` - The HTTP status.
4733
4733
  * - `aborted` - True if the error is caused by aborting the XHR.
4734
4734
  */
4735
- declare class XHRLoader {
4735
+ export declare class XHRLoader {
4736
4736
  /**
4737
4737
  * All the created XHRs, keyed by their owners respectively.
4738
4738
  */
@@ -4768,7 +4768,7 @@ declare class XHRLoader {
4768
4768
  /**
4769
4769
  * Remove an element from array.
4770
4770
  */
4771
- declare function remove<T>(array: T[], item: T): void;
4771
+ export declare function remove<T>(array: T[], item: T): void;
4772
4772
  //#endregion
4773
4773
  //#region src/utils/log.d.ts
4774
4774
  /**
@@ -4784,7 +4784,7 @@ declare function remove<T>(array: T[], item: T): void;
4784
4784
  * };
4785
4785
  * ```
4786
4786
  */
4787
- declare const logger: {
4787
+ export declare const logger: {
4788
4788
  log(tag: string, ...messages: unknown[]): void;
4789
4789
  warn(tag: string, ...messages: unknown[]): void;
4790
4790
  error(tag: string, ...messages: unknown[]): void;
@@ -4795,9 +4795,9 @@ declare const logger: {
4795
4795
  * These functions can be slightly faster than the ones in Lodash.
4796
4796
  * @packageDocumentation
4797
4797
  */
4798
- declare function clamp(num: number, lower: number, upper: number): number;
4799
- declare function rand(min: number, max: number): number;
4800
- declare function MBToByte(value: number): number;
4798
+ export declare function clamp(num: number, lower: number, upper: number): number;
4799
+ export declare function rand(min: number, max: number): number;
4800
+ export declare function MBToByte(value: number): number;
4801
4801
  //#endregion
4802
4802
  //#region src/utils/obj.d.ts
4803
4803
  /**
@@ -4808,7 +4808,7 @@ declare function MBToByte(value: number): number;
4808
4808
  * @param fromKey - Key of the property in source object.
4809
4809
  * @param toKey - Key of the property in destination object.
4810
4810
  */
4811
- declare function copyProperty<From, FromKey extends keyof From, ToKey extends keyof any, To extends Partial<Record<ToKey, From[FromKey]>>>(type: string, from: From, to: To, fromKey: FromKey, toKey: ToKey): void;
4811
+ export declare function copyProperty<From, FromKey extends keyof From, ToKey extends keyof any, To extends Partial<Record<ToKey, From[FromKey]>>>(type: string, from: From, to: To, fromKey: FromKey, toKey: ToKey): void;
4812
4812
  /**
4813
4813
  * Copies an array at `key`, filtering the items that match the `type`.
4814
4814
  * @param type - Type expected to match `typeof` on the items.
@@ -4817,11 +4817,11 @@ declare function copyProperty<From, FromKey extends keyof From, ToKey extends ke
4817
4817
  * @param fromKey - Key of the array property in source object.
4818
4818
  * @param toKey - Key of the array property in destination object.
4819
4819
  */
4820
- declare function copyArray<FromKey extends keyof any, From extends Partial<Record<FromKey, any[]>>, ToKey extends keyof any, To extends Partial<Record<ToKey, any[]>>>(type: string, from: From, to: To, fromKey: FromKey, toKey: ToKey): void;
4820
+ export declare function copyArray<FromKey extends keyof any, From extends Partial<Record<FromKey, any[]>>, ToKey extends keyof any, To extends Partial<Record<ToKey, any[]>>>(type: string, from: From, to: To, fromKey: FromKey, toKey: ToKey): void;
4821
4821
  /**
4822
4822
  * @see {@link https://www.typescriptlang.org/docs/handbook/mixins.html}
4823
4823
  */
4824
- declare function applyMixins(derivedCtor: new (...args: any[]) => any, baseCtors: Array<new (...args: any[]) => any>): void;
4824
+ export declare function applyMixins(derivedCtor: new (...args: any[]) => any, baseCtors: Array<new (...args: any[]) => any>): void;
4825
4825
  //#endregion
4826
4826
  //#region src/utils/string.d.ts
4827
4827
  /**
@@ -4829,15 +4829,16 @@ declare function applyMixins(derivedCtor: new (...args: any[]) => any, baseCtors
4829
4829
  * @param url - URL of a file.
4830
4830
  * @return Name of the parent folder, or the file itself if it has no parent folder.
4831
4831
  */
4832
- declare function folderName(url: string): string;
4832
+ export declare function folderName(url: string): string;
4833
4833
  //#endregion
4834
4834
  //#region src/utils/url.d.ts
4835
4835
  /**
4836
4836
  * Resolves a path/URL against a base string without relying on Node's `url` module.
4837
4837
  */
4838
- declare function resolveURL(base: string, path: string): string;
4839
- //#endregion
4840
- //#region src/types/cubism-shim.d.ts
4838
+ export declare function resolveURL(base: string, path: string): string;
4839
+ declare namespace cubism_shim_d_exports {
4840
+ export { Expression, FileReferences, Group, HitArea, ModelJSON, Motion };
4841
+ }
4841
4842
  interface Motion {
4842
4843
  File: string;
4843
4844
  FadeInTime?: number;
@@ -5710,8 +5711,8 @@ declare class CubismModelSettingJson extends ICubismModelSetting {
5710
5711
  //#endregion
5711
5712
  //#region src/cubism/CubismModelSettings.d.ts
5712
5713
  type CubismModelSettingJsonMixin = Omit<CubismModelSettingJson, 'name'>;
5713
- interface CubismModelSettings extends CubismModelSettingJsonMixin {}
5714
- declare class CubismModelSettings extends ModelSettings {
5714
+ export interface CubismModelSettings extends CubismModelSettingJsonMixin {}
5715
+ export declare class CubismModelSettings extends ModelSettings {
5715
5716
  json: ModelJSON;
5716
5717
  moc: string;
5717
5718
  textures: string[];
@@ -5736,7 +5737,7 @@ declare class CubismModelSettings extends ModelSettings {
5736
5737
  }
5737
5738
  //#endregion
5738
5739
  //#region src/cubism/CubismExpressionManager.d.ts
5739
- declare class CubismExpressionManager extends ExpressionManager<CubismExpressionMotion, Expression> {
5740
+ export declare class CubismExpressionManager extends ExpressionManager<CubismExpressionMotion, Expression> {
5740
5741
  readonly expressionDataType: "arraybuffer";
5741
5742
  readonly definitions: Expression[];
5742
5743
  /** Active fade entries in activation order; deactivated ones stay until fully faded out. */
@@ -6903,7 +6904,7 @@ declare class CubismRenderer_WebGL extends CubismRenderer {
6903
6904
  }
6904
6905
  //#endregion
6905
6906
  //#region src/cubism/CubismMotionManager.d.ts
6906
- declare class CubismMotionManager extends MotionManager<CubismMotion, Motion> {
6907
+ export declare class CubismMotionManager extends MotionManager<CubismMotion, Motion> {
6907
6908
  readonly definitions: Partial<Record<string, Motion[]>>;
6908
6909
  readonly groups: {
6909
6910
  readonly idle: "Idle";
@@ -6932,7 +6933,7 @@ declare class CubismMotionManager extends MotionManager<CubismMotion, Motion> {
6932
6933
  }
6933
6934
  //#endregion
6934
6935
  //#region src/cubism/CubismParallelMotionManager.d.ts
6935
- declare class CubismParallelMotionManager extends ParallelMotionManager<CubismMotion, Motion> {
6936
+ export declare class CubismParallelMotionManager extends ParallelMotionManager<CubismMotion, Motion> {
6936
6937
  readonly queueManager: CubismMotionQueueManager;
6937
6938
  readonly settings: CubismModelSettings;
6938
6939
  constructor(parent: CubismInternalModel);
@@ -6947,7 +6948,7 @@ declare class CubismParallelMotionManager extends ParallelMotionManager<CubismMo
6947
6948
  }
6948
6949
  //#endregion
6949
6950
  //#region src/cubism/CubismInternalModel.d.ts
6950
- declare class CubismInternalModel extends InternalModel {
6951
+ export declare class CubismInternalModel extends InternalModel {
6951
6952
  settings: CubismModelSettings;
6952
6953
  options: InternalModelOptions;
6953
6954
  coreModel: CubismModel;
@@ -7022,20 +7023,20 @@ interface CubismConfig {
7022
7023
  /**
7023
7024
  * Configures global Cubism startup settings.
7024
7025
  */
7025
- declare function configureCubismSDK(config?: CubismConfig): void;
7026
+ export declare function configureCubismSDK(config?: CubismConfig): void;
7026
7027
  /**
7027
7028
  * Promises that the Cubism framework is ready to work.
7028
7029
  * @return Promise that resolves if the startup has succeeded, rejects if failed.
7029
7030
  */
7030
- declare function cubismReady(): Promise<void>;
7031
+ export declare function cubismReady(): Promise<void>;
7031
7032
  /**
7032
7033
  * Starts up the Cubism framework.
7033
7034
  */
7034
- declare function startUpCubism(options?: Option, memorySizeMB?: number): void;
7035
+ export declare function startUpCubism(options?: Option, memorySizeMB?: number): void;
7035
7036
  /**
7036
7037
  * Reconfigures Cubism settings and restarts the framework so they take effect.
7037
7038
  */
7038
- declare function reconfigureCubismSDK(config?: CubismConfig): void;
7039
+ export declare function reconfigureCubismSDK(config?: CubismConfig): void;
7039
7040
  //#endregion
7040
- export { Bounds, CommonHitArea, type CommonLayout, Constant, type CreateTextureOptions, CubismExpressionManager, CubismFramework, CubismInternalModel, CubismModelSettings, CubismMotionManager, CubismParallelMotionManager, ExpressionManager, type ExpressionManagerEvents, ExtendedFileList, FileLoader, FocusController, InternalModel, type InternalModelEvents, InternalModelOptions, type JSONObject, LOGICAL_HEIGHT, LOGICAL_WIDTH, Live2DConstructor, Live2DFactory, Live2DFactoryContext, Live2DFactoryOptions, Live2DLoader, Live2DLoaderContext, Live2DLoaderTarget, Live2DModel, type Live2DModelEvents, Live2DModelOptions, Live2DPlugin, Live2DRuntime, type Live2DTextureLODFilter, type Live2DTextureLODMode, type Live2DTextureLODOptions, type Live2DTextureSourceOptions, Live2DTransform, LogLevel, MBToByte, ModelSettings, MotionManager, type MotionManagerEvents, MotionManagerOptions, MotionPreloadStrategy, MotionPriority, MotionStartOptions, MotionStartRandomOptions, MotionState, type Mutable, Option, SoundManager, type TextureLODPlan, type TextureLODPlanInput, VOLUME, XHRLoader, applyMixins, clamp, config, configureCubismSDK, copyArray, copyProperty, csmDelete, cubismReady, folderName, logger, normalizeHitAreaDefs, rand, reconfigureCubismSDK, remove, resolveURL, startUpCubism, strtod };
7041
+ export type { CommonLayout, CreateTextureOptions, ExpressionManagerEvents, InternalModelEvents, JSONObject, Live2DModelEvents, Live2DTextureLODFilter, Live2DTextureLODMode, Live2DTextureLODOptions, Live2DTextureSourceOptions, MotionManagerEvents, Mutable, TextureLODPlan, TextureLODPlanInput };
7041
7042
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/pixijs-live2d",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "PixiJS v8 Live2D engine — Cubism 3/4/5, lip sync, parallel motions",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,9 +49,9 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@pixi/sound": "^6.0.1",
52
- "@types/node": "^22.20.1",
52
+ "@types/node": "^24.13.3",
53
53
  "pixi.js": "^8.20.1",
54
- "tsdown": "^0.22.14",
54
+ "tsdown": "^0.23.0",
55
55
  "tsx": "^4.23.13",
56
56
  "typescript": "~6.0.3",
57
57
  "vitest": "^4.1.11"