Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pixi-viewport

Package Overview
Dependencies
Maintainers
1
Versions
243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixi-viewport - npm Package Compare versions

Comparing version 4.34.3 to 4.34.4

4

index.d.ts

@@ -148,3 +148,3 @@ import { Container } from '@pixi/display';

time?: number;
position?: Point;
position?: IPointData;
width?: number;

@@ -523,3 +523,3 @@ height?: number;

moveCenter(x: number, y: number): Viewport;
moveCenter(center: Point): Viewport;
moveCenter(center: IPointData): Viewport;
get corner(): Point;

@@ -526,0 +526,0 @@ set corner(value: Point);

{
"name": "pixi-viewport",
"version": "4.34.3",
"version": "4.34.4",
"description": "A highly configurable viewport/2D camera designed to work with pixi.js. Features include dragging, pinch-to-zoom, mouse wheel zooming, decelerated dragging, follow target, snap to point, snap to zoom, clamping, bouncing on edges, and move on mouse edges.",

@@ -5,0 +5,0 @@ "main": "dist/cjs/viewport.js",

@@ -1,2 +0,2 @@

import { Point } from '@pixi/math';
import { IPointData, Point } from '@pixi/math';
import { Plugin } from './Plugin';

@@ -13,3 +13,3 @@ import ease from '../ease';

/** Position to move the viewport to */
position?: Point;
position?: IPointData;

@@ -214,3 +214,3 @@ /**

{
this.parent.moveCenter(this.options.position as Point);
this.parent.moveCenter(this.options.position!);
}

@@ -217,0 +217,0 @@

@@ -458,5 +458,5 @@ import { Container } from '@pixi/display';

/** Move center of viewport to {@code center}. */
public moveCenter(center: Point): Viewport;
public moveCenter(center: IPointData): Viewport;
public moveCenter(...args: [number, number] | [Point]): Viewport
public moveCenter(...args: [number, number] | [IPointData]): Viewport
{

@@ -463,0 +463,0 @@ let x: number;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc