lyb-pixi-js 1.12.25 → 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 = 10, direction = "x", anchorX = 0, anchorY = 0, } = this._params;
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) => {
@@ -46,7 +46,6 @@ export class LibPixiDialog extends LibPixiBaseContainer {
46
46
  /** @description 设置弹窗内容 */
47
47
  setDialogContent(content) {
48
48
  this._dialogContainer.addChild(content);
49
- console.log(LibPixiDialog.adaptation);
50
49
  if (LibPixiDialog.adaptation === "h") {
51
50
  this.redraw(1920, 1080);
52
51
  }
@@ -69,7 +68,6 @@ export class LibPixiDialog extends LibPixiBaseContainer {
69
68
  }
70
69
  /** @description 重绘弹窗 */
71
70
  redraw(w, h) {
72
- console.log(w, h);
73
71
  const dialogW = this._dialogContainer.width / 2;
74
72
  const dialogH = this._dialogContainer.height / 2;
75
73
  this._dialogContainer.pivot.set(dialogW, dialogH);
@@ -132,4 +130,4 @@ LibPixiDialog.bgAlpha = 0.5;
132
130
  LibPixiDialog.durationIn = 0.5;
133
131
  LibPixiDialog.durationOut = 0.5;
134
132
  /** 是否支持横竖版 */
135
- LibPixiDialog.adaptation = "h";
133
+ LibPixiDialog.adaptation = "hv";
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 = 10,
58460
+ gap = 0,
58461
58461
  direction = "x",
58462
58462
  anchorX = 0,
58463
58463
  anchorY = 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.12.25",
3
+ "version": "1.12.27",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {