lyb-pixi-js 1.12.97 → 1.13.0
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/Base/LibPixiContainer.js +1 -1
- package/Components/Base/LibPixiParticleMove.js +1 -1
- package/Components/Base/index.d.ts +16 -0
- package/Components/Base/index.js +16 -0
- package/Components/Custom/LibPixiArrangeLinearV2.js +1 -1
- package/Components/Custom/LibPixiButtonHover.js +1 -1
- package/Components/Custom/LibPixiCloseBtn.d.ts +1 -1
- package/Components/Custom/LibPixiCloseBtn.js +2 -2
- package/Components/Custom/LibPixiDragLocate.js +1 -1
- package/Components/Custom/LibPixiDrawer.js +1 -1
- package/Components/Custom/LibPixiGridColumnLayout.js +1 -1
- package/Components/Custom/LibPixiGridRowLayout.js +1 -1
- package/Components/Custom/LibPixiInput.d.ts +1 -1
- package/Components/Custom/LibPixiInput.js +5 -5
- package/Components/Custom/LibPixiLabelValue.d.ts +1 -1
- package/Components/Custom/LibPixiLabelValue.js +1 -1
- package/Components/Custom/LibPixiNoticeBar.js +1 -1
- package/Components/Custom/LibPixiPerforMon.js +2 -2
- package/Components/Custom/LibPixiScrollContainerX.d.ts +1 -1
- package/Components/Custom/LibPixiScrollContainerX.js +3 -3
- package/Components/Custom/LibPixiScrollContainerY.d.ts +1 -1
- package/Components/Custom/LibPixiScrollContainerY.js +3 -3
- package/Components/Custom/LibPixiScrollNum.d.ts +1 -1
- package/Components/Custom/LibPixiScrollNum.js +1 -1
- package/Components/Custom/LibPixiSlide.d.ts +1 -1
- package/Components/Custom/LibPixiSlide.js +2 -2
- package/Components/Custom/LibPixiSlider.d.ts +1 -1
- package/Components/Custom/LibPixiSlider.js +3 -3
- package/Components/Custom/LibPixiTextGroupWrap.js +1 -1
- package/Components/Custom/index.d.ts +26 -0
- package/Components/Custom/index.js +26 -0
- package/README.md +1570 -1361
- package/Utils/LibControlledDelayedCall.js +1 -1
- package/Utils/LibPixiDialogManager/index.d.ts +3 -3
- package/Utils/LibPixiDialogManager/index.js +2 -2
- package/Utils/LibPixiDialogManager/ui/LibPixiDialog.d.ts +1 -1
- package/Utils/LibPixiDialogManager/ui/LibPixiDialog.js +4 -4
- package/Utils/LibPixiDownScaleAnimation.js +1 -1
- package/Utils/LibPixiSlideInput.js +1 -1
- package/Utils/index.d.ts +28 -0
- package/Utils/index.js +28 -0
- package/index.d.ts +14 -0
- package/index.js +14 -0
- package/package.json +23 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Container, Graphics, Sprite } from "pixi.js";
|
|
2
|
-
import { LibPixiRectBgColor } from
|
|
2
|
+
import { LibPixiRectBgColor } from "./LibPixiRectBgColor.js";
|
|
3
3
|
/** @description 自定义容器大小及背景色
|
|
4
4
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiContainer-容器
|
|
5
5
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Container, ParticleContainer, Ticker } from "pixi.js";
|
|
2
2
|
import { Emitter, upgradeConfig } from "@pixi/particle-emitter";
|
|
3
3
|
import gsap from "gsap";
|
|
4
|
-
import { LibPixiText } from "./LibPixiText";
|
|
4
|
+
import { LibPixiText } from "./LibPixiText.js";
|
|
5
5
|
/** @description 利用贝塞尔曲线实现粒子移动
|
|
6
6
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiParticleMove-粒子容器
|
|
7
7
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./LibPixiArc.js";
|
|
2
|
+
export * from "./LibPixiBit.js";
|
|
3
|
+
export * from "./LibPixiBitText.js";
|
|
4
|
+
export * from "./LibPixiCircular.js";
|
|
5
|
+
export * from "./LibPixiContainer.js";
|
|
6
|
+
export * from "./LibPixiHtmlText.js";
|
|
7
|
+
export * from "./LibPixiOval.js";
|
|
8
|
+
export * from "./LibPixiParticleMove.js";
|
|
9
|
+
export * from "./LibPixiPolygon.js";
|
|
10
|
+
export * from "./LibPixiRectangle.js";
|
|
11
|
+
export * from "./LibPixiRectBgColor.js";
|
|
12
|
+
export * from "./LibPixiRound.js";
|
|
13
|
+
export * from "./LibPixiRoundedRect.js";
|
|
14
|
+
export * from "./LibPixiSpine.js";
|
|
15
|
+
export * from "./LibPixiText.js";
|
|
16
|
+
export * from "./LibPixiTriangle.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./LibPixiArc.js";
|
|
2
|
+
export * from "./LibPixiBit.js";
|
|
3
|
+
export * from "./LibPixiBitText.js";
|
|
4
|
+
export * from "./LibPixiCircular.js";
|
|
5
|
+
export * from "./LibPixiContainer.js";
|
|
6
|
+
export * from "./LibPixiHtmlText.js";
|
|
7
|
+
export * from "./LibPixiOval.js";
|
|
8
|
+
export * from "./LibPixiParticleMove.js";
|
|
9
|
+
export * from "./LibPixiPolygon.js";
|
|
10
|
+
export * from "./LibPixiRectangle.js";
|
|
11
|
+
export * from "./LibPixiRectBgColor.js";
|
|
12
|
+
export * from "./LibPixiRound.js";
|
|
13
|
+
export * from "./LibPixiRoundedRect.js";
|
|
14
|
+
export * from "./LibPixiSpine.js";
|
|
15
|
+
export * from "./LibPixiText.js";
|
|
16
|
+
export * from "./LibPixiTriangle.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Container, Sprite } from "pixi.js";
|
|
2
|
-
import { libPixiEvent } from "../../Utils/LibPixiEvent";
|
|
2
|
+
import { libPixiEvent } from "../../Utils/LibPixiEvent.js";
|
|
3
3
|
/** @description 悬浮切换材质
|
|
4
4
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiButtonHover-按钮悬浮
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import gsap from "gsap";
|
|
2
|
-
import { libPixiEvent } from "../../Utils/LibPixiEvent";
|
|
3
|
-
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
2
|
+
import { libPixiEvent } from "../../Utils/LibPixiEvent.js";
|
|
3
|
+
import { LibPixiContainer } from "../Base/LibPixiContainer.js";
|
|
4
4
|
/** @description 右上角关闭按钮,支持悬浮旋转动画
|
|
5
5
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiCloseBtn-关闭按钮
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Container, Ticker } from "pixi.js";
|
|
2
2
|
import gsap from "gsap";
|
|
3
|
-
import { libPixiFilter } from "../../Utils/LibPixiFilter";
|
|
3
|
+
import { libPixiFilter } from "../../Utils/LibPixiFilter.js";
|
|
4
4
|
import { libJsCopy } from "lyb-js/Browser/LibJsCopy.js";
|
|
5
5
|
/** @description 元素拖拽定位 */
|
|
6
6
|
export class LibPixiDragLocate extends Container {
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { Container } from "pixi.js";
|
|
11
11
|
import gsap from "gsap";
|
|
12
|
-
import { LibPixiRectBgColor } from
|
|
12
|
+
import { LibPixiRectBgColor } from "../Base/LibPixiRectBgColor.js";
|
|
13
13
|
/** @description 底部弹出抽屉
|
|
14
14
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiDrawer-抽屉
|
|
15
15
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Container } from "pixi.js";
|
|
2
|
-
import { libPixiPivot } from "../../Utils/LibPixiActhor";
|
|
2
|
+
import { libPixiPivot } from "../../Utils/LibPixiActhor.js";
|
|
3
3
|
/** @description 网格列布局 */
|
|
4
4
|
export class LibPixiGridColumnLayout extends Container {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Ticker } from "pixi.js";
|
|
2
|
-
import Decimal from "decimal.js";
|
|
3
|
-
import { libPixiEvent } from "../../Utils/LibPixiEvent";
|
|
4
|
-
import { libPixiScaleContainer } from "../../Utils/LibPixiScaleContainer";
|
|
5
|
-
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
6
|
-
import { LibPixiText } from "../Base/LibPixiText";
|
|
2
|
+
import { Decimal } from "decimal.js";
|
|
3
|
+
import { libPixiEvent } from "../../Utils/LibPixiEvent.js";
|
|
4
|
+
import { libPixiScaleContainer } from "../../Utils/LibPixiScaleContainer.js";
|
|
5
|
+
import { LibPixiContainer } from "../Base/LibPixiContainer.js";
|
|
6
|
+
import { LibPixiText } from "../Base/LibPixiText.js";
|
|
7
7
|
/** @description 动态缩放移动输入框 */
|
|
8
8
|
export class LibPixiInput extends LibPixiContainer {
|
|
9
9
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Container } from "pixi.js";
|
|
2
|
-
import { libPixiScaleContainer } from "../../Utils/LibPixiScaleContainer";
|
|
2
|
+
import { libPixiScaleContainer } from "../../Utils/LibPixiScaleContainer.js";
|
|
3
3
|
/** @description 自适应宽度的标签和值组件
|
|
4
4
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiLabelValue-标签值
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import gsap from "gsap";
|
|
2
2
|
import { Container } from "pixi.js";
|
|
3
|
-
import { LibPixiRectangle } from "../Base/LibPixiRectangle";
|
|
3
|
+
import { LibPixiRectangle } from "../Base/LibPixiRectangle.js";
|
|
4
4
|
/** @description 滚动通知栏 */
|
|
5
5
|
export class LibPixiNoticeBar extends Container {
|
|
6
6
|
constructor(params) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LibJsResizeWatcher } from "lyb-js/Base/LibJsResizeWatcher.js";
|
|
2
2
|
import { Container, Ticker, UPDATE_PRIORITY, } from "pixi.js";
|
|
3
|
-
import { LibPixiRectangle } from "../Base/LibPixiRectangle";
|
|
4
|
-
import { LibPixiText } from "../Base/LibPixiText";
|
|
3
|
+
import { LibPixiRectangle } from "../Base/LibPixiRectangle.js";
|
|
4
|
+
import { LibPixiText } from "../Base/LibPixiText.js";
|
|
5
5
|
/** @description 监视帧率、Draw Call、Max Draw Call
|
|
6
6
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiPerforMon-性能监视器
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Container, Sprite, } from "pixi.js";
|
|
2
2
|
import { gsap } from "gsap";
|
|
3
|
-
import { libPixiEvent } from "../../Utils/LibPixiEvent";
|
|
4
|
-
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
5
|
-
import { LibPixiRectangle } from "../Base/LibPixiRectangle";
|
|
3
|
+
import { libPixiEvent } from "../../Utils/LibPixiEvent.js";
|
|
4
|
+
import { LibPixiContainer } from "../Base/LibPixiContainer.js";
|
|
5
|
+
import { LibPixiRectangle } from "../Base/LibPixiRectangle.js";
|
|
6
6
|
/** @description 支持鼠标滚轮滚动、鼠标拖动、手指滑动,支持惯性滚动及回弹 */
|
|
7
7
|
export class LibPixiScrollContainerX extends LibPixiContainer {
|
|
8
8
|
constructor(params) {
|
|
@@ -9,9 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { Container, Sprite } from "pixi.js";
|
|
11
11
|
import { gsap } from "gsap";
|
|
12
|
-
import { libPixiEvent } from "../../Utils/LibPixiEvent";
|
|
13
|
-
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
14
|
-
import { LibPixiRectangle } from "../Base/LibPixiRectangle";
|
|
12
|
+
import { libPixiEvent } from "../../Utils/LibPixiEvent.js";
|
|
13
|
+
import { LibPixiContainer } from "../Base/LibPixiContainer.js";
|
|
14
|
+
import { LibPixiRectangle } from "../Base/LibPixiRectangle.js";
|
|
15
15
|
/** @description 支持鼠标滚轮滚动、鼠标拖动、手指滑动,支持惯性滚动及回弹 */
|
|
16
16
|
export class LibPixiScrollContainerY extends LibPixiContainer {
|
|
17
17
|
constructor(params) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Graphics } from "pixi.js";
|
|
2
2
|
import gsap from "gsap";
|
|
3
|
-
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
3
|
+
import { LibPixiContainer } from "../Base/LibPixiContainer.js";
|
|
4
4
|
import { LibJsLerp } from "lyb-js/Math/LibJsLerp.js";
|
|
5
5
|
/** @description 通过鼠标或手指拖动数字列选择数字
|
|
6
6
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiScrollNum-数字滑动
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Graphics } from "pixi.js";
|
|
2
2
|
import gsap from "gsap";
|
|
3
|
-
import { libPixiEvent } from "../../Utils/LibPixiEvent";
|
|
4
|
-
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
3
|
+
import { libPixiEvent } from "../../Utils/LibPixiEvent.js";
|
|
4
|
+
import { LibPixiContainer } from "../Base/LibPixiContainer.js";
|
|
5
5
|
/** @description 滑动页
|
|
6
6
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSlide-滑动页
|
|
7
7
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Container } from "pixi.js";
|
|
2
2
|
import gsap from "gsap";
|
|
3
3
|
import { LibJsLerp } from "lyb-js/Math/LibJsLerp.js";
|
|
4
|
-
import { libPixiOverflowHidden } from "../../Utils/LibPixiOverflowHidden";
|
|
5
|
-
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
6
|
-
import { libPixiEvent } from "../../Utils/LibPixiEvent";
|
|
4
|
+
import { libPixiOverflowHidden } from "../../Utils/LibPixiOverflowHidden.js";
|
|
5
|
+
import { LibPixiContainer } from "../Base/LibPixiContainer.js";
|
|
6
|
+
import { libPixiEvent } from "../../Utils/LibPixiEvent.js";
|
|
7
7
|
/** @description 类似轮播图,但是不会自动轮播
|
|
8
8
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiSlider-横向滑动图
|
|
9
9
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Container, Text } from "pixi.js";
|
|
2
|
-
import { libPixiPivot } from "../../Utils/LibPixiActhor";
|
|
2
|
+
import { libPixiPivot } from "../../Utils/LibPixiActhor.js";
|
|
3
3
|
/** @description 文本组换行 */
|
|
4
4
|
export class LibPixiTextGroupWrap extends Container {
|
|
5
5
|
constructor({ items, defaultStyle = {}, wordWrapWidth, paddingX = 0, paddingY = 0, align = "left", anchorX = 0, anchorY = 0, verticalCenter, lineGap, }) {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "./LibPixiAreaClick.js";
|
|
2
|
+
export * from "./LibPixiArrangeLinearV2.js";
|
|
3
|
+
export * from "./LibPixiButtonHover.js";
|
|
4
|
+
export * from "./LibPixiCapsule.js";
|
|
5
|
+
export * from "./LibPixiCloseBtn.js";
|
|
6
|
+
export * from "./LibPixiDragLocate.js";
|
|
7
|
+
export * from "./LibPixiDrawer.js";
|
|
8
|
+
export { LibPixiGridColumnLayout } from "./LibPixiGridColumnLayout.js";
|
|
9
|
+
export { LibPixiGridRowLayout } from "./LibPixiGridRowLayout.js";
|
|
10
|
+
export * from "./LibPixiHeadingParagraphLayout.js";
|
|
11
|
+
export * from "./LibPixiInput.js";
|
|
12
|
+
export * from "./LibPixiLabelValue.js";
|
|
13
|
+
export * from "./LibPixiMaskBg.js";
|
|
14
|
+
export * from "./LibPixiNoticeBar.js";
|
|
15
|
+
export * from "./LibPixiPerforMon.js";
|
|
16
|
+
export * from "./LibPixiProgress.js";
|
|
17
|
+
export * from "./LibPixiPuzzleBg.js";
|
|
18
|
+
export * from "./LibPixiScrollContainerX.js";
|
|
19
|
+
export * from "./LibPixiScrollContainerY.js";
|
|
20
|
+
export * from "./LibPixiScrollNum.js";
|
|
21
|
+
export * from "./LibPixiSlide.js";
|
|
22
|
+
export * from "./LibPixiSlider.js";
|
|
23
|
+
export { LibPixiTable } from "./LibPixiTable.js";
|
|
24
|
+
export { LibPixiTableV2 } from "./LibPixiTableV2.js";
|
|
25
|
+
export * from "./LibPixiTextGroupWrap.js";
|
|
26
|
+
export * from "./LibPixiTurntable.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "./LibPixiAreaClick.js";
|
|
2
|
+
export * from "./LibPixiArrangeLinearV2.js";
|
|
3
|
+
export * from "./LibPixiButtonHover.js";
|
|
4
|
+
export * from "./LibPixiCapsule.js";
|
|
5
|
+
export * from "./LibPixiCloseBtn.js";
|
|
6
|
+
export * from "./LibPixiDragLocate.js";
|
|
7
|
+
export * from "./LibPixiDrawer.js";
|
|
8
|
+
export { LibPixiGridColumnLayout } from "./LibPixiGridColumnLayout.js";
|
|
9
|
+
export { LibPixiGridRowLayout } from "./LibPixiGridRowLayout.js";
|
|
10
|
+
export * from "./LibPixiHeadingParagraphLayout.js";
|
|
11
|
+
export * from "./LibPixiInput.js";
|
|
12
|
+
export * from "./LibPixiLabelValue.js";
|
|
13
|
+
export * from "./LibPixiMaskBg.js";
|
|
14
|
+
export * from "./LibPixiNoticeBar.js";
|
|
15
|
+
export * from "./LibPixiPerforMon.js";
|
|
16
|
+
export * from "./LibPixiProgress.js";
|
|
17
|
+
export * from "./LibPixiPuzzleBg.js";
|
|
18
|
+
export * from "./LibPixiScrollContainerX.js";
|
|
19
|
+
export * from "./LibPixiScrollContainerY.js";
|
|
20
|
+
export * from "./LibPixiScrollNum.js";
|
|
21
|
+
export * from "./LibPixiSlide.js";
|
|
22
|
+
export * from "./LibPixiSlider.js";
|
|
23
|
+
export { LibPixiTable } from "./LibPixiTable.js";
|
|
24
|
+
export { LibPixiTableV2 } from "./LibPixiTableV2.js";
|
|
25
|
+
export * from "./LibPixiTextGroupWrap.js";
|
|
26
|
+
export * from "./LibPixiTurntable.js";
|