lyb-pixi-js 1.5.2 → 1.5.3
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/Components/Custom/LibPixiCloseBtn.js +1 -1
- package/README.md +7 -6
- package/lyb-pixi.js +71 -71
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -457,14 +457,15 @@ const slideContent = new Container();
|
|
|
457
457
|
//slideContent.addChild(someImageOrText);
|
|
458
458
|
|
|
459
459
|
//创建幻灯片
|
|
460
|
-
const slider = new LibPixiSlider(
|
|
461
|
-
400,
|
|
462
|
-
300,
|
|
460
|
+
const slider = new LibPixiSlider({
|
|
461
|
+
width: 400,
|
|
462
|
+
height: 300,
|
|
463
463
|
slideContent,
|
|
464
|
-
|
|
464
|
+
enableDepth: true,
|
|
465
|
+
slideCallback: (pageIndex, pageNum) => {
|
|
465
466
|
console.log(`当前页: ${pageIndex + 1} / ${pageNum + 1}`);
|
|
466
|
-
}
|
|
467
|
-
);
|
|
467
|
+
},
|
|
468
|
+
});
|
|
468
469
|
|
|
469
470
|
//将幻灯片添加到场景
|
|
470
471
|
app.stage.addChild(slider);
|