Merge pull request #640 from bluetwelve/master
#639 path #1 draws its control point handles connected to path #2master
commit
f67bc59d17
|
@ -757,6 +757,7 @@ export const pathActionsMethod = (function () {
|
|||
path = pathActionsContext_.getPath_(element);
|
||||
editorContext_.setCurrentMode('pathedit');
|
||||
editorContext_.clearSelection();
|
||||
path.setPathContext();
|
||||
path.show(true).update();
|
||||
path.oldbbox = utilsGetBBox(path.elem);
|
||||
subpath = false;
|
||||
|
@ -770,6 +771,7 @@ export const pathActionsMethod = (function () {
|
|||
editorContext_ = pathActionsContext_.getEditorContext();
|
||||
const selPath = (elem === path.elem);
|
||||
editorContext_.setCurrentMode('select');
|
||||
path.setPathContext();
|
||||
path.show(false);
|
||||
currentPath = false;
|
||||
editorContext_.clearSelection();
|
||||
|
|
|
@ -629,6 +629,10 @@ export class Path {
|
|||
this.init();
|
||||
}
|
||||
|
||||
setPathContext() {
|
||||
pathMethodsContext_.setPathObj(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset path data.
|
||||
* @returns {module:path.Path}
|
||||
|
|
Loading…
Reference in New Issue