Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Jun 18, 2019
1 parent d81d694 commit d1b9ed6
Show file tree
Hide file tree
Showing 60 changed files with 21,767 additions and 19,745 deletions.
6,960 changes: 3,480 additions & 3,480 deletions dist/viewport.es.js

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions docs/builds/browserify/code.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
const PIXI = require('pixi.js')
const Viewport = require('../../../').Viewport

window.onload = () =>
{
function rand(n)
{
return Math.round(Math.random() * n)
}

const app = new PIXI.Application({ autoresize: true })
app.view.style.textAlign = 'center'
document.body.appendChild(app.view)
const div = document.createElement('div')
div.innerHTML = '<div>Browserify <a href="https://https://github.com/davidfig/pixi-viewport">pixi-viewport</a>: viewport.drag().pinch().decelerate()</div>'
document.body.appendChild(div)

const viewport = app.stage.addChild(new Viewport({ screenWidth: app.view.offsetWidth, screenHeight: app.view.offsetHeight }))
for (let i = 0; i < 10000; i++)
{
const sprite = viewport.addChild(new PIXI.Sprite(PIXI.Texture.WHITE))
sprite.tint = rand(0xffffff)
sprite.position.set(rand(10000), rand(10000))
}
viewport
.moveCenter(5000, 5000)
.drag()
.pinch()
.decelerate()
const PIXI = require('pixi.js')
const Viewport = require('../../../').Viewport

window.onload = () =>
{
function rand(n)
{
return Math.round(Math.random() * n)
}

const app = new PIXI.Application({ autoresize: true })
app.view.style.textAlign = 'center'
document.body.appendChild(app.view)
const div = document.createElement('div')
div.innerHTML = '<div>Browserify <a href="https://https://github.com/davidfig/pixi-viewport">pixi-viewport</a>: viewport.drag().pinch().decelerate()</div>'
document.body.appendChild(div)

const viewport = app.stage.addChild(new Viewport({ screenWidth: app.view.offsetWidth, screenHeight: app.view.offsetHeight }))
for (let i = 0; i < 10000; i++)
{
const sprite = viewport.addChild(new PIXI.Sprite(PIXI.Texture.WHITE))
sprite.tint = rand(0xffffff)
sprite.position.set(rand(10000), rand(10000))
}
viewport
.moveCenter(5000, 5000)
.drag()
.pinch()
.decelerate()
}
18 changes: 9 additions & 9 deletions docs/builds/browserify/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<head>
<style>
body {
text-align: center;
}
</style>
</head>
<body>
<script src="index.js"></script>
<head>
<style>
body {
text-align: center;
}
</style>
</head>
<body>
<script src="index.js"></script>
</body>
58 changes: 29 additions & 29 deletions docs/builds/browserify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1738,35 +1738,35 @@ module.exports = {

}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"pixi.js":52}],10:[function(require,module,exports){
const PIXI = require('pixi.js')
const Viewport = require('../../../').Viewport

window.onload = () =>
{
function rand(n)
{
return Math.round(Math.random() * n)
}

const app = new PIXI.Application({ autoresize: true })
app.view.style.textAlign = 'center'
document.body.appendChild(app.view)
const div = document.createElement('div')
div.innerHTML = '<div>Browserify <a href="https://https://github.com/davidfig/pixi-viewport">pixi-viewport</a>: viewport.drag().pinch().decelerate()</div>'
document.body.appendChild(div)

const viewport = app.stage.addChild(new Viewport({ screenWidth: app.view.offsetWidth, screenHeight: app.view.offsetHeight }))
for (let i = 0; i < 10000; i++)
{
const sprite = viewport.addChild(new PIXI.Sprite(PIXI.Texture.WHITE))
sprite.tint = rand(0xffffff)
sprite.position.set(rand(10000), rand(10000))
}
viewport
.moveCenter(5000, 5000)
.drag()
.pinch()
.decelerate()
const PIXI = require('pixi.js')
const Viewport = require('../../../').Viewport
window.onload = () =>
{
function rand(n)
{
return Math.round(Math.random() * n)
}
const app = new PIXI.Application({ autoresize: true })
app.view.style.textAlign = 'center'
document.body.appendChild(app.view)
const div = document.createElement('div')
div.innerHTML = '<div>Browserify <a href="https://https://github.com/davidfig/pixi-viewport">pixi-viewport</a>: viewport.drag().pinch().decelerate()</div>'
document.body.appendChild(div)
const viewport = app.stage.addChild(new Viewport({ screenWidth: app.view.offsetWidth, screenHeight: app.view.offsetHeight }))
for (let i = 0; i < 10000; i++)
{
const sprite = viewport.addChild(new PIXI.Sprite(PIXI.Texture.WHITE))
sprite.tint = rand(0xffffff)
sprite.position.set(rand(10000), rand(10000))
}
viewport
.moveCenter(5000, 5000)
.drag()
.pinch()
.decelerate()
}
},{"../../../":9,"pixi.js":52}],11:[function(require,module,exports){
/*!
Expand Down
14 changes: 7 additions & 7 deletions docs/builds/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<body>
<p>Build examples for <a href="https://https://github.com/davidfig/pixi-viewport">pixi-viewport</a></p>
<p><a href="/builds/rollup/">Rollup</a></p>
<p><a href="/builds/browserify/">Browserify</a></p>
<p><a href="/builds/standalone/">Standalone (cdn)</a></p>
<p><a href="/builds/typescript/">Typescript + Rollup</a></p>
<p><a href="/builds/standalone-v4">pixi.js v4 + Standalone (cdn)</a></p>
<body>
<p>Build examples for <a href="https://https://github.com/davidfig/pixi-viewport">pixi-viewport</a></p>
<p><a href="/builds/rollup/">Rollup</a></p>
<p><a href="/builds/browserify/">Browserify</a></p>
<p><a href="/builds/standalone/">Standalone (cdn)</a></p>
<p><a href="/builds/typescript/">Typescript + Rollup</a></p>
<p><a href="/builds/standalone-v4">pixi.js v4 + Standalone (cdn)</a></p>
</body>
58 changes: 29 additions & 29 deletions docs/builds/rollup/code.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import * as PIXI from 'pixi.js'
import { Viewport } from '../../../'

window.onload = () =>
{
function rand(n)
{
return Math.round(Math.random() * n)
}

const app = new PIXI.Application({ autoresize: true })
app.view.style.textAlign = 'center'
document.body.appendChild(app.view)
const div = document.createElement('div')
div.innerHTML = '<div>Rollup <a href="https://https://github.com/davidfig/pixi-viewport">pixi-viewport</a>: viewport.drag().pinch().decelerate()</div>'
document.body.appendChild(div)

const viewport = app.stage.addChild(new Viewport({ screenWidth: app.view.offsetWidth, screenHeight: app.view.offsetHeight }))
for (let i = 0; i < 10000; i++)
{
const sprite = viewport.addChild(new PIXI.Sprite(PIXI.Texture.WHITE))
sprite.tint = rand(0xffffff)
sprite.position.set(rand(10000), rand(10000))
}
viewport
.moveCenter(5000, 5000)
.drag()
.pinch()
.decelerate()
import * as PIXI from 'pixi.js'
import { Viewport } from '../../../'

window.onload = () =>
{
function rand(n)
{
return Math.round(Math.random() * n)
}

const app = new PIXI.Application({ autoresize: true })
app.view.style.textAlign = 'center'
document.body.appendChild(app.view)
const div = document.createElement('div')
div.innerHTML = '<div>Rollup <a href="https://https://github.com/davidfig/pixi-viewport">pixi-viewport</a>: viewport.drag().pinch().decelerate()</div>'
document.body.appendChild(div)

const viewport = app.stage.addChild(new Viewport({ screenWidth: app.view.offsetWidth, screenHeight: app.view.offsetHeight }))
for (let i = 0; i < 10000; i++)
{
const sprite = viewport.addChild(new PIXI.Sprite(PIXI.Texture.WHITE))
sprite.tint = rand(0xffffff)
sprite.position.set(rand(10000), rand(10000))
}
viewport
.moveCenter(5000, 5000)
.drag()
.pinch()
.decelerate()
}
18 changes: 9 additions & 9 deletions docs/builds/rollup/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<head>
<style>
body {
text-align: center;
}
</style>
</head>
<body>
<script src="index.js"></script>
<head>
<style>
body {
text-align: center;
}
</style>
</head>
<body>
<script src="index.js"></script>
</body>
Loading

0 comments on commit d1b9ed6

Please sign in to comment.