Socket
Socket
Sign inDemoInstall

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 5.0.0 to 5.0.1

12

dist/types.d.ts
import type { FederatedEvent } from '@pixi/events';
import type { Point } from '@pixi/math';
import type { Viewport } from './Viewport';
export declare type DragEvent = {
export type DragEvent = {
event: FederatedEvent;

@@ -10,4 +10,4 @@ screen: Point;

};
export declare type ClickedEvent = DragEvent;
export declare type MovedEvent = {
export type ClickedEvent = DragEvent;
export type MovedEvent = {
viewport: Viewport;

@@ -17,3 +17,3 @@ type: 'wheel' | 'pinch' | 'animate' | 'ensureVisible' | 'snap' | 'mouse-edges' | 'follow' | 'drag' | 'decelerate' | 'clamp-x' | 'clamp-y' | 'bounce-x' | 'bounce-y';

};
export declare type ZoomedEvent = {
export type ZoomedEvent = {
viewport: Viewport;

@@ -24,7 +24,7 @@ type: 'wheel' | 'pinch' | 'animate' | 'ensureVisible' | 'clamp-zoom';

};
export declare type WheelStartEvent = {
export type WheelStartEvent = {
event: WheelEvent;
viewport: Viewport;
};
export declare type Events = {
export type Events = {
wheel: [

@@ -31,0 +31,0 @@ {

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

stopPropagation?: boolean;
allowPreserveDragOutside?: boolean;
forceHitArea?: Rectangle | null;

@@ -18,0 +19,0 @@ noTicker?: boolean;

{
"name": "pixi-viewport",
"version": "5.0.0",
"version": "5.0.1",
"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.",

@@ -51,10 +51,9 @@ "main": "./dist/pixi_viewport.umd.cjs",

"homepage": "https://github.com/davidfig/pixi-viewport#readme",
"peerDependencies": {},
"devDependencies": {
"@pixi/core": "^7.0.4",
"@pixi/display": "^7.0.4",
"@pixi/core": "^7.1.1",
"@pixi/display": "^7.1.1",
"@pixi/eslint-config": "^4.0.1",
"@pixi/events": "^7.0.4",
"@pixi/math": "^7.0.4",
"@pixi/ticker": "^7.0.4",
"@pixi/events": "^7.1.1",
"@pixi/math": "^7.1.1",
"@pixi/ticker": "^7.1.1",
"@typescript-eslint/parser": "^5.5.0",

@@ -72,3 +71,3 @@ "chai": "^4.3.4",

"pixi-ease": "^3.0.7",
"pixi.js": "^7.0.5",
"pixi.js": "^7.1.1",
"raf": "^3.4.1",

@@ -75,0 +74,0 @@ "typescript": "^4.5.2",

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

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