MCPcopy
hub / github.com/viliusle/miniPaint / mouseup

Method mouseup

src/js/tools/blur.js:88–105  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

86 }
87
88 mouseup(e) {
89 if (this.started == false) {
90 return;
91 }
92 delete config.layer.link_canvas;
93
94 app.State.do_action(
95 new app.Actions.Bundle_action('blur_tool', 'Blur Tool', [
96 new app.Actions.Update_layer_image_action(this.tmpCanvas)
97 ])
98 );
99
100 //decrease memory
101 this.tmpCanvas.width = 1;
102 this.tmpCanvas.height = 1;
103 this.tmpCanvas = null;
104 this.tmpCanvasCtx = null;
105 }
106
107 blur_general(type, mouse, size, strength) {
108 var ctx = this.tmpCanvasCtx;

Callers 1

default_dragEndMethod · 0.45

Calls 1

do_actionMethod · 0.80

Tested by

no test coverage detected