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.
- package/Utils/LibPixiGridLayoutV2.js +1 -1
- package/lyb-pixi.js +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ export class LibPixiGridLayoutV2 extends Container {
|
|
|
15
15
|
}
|
|
16
16
|
/** @description 布局 */
|
|
17
17
|
layout() {
|
|
18
|
-
const { colNum =
|
|
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 =
|
|
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);
|