lyb-pixi-js 1.12.26 → 1.12.27
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 LibPixiArrangeLinearV2 extends Container {
|
|
|
15
15
|
}
|
|
16
16
|
/** @description 布局 */
|
|
17
17
|
layout() {
|
|
18
|
-
const { colNum = this._elementList.length, gap =
|
|
18
|
+
const { colNum = this._elementList.length, gap = 0, direction = "x", anchorX = 0, anchorY = 0, } = this._params;
|
|
19
19
|
let lastRowMax = 0; // 当前行(或列)的最大高度(或宽度),用于多行/多列换行时计算偏移
|
|
20
20
|
let rowOffset = 0; // 累计偏移量,控制换行后的整体偏移位置
|
|
21
21
|
this._elementList.forEach((item, index) => {
|
package/lyb-pixi.js
CHANGED
|
@@ -58457,7 +58457,7 @@ void main(void){
|
|
|
58457
58457
|
layout() {
|
|
58458
58458
|
const {
|
|
58459
58459
|
colNum = this._elementList.length,
|
|
58460
|
-
gap =
|
|
58460
|
+
gap = 0,
|
|
58461
58461
|
direction = "x",
|
|
58462
58462
|
anchorX = 0,
|
|
58463
58463
|
anchorY = 0
|