Improved docs.

This commit is contained in:
2019-05-14 14:30:12 +02:00
parent 919c8733a0
commit 679ab49047
68 changed files with 82 additions and 81 deletions
+4 -3
View File
@@ -7,8 +7,8 @@ import Scrollbox from './scrollbox.js'
* // Create the app
* const app = new PIXIApp({
* view: canvas,
* width: 900,
* height: 250
* width: 600,
* height: 400
* }).setup().run()
*
* // Create the Scrollview
@@ -16,7 +16,7 @@ import Scrollbox from './scrollbox.js'
* .add('elephant', './assets/elephant-1.jpg')
* .load((loader, resources) => {
* const sprite = new PIXI.Sprite(resources.elephant.texture)
* const scrollview = new Scrollview({boxWidth: 400, boxHeight: 180})
* const scrollview = new Scrollview({boxWidth: 400, boxHeight: 300})
* scrollview.content.addChild(sprite)
* app.scene.addChild(scrollview)
*
@@ -31,6 +31,7 @@ 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 = {}) {