blob: 0929fa0bb92c63e79bb2236ab8816540cd29790c [file] [log] [blame]
Michael Landoefa037d2017-02-19 12:57:33 +02001import '../../resources/scss/bootstrap.scss';
2import '../../resources/css/font-awesome.min.css';
3import 'react-select/dist/react-select.min.css';
4import 'dox-sequence-diagram-ui/src/main/webapp/res/sdc-sequencer.scss';
5import '../../resources/scss/style.scss';
6
7import React from 'react';
8import ReactDOM from 'react-dom';
9
10import Application from './Application.jsx';
11import Modules from './ModulesOptions.jsx';
12
13//chrome 48 remove svg method which is used in jointjs core -> https://github.com/cpettitt/dagre-d3/issues/202 --> http://jointjs.com/blog/get-transform-to-element-polyfill.html
14SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
15 return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
16};
17
18ReactDOM.render(<Application><Modules/></Application>, document.getElementById('sdc-app'));