Skip to content

Commit

Permalink
[PDF] Fix drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Apr 19, 2024
1 parent 608495a commit 1fd6eea
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/pdfeditor/main/app/controller/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,8 @@ define([
var me = this;
me.turnOnSelectTool();
me.turnOnShowComments();
me.api.asc_StopInkDrawer();

if (h === 'menu') {
me._state.clrstrike = undefined;
// me.onApiHighlightColor();
Expand All @@ -825,7 +827,6 @@ define([
me.api.SetMarkerFormat(me.toolbar.btnStrikeout.options.type, true, 100, parseInt(r, 16), parseInt(g, 16), parseInt(b, 16));
me.toolbar.mnuStrikeoutTransparent.setChecked(false, true);
}
me.api.asc_StopInkDrawer();
Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnStrikeout);
},

Expand All @@ -850,6 +851,8 @@ define([
var me = this;
me.turnOnSelectTool();
me.turnOnShowComments();
me.api.asc_StopInkDrawer();

if (h === 'menu') {
me._state.clrunderline = undefined;
// me.onApiHighlightColor();
Expand All @@ -872,7 +875,6 @@ define([
me.api.SetMarkerFormat(me.toolbar.btnUnderline.options.type, true, 100, parseInt(r, 16), parseInt(g, 16), parseInt(b, 16));
me.toolbar.mnuUnderlineTransparent.setChecked(false, true);
}
me.api.asc_StopInkDrawer();
Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnUnderline);
},

Expand All @@ -897,6 +899,8 @@ define([
var me = this;
me.turnOnSelectTool();
me.turnOnShowComments();
me.api.asc_StopInkDrawer();

if (h === 'menu') {
me._state.clrhighlight = undefined;
// me.onApiHighlightColor();
Expand All @@ -919,7 +923,6 @@ define([
me.api.SetMarkerFormat(me.toolbar.btnHighlight.options.type, true, 100, parseInt(r, 16), parseInt(g, 16), parseInt(b, 16));
me.toolbar.mnuHighlightTransparent.setChecked(false, true);
}
me.api.asc_StopInkDrawer();
Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnHighlight);
},

Expand Down Expand Up @@ -2175,6 +2178,7 @@ define([

_setMarkerColor: function(strcolor, h) {
var me = this;
me.api.asc_StopInkDrawer();

if (h === 'menu') {
me._state.textclrhighlight = undefined;
Expand All @@ -2195,7 +2199,6 @@ define([
b = strcolor[4] + strcolor[5];
me.api.SetMarkerFormat(undefined, true, true, parseInt(r, 16), parseInt(g, 16), parseInt(b, 16));
}
me.api.asc_StopInkDrawer();
Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnTextHighlightColor);
Common.component.Analytics.trackEvent('ToolBar', 'Highlight Color');
},
Expand Down

0 comments on commit 1fd6eea

Please sign in to comment.