Skip to content

Commit e952f19

Browse files
committed
fix maxLength not reached
1 parent edae2f7 commit e952f19

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/DisplayListWatcher.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ export class DisplayListWatcher extends Phaser.Plugins.ScenePlugin {
201201
return
202202
}
203203

204-
// TODO
205-
const maxLines = 100
206204
const { displayList, renderer, scenePlugin, settings } = this.systems
207205
const x = 256 * scenePlugin.getIndex(this.scene)
208206
const y = 0
@@ -217,16 +215,6 @@ export class DisplayListWatcher extends Phaser.Plugins.ScenePlugin {
217215
0
218216
)
219217

220-
const fullLength = output.length
221-
222-
if (fullLength > maxLines) {
223-
output.length = maxLines
224-
225-
output.push(`[ ... ${fullLength - maxLines} more ]`)
226-
}
227-
228-
// const outputStr = output.join('\n').replace(/ {2,}/g, ' ');
229-
230218
this.text.setPosition(x, y).setText(output)
231219

232220
this.camera.preRender()

0 commit comments

Comments
 (0)