diff --git a/css/index.css b/css/index.css index 10cff7f..08fb724 100644 --- a/css/index.css +++ b/css/index.css @@ -73,12 +73,12 @@ div.wrapper { /*** CSS taken from https://medium.com/@jamesfuthey/simulating-the-creation-of-website-thumbnail-screenshots-using-iframes-7145269891db#.7v7fshos5 ***/ .thumbnail { position: relative; - -ms-zoom: 0.25; - -moz-transform: scale(0.25); + -ms-zoom: 0.5; + -moz-transform: scale(0.5); -moz-transform-origin: 0 0; - -o-transform: scale(0.25); + -o-transform: scale(0.5); -o-transform-origin: 0 0; - -webkit-transform: scale(0.25); + -webkit-transform: scale(0.5); -webkit-transform-origin: 0 0; } @@ -110,8 +110,8 @@ iframe { } .thumbnail-container { - width: calc(1024px * 0.25); - height: calc(624px * 0.25); + width: calc(1024px * 0.5); + height: calc(624px * 0.5); display: inline-block; overflow: hidden; position: relative; @@ -126,8 +126,8 @@ div.preview { color: #333; font-size: 12pt; text-align: center; - width: 256px; - height: 196px; + /* width: 256px; + height: 196px; */ } div.title { diff --git a/doc/conf.json b/doc/conf.json index 7ac2b3e..2e89ec4 100644 --- a/doc/conf.json +++ b/doc/conf.json @@ -36,7 +36,21 @@ "./lib/pixi/switch.js", "./lib/pixi/theme.js", "./lib/pixi/tooltip.js", - "./lib/pixi/volatile.js" + "./lib/pixi/volatile.js", + "./lib/pixi/maps/mapapp.js", + "./lib/pixi/maps/mapviewport.js", + "./lib/pixi/maps/geographics.js", + "./lib/pixi/maps/geojson.js", + "./lib/pixi/maps/geolayer.js", + "./lib/pixi/maps/mapdata.js", + "./lib/pixi/maps/maplist.js", + "./lib/pixi/maps/overlay.js", + "./lib/pixi/maps/scatter.js", + "./lib/pixi/maps/utils.js", + "./lib/pixi/maps/map.js", + "./lib/pixi/maps/projections/projection.js", + "./lib/pixi/maps/projections/mercator.js", + "./lib/pixi/maps/projections/robinson.js" ], "exclude": [], "includePattern": ".+\\.js(doc|x)?$", @@ -45,7 +59,10 @@ "sourceType": "module", "tags": { "allowUnknownTags": true, - "dictionaries": ["jsdoc", "closure"] + "dictionaries": [ + "jsdoc", + "closure" + ] }, "templates": { "applicationName": "iwmlib", @@ -70,4 +87,4 @@ "useLongnameInNav": false } } -} +} \ No newline at end of file diff --git a/doc/out/AbstractPopup.html b/doc/out/AbstractPopup.html index 952c4f8..7da03f7 100644 --- a/doc/out/AbstractPopup.html +++ b/doc/out/AbstractPopup.html @@ -58,6 +58,10 @@
// Create the app
-const app = new PIXIApp({
- view: canvas,
- width: 900,
- height: 250
-}).setup().run()
-
-// Add an DisplayObject to the app
-const circle = new PIXI.Graphics()
-circle.beginFill(0x5251a3)
-circle.drawCircle(50, 50, 40)
-app.scene.addChild(circle)
-
-const badge1 = new Badge({
- object: circle,
- container: app.scene,
- content: 'Das Gesetz ist der Freund des Schwachen.'
-})
+ // Create the app
const app = new PIXIApp({
view: canvas,
width: 900,
height: 250
}).setup().run()
// Add an DisplayObject to the app
const circle = new PIXI.Graphics()
circle.beginFill(0x5251a3)
circle.drawCircle(50, 50, 40)
app.scene.addChild(circle)
const badge1 = new Badge({
object: circle,
container: app.scene,
content: 'Das Gesetz ist der Freund des Schwachen.'
})
@@ -2374,7 +3565,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/BlurFilter.html b/doc/out/BlurFilter.html
index 7dccb87..5c83c58 100644
--- a/doc/out/BlurFilter.html
+++ b/doc/out/BlurFilter.html
@@ -58,6 +58,10 @@
// Create the app
-const app = new PIXIApp({
- view: canvas,
- width: 480,
- height: 270,
- transparent: false
-}).setup().run()
-
-// Add a video sprite
-const sprite = new PIXI.Sprite(PIXI.Texture.from("assets/blurfilter.mp4"))
-sprite.width = app.size.width
-sprite.height = app.size.height
-app.scene.addChild(sprite)
-
-// Create the filter and assign it to the scene
-const blurFilter = new BlurFilter(new PIXI.Rectangle(20, 20, 80, 60))
-app.scene.filters = [blurFilter]
+ // Create the app
const app = new PIXIApp({
view: canvas,
width: 480,
height: 270,
transparent: false
}).setup().run()
// Add a video sprite
const sprite = new PIXI.Sprite(PIXI.Texture.from("assets/blurfilter.mp4"))
sprite.width = app.size.width
sprite.height = app.size.height
app.scene.addChild(sprite)
// Create the filter and assign it to the scene
const blurFilter = new BlurFilter(new PIXI.Rectangle(20, 20, 80, 60))
app.scene.filters = [blurFilter]
@@ -1798,7 +2990,7 @@ app.scene.filters = [blurFilter]
diff --git a/doc/out/Button.html b/doc/out/Button.html
index 269d87b..45f885d 100644
--- a/doc/out/Button.html
+++ b/doc/out/Button.html
@@ -58,6 +58,10 @@
// Create the button
-const button = new Button({
- label: 'My Button',
- action: () => console.log('Button was clicked')
-})
-
-// Add the button to a DisplayObject
-app.scene.addChild(button)
+ // Create the button
const button = new Button({
label: 'My Button',
action: () => console.log('Button was clicked')
})
// Add the button to a DisplayObject
app.scene.addChild(button)
@@ -3888,7 +5089,7 @@ the tint property of the icon sprite.
diff --git a/doc/out/ButtonGroup.html b/doc/out/ButtonGroup.html
index 364838e..cafacbe 100644
--- a/doc/out/ButtonGroup.html
+++ b/doc/out/ButtonGroup.html
@@ -58,6 +58,10 @@
// Create the button group
-const buttonGroup = new ButtonGroup({
- buttons: [
- {label: 'Button 1', action: event => console.log(event)},
- {label: 'Button 2', action: event => console.log(event)},
- {label: 'Button 3', action: event => console.log(event)}
- ],
- minWidth: 100
-})
-
-// Add the button group to a DisplayObject
-app.scene.addChild(buttonGroup)
+ // Create the button group
const buttonGroup = new ButtonGroup({
buttons: [
{label: 'Button 1', action: event => console.log(event)},
{label: 'Button 2', action: event => console.log(event)},
{label: 'Button 3', action: event => console.log(event)}
],
minWidth: 100
})
// Add the button group to a DisplayObject
app.scene.addChild(buttonGroup)
@@ -3650,7 +4847,7 @@ app.scene.addChild(buttonGroup)
diff --git a/doc/out/DeepZoomImage.html b/doc/out/DeepZoomImage.html
index 9ce1772..ec92ec3 100644
--- a/doc/out/DeepZoomImage.html
+++ b/doc/out/DeepZoomImage.html
@@ -58,6 +58,10 @@
{
- "tileSize": 1024,
- "format": "jpeg",
- "overlap": 1,
- "height": 4794,
- "width": 4095,
- "clip": { "minLevel": 12, "maxLevel": 20, "startCol": 301436, "startRow": 354060 },
- // optional: minLevel and maxLevel define the level bounds
- // startCol: first col at maxLevel
- // startRow: first row at maxLevel
- "path": "var/Vermeer/Vermeer_files",
- "type": "dzi", // optional: dzi (default) or map
- "urlTileTemplate": "{path}/{level}/{column}/{row}.{format}"
- // optional: {path}/{level}/{column}_{row}.{format} (default) or
- // a template String with the format of the URL
- }
+ {
"tileSize": 1024,
"format": "jpeg",
"overlap": 1,
"height": 4794,
"width": 4095,
"clip": { "minLevel": 12, "maxLevel": 20, "startCol": 301436, "startRow": 354060 },
// optional: minLevel and maxLevel define the level bounds
// startCol: first col at maxLevel
// startRow: first row at maxLevel
"path": "var/Vermeer/Vermeer_files",
"type": "dzi", // optional: dzi (default) or map
"urlTileTemplate": "{path}/{level}/{column}/{row}.{format}"
// optional: {path}/{level}/{column}_{row}.{format} (default) or
// a template String with the format of the URL
}
@@ -2609,7 +3802,7 @@ on completion.
diff --git a/doc/out/Flippable.html b/doc/out/Flippable.html
index a42d993..9faab3a 100644
--- a/doc/out/Flippable.html
+++ b/doc/out/Flippable.html
@@ -58,6 +58,10 @@
const front = PIXI.Sprite.from('./assets/front.jpg')
-const back = PIXI.Sprite.from('./assets/back.jpg')
-app.scene.addChild(front)
-
-// Create the flippable
-const flippable = new Flippable(front, back, app.renderer)
-
-front.interactive = true
-front.on('click', event => flippable.toggle())
+ const front = PIXI.Sprite.from('./assets/front.jpg')
const back = PIXI.Sprite.from('./assets/back.jpg')
app.scene.addChild(front)
// Create the flippable
const flippable = new Flippable(front, back, app.renderer)
front.interactive = true
front.on('click', event => flippable.toggle())
@@ -2512,7 +3712,7 @@ front.on('click', event => flippable.toggle())
diff --git a/doc/out/FontInfo.html b/doc/out/FontInfo.html
index 9d53ea8..8e9014e 100644
--- a/doc/out/FontInfo.html
+++ b/doc/out/FontInfo.html
@@ -58,6 +58,10 @@
const elephant1 = PIXI.Sprite.from('./assets/elephant-1.jpg')
-const elephant2 = PIXI.Sprite.from('./assets/elephant-2.jpg')
-
-// Create the list
-const list = new List([elephant1, elephant2])
-
-app.scene.addChild(list)
+ const elephant1 = PIXI.Sprite.from('./assets/elephant-1.jpg')
const elephant2 = PIXI.Sprite.from('./assets/elephant-2.jpg')
// Create the list
const list = new List([elephant1, elephant2])
app.scene.addChild(list)
@@ -2585,7 +3787,7 @@ app.scene.addChild(list)
diff --git a/doc/out/Message.html b/doc/out/Message.html
index 17418af..31c6843 100644
--- a/doc/out/Message.html
+++ b/doc/out/Message.html
@@ -58,6 +58,10 @@
// Create the PixiJS App
-const app = new PIXIApp({
- view: canvas,
- width: 900,
- height: 250
-}).setup().run()
-
-// Create a button
-let button = new Button({
- label: 'Click me',
- action: e => {
- const message = new Message({
- app: app,
- header: 'Header',
- content: 'Text.'
- })
- app.scene.addChild(message)
- }
-})
-
-// Add the button to the scene
-app.scene.addChild(button)
+ // Create the PixiJS App
const app = new PIXIApp({
view: canvas,
width: 900,
height: 250
}).setup().run()
// Create a button
let button = new Button({
label: 'Click me',
action: e => {
const message = new Message({
app: app,
header: 'Header',
content: 'Text.'
})
app.scene.addChild(message)
}
})
// Add the button to the scene
app.scene.addChild(button)
@@ -2441,7 +3628,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/MessageInteractivePopup.html b/doc/out/MessageInteractivePopup.html
index 0ffe7c2..065cb70 100644
--- a/doc/out/MessageInteractivePopup.html
+++ b/doc/out/MessageInteractivePopup.html
@@ -58,6 +58,10 @@
// Create the button and the modal when clicked
-const button = new Button({
- label: 'Show Modal',
- action: e => {
- const modal = new Modal({
- app: app,
- header: 'This is the header',
- content: 'This is the text.'
- })
- app.scene.addChild(modal)
- }
-})
-
-// Add the button to a DisplayObject
-app.scene.addChild(button)
+ // Create the button and the modal when clicked
const button = new Button({
label: 'Show Modal',
action: e => {
const modal = new Modal({
app: app,
header: 'This is the header',
content: 'This is the text.'
})
app.scene.addChild(modal)
}
})
// Add the button to a DisplayObject
app.scene.addChild(button)
@@ -2342,7 +3536,7 @@ a string or a PIXI.Text object.
diff --git a/doc/out/ModalInteractivePopup.html b/doc/out/ModalInteractivePopup.html
index 57d8c70..e48edf0 100644
--- a/doc/out/ModalInteractivePopup.html
+++ b/doc/out/ModalInteractivePopup.html
@@ -58,6 +58,10 @@
// Create the app
-const app = new PIXIApp({
- view: canvas,
- width: 450,
- height: 150,
- fpsLogging: true,
- theme: 'light',
- transparent: false
-}).setup().run()
+ // Create the app
const app = new PIXIApp({
view: canvas,
width: 450,
height: 150,
fpsLogging: true,
theme: 'light',
transparent: false
}).setup().run()
@@ -2549,7 +3749,7 @@ handler for the orientationchange event.
convertPointFromNodeToPage
- (displayObject, x, y)Point
+ (displayObject, x, y)Point
@@ -2722,7 +3922,7 @@ to browser page coordinates.
// Create the popup
-const popup = new Popup({
- header: 'Goethe',
- content: 'Man kann die Erfahrung nicht früh genug machen, wie entbehrlich man in der Welt ist.'
-})
-
-// Add the popup to a DisplayObject
-app.scene.addChild(popup)
+ // Create the popup
const popup = new Popup({
header: 'Goethe',
content: 'Man kann die Erfahrung nicht früh genug machen, wie entbehrlich man in der Welt ist.'
})
// Add the popup to a DisplayObject
app.scene.addChild(popup)
@@ -2336,7 +3537,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/PopupInteractivePopup.html b/doc/out/PopupInteractivePopup.html
index 2e93264..da161a1 100644
--- a/doc/out/PopupInteractivePopup.html
+++ b/doc/out/PopupInteractivePopup.html
@@ -58,6 +58,10 @@
// Create the button and the modal when clicked
-const button = new Button({
- label: 'Show PopupMenu',
- action: e => {
- const popupmenu = new PopupMenu({
- items: [
- {label: 'Save', action: () => alert('Saved')},
- {label: 'Edit', action: () => alert('Edited')},
- {label: 'Delete', action: () => alert('Deleted')}
- ]
- })
- app.scene.addChild(popupmenu)
- }
-})
-
-// Add the button to a DisplayObject
-app.scene.addChild(button)
+ // Create the button and the modal when clicked
const button = new Button({
label: 'Show PopupMenu',
action: e => {
const popupmenu = new PopupMenu({
items: [
{label: 'Save', action: () => alert('Saved')},
{label: 'Edit', action: () => alert('Edited')},
{label: 'Delete', action: () => alert('Deleted')}
]
})
app.scene.addChild(popupmenu)
}
})
// Add the button to a DisplayObject
app.scene.addChild(button)
@@ -2390,7 +3582,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/PopupMenuPopupInteractivePopup.html b/doc/out/PopupMenuPopupInteractivePopup.html
index 580e21e..bc977c5 100644
--- a/doc/out/PopupMenuPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupInteractivePopup.html
@@ -58,6 +58,10 @@
// Create the progress
-const progress = new Progress({
- app: app
-})
-
-// Add the progress to a DisplayObject
-app.scene.addChild(progress)
+ // Create the progress
const progress = new Progress({
app: app
})
// Add the progress to a DisplayObject
app.scene.addChild(progress)
@@ -2875,7 +4077,7 @@ app.scene.addChild(progress)
diff --git a/doc/out/Scrollview.html b/doc/out/Scrollview.html
index ccfb9f6..dab88e0 100644
--- a/doc/out/Scrollview.html
+++ b/doc/out/Scrollview.html
@@ -58,6 +58,10 @@
// Create the app
-const app = new PIXIApp({
- view: canvas,
- width: 600,
- height: 400
-}).setup().run()
-
-// Create the Scrollview
-app.loader
- .add('elephant', './assets/elephant-1.jpg')
- .load((loader, resources) => {
- const sprite = new PIXI.Sprite(resources.elephant.texture)
- const scrollview = new Scrollview({boxWidth: 400, boxHeight: 300})
- scrollview.content.addChild(sprite)
- app.scene.addChild(scrollview)
+ // Create the app
const app = new PIXIApp({
view: canvas,
width: 600,
height: 400
}).setup().run()
// Create the Scrollview
app.loader
.add('elephant', './assets/elephant-1.jpg')
.load((loader, resources) => {
const sprite = new PIXI.Sprite(resources.elephant.texture)
const scrollview = new Scrollview({boxWidth: 400, boxHeight: 300})
scrollview.content.addChild(sprite)
app.scene.addChild(scrollview)
@@ -1707,7 +2901,7 @@ app.loader
diff --git a/doc/out/Slider.html b/doc/out/Slider.html
index cef8b45..617bee6 100644
--- a/doc/out/Slider.html
+++ b/doc/out/Slider.html
@@ -58,6 +58,10 @@
// Create the app
-const app = new PIXIApp({
- view: canvas,
- width: 900,
- height: 250
-}).setup().run()
-
-// Create the slider
-const slider = new Slider({
- x: 10,
- y: 20
-})
-
-// Add the slider to a DisplayObject
-app.scene.addChild(slider)
+ // Create the app
const app = new PIXIApp({
view: canvas,
width: 900,
height: 250
}).setup().run()
// Create the slider
const slider = new Slider({
x: 10,
y: 20
})
// Add the slider to a DisplayObject
app.scene.addChild(slider)
@@ -2966,7 +4160,7 @@ app.scene.addChild(slider)
diff --git a/doc/out/Switch.html b/doc/out/Switch.html
index 1d73de9..88fa494 100644
--- a/doc/out/Switch.html
+++ b/doc/out/Switch.html
@@ -58,6 +58,10 @@
// Create the app
-const app = new PIXIApp({
- view: canvas,
- width: 900,
- height: 250
-}).setup().run()
-
-// Create the switch
-const switch1 = new Switch({
- x: 10,
- y: 20
-})
-
-// Add the switch to a DisplayObject
-app.scene.addChild(switch1)
+ // Create the app
const app = new PIXIApp({
view: canvas,
width: 900,
height: 250
}).setup().run()
// Create the switch
const switch1 = new Switch({
x: 10,
y: 20
})
// Add the switch to a DisplayObject
app.scene.addChild(switch1)
@@ -3396,7 +4590,7 @@ app.scene.addChild(switch1)
diff --git a/doc/out/TextLabel.TextLabel.html b/doc/out/TextLabel.TextLabel.html
index bddde53..3ca8ef7 100644
--- a/doc/out/TextLabel.TextLabel.html
+++ b/doc/out/TextLabel.TextLabel.html
@@ -58,6 +58,10 @@
// Create the theme
-const yellow = new Theme({
- fill: 0xfecd2d,
- fillActive: 0xfe9727,
- strokeActive: 0xfecd2d,
- strokeActiveWidth: 4,
- textStyle: {
- fill: 0x5ec7f8
- },
- textStyleActive: {
- fill: 0x5954d3
- },
- textStyleLarge: {
- fontSize: 36
- }
-})
-
-// Create the app and apply the new theme to it
-const app = new PIXIApp({
- view: canvas,
- width: 450,
- height: 150,
- theme: yellow
-}).setup().run()
+ // Create the theme
const yellow = new Theme({
fill: 0xfecd2d,
fillActive: 0xfe9727,
strokeActive: 0xfecd2d,
strokeActiveWidth: 4,
textStyle: {
fill: 0x5ec7f8
},
textStyleActive: {
fill: 0x5954d3
},
textStyleLarge: {
fontSize: 36
}
})
// Create the app and apply the new theme to it
const app = new PIXIApp({
view: canvas,
width: 450,
height: 150,
theme: yellow
}).setup().run()
@@ -3237,7 +4422,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeDark.html b/doc/out/ThemeDark.html
index 0c33ad7..84c5ce8 100644
--- a/doc/out/ThemeDark.html
+++ b/doc/out/ThemeDark.html
@@ -58,6 +58,10 @@
// Create the app with a new dark theme
-const app = new PIXIApp({
- view: canvas,
- width: 450,
- height: 150,
- theme: new ThemeDark()
-}).setup().run()
+ // Create the app with a new dark theme
const app = new PIXIApp({
view: canvas,
width: 450,
height: 150,
theme: new ThemeDark()
}).setup().run()
@@ -1586,7 +2788,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeLight.html b/doc/out/ThemeLight.html
index 16206ed..8fcf50b 100644
--- a/doc/out/ThemeLight.html
+++ b/doc/out/ThemeLight.html
@@ -58,6 +58,10 @@
// Create the app with a new light theme
-const app = new PIXIApp({
- view: canvas,
- width: 450,
- height: 150,
- theme: new ThemeLight()
-}).setup().run()
+ // Create the app with a new light theme
const app = new PIXIApp({
view: canvas,
width: 450,
height: 150,
theme: new ThemeLight()
}).setup().run()
@@ -1598,7 +2800,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeRed.html b/doc/out/ThemeRed.html
index 903e5c3..724b689 100644
--- a/doc/out/ThemeRed.html
+++ b/doc/out/ThemeRed.html
@@ -58,6 +58,10 @@
// Create the app with a new red theme
-const app = new PIXIApp({
- view: canvas,
- width: 450,
- height: 150,
- theme: new ThemeRed()
-}).setup().run()
+ // Create the app with a new red theme
const app = new PIXIApp({
view: canvas,
width: 450,
height: 150,
theme: new ThemeRed()
}).setup().run()
@@ -1598,7 +2800,7 @@ const app = new PIXIApp({
diff --git a/doc/out/TileQuadNode.html b/doc/out/TileQuadNode.html
index e46f7e7..c54b7cb 100644
--- a/doc/out/TileQuadNode.html
+++ b/doc/out/TileQuadNode.html
@@ -58,6 +58,10 @@
// Create the app
-const app = new PIXIApp({
- view: canvas,
- width: 900,
- height: 250
-}).setup().run()
-
-// Add an DisplayObject to the app
-const circle = new PIXI.Graphics()
-circle.beginFill(0x5251a3)
-circle.drawCircle(50, 50, 40)
-app.scene.addChild(circle)
-
-const tooltip = new Tooltip({
- object: circle,
- container: app.scene,
- content: 'Das Gesetz ist der Freund des Schwachen.'
-})
+ // Create the app
const app = new PIXIApp({
view: canvas,
width: 900,
height: 250
}).setup().run()
// Add an DisplayObject to the app
const circle = new PIXI.Graphics()
circle.beginFill(0x5251a3)
circle.drawCircle(50, 50, 40)
app.scene.addChild(circle)
const tooltip = new Tooltip({
object: circle,
container: app.scene,
content: 'Das Gesetz ist der Freund des Schwachen.'
})
@@ -2512,7 +3703,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/UITest.html b/doc/out/UITest.html
index 6e74ce9..839d938 100644
--- a/doc/out/UITest.html
+++ b/doc/out/UITest.html
@@ -58,6 +58,10 @@
// Create the UITest object
-const test = new UITest({
- timeScale: 2
-})
-
-// Add an action to the test case
-test.tap(button, {eventType: 'click'})
-
-// Start the test case
-test.start()
+ // Create the UITest object
const test = new UITest({
timeScale: 2
})
// Add an action to the test case
test.tap(button, {eventType: 'click'})
// Start the test case
test.start()
@@ -2438,7 +3637,7 @@ test.start()
Window
|
-Frame
+Frame
@@ -3182,7 +4381,7 @@ test.start()
Window
|
-Frame
+Frame
@@ -4017,7 +5216,7 @@ test.start()
Window
|
-Frame
+Frame
@@ -4183,7 +5382,7 @@ test.start()
diff --git a/doc/out/Volatile.html b/doc/out/Volatile.html
index 3377785..31d623b 100644
--- a/doc/out/Volatile.html
+++ b/doc/out/Volatile.html
@@ -58,6 +58,10 @@
const app = new PIXIApp({
- view: canvas,
- width: 900,
- height: 250
-}).setup().run()
-
-const button = new Button({
- label: 'Volatile!',
- action: () => {
- new Volatile({
- object: button,
- direction: 'right',
- destroyOnComplete: false
- })
- }
-})
-
-app.scene.addChild(button)
+ const app = new PIXIApp({
view: canvas,
width: 900,
height: 250
}).setup().run()
const button = new Button({
label: 'Volatile!',
action: () => {
new Volatile({
object: button,
direction: 'right',
destroyOnComplete: false
})
}
})
app.scene.addChild(button)
@@ -2099,7 +3290,7 @@ app.scene.addChild(button)
diff --git a/doc/out/global.html b/doc/out/global.html
index 37eef3d..0263484 100644
--- a/doc/out/global.html
+++ b/doc/out/global.html
@@ -58,6 +58,10 @@
The following Attributes are taken from the TextStyle class +of PIXI. All can be overwritten in the overlay's JSON file.
+Callback for the button afterAction.
-Name | - - -Type | - - - -Description | -
---|---|---|
event |
-
-
- - - -object - - - - | - - - -
-
- The event object. |
-
button |
-
-
- - - -Button - - - - | - - - -
-
- A reference to the button (also this refers to the button). |
-
Callback for the button afterAction.
+Name | + + +Type | + + + +Description | +
---|---|---|
event |
+
+
+ + + +object + + + + | + + + +
+
+ The event object. |
+
button |
+
+
+ + + +Button + + + + | + + + +
+
+ A reference to the button (also this refers to the button). |
+
A coordinate point is a PIXI.Point or object in form {x,y} that contains map coordinates +instead of pixel values, where x represents the latitude and y the longitude.
+Name | + + +Type | + + + + + +Description | +
---|---|---|
x |
+
+
+ + + +number + + + + | + + + + + +Indicates whether the Courage component is present. |
+
y |
+
+
+ + + +number + + + + | + + + + + +Indicates whether the Power component is present. |
+
The complete Triforce, or one or more components of the Triforce.
+Name | + + +Type | + + + + + +Description | +
---|---|---|
x |
+
+
+ + + +number + + + + | + + + + + +X position of the frame. |
+
y |
+
+
+ + + +number + + + + | + + + + + +Y position of the frame. |
+
width |
+
+
+ + + +number + + + + | + + + + + +Width of the frame. |
+
height |
+
+
+ + + +number + + + + | + + + + + +Height od the frame. |
+
localCenter |
+
+
+ + + +Point + + + + | + + + + + +Local center of the map. |
+
center |
+
+
+ + + +Point + + + + | + + + + + +Global center of the map. |
+
Name | + + +Type | + + + + + +Description | +
---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +an ID. |
+
altKey |
+
+
+ + + +boolean + + + + | + + + + + +Defines if KeyCode requires the alt key to be pressed. |
+
shiftKey |
+
+
+ + + +boolean + + + + | + + + + + +Defines if KeyCode requires the shift key to be pressed. |
+
ctrlKey |
+
+
+ + + +boolean + + + + | + + + + + +Defines if KeyCode requires the ctrl key to be pressed. |
+
Name | + + +Type | + + + + + +Description | +
---|---|---|
name |
+
+
+ + + +string + + + + | + + + + + +Name of the KeyCode. |
+
keyCode |
+
+
+ + + +KeyCode + + + + | + + + + + +KeyCode |
+
A PIXI.Point or object in form {x,y}.
+Name | + + +Type | + + + + + +Description | +
---|---|---|
x |
+
+
+ + + +number + + + + | + + + + + +Indicates whether the Courage component is present. |
+
y |
+
+
+ + + +number + + + + | + + + + + +Indicates whether the Power component is present. |
+
GeoPoint is a single coordinate in the map.
The overlayclass creates a convenient way to create and design complex map overlays. diff --git a/lib/pixi/thumbnail.png b/lib/pixi/thumbnail.png index 3874702..74df364 100644 Binary files a/lib/pixi/thumbnail.png and b/lib/pixi/thumbnail.png differ diff --git a/lib/pixi/thumbnails/app.png b/lib/pixi/thumbnails/app.png index 5539808..b34aeee 100644 Binary files a/lib/pixi/thumbnails/app.png and b/lib/pixi/thumbnails/app.png differ diff --git a/lib/pixi/thumbnails/application.png b/lib/pixi/thumbnails/application.png index e8e2770..af57f47 100644 Binary files a/lib/pixi/thumbnails/application.png and b/lib/pixi/thumbnails/application.png differ diff --git a/lib/pixi/thumbnails/badge.png b/lib/pixi/thumbnails/badge.png index 56c0d6b..240ff4c 100644 Binary files a/lib/pixi/thumbnails/badge.png and b/lib/pixi/thumbnails/badge.png differ diff --git a/lib/pixi/thumbnails/blurfilter.png b/lib/pixi/thumbnails/blurfilter.png index dd074c2..d988b3e 100644 Binary files a/lib/pixi/thumbnails/blurfilter.png and b/lib/pixi/thumbnails/blurfilter.png differ diff --git a/lib/pixi/thumbnails/button.png b/lib/pixi/thumbnails/button.png index f27540e..2bb3ec2 100644 Binary files a/lib/pixi/thumbnails/button.png and b/lib/pixi/thumbnails/button.png differ diff --git a/lib/pixi/thumbnails/buttongroup.png b/lib/pixi/thumbnails/buttongroup.png index 318bd83..c6a5fbf 100644 Binary files a/lib/pixi/thumbnails/buttongroup.png and b/lib/pixi/thumbnails/buttongroup.png differ diff --git a/lib/pixi/thumbnails/coordinates.png b/lib/pixi/thumbnails/coordinates.png index de5cfb6..5684671 100644 Binary files a/lib/pixi/thumbnails/coordinates.png and b/lib/pixi/thumbnails/coordinates.png differ diff --git a/lib/pixi/thumbnails/flipeffect.png b/lib/pixi/thumbnails/flipeffect.png index ec50304..a50c7e7 100644 Binary files a/lib/pixi/thumbnails/flipeffect.png and b/lib/pixi/thumbnails/flipeffect.png differ diff --git a/lib/pixi/thumbnails/flippable.png b/lib/pixi/thumbnails/flippable.png index d26099d..d57b889 100644 Binary files a/lib/pixi/thumbnails/flippable.png and b/lib/pixi/thumbnails/flippable.png differ diff --git a/lib/pixi/thumbnails/labeledgraphics.png b/lib/pixi/thumbnails/labeledgraphics.png index 15b1cbc..063cb4c 100644 Binary files a/lib/pixi/thumbnails/labeledgraphics.png and b/lib/pixi/thumbnails/labeledgraphics.png differ diff --git a/lib/pixi/thumbnails/list.png b/lib/pixi/thumbnails/list.png index 9218b8e..2083f1f 100644 Binary files a/lib/pixi/thumbnails/list.png and b/lib/pixi/thumbnails/list.png differ diff --git a/lib/pixi/thumbnails/message.png b/lib/pixi/thumbnails/message.png index d4a8f52..decb903 100644 Binary files a/lib/pixi/thumbnails/message.png and b/lib/pixi/thumbnails/message.png differ diff --git a/lib/pixi/thumbnails/modal.png b/lib/pixi/thumbnails/modal.png index 0e57bcb..3b53819 100644 Binary files a/lib/pixi/thumbnails/modal.png and b/lib/pixi/thumbnails/modal.png differ diff --git a/lib/pixi/thumbnails/popover.png b/lib/pixi/thumbnails/popover.png index 168d7f3..922b617 100644 Binary files a/lib/pixi/thumbnails/popover.png and b/lib/pixi/thumbnails/popover.png differ diff --git a/lib/pixi/thumbnails/popup.png b/lib/pixi/thumbnails/popup.png index f0aa561..f04d7f4 100644 Binary files a/lib/pixi/thumbnails/popup.png and b/lib/pixi/thumbnails/popup.png differ diff --git a/lib/pixi/thumbnails/popupmenu.png b/lib/pixi/thumbnails/popupmenu.png index 193e343..ee928dd 100644 Binary files a/lib/pixi/thumbnails/popupmenu.png and b/lib/pixi/thumbnails/popupmenu.png differ diff --git a/lib/pixi/thumbnails/progress.png b/lib/pixi/thumbnails/progress.png index f6c8736..458e3d2 100644 Binary files a/lib/pixi/thumbnails/progress.png and b/lib/pixi/thumbnails/progress.png differ diff --git a/lib/pixi/thumbnails/scatter.png b/lib/pixi/thumbnails/scatter.png index 58f7cee..bb03071 100644 Binary files a/lib/pixi/thumbnails/scatter.png and b/lib/pixi/thumbnails/scatter.png differ diff --git a/lib/pixi/thumbnails/scrollview.png b/lib/pixi/thumbnails/scrollview.png index 92049da..daf64c7 100644 Binary files a/lib/pixi/thumbnails/scrollview.png and b/lib/pixi/thumbnails/scrollview.png differ diff --git a/lib/pixi/thumbnails/slider.png b/lib/pixi/thumbnails/slider.png index d24efb3..d810092 100644 Binary files a/lib/pixi/thumbnails/slider.png and b/lib/pixi/thumbnails/slider.png differ diff --git a/lib/pixi/thumbnails/switch.png b/lib/pixi/thumbnails/switch.png index 83a3c03..3bfb599 100644 Binary files a/lib/pixi/thumbnails/switch.png and b/lib/pixi/thumbnails/switch.png differ diff --git a/lib/pixi/thumbnails/text-transform.png b/lib/pixi/thumbnails/text-transform.png index 87e4d2c..0106922 100644 Binary files a/lib/pixi/thumbnails/text-transform.png and b/lib/pixi/thumbnails/text-transform.png differ diff --git a/lib/pixi/thumbnails/text.png b/lib/pixi/thumbnails/text.png index 87e4d2c..6d533db 100644 Binary files a/lib/pixi/thumbnails/text.png and b/lib/pixi/thumbnails/text.png differ diff --git a/lib/pixi/thumbnails/tooltip.png b/lib/pixi/thumbnails/tooltip.png index 5f477b8..0312aa4 100644 Binary files a/lib/pixi/thumbnails/tooltip.png and b/lib/pixi/thumbnails/tooltip.png differ diff --git a/lib/pixi/thumbnails/volatile.png b/lib/pixi/thumbnails/volatile.png index ac1da17..16120c8 100644 Binary files a/lib/pixi/thumbnails/volatile.png and b/lib/pixi/thumbnails/volatile.png differ diff --git a/lib/thumbnails/capabilities.png b/lib/thumbnails/capabilities.png index 6332f8d..648d8d0 100644 Binary files a/lib/thumbnails/capabilities.png and b/lib/thumbnails/capabilities.png differ diff --git a/lib/thumbnails/coordinates.png b/lib/thumbnails/coordinates.png index 08de7ab..1ef389a 100644 Binary files a/lib/thumbnails/coordinates.png and b/lib/thumbnails/coordinates.png differ diff --git a/lib/thumbnails/doctest.png b/lib/thumbnails/doctest.png index 9ea79e1..21edcb4 100644 Binary files a/lib/thumbnails/doctest.png and b/lib/thumbnails/doctest.png differ diff --git a/lib/thumbnails/events.png b/lib/thumbnails/events.png index ceea6d1..b60d71e 100644 Binary files a/lib/thumbnails/events.png and b/lib/thumbnails/events.png differ diff --git a/lib/thumbnails/flippable.png b/lib/thumbnails/flippable.png index 2007b72..66194f1 100644 Binary files a/lib/thumbnails/flippable.png and b/lib/thumbnails/flippable.png differ diff --git a/lib/thumbnails/frames.png b/lib/thumbnails/frames.png index 81e5168..dec7406 100644 Binary files a/lib/thumbnails/frames.png and b/lib/thumbnails/frames.png differ diff --git a/lib/thumbnails/interaction.png b/lib/thumbnails/interaction.png index 691ab09..a2d8fb8 100644 Binary files a/lib/thumbnails/interaction.png and b/lib/thumbnails/interaction.png differ diff --git a/lib/thumbnails/interface.png b/lib/thumbnails/interface.png index d356967..b6cd034 100644 Binary files a/lib/thumbnails/interface.png and b/lib/thumbnails/interface.png differ diff --git a/lib/thumbnails/popup.png b/lib/thumbnails/popup.png index 8475e99..a890c4a 100644 Binary files a/lib/thumbnails/popup.png and b/lib/thumbnails/popup.png differ diff --git a/lib/thumbnails/popupmenu.png b/lib/thumbnails/popupmenu.png index 70874a7..650b46d 100644 Binary files a/lib/thumbnails/popupmenu.png and b/lib/thumbnails/popupmenu.png differ diff --git a/lib/thumbnails/scatter.png b/lib/thumbnails/scatter.png index 58fd20b..9979336 100644 Binary files a/lib/thumbnails/scatter.png and b/lib/thumbnails/scatter.png differ diff --git a/lib/thumbnails/styleguide.png b/lib/thumbnails/styleguide.png index 67e68ba..48a861b 100644 Binary files a/lib/thumbnails/styleguide.png and b/lib/thumbnails/styleguide.png differ diff --git a/lib/thumbnails/uitest.png b/lib/thumbnails/uitest.png index b116905..6c0e751 100644 Binary files a/lib/thumbnails/uitest.png and b/lib/thumbnails/uitest.png differ