lyb-pixi-js 1.0.6 → 1.0.8

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 CHANGED
@@ -6,7 +6,7 @@
6
6
  >
7
7
  > 在通过`import`引入使用时,鼠标悬浮在每一个方法上都有较为完整的`Jsdoc`提示
8
8
  >
9
- > 示例仅展示方法的部分参数使用,更多传参和调用,需要查看方法源码
9
+ > 示例仅展示方法的部分参数使用,更多传参和调用,可在编辑器右键方法转到类型定义查看方法的`.d.ts `文件
10
10
 
11
11
  ## 起步
12
12
 
@@ -1,5 +1,7 @@
1
1
  import { BitmapText } from "pixi.js";
2
- /** @description 自定义位图文本 */
2
+ /** @description 自定义位图文本
3
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiBitText-位图
4
+ */
3
5
  export declare class LibPixiBitText {
4
6
  /** 字体名称 */
5
7
  private _fontName;
@@ -9,7 +9,9 @@ interface LibPixiContainerParams {
9
9
  /** 背景色 */
10
10
  bgColor?: string;
11
11
  }
12
- /** @description 自定义容器大小及背景色 */
12
+ /** @description 自定义容器大小及背景色
13
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiContainer-容器
14
+ */
13
15
  export declare class LibPixiContainer extends Container {
14
16
  /** 填充容器 */
15
17
  private _fill?;
@@ -27,7 +27,9 @@ export interface LibPixiParticleMoveParams {
27
27
  /** 是否循环,调试使用 */
28
28
  loop?: boolean;
29
29
  }
30
- /** @description 利用贝塞尔曲线实现粒子移动 */
30
+ /** @description 利用贝塞尔曲线实现粒子移动
31
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiParticleMove-粒子容器
32
+ */
31
33
  export declare class LibPixiParticleMove extends Container {
32
34
  private _particleContainer;
33
35
  constructor(params: LibPixiParticleMoveParams);
@@ -13,7 +13,9 @@ export interface LibPixiRectBgColorParams {
13
13
  /** 是否启用变色功能 */
14
14
  enableTint?: boolean;
15
15
  }
16
- /** @description 自定义矩形背景色 */
16
+ /** @description 自定义矩形背景色
17
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiRectBgColor-矩形
18
+ */
17
19
  export declare class LibPixiRectBgColor extends Graphics {
18
20
  /** 启用着色 */
19
21
  private enableTint;
@@ -24,7 +24,9 @@ export interface LibPixiSpineParams {
24
24
  onUpdate?: (config: OnUpdateParams) => void;
25
25
  }[];
26
26
  }
27
- /** @description 自定义 Spine 动画 */
27
+ /** @description 自定义 Spine 动画
28
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSpine-动画
29
+ */
28
30
  export declare class LibPixiSpine extends Spine {
29
31
  /** 挂点 */
30
32
  private _followDots;
@@ -29,7 +29,9 @@ export interface LibPixiTextParams {
29
29
  /** 阴影-颜色 角度 模糊度 阴影距离 */
30
30
  shadow?: [string, number, number, number];
31
31
  }
32
- /** @description 自定义文本类 */
32
+ /** @description 自定义文本类
33
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiText-文本
34
+ */
33
35
  export declare class LibPixiText extends Text {
34
36
  constructor(options: LibPixiTextParams);
35
37
  }
@@ -6,16 +6,28 @@ import { LibPixiSpine } from "./Base/LibPixiSpine";
6
6
  import { LibPixiText } from "./Base/LibPixiText";
7
7
  /** @description 基础方法 */
8
8
  export declare const Base: {
9
- /** @description 自定义位图文本 */
9
+ /** @description 自定义位图文本
10
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiBitText-位图
11
+ */
10
12
  LibPixiBitText: typeof LibPixiBitText;
11
- /** @description 自定义容器大小及背景色 */
13
+ /** @description 自定义容器大小及背景色
14
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiContainer-容器
15
+ */
12
16
  LibPixiContainer: typeof LibPixiContainer;
13
- /** @description 粒子移动 */
17
+ /** @description 利用贝塞尔曲线实现粒子移动
18
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiParticleMove-粒子容器
19
+ */
14
20
  LibPixiParticleMove: typeof LibPixiParticleMove;
15
- /** @description 自定义矩形背景色 */
21
+ /** @description 自定义矩形背景色
22
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiRectBgColor-矩形
23
+ */
16
24
  LibPixiRectBgColor: typeof LibPixiRectBgColor;
17
- /** @description 自定义 Spine 动画 */
25
+ /** @description 自定义 Spine 动画
26
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSpine-动画
27
+ */
18
28
  LibPixiSpine: typeof LibPixiSpine;
19
- /** @description 自定义普通文本类 */
29
+ /** @description 自定义文本类
30
+ * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiText-文本
31
+ */
20
32
  LibPixiText: typeof LibPixiText;
21
33
  };
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "type": "module",
7
7
  "types": "./dist/index.d.ts",
8
8
  "main": "./dist/index.js",
9
9
  "scripts": {
10
- "umd": "vite build",
11
- "esm": "tsc & esbuild dist/**/*.js --minify --outdir=dist --allow-overwrite"
10
+ "build": "vite build & tsc & esbuild dist/**/*.js --minify --outdir=dist --allow-overwrite"
12
11
  },
13
12
  "exports": {
14
13
  "./*": "./dist/*"