| 74 | export var loader = PIXI.loader; |
| 75 | |
| 76 | export class View{ |
| 77 | constructor(){ |
| 78 | |
| 79 | var vst=this; |
| 80 | const app = new PIXI.Application({ |
| 81 | autoResize: true, |
| 82 | width: window.innerWidth, |
| 83 | height: window.innerHeight, |
| 84 | backgroundColor: 0xf5f6ff |
| 85 | }); |
| 86 | |
| 87 | this.app=app; |
| 88 | document.body.appendChild(this.app.view); |
| 89 | |
| 90 | var opener = new PIXI.Sprite(PIXI.Texture.from('images/opener.png')); |
| 91 | opener.name="opener"; |
| 92 | opener.anchor.set(0.5); |
| 93 | opener.x=window.innerWidth/2; |
| 94 | opener.y=window.innerHeight/2; |
| 95 | this.app.stage.addChild(opener); |
| 96 | |
| 97 | var loading = new PIXI.Sprite(PIXI.Texture.from('images/loading.png')); |
| 98 | loading.name="loading"; |
| 99 | loading.anchor.set(0.5); |
| 100 | loading.x=window.innerWidth/2; |
| 101 | loading.y=window.innerHeight/2+250 -30; |
| 102 | this.app.stage.addChild(loading ); |
| 103 | |
| 104 | //lol |
| 105 | loader |
| 106 | .add([ |
| 107 | //SLIDE IMAGES |
| 108 | "images/interactive.png", |
| 109 | "images/net/neuron.png", |
| 110 | "images/net/overneuron2.png", |
| 111 | "images/net/neuron_backprop.png", |
| 112 | "images/net/neuron_large.png", |
| 113 | "images/net/inputbase.png", |
| 114 | "images/backprop/in1.png", |
| 115 | "images/backprop/in2.png", |
| 116 | "images/backprop/y1.png", |
| 117 | "images/backprop/y2.png", |
| 118 | "images/backprop/c1form.png", |
| 119 | "images/backprop/c2form.png", |
| 120 | "images/net/strawberrycard.png", |
| 121 | "images/net/blueberrycard.png", |
| 122 | "images/cost/cost1box.png", |
| 123 | "images/cost/cost2box.png", |
| 124 | "images/cost/costplus.png", |
| 125 | "images/backprop/cplus2.png", |
| 126 | |
| 127 | //ALL SLIDES IMAGES |
| 128 | //view buttons |
| 129 | "images/buttons/back.png", |
| 130 | "images/buttons/next.png", |
| 131 | "images/buttons/start.png", |
| 132 | "images/buttons/gotoneuron.png", |
| 133 | "images/buttons/gotoforward.png", |
nothing calls this directly
no outgoing calls
no test coverage detected