Skip to content

Commit 03eca4d

Browse files
Upgrade pixi to 7.4.2 (#7190)
1 parent 841484e commit 03eca4d

File tree

14 files changed

+2239
-1942
lines changed

14 files changed

+2239
-1942
lines changed

Extensions/Effects/pixi-filters/types/drop-shadow/types.d.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
declare namespace PIXI.filters {
22
export class DropShadowFilter extends PIXI.Filter {
33
constructor(options?: DropShadowFilterOptions);
4+
/** @deprecated */
5+
rotation: number;
6+
/** @deprecated */
7+
distance: number;
8+
offset: PIXI.Point;
49
alpha: number;
510
blur: number;
611
color: number;
7-
distance: number;
812
kernels: number[];
913
pixelSize: number | number[] | PIXI.Point;
1014
quality: number;
11-
rotation: number;
1215
shadowOnly: boolean;
1316
}
1417
export interface DropShadowFilterOptions {
18+
/** @deprecated */
19+
rotation?: number;
20+
/** @deprecated */
21+
distance?: number;
22+
offset: PIXI.Point;
1523
alpha?: number;
1624
blur?: number;
1725
color?: number;
18-
distance?: number;
1926
kernels?: number[];
2027
pixelSize?: number | number[] | PIXI.Point;
2128
quality?: number;
2229
resolution?: number;
23-
rotation?: number;
2430
shadowOnly?: boolean;
2531
}
2632
}

Extensions/Spine/managers/pixi-spine-atlas-manager.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ namespace gdjs {
146146
? 'use-credentials'
147147
: 'anonymous',
148148
});
149-
PIXI.Assets.add(resource.name, url, { images });
149+
PIXI.Assets.add({ alias: resource.name, src: url, data: { images } });
150150
PIXI.Assets.load<pixi_spine.TextureAtlas | string>(resource.name).then(
151151
(atlas) => {
152152
/**
@@ -159,6 +159,7 @@ namespace gdjs {
159159
new pixi_spine.TextureAtlas(
160160
atlas,
161161
(textureName, textureCb) =>
162+
//@ts-ignore
162163
textureCb(images[textureName].baseTexture),
163164
onLoad
164165
);

Extensions/Spine/managers/pixi-spine-manager.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ namespace gdjs {
7272
? 'use-credentials'
7373
: 'anonymous',
7474
});
75-
PIXI.Assets.add(resource.name, url, { spineAtlas });
75+
PIXI.Assets.add({
76+
alias: resource.name,
77+
src: url,
78+
data: { spineAtlas },
79+
});
7680
const loadedJson = await PIXI.Assets.load(resource.name);
7781

7882
if (loadedJson.spineData) {

Extensions/TileMap/JsExtension.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2103,8 +2103,8 @@ module.exports = {
21032103
localPosition.y < this.height
21042104
);
21052105
};
2106-
this._placeholderTextPixiObject.interactive = true;
2107-
this._placeholderImagePixiObject.interactive = true;
2106+
this._placeholderTextPixiObject.eventMode = 'static';
2107+
this._placeholderImagePixiObject.eventMode = 'static';
21082108
this._placeholderTextPixiObject.anchor.x = 0.5;
21092109
this._placeholderTextPixiObject.anchor.y = 0.5;
21102110
this._placeholderTextPixiObject.y = 30;

GDJS/Runtime/pixi-renderers/pixi.js

+1,057-1,111
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)