Skip to content

Instantly share code, notes, and snippets.

View CADViewer's full-sized avatar

CADViewer CADViewer

View GitHub Profile
@CADViewer
CADViewer / reactjs_index_122.html
Created November 2, 2020 16:30
CADViewer Documentation gist 122
<body>
<h1>ReactJS - Root + CADViewer Container Sample</h1>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="floorPlan"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
@CADViewer
CADViewer / reactjs_index_121.html
Created November 2, 2020 16:26
CADViewer Documentation gist 121
<title>React App</title>
<script src="/cadviewer/app/js/jquery-2.2.3.js" type="text/javascript"></script>
<script src="/cadviewer/app/js/jquery.qtip.min.js" type="text/javascript"></script>
<script src="/cadviewer/app/js/popper.js" type="text/javascript"></script>
<script src="/cadviewer/app/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/cadviewer/app/js/jquery-ui-1.11.4.min.js" type="text/javascript"></script>
@CADViewer
CADViewer / CADViewer_ReactJS01_120.js
Last active November 18, 2020 08:56
CADViewer Documentation gist 120
function init_CADViewer(){
// If CADViewer is on a child/nested component, it will fire off the initialization multiple times,
// therefore we clean the component and init array on repeat call to the component
//if (isCADViewerInitializedInAngular){
// jQuery("floorPlan").empty();
// floorplans_divs_Initialized = ["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""];
// }
@CADViewer
CADViewer / reactjs_cadviewer_119.js
Created November 2, 2020 16:11
CADViewer Documentation gist 119
import React, { Component } from 'react';
import {findDOMNode } from 'react-dom';
import logo from './logo.svg';
import './App.css';
import { render } from '@testing-library/react';
import ResizeObserver from 'rc-resize-observer';
// import { View } from 'react-native';
export const appendScript = (scriptToAppend, filetype) => {
@CADViewer
CADViewer / CADViewer_config_reactjs.json
Last active November 18, 2020 09:04
CADViewer Documentation gist 118
{
"ServerUrl" : "http://localhost:3000",
"ServerFrontEndUrl" : "http://localhost:8000",
"ServerLocation" : "c:/nodejs/cadviewer/",
"fileLocation" : "c:/nodejs/cadviewer/converters/files/",
"fileLocationUrl" : "http://127.0.0.1:3000/converters/files/",
"converterLocation" : "c:/nodejs/cadviewer/converters/ax2020/windows/",
"ax2020_executable" : "AX2020_W32_20_05_26.exe",
"licenseLocation" : "c:/nodejs/cadviewer/converters/ax2020/windows/",
"xpathLocation" : "c:/nodejs/cadviewer/converters/xpath/",
@CADViewer
CADViewer / CADViewer_ReactJSHandlerSettings.js
Last active November 2, 2020 16:05
CADViewer Documentation gist 117
// CADVIEWER INSTALLATION FOLDERS
// Location of installation Front-End ServerUrl
var ServerUrl = "http://localhost:8000/"; // ReactJS, Windows
// var ServerLocation = "/usr/bin/nodejs/cadviewer/"; // NodeJS, Linux
var ServerLocation = "C:/nodejs/cadviewer/"; // NodeJS, Windows
// Location of installation BackEnd ServerUrl
var ServerBackEndUrl = "http://localhost:3000/"; // NodeJS, Windows
@CADViewer
CADViewer / cadviewer_servlets_116.js
Created October 7, 2020 09:24
CADViewer Documentation gist 116
// CADVIEWER INSTALLATION FOLDERS
// ON Under Linux replace c:\xampp\tomcat\webapps with /var/lib/tomcat{X}
// Location of installation Path
var ServerLocation = "C:\\xampp\\tomcat\\webapps\\cadviewer\\";
// Location of installation Url
var ServerUrl = "http://localhost:8080/cadviewer/";
@CADViewer
CADViewer / cadviewer_servlets_115.html
Created October 7, 2020 09:20
CADViewer Documentation gist 115
<!-- <script src="../app/cv/CADViewer_PHPHandlerSettings.js" type="text/javascript"></script> -->
<script src="../app/cv/CADViewer_ServletHandlerSettings.js" type="text/javascript"></script>
<!-- <script src="../app/cv/CADViewer_AshxHandlerSettings.js" type="text/javascript"></script> -->
<!-- <script src="../app/cv/CADViewer_NodeJSHandlerSettings.js" type="text/javascript"></script> -->
@CADViewer
CADViewer / cadviewer_servlets_114.xml
Created October 7, 2020 09:16
CADViewer Documentation gist 114
<!-- BELOW Define servlets that are included in CADViewer application -->
<!-- NOTE: Under Linux replace c:\xampp\tomcat\webapps with /var/lib/tomcat{X}. -->
<servlet>
<servlet-name>AppendServlet</servlet-name>
<servlet-class>AppendServlet</servlet-class>
</servlet>
@CADViewer
CADViewer / angular_documentation_113.js
Last active September 16, 2020 15:55
CADViewer Documentation gist 113
function init_CADViewer(){
// If local scope only for bootstrap stylesheet is needed, then add to CADViewer here
// At the same time, remove reference: "node_modules/bootstrap/dist/css/bootstrap.min.css", from angular.json "styles":[]
/*
jQuery("<link/>", {
rel: "stylesheet",
type: "text/css",
href: "/assets/cadviewer/app/css/bootstrap.min.css"
}).appendTo("head");