Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
some linty bits
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodBoyDigital committed Jun 5, 2024
1 parent 6f98fd1 commit 6cb00e8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
13 changes: 12 additions & 1 deletion src/Spine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/

import { Assets, Bounds, Cache, Container, ContainerOptions, DEG_TO_RAD, DestroyOptions, InstructionSet, PointData, Ticker, View } from 'pixi.js';
import {
Assets,
Bounds,
Cache,
Container,
ContainerOptions,
DEG_TO_RAD,
DestroyOptions,
PointData,
Ticker,
View
} from 'pixi.js';
import { getSkeletonBounds } from './getSkeletonBounds';
import { ISpineDebugRenderer } from './SpineDebugRenderer';
import {
Expand Down
4 changes: 3 additions & 1 deletion src/SpinePipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export class SpinePipe implements RenderPipe<Spine>

const activeBatchableSpineSlot = this.activeBatchableSpineSlots;

const roundPixels = (this.renderer._roundPixels | spine._roundPixels) as 0 | 1;

for (let i = 0, n = drawOrder.length; i < n; i++)
{
const slot = drawOrder[i];
Expand Down Expand Up @@ -135,7 +137,7 @@ export class SpinePipe implements RenderPipe<Spine>
activeBatchableSpineSlot.push(batchableSpineSlot);

batchableSpineSlot.texture = (attachment.region?.texture.texture) || Texture.WHITE;
batchableSpineSlot.roundPixels = (this.renderer._roundPixels | spine._roundPixels) as 0 | 1;
batchableSpineSlot.roundPixels = roundPixels;

batchableSpineSlot.setClipper(clipper);
batchableSpineSlot.renderable = spine;
Expand Down
1 change: 0 additions & 1 deletion src/getSkeletonBounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*****************************************************************************/

import {
type Bone,
ClippingAttachment,
MeshAttachment,
RegionAttachment,
Expand Down

0 comments on commit 6cb00e8

Please sign in to comment.