MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / loadTool

Method loadTool

ui/media/js/image-editor.js:600–603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598 return IMAGE_EDITOR_TOOLS.find((t) => t.id == tool_id)
599 }
600 loadTool() {
601 this.drawing = false
602 this.container.style.cursor = this.tool.cursor
603 }
604 setImage(url, width, height) {
605 this.setSize(width, height)
606 this.layers.background.ctx.clearRect(0, 0, this.width, this.height)

Callers 1

selectOptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected