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.12.1 to 4.12.2

15

@types/index.d.ts

@@ -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

2

package.json
{
"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",

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