You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A highly configurable viewport/2D camera designed to work with pixi.js.
3
4
4
5
Features include dragging, pinch-to-zoom, mouse wheel zooming, decelerated dragging, follow target, animate, snap to point, snap to zoom, clamping, bouncing on edges, and move on mouse edges. See the live examples below to try out all of these features.
5
6
6
7
All features are configurable and removable, so set up the viewport to be exactly what you need.
7
8
8
-
## v5.2+
9
-
Moves pixi-viewport to pixi.js v7.2+
9
+
## v6.0.0
10
+
11
+
Moves pixi-viewport to pixi.js v8+ - sorry for the confusion.
12
+
13
+
## v5.0.2
14
+
15
+
Moves pixi-viewport to pixi.js v7.2+.
10
16
11
17
NOTE: there is a breaking change since in pixi.js v7.2 `interactive` (boolean) was deprecated in favor of `eventMode`.
12
18
13
-
## v5+
19
+
## v5
20
+
14
21
Moves pixi-viewport to pixi.js v7 (thanks [@cuire](https://github.com/cuire)!).
15
22
16
23
NOTE: there is a breaking change since pixi-viewport moved to pixi's new event system. `options.interaction` is removed and you need pass `options.events` to the viewport for it to work properly. The events object can be found at pixi's `renderer.events` or `app.renderer.events`.
This project was migrated to Typescript (thanks [@ShukantPal](https://github.com/ShukantPal)!). All functionality should be the same. The live Example has been updated.
If you liked pixi-viewport, please try my other open source libraries:
134
-
*[pixi-scrollbox](https://github.com/davidfig/pixi-scrollbox) - pixi.js scrollbox: a masked box that can scroll vertically or horizontally with scrollbars (uses pixi-viewport)
135
-
*[pixi-ease](https://github.com/davidfig/pixi-ease) - pixi.js animation library using easing functions
136
-
*[intersects](https://github.com/davidfig/intersects) - a simple collection of 2d collision/intersects functions. Supports points, circles, lines, axis-aligned boxes, and polygons
146
+
147
+
-[pixi-scrollbox](https://github.com/davidfig/pixi-scrollbox) - pixi.js scrollbox: a masked box that can scroll vertically or horizontally with scrollbars (uses pixi-viewport)
148
+
-[pixi-ease](https://github.com/davidfig/pixi-ease) - pixi.js animation library using easing functions
149
+
-[intersects](https://github.com/davidfig/intersects) - a simple collection of 2d collision/intersects functions. Supports points, circles, lines, axis-aligned boxes, and polygons
137
150
138
151
## license
152
+
139
153
MIT License
140
154
(c) 2024 [YOPEY YOPEY LLC](https://yopeyopey.com/) by David Figatner ([email protected])
0 commit comments