Add new code new version
[sdc.git] / openecomp-ui / src / sdc-app / sdc.app.jsx
1 import '../../resources/scss/bootstrap.scss';
2 import '../../resources/css/font-awesome.min.css';
3 import 'react-select/dist/react-select.min.css';
4 import 'dox-sequence-diagram-ui/src/main/webapp/res/sdc-sequencer.scss';
5 import '../../resources/scss/style.scss';
6
7 import React from 'react';
8 import ReactDOM from 'react-dom';
9
10 import Application from './Application.jsx';
11 import 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
14 SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
15         return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
16 };
17
18 ReactDOM.render(<Application><Modules/></Application>, document.getElementById('sdc-app'));