lyb-pixi-js 1.12.6 → 1.12.7

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.
@@ -15,7 +15,7 @@ export class LibPixiGridLayoutV2 extends Container {
15
15
  }
16
16
  /** @description 布局 */
17
17
  layout() {
18
- const { colNum = 3, colGap = 325, rowGap = 75 } = this._params;
18
+ const { colNum = this._elementList.length, colGap = 325, rowGap = 75 } = this._params;
19
19
  this._elementList.forEach((item, index) => {
20
20
  const col = index % colNum;
21
21
  const row = Math.floor(index / colNum);
package/lyb-pixi.js CHANGED
@@ -58336,7 +58336,7 @@ void main(void){
58336
58336
  }
58337
58337
  /** @description 布局 */
58338
58338
  layout() {
58339
- const { colNum = 3, colGap = 325, rowGap = 75 } = this._params;
58339
+ const { colNum = this._elementList.length, colGap = 325, rowGap = 75 } = this._params;
58340
58340
  this._elementList.forEach((item, index) => {
58341
58341
  const col = index % colNum;
58342
58342
  const row = Math.floor(index / colNum);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.12.6",
3
+ "version": "1.12.7",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {