Prettified all files.

This commit is contained in:
2019-07-18 12:26:39 +02:00
parent 7744b92771
commit 2d400a18ec
125 changed files with 11184 additions and 8154 deletions
+7 -11
View File
@@ -2,7 +2,7 @@ import Scrollbox from './scrollbox.js'
/**
* Class that represents a PixiJS Scrollview.
*
*
* @example
* // Create the app
* const app = new PIXIApp({
@@ -10,7 +10,7 @@ import Scrollbox from './scrollbox.js'
* width: 600,
* height: 400
* }).setup().run()
*
*
* // Create the Scrollview
* app.loader
* .add('elephant', './assets/elephant-1.jpg')
@@ -26,38 +26,34 @@ import Scrollbox from './scrollbox.js'
* @see {@link https://davidfig.github.io/pixi-viewport/jsdoc/Viewport.html|Viewport}
*/
export default class Scrollview extends Scrollbox {
/**
* Creates an instance of a Scrollview.
*
*
* @constructor
* @see https://davidfig.github.io/pixi-scrollbox/jsdoc/Scrollbox.html
*/
constructor(opts = {}) {
super(opts)
this.opts = opts
}
/**
* Creates children and instantiates everything.
*
*
* @private
* @return {Scrollview} A reference to the Scrollview for chaining.
*/
setup() {
return this
}
/**
* Should be called to refresh the layout of the Scrollview. Can be used after resizing.
*
*
* @return {Scrollview} A reference to the Scrollview for chaining.
*/
layout() {
this.update()
return this