Update page 'Home'

Sebastian Kupke 2019-10-02 13:31:07 +02:00
commit 658e096d5c
1 changed files with 13 additions and 0 deletions

13
Home.md Normal file

@ -0,0 +1,13 @@
# Stolpersteine beim Update auf PixiJS v5
Der PixiJS Migration Guide von Version 4 auf 5 befindet sich [hier](https://github.com/pixijs/pixi.js/wiki/v5-Migration-Guide).
* fromImage, fromUrl usw. heißt nur noch from()
* PIXI.loaders.Loader wurde zu PIXI.Loader.shared
* beginFill(0xffffff, 0) sollte nicht verwendet werden, lieber beginFill(0xffffff); ...alpha = 0, weitere Infos [hier](https://github.com/pixijs/pixi.js/wiki/v5-Migration-Guide#graphics-interaction)
* .fillAlpha, .fillColor, ... becomes .fill.alpha and .fill.color
* drawPolygon(), addHole() wurde zu beginHole(), drawPolygon(), endHole()
* Namespaces einiger Settings haben sich verändert, z. B. von PIXI.Graphics.CURVES.adaptive = true zu PIXI.GRAPHICS_CURVES.adaptive = true
* PIXI.Polygon.close() gibt es nicht mehr, Workaround: `if (shape.points[0] !== shape.points[shape.points.length - 2] || shape.points[1] !== shape.points[shape.points.length - 1]) {
shape.points.push(shape.points[0], shape.points[1])
}
`
* Weitere Infos: [v5-Migration-Guide](https://github.com/pixijs/pixi.js/wiki/v5-Migration-Guide)