URL Cleanup

This commit is contained in:
BoykoAlex
2019-03-21 17:11:15 -04:00
parent 017c9b7c70
commit d8bb3e0b11
10 changed files with 13 additions and 13 deletions

View File

@@ -1117,7 +1117,7 @@ export class EditorComponent implements OnInit, OnDestroy {
}
initPaperListeners() {
// http://stackoverflow.com/questions/20463533/how-to-add-an-onclick-event-to-a-joint-js-element
// https://stackoverflow.com/questions/20463533/how-to-add-an-onclick-event-to-a-joint-js-element
this.paper.on('cell:pointerclick', (cellView: dia.CellView) => {
if (!this.readOnlyCanvas) {
this.selection = cellView;
@@ -1168,7 +1168,7 @@ export class EditorComponent implements OnInit, OnDestroy {
elementView: this.renderer && this.renderer.getNodeView ? this.renderer.getNodeView() : joint.shapes.flo.ElementView/*joint.dia.ElementView*/,
linkView: this.renderer && this.renderer.getLinkView ? this.renderer.getLinkView() : joint.shapes.flo.LinkView,
// Enable link snapping within 25px lookup radius
snapLinks: { radius: 25 }, // http://www.jointjs.com/tutorial/ports
snapLinks: { radius: 25 },
defaultLink: /*this.renderer && this.renderer.createDefaultLink ? this.renderer.createDefaultLink: new joint.shapes.flo.Link*/
(cellView: dia.CellView, magnet: SVGElement) => {
if (this.renderer && this.renderer.createLink) {