blob: b759ffd259f1969ccaa1975189c654e29d85714c [file] [log] [blame]
svishnev1eb66b72018-01-11 14:39:45 +02001/*
2 * Copyright © 2016-2017 European Support Limited
AviZi280f8012017-06-09 02:39:56 +03003 *
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
svishnev1eb66b72018-01-11 14:39:45 +02007 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
AviZi280f8012017-06-09 02:39:56 +030010 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
svishnev1eb66b72018-01-11 14:39:45 +020012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
AviZi280f8012017-06-09 02:39:56 +030015 */
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
Einav Weiss Keidar7fdf7332018-03-20 14:45:40 +020028SVGElement.prototype.getTransformToElement =
29 SVGElement.prototype.getTransformToElement ||
30 function(toElement) {
31 return toElement
32 .getScreenCTM()
33 .inverse()
34 .multiply(this.getScreenCTM());
35 };
Michael Landoefa037d2017-02-19 12:57:33 +020036
Einav Weiss Keidar7fdf7332018-03-20 14:45:40 +020037ReactDOM.render(
38 <Application>
39 <Modules />
40 </Application>,
41 document.getElementById('sdc-app')
42);