import Container from './Container'; class Frame extends Container { isCreated: boolean; W2: number; H2: number; U: number; s: number; Hs: number; Ws: number; Hs2: number; Ws2: number; soul: any; name: any; constructor(soul) { super(); if (soul) { this.soul = soul; this.resize(soul.OW, soul.OH); } } move(x, y) { this.x = x; this.y = y; } update(delta) { } create() { this.isCreated = true; } destroy() { } resize(w, h) { this.W = w || this.W; this.H = h || this.H; this.W2 = w * .5; this.H2 = h * .5; this.U = Math.min(w, h); this.s = this.U / 1000; // scaled this.Ws = w / this.s; this.Hs = h / this.s; this.Ws2 = this.Ws * .5; this.Hs2 = this.Hs * .5; } } export default Frame;