pixi-viewport
Advanced tools
Comparing version 4.34.3 to 4.34.4
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1548471