mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-24 04:13:48 +01:00
23 lines
541 B
JavaScript
23 lines
541 B
JavaScript
import $ from 'jquery';
|
|
import {
|
|
Toolkit, Workspace, Arrow, Point,
|
|
} from '../../src';
|
|
|
|
Toolkit.init();
|
|
|
|
const overflowWorkspace = new Workspace({ fillColor: 'green' });
|
|
overflowWorkspace.setSize('200px', '200px');
|
|
const arrow = new Arrow();
|
|
arrow.setFrom(50, 50);
|
|
arrow.setControlPoint(new Point(-50, 0));
|
|
|
|
overflowWorkspace.append(arrow);
|
|
|
|
const arrow2 = new Arrow();
|
|
arrow2.setFrom(100, 50);
|
|
arrow2.setControlPoint(new Point(50, 50));
|
|
|
|
overflowWorkspace.append(arrow2);
|
|
|
|
overflowWorkspace.addItAsChildTo($('#overflowExample').first());
|