blob: 5fdea27fea482c3107a5978a394c88e0c5f7c912 [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001/*!
2 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13 * or implied. See the License for the specific language governing
14 * permissions and limitations under the License.
15 */
Michael Landoefa037d2017-02-19 12:57:33 +020016import '../../resources/scss/bootstrap.scss';
Michael Landoefa037d2017-02-19 12:57:33 +020017import 'react-select/dist/react-select.min.css';
18import 'dox-sequence-diagram-ui/src/main/webapp/res/sdc-sequencer.scss';
19import '../../resources/scss/style.scss';
20
21import React from 'react';
22import ReactDOM from 'react-dom';
23
24import Application from './Application.jsx';
25import Modules from './ModulesOptions.jsx';
26
27//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
28SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
29 return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
30};
31
32ReactDOM.render(<Application><Modules/></Application>, document.getElementById('sdc-app'));