Improved docs.
This commit is contained in:
@@ -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 = {}) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user