Initial phase 4 extra tools, bug fixes, multi select changes.
This commit is contained in:
parent
bce3c1b420
commit
f273685cc1
18 changed files with 1379 additions and 88 deletions
|
|
@ -59,8 +59,12 @@ export function TextFormatToolbar({ annotationId, viewportParams }: TextFormatTo
|
|||
const activeObj = canvas.getActiveObject();
|
||||
if (activeObj && activeObj.id === annotationId) {
|
||||
if (activeObj.isEditing) {
|
||||
activeObj.setSelectionStyles({ [styleName]: value });
|
||||
didInline = true;
|
||||
if (activeObj.selectionStart !== activeObj.selectionEnd) {
|
||||
activeObj.setSelectionStyles({ [styleName]: value });
|
||||
didInline = true;
|
||||
} else {
|
||||
activeObj.set(styleName, value);
|
||||
}
|
||||
} else {
|
||||
activeObj.set(styleName, value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue