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

Method editBegin

ui/media/js/image-editor.js:356–363  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

354 })
355 }
356 editBegin(x, y) {
357 this.current_edit = {
358 type: "edit",
359 id: this.editor.getOptionValue("tool"),
360 options: Object.assign({}, this.editor.options),
361 points: [{ x: x, y: y }],
362 }
363 }
364 editMove(x, y) {
365 if (this.current_edit) {
366 this.current_edit.points.push({ x: x, y: y })

Callers 1

mouseHandlerMethod · 0.80

Calls 1

getOptionValueMethod · 0.80

Tested by

no test coverage detected