Skip to content

Commit

Permalink
moving to rollup; simplified dependencies (removing pixi-ease)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Aug 7, 2019
1 parent 0df260a commit 07aeb3a
Show file tree
Hide file tree
Showing 11 changed files with 75,622 additions and 73,839 deletions.
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

14 changes: 7 additions & 7 deletions docs/code.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const PIXI = require('pixi.js')
const FPS = require('yy-fps')
const Random = require('yy-random')
import * as PIXI from 'pixi.js'
import FPS from 'yy-fps'
import Random from 'yy-random'

const Scrollbox = require('../src/scrollbox')
import { Scrollbox } from '../src/scrollbox'
import highlight from './highlight.js'

let _renderer, _fps, g

Expand Down Expand Up @@ -91,10 +92,9 @@ window.onload = function ()
nodrag.dragScroll = false
window.addEventListener('resize', resize)

const ticker = PIXI.ticker ? PIXI.ticker : PIXI.Ticker
ticker.shared.add(() =>
PIXI.Ticker.shared.add(() =>
{
_fps.frame()
})
require('./highlight')()
highlight()
}
Loading

0 comments on commit 07aeb3a

Please sign in to comment.