lyb-pixi-js 1.7.7 → 1.8.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.
Files changed (2) hide show
  1. package/README.md +35 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -92,6 +92,12 @@ app.stage.addChild(box);
92
92
 
93
93
  \- [LibPixiRectBgColor-矩形](#LibPixiRectBgColor-矩形)
94
94
 
95
+ \- [LibPixiRectangle-矩形](#LibPixiRectangle-矩形)
96
+
97
+ \- [LibPixiCircular-圆形](#LibPixiCircular-圆形)
98
+
99
+ \- [LibPixiPolygon-多边形](#LibPixiPolygon-多边形)
100
+
95
101
  \- [LibPixiSpine-动画](#LibPixiSpine-动画)
96
102
 
97
103
  \- [LibPixiParticleMove-粒子容器](#LibPixiParticleMove-粒子容器)
@@ -296,6 +302,35 @@ interface LibPixiRectBgColorParams {
296
302
  }
297
303
  ```
298
304
 
305
+ ### LibPixiRectangle-矩形
306
+
307
+ > `LibPixiRectBgColor`精简版,可用于一些场景的局部点击,传颜色是为了方便定位,最终可能需要将颜色隐藏掉
308
+
309
+ ```ts
310
+ const libPixiRectangle = new LibPixiRectangle(100, 100, "#fff");
311
+ ```
312
+
313
+ ### LibPixiPolygon-多边形
314
+
315
+ > 多边形类,可用于一些场景的局部点击,传颜色是为了方便定位,最终可能需要将颜色隐藏掉
316
+
317
+ ```ts
318
+ const polygonVertices = new LibPixiPolygon([
319
+ 0, 0, 604, 0, 596, 32, 616, 30, 611, 62, 644, 57, 643, 87, 697, 82, 702, 102, 724, 86, 744, 83, 753, 91, 756, 83,
320
+ 772, 85, 793, 100, 797, 114, 794, 316, 798, 336, 799, 476, 796, 491, 801, 507, 797, 635, 742, 656, 723, 683, 659,
321
+ 687, 638, 678, 646, 712, 617, 707, 611, 717, 618, 741, 596, 734, 595, 746, 601, 762, 14, 763, 18, 739, -4, 741, 4,
322
+ 712, -5, 705, -28, 711, -22, 686, -34, 679, -47, 686, -195, 686, -189, 667, -192, 647, -195, 506, -192, 499, -194,
323
+ 476, -192, 331, -187, 323, -193, 307, -194, 110, -188, 103, -189, 93, -172, 81, -112, 82, -98, 95, -93, 80, -56,
324
+ 82, -40, 89, -36, 80, -41, 57, -30, 57, -16, 62, -8, 58, -16, 29, 1, 35, 8, 25, 0, 0,
325
+ ], "#000");
326
+ ```
327
+
328
+ ### LibPixiCircular-圆形
329
+
330
+ ```ts
331
+ const libPixiCircular = new LibPixiCircular(100, "#fff");
332
+ ```
333
+
299
334
  ### LibPixiSpine-动画
300
335
 
301
336
  > 自定义 Spine 动画,内置挂点
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.7.7",
3
+ "version": "1.8.0",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {