pixi-viewport
Advanced tools
Comparing version 4.12.1 to 4.12.2
@@ -7,3 +7,3 @@ import * as PIXI from 'pixi.js' | ||
type PluginType = 'bounce' | 'clamp-zoom' | 'clamp' | 'decelerate' | 'drag' | 'follow' | 'mouse-edges' | 'pinch' | 'snap' | 'snap-zoom' | 'wheel' | ||
type EventType = 'pinch-start' | 'pinch-end' | 'snap-start' | 'snap-end' | 'snap-zoom-start' | 'snap-zoom-end' | 'bounce-x-start' | 'bounce-x-end' | 'bounce-y-start' | 'bounce-y-end' | 'wheel-scroll' | 'mouse-edge-start' | 'mouse-edge-end' | 'moved' | 'moved-end' | 'zoomed-end' | 'frame-end' | ||
type EventType = 'pinch-start' | 'pinch-end' | 'snap-start' | 'snap-end' | 'snap-zoom-start' | 'snap-zoom-end' | 'bounce-x-start' | 'bounce-x-end' | 'bounce-y-start' | 'bounce-y-end' | 'wheel-scroll' | 'mouse-edge-start' | 'mouse-edge-end' | 'moved-end' | 'zoomed-end' | 'frame-end' | ||
type ClickEventType = 'clicked' | 'drag-start' | 'drag-end' | ||
@@ -199,2 +199,10 @@ type WheelEventType = 'wheel' | ||
interface lastViewport | ||
{ | ||
scaleX: number | ||
scaleY: number | ||
x: number | ||
y: number | ||
} | ||
export declare class Viewport extends PIXI.Container | ||
@@ -225,5 +233,10 @@ { | ||
moving: boolean | ||
lastViewport: any | ||
constructor(options?: ViewportOptions) | ||
// Public API | ||
ensureVisible(x: number, y: number, width: number, height: number, resizeToFit: boolean) : void | ||
removeListeners(): void | ||
@@ -230,0 +243,0 @@ update(elapsed: number): void |
{ | ||
"name": "pixi-viewport", | ||
"version": "4.12.1", | ||
"version": "4.12.2", | ||
"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/viewport.js", |
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
609908
4228