MCPcopy Create free account
hub / github.com/codecombat/codecombat / updateInitString

Method updateInitString

app/views/play/SpectateView.js:240–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238 }
239
240 updateInitString () {
241 if (this.surface) { return }
242 if (this.modelsLoaded == null) { this.modelsLoaded = 0 }
243 const canvas = this.$el.find('#surface')[0]
244 const ctx = canvas.getContext('2d')
245 ctx.font = '20px Georgia'
246 ctx.clearRect(0, 0, canvas.width, canvas.height)
247 return ctx.fillText(`Loaded ${this.modelsLoaded} thingies`, 50, 50)
248 }
249
250 insertSubviews () {
251 let needle

Callers 1

onSupermodelLoadedOneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected