cadviewer 6.8.87 → 6.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1212,6 +1212,7 @@ export default{
1212
1212
  cvjs_exitMultiSelect,
1213
1213
  cvjs_getLengthOfSVGPath,
1214
1214
  cvjs_emptyMainCanvasInAngular,
1215
+ cvjs_emptyMainCanvas,
1215
1216
  cvjs_setMultiSelect,
1216
1217
  cvjs_getMultiSelect,
1217
1218
  cvjs_hideOnlyPop,
@@ -1286,7 +1287,8 @@ export default{
1286
1287
  cvjs_extractSVGfromCanvas,
1287
1288
  cvjs_downloadObjectAsFile,
1288
1289
  cvjs_setSpaceObjectProcessing,
1289
- cvjs_returnNonPreprocessedSVG
1290
+ cvjs_returnNonPreprocessedSVG,
1291
+ cvjs_restAPI_getSVGContentData
1290
1292
  }
1291
1293
  // ANGULAR , REACT - no default
1292
1294
  export {
@@ -2158,6 +2160,7 @@ export {
2158
2160
  cvjs_exitMultiSelect,
2159
2161
  cvjs_getLengthOfSVGPath,
2160
2162
  cvjs_emptyMainCanvasInAngular,
2163
+ cvjs_emptyMainCanvas,
2161
2164
  cvjs_setMultiSelect,
2162
2165
  cvjs_getMultiSelect,
2163
2166
  cvjs_hideOnlyPop,
@@ -2232,8 +2235,8 @@ export {
2232
2235
  cvjs_extractSVGfromCanvas,
2233
2236
  cvjs_downloadObjectAsFile,
2234
2237
  cvjs_setSpaceObjectProcessing,
2235
- cvjs_returnNonPreprocessedSVG
2236
-
2238
+ cvjs_returnNonPreprocessedSVG,
2239
+ cvjs_restAPI_getSVGContentData
2237
2240
  }
2238
2241
 
2239
2242
  var id_supress_standard_dropdown_menus;
@@ -2258,14 +2261,13 @@ cadviewer_full_commands_01;
2258
2261
  // END REACTJS and ANGULAR placeholders for all callbackmethods
2259
2262
  //*/
2260
2263
 
2261
-
2262
- var cvjs_versionNumber="CADViewer - v6.8.87f",cvjs_AXversionNumber="",cvjs_Community_Version=!0,rest_customConversionEndpointExtension=!1,reactstaticbindxml=!1,reactstaticbindbitmap=!0,vuestaticbindxml=
2263
- !1,vuestaticbindbitmap=!0,angularstaticbindxml=!1,angularstaticbindbitmap=!1,llccktrace=!1,cvjs_firstLoadViewBoxX=0,cvjs_firstLoadViewBoxY=0,cvjs_firstLoadViewBoxW=0,cvjs_firstLoadViewBoxH=0,cvjs_interactiveZoomWidthAdjustment=!0,cvjs_tmsMinLineWidth_init=0,cvjs_tmsMinFixedLineWidth_init=0,cvjs_measurementSnapMode="none",cvjs_dragModalTouchPad_x=0,cvjs_dragModalTouchPad_y=0,cvjs_jsonLocation="",cvjs_isAngular=!1,cvjs_firstCloneHandle="",cvjs_firstCloneHandleFlag=!1,cvjs_setProcessHandleObjects=!1,
2264
- cvjs_setProcessSpaceObjects=!0,cvjs_layerlist_layeritemsmax=120,pt1="htt",lt1="log",lt2="oJS",lt3=".p",lt4="ng",cvjs_insertSpaceObjectCustomCodePlaceholder,cvjs_EmailSentStatus,cvjs_OnLoadEnd,cvjs_graphicalObjectOnChange,cvjs_OnLoadEndRedlines,cvjs_ObjectSelected,cvjs_measurementCallback,cvjs_CalibrateMeasurementCallback,cvjs_Url_callback,cvjs_loadSpaceImage_UserConfiguration,cvjs_NoObjectSelected,cvjs_SVGfileObjectClicked,cvjs_SVGfileObjectMouseEnter,cvjs_SVGfileObjectMouseLeave,cvjs_SVGfileObjectMouseMove,
2265
- cvjs_ParseDisplayDataMaps,cvjs_QuickCountCallback,cvjs_OnHyperlinkClick,cvjs_setUpStickyNotesRedlines,custom_host_parser_PopUpMenu,cvjs_customHostParser,drawPathsGeneric,cvjs_callbackForModalDisplay,cvjs_populateMyCustomPopUpBody,cvjs_customModalPopUpBody,cvjs_NoObjectSelectedStickyNotes,cvjs_NoObjectSelectedHyperlinks,cvjs_ObjectSelectedHyperlink,cvjs_ObjectSelectedStickyNotes,cvjs_saveStickyNotesRedlinesUser,cvjs_loadStickyNotesRedlinesUser,my_own_clickmenu1,my_own_clickmenu2,cvjs_popupTitleClick,
2266
- cvjs_mousedown,cvjs_click,cvjs_dblclick,cvjs_mouseout,cvjs_mouseover,cvjs_mouseleave,cvjs_mouseenter,cvjs_graphicalObjectCreated,custom_callback1,custom_callback2,custom_callback3,custom_callback4,custom_callback5,custom_callback6,custom_callback7,custom_callback8,custom_callback9,custom_callback10,cvjs_customCommand_01,cvjs_customCommand_02,cvjs_customCommand_03,cvjs_customCommand_04,cvjs_customCommand_05,cvjs_customCommand_06,cvjs_customCommand_07,cvjs_customCommand_08,cvjs_customCommand_09,cvjs_customCommand_10,
2267
- cvjs_customCommand_11,cvjs_customCommand_12,cvjs_customCommand_13,cvjs_customCommand_14,cvjs_customCommand_15,cvjs_customCommand_16,cvjs_customCommand_17,cvjs_customCommand_18,cvjs_customCommand_19,cvjs_customCommand_20,printWindow,tms_rest_api_url,api_data,vBHo,vBWo,spc,bRoom,spaceLayer,tipText,brd,cvjs_svgWidth,rebuild_drop_spaces,cvjs_active_floorplan_div_nr=0,layer_thumb,fileName,unlink_flag,unlink_file,worldUnits,api_proxy_url,usr,pwd,building_name,company,address,city,zipcode,state,country,
2268
- FacMgr_name,FacMgr_title,FacMgr_email,FacMgr_phone,refresh_rate,id_data_connector,id_data_parser,id_publish_location,id_main_data_layer,id_datafield1_name,id_datafield1_value,id_datafield2_name,id_datafield2_value,id_datalayer1_name,id_datalayer1_value,id_datalayer2_name,id_datalayer2_value,FileName="",layer_hyperlinks,user_name,user_id,current_selected_filename,current_selected_shortname,delete_filename,delete_floor,hidefield_name1,hidefield_name2,pt2="ps://",qrcode,use_as_QR_code_bitmap_filname,
2264
+ var cvjs_versionNumber="CADViewer - v6.8.89b",cvjs_AXversionNumber="",cvjs_Community_Version=!0,cvjs_svg_creation_contentData="",rest_customConversionEndpointExtension=!1,reactstaticbindxml=
2265
+ !1,reactstaticbindbitmap=!0,vuestaticbindxml=!1,vuestaticbindbitmap=!0,angularstaticbindxml=!1,angularstaticbindbitmap=!1,llccktrace=!1,cvjs_firstLoadViewBoxX=0,cvjs_firstLoadViewBoxY=0,cvjs_firstLoadViewBoxW=0,cvjs_firstLoadViewBoxH=0,cvjs_interactiveZoomWidthAdjustment=!0,cvjs_tmsMinLineWidth_init=0,cvjs_tmsMinFixedLineWidth_init=0,cvjs_measurementSnapMode="none",cvjs_dragModalTouchPad_x=0,cvjs_dragModalTouchPad_y=0,cvjs_jsonLocation="",cvjs_isAngular=!1,cvjs_firstCloneHandle="",cvjs_firstCloneHandleFlag=
2266
+ !1,cvjs_setProcessHandleObjects=!1,cvjs_setProcessSpaceObjects=!0,cvjs_layerlist_layeritemsmax=120,pt1="htt",lt1="log",lt2="oJS",lt3=".p",lt4="ng",cvjs_insertSpaceObjectCustomCodePlaceholder,cvjs_EmailSentStatus,cvjs_OnLoadEnd,cvjs_graphicalObjectOnChange,cvjs_OnLoadEndRedlines,cvjs_ObjectSelected,cvjs_measurementCallback,cvjs_CalibrateMeasurementCallback,cvjs_Url_callback,cvjs_loadSpaceImage_UserConfiguration,cvjs_NoObjectSelected,cvjs_SVGfileObjectClicked,cvjs_SVGfileObjectMouseEnter,cvjs_SVGfileObjectMouseLeave,
2267
+ cvjs_SVGfileObjectMouseMove,cvjs_ParseDisplayDataMaps,cvjs_QuickCountCallback,cvjs_OnHyperlinkClick,cvjs_setUpStickyNotesRedlines,custom_host_parser_PopUpMenu,cvjs_customHostParser,drawPathsGeneric,cvjs_callbackForModalDisplay,cvjs_populateMyCustomPopUpBody,cvjs_customModalPopUpBody,cvjs_NoObjectSelectedStickyNotes,cvjs_NoObjectSelectedHyperlinks,cvjs_ObjectSelectedHyperlink,cvjs_ObjectSelectedStickyNotes,cvjs_saveStickyNotesRedlinesUser,cvjs_loadStickyNotesRedlinesUser,my_own_clickmenu1,my_own_clickmenu2,
2268
+ cvjs_popupTitleClick,cvjs_mousedown,cvjs_click,cvjs_dblclick,cvjs_mouseout,cvjs_mouseover,cvjs_mouseleave,cvjs_mouseenter,cvjs_graphicalObjectCreated,custom_callback1,custom_callback2,custom_callback3,custom_callback4,custom_callback5,custom_callback6,custom_callback7,custom_callback8,custom_callback9,custom_callback10,cvjs_customCommand_01,cvjs_customCommand_02,cvjs_customCommand_03,cvjs_customCommand_04,cvjs_customCommand_05,cvjs_customCommand_06,cvjs_customCommand_07,cvjs_customCommand_08,cvjs_customCommand_09,
2269
+ cvjs_customCommand_10,cvjs_customCommand_11,cvjs_customCommand_12,cvjs_customCommand_13,cvjs_customCommand_14,cvjs_customCommand_15,cvjs_customCommand_16,cvjs_customCommand_17,cvjs_customCommand_18,cvjs_customCommand_19,cvjs_customCommand_20,printWindow,tms_rest_api_url,api_data,vBHo,vBWo,spc,bRoom,spaceLayer,tipText,brd,cvjs_svgWidth,rebuild_drop_spaces,cvjs_active_floorplan_div_nr=0,layer_thumb,fileName,unlink_flag,unlink_file,worldUnits,api_proxy_url,usr,pwd,building_name,company,address,city,
2270
+ zipcode,state,country,FacMgr_name,FacMgr_title,FacMgr_email,FacMgr_phone,refresh_rate,id_data_connector,id_data_parser,id_publish_location,id_main_data_layer,id_datafield1_name,id_datafield1_value,id_datafield2_name,id_datafield2_value,id_datalayer1_name,id_datalayer1_value,id_datalayer2_name,id_datalayer2_value,FileName="",layer_hyperlinks,user_name,user_id,current_selected_filename,current_selected_shortname,delete_filename,delete_floor,hidefield_name1,hidefield_name2,pt2="ps://",qrcode,use_as_QR_code_bitmap_filname,
2269
2271
  handleUpdates,dataHandleString,myLocation,printDebugFlag=!1,cvjs_3Ddrawings=!1,cvjs_NodeJSserver=!1,cvjs_AngularFlag=!1,cvjs_layerList_checkbox=!1,cvjs_CompareFiles_CustomFileModalContent_flag=!1,cvjs_CompareFiles_CustomFileModalContent=[],cvjs_directFileLoad=!1,cvjs_directFileLoadPath="",cvjs_mergeDXFDWG_downloadMode=!1,demoonly_customHandleChange=!1,cvjs_PrintIconDisabled=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],rest_serviceCall=!1,rest_applicationPlatform=
2270
2272
  "",rest_applicationPlatformUsername="",rest_applicationPlatformUserID="",rest_ServiceToken="",rest_leaveStreamOnServer=0,cvjs_preConversionFileExtension=[],cvjs_preConversionFileName=[],cvjs_interactiveMethod_Active=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],cvjs_devMode=!1,fileExtensionLower="",cvjs_custom_print_to_pdf=!1,cvjs_encodeURIcall_server=!0,cvjs_currentFileFromJSTreeFolder="",cvjs_PrintModal_PrintPDF=!1,cvjs_PrintModal_PrintResolution=!1,cvjs_PrintModal_PrintToScale=
2271
2273
  !1,cvjs_print_to_pdf_windowRelativeSize=.4,cvjs_addedObjectsToExtents=!1,cvjs_multipagePDFtoSVG_PhpLoadFlag=!1,cvjs_bitmapFileNameIsServerPath_flag=!1,cvjs_bitmapLoadFlag=!1,cvjs_last_FileName_PDF="",cvjs_rPaper=[],cvjs_masterBackground=[];cvjs_active_floorplan_div_nr=0;
@@ -2302,7 +2304,8 @@ worldUnits.lengthType,cvjs_lengthPrecision[cvjs_active_floorplan_div_nr]=worldUn
2302
2304
  cvjs_debug&&console.log("worldUnits.units "+worldUnits.units)}catch(k){cvjs_debug&&console.log("no worldUnits defined in metadata"+k)}try{b=document.querySelectorAll('[id^="cadviewer_drawingCoordinates"]');c=!1;d=0;for(e=b.length;d<e;d++)f=b[d].id,g="[id^="+floorplan_div_Array[cvjs_active_floorplan_div_nr]+"]",h=jQuery("#"+f).parents(g).attr("id"),h!=floorplan_div_Array[cvjs_active_floorplan_div_nr]||c||(c=!0,a=b[d].textContent,a=a.replace(/(\r\n|\n|\r)/gm,""),cvjs_debug&&console.log("cadviewer_drawingCoordinates="+
2303
2305
  a+"XXX"),cvjs_drawingCoordinates[multiPages[cvjs_active_floorplan_div_nr].currentPage]=jQuery.parseJSON(a));c||(a=document.getElementById("cadviewer_drawingCoordinates").textContent,a=a.replace(/(\r\n|\n|\r)/gm,""),cvjs_debug&&console.log("cadviewer_drawingCoordinates="+a+"XXX"),cvjs_drawingCoordinates[multiPages[cvjs_active_floorplan_div_nr].currentPage]=jQuery.parseJSON(a))}catch(k){cvjs_debug&&console.log("no drawingCoordinates defined in metadata or parsing error "+k)}}
2304
2306
  var cvjs_backEndHandlerType="",cvjs_frontEndHandlerType="javascript";function cvjs_setInteractiveZoomWidthAdjustment(a){cvjs_interactiveZoomWidthAdjustment=a}function cvjs_setDisableClickDrag(a){cvjs_disableClickDrag=a}function cvjs_setHandleObjectProcessing(a){cvjs_setProcessHandleObjects=a}function cvjs_setSpaceObjectProcessing(a){cvjs_setProcessSpaceObjects=a}
2305
- function cvjs_returnNonPreprocessedSVG(){var a=cvjs_SVGloadedFragment.substring(cvjs_SVGloadedFragment.indexOf("tmsSVG")-9);return a=a.slice(0,-10)}
2307
+ function cvjs_returnNonPreprocessedSVG(){if(-1<cvjs_SVGloadedFragment.indexOf("tmsSVG"))var a=cvjs_SVGloadedFragment.substring(cvjs_SVGloadedFragment.indexOf("tmsSVG")-9);else a=cvjs_SVGloadedFragment.substring(cvjs_SVGloadedFragment.indexOf("<svg")+5),a=a.substring(a.indexOf("<svg"));return a=a.slice(0,-10)}
2308
+ function cvjs_restAPI_getSVGContentData(a){void 0==a&&(a=!1);var b=cvjs_svg_creation_contentData,c=b.indexOf("remainOnServer");return b=a?b.substring(0,c+15)+"1"+b.substring(c+16)+"&pickOriginalFile=1":b.substring(0,c+15)+"0"+b.substring(c+16)+"&pickOriginalFile=1"}
2306
2309
  function cvjs_removeHandleFunc_Generic(){try{cvjs_interactiveMethod_Active[cvjs_active_floorplan_div_nr]=!1,handleGroup.selectAll("handler").remove(),handleGroup.remove()}catch(a){console.log("cvjs_removeHandleFunc_Generic: "+a)}try{jQuery("#freelineCanvas_"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).hide()}catch(a){console.log("cvjs_removeHandleFunc_Generic CANVAS: "+a)}}
2307
2310
  function cvjs_setAllServerPaths_and_Handlers(a,b,c,d,e,f,g){var h=d.toLowerCase();void 0==g&&(g="");switch(h){case "dotnet":cvjs_setServerHandlersPath(a);cvjs_setReturnPathController("getserverpath.ashx");break;case "dotnetcore":cvjs_setServerHandlersPath(a);cvjs_setReturnPathController(g+"getserverpath");break;case "nodejs":cvjs_setServerHandlersPath(a);cvjs_setReturnPathController("getserverpath");break;case "servlets":cvjs_setServerHandlersPath(a),cvjs_setReturnPathController("GetServerPathServlet")}cvjs_setServerBackEndUrl(a);
2308
2311
  cvjs_setServerLocationURL(c,b);cvjs_setHandlers_FrontEnd(d,e,f,g)}
@@ -3053,30 +3056,31 @@ function cvjs_setIconInterfaceControls_MimimumDisk(a,b){var c=cvjs_interfaceCoun
3053
3056
  function cvjs_setIconInterfaceControls_MimimumDisk_internal(a,b){b=cvjs_interfaceCounterIndex(b);cvjs_iconInterfaceDisabled[b]||(cvjs_iconInterfaceDisabled[b]=a,pageChangeInterface[b]=!1,cvjs_iconInterfaceClassicSkin[b]=a,cvjs_iconInterfaceClassicSkinDeviceSize[b]=!1,cvjs_iconInterfaceClassicSkin_MinimumDisk[b]=a,jQuery("<link/>",{rel:"stylesheet",type:"text/css",href:cvjs_applicationFolder+"/user_resources/css/font-awesome.css"}).appendTo("head"))}
3054
3057
  function cvjs_setIconInterfaceControls_PanZoomDisk(a,b){interfaceCounter++;var c=interfaceCounter;interfaceCounterDiv[c]=b+"_svg";cvjs_iconInterfaceDisabled[c]=a;pageChangeInterface[c]=!1;cvjs_iconInterfaceClassicSkin[c]=a;cvjs_iconInterfaceClassicSkinDeviceSize[c]=!1;cvjs_iconInterfaceClassicSkin_MinimumDisk[c]=!1;cvjs_iconInterfaceClassicSkin_PanZoomDisk[c]=a}function cvjs_overwriteDefaultDeviceSettings(a){a&&(isSmartPhoneOrTablet=!1)}
3055
3058
  var floorPlan_div="",cvjs_location_flag=!0,hbody="",hbody_2="",dual_hbody_flag=!1;function cvjs_initFloorPlanDivArray(a){var b=floorplan_div_Array.length;cvjs_active_floorplan_div_nr=b;floorplan_div_Array[b]=a;floorplan_div_Array_current_Drawing[b]="";cvjs_SpaceObjectsContent[b]=[]}function cvjs_InitCADViewer_highLight_popUp_dual_Id(a,b,c,d,e,f){cvjs_InitCADViewerJS_highLight_popUp_dual_Id(a,b,c,d,e,f)}
3056
- function cvjs_InitCADViewerJS_highLight_popUp_dual_Id(a,b,c,d,e,f){cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",
3057
- stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';hbody_2='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';
3058
- hbody_2+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';void 0!=b&&(defaultColor=b);void 0!=c&&(highlight=c);void 0!=d&&(selectColor=d);void 0!=e&&(hbody=e);void 0!=f&&(hbody_2=f);dual_hbody_flag=!0}function cvjs_InitCADViewer_highLight_popUp_app(a,b,c,d,e,f){cvjs_InitCADViewerJS_highLight_popUp_app(a,b,c,d,e,f)}
3059
- function cvjs_InitCADViewerJS_highLight_popUp_app(a,b,c,d,e,f){cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_imagesLocation=cvjs_applicationFolder+"/images/";cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/";cvjs_defaultJSPath=cvjs_applicationFolder+"/js/";void 0!=b&&(cvjs_applicationFolder=
3060
- b,cvjs_imagesLocation=cvjs_applicationFolder+"/images/",cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/",cvjs_defaultJSPath=cvjs_applicationFolder+"/js/");cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3,"stroke-linejoin":"round"};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3,"stroke-linejoin":"round"};
3061
- hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';void 0!=c&&(defaultColor=c);void 0!=d&&(highlight=d);void 0!=e&&(selectColor=e);void 0!=f&&(hbody=f);dual_hbody_flag=!1}
3062
- function cvjs_InitCADViewer_highLight_popUp(a,b,c,d,e){cvjs_InitCADViewerJS_highLight_popUp(a,b,c,d,e)}
3063
- function cvjs_InitCADViewerJS_highLight_popUp(a,b,c,d,e){cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4",
3064
- "stroke-width":3,"stroke-linejoin":"round"};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3,"stroke-linejoin":"round"};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';
3059
+ function cvjs_InitCADViewerJS_highLight_popUp_dual_Id(a,b,c,d,e,f){cvjs_emptyMainCanvas(a);cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4",
3060
+ "fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';
3061
+ hbody_2='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody_2+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';void 0!=b&&(defaultColor=b);void 0!=c&&(highlight=c);void 0!=d&&(selectColor=d);void 0!=e&&(hbody=e);void 0!=f&&(hbody_2=f);dual_hbody_flag=!0}function cvjs_InitCADViewer_highLight_popUp_app(a,b,c,d,e,f){cvjs_InitCADViewerJS_highLight_popUp_app(a,b,c,d,e,f)}
3062
+ function cvjs_InitCADViewerJS_highLight_popUp_app(a,b,c,d,e,f){cvjs_emptyMainCanvas(a);cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_imagesLocation=cvjs_applicationFolder+"/images/";cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/";cvjs_defaultJSPath=cvjs_applicationFolder+
3063
+ "/js/";void 0!=b&&(cvjs_applicationFolder=b,cvjs_imagesLocation=cvjs_applicationFolder+"/images/",cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/",cvjs_defaultJSPath=cvjs_applicationFolder+"/js/");cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3,"stroke-linejoin":"round"};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6",
3064
+ "stroke-width":3,"stroke-linejoin":"round"};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';void 0!=c&&(defaultColor=c);void 0!=d&&(highlight=d);void 0!=e&&(selectColor=e);void 0!=f&&(hbody=
3065
+ f);dual_hbody_flag=!1}function cvjs_InitCADViewer_highLight_popUp(a,b,c,d,e){cvjs_InitCADViewerJS_highLight_popUp(a,b,c,d,e)}
3066
+ function cvjs_InitCADViewerJS_highLight_popUp(a,b,c,d,e){cvjs_emptyMainCanvas(a);cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4",
3067
+ "fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3,"stroke-linejoin":"round"};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3,"stroke-linejoin":"round"};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';
3065
3068
  void 0!=b&&(defaultColor=b);void 0!=c&&(highlight=c);void 0!=d&&(selectColor=d);void 0!=e&&(hbody=e);dual_hbody_flag=!1}function cvjs_InitCADViewer_highLight(a,b,c,d){cvjs_InitCADViewerJS_highLight(a,b,c,d)}
3066
- function cvjs_InitCADViewerJS_highLight(a,b,c,d){cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4",
3067
- "stroke-width":3,"stroke-linejoin":"round"};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3,"stroke-linejoin":"round"};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';
3069
+ function cvjs_InitCADViewerJS_highLight(a,b,c,d){cvjs_emptyMainCanvas(a);cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",
3070
+ stroke:"#a4d7f4","stroke-width":3,"stroke-linejoin":"round"};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3,"stroke-linejoin":"round"};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';
3068
3071
  void 0!=b&&(defaultColor=b);void 0!=c&&(highlight=c);void 0!=d&&(selectColor=d);dual_hbody_flag=!1}var cvjs_applicationFolder="../app/";function cvjs_InitCADViewer_app(a,b,c){cvjs_InitCADViewerJS_app(a,b,c)}
3069
- function cvjs_InitCADViewerJS_app(a,b){cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_imagesLocation=cvjs_applicationFolder+"/images/";cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/";cvjs_defaultJSPath=cvjs_applicationFolder+"/js/";void 0!=b&&(cvjs_applicationFolder=b,cvjs_imagesLocation=
3070
- cvjs_applicationFolder+"/images/",cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/",cvjs_defaultJSPath=cvjs_applicationFolder+"/js/");cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';
3071
- hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';dual_hbody_flag=!1}function cvjs_InitCADViewer_app_highLight(a,b,c,d,e){cvjs_InitCADViewerJS_app_highLight(a,b,c,d,e)}
3072
- function cvjs_InitCADViewerJS_app_highLight(a,b,c,d,e){cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_imagesLocation=cvjs_applicationFolder+"/images/";cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/";cvjs_defaultJSPath=cvjs_applicationFolder+"/js/";void 0!=b&&(cvjs_applicationFolder=
3072
+ function cvjs_InitCADViewerJS_app(a,b){cvjs_emptyMainCanvas(a);cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_imagesLocation=cvjs_applicationFolder+"/images/";cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/";cvjs_defaultJSPath=cvjs_applicationFolder+"/js/";void 0!=b&&(cvjs_applicationFolder=
3073
3073
  b,cvjs_imagesLocation=cvjs_applicationFolder+"/images/",cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/",cvjs_defaultJSPath=cvjs_applicationFolder+"/js/");cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';
3074
+ hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';dual_hbody_flag=!1}function cvjs_InitCADViewer_app_highLight(a,b,c,d,e){cvjs_InitCADViewerJS_app_highLight(a,b,c,d,e)}
3075
+ function cvjs_InitCADViewerJS_app_highLight(a,b,c,d,e){cvjs_emptyMainCanvas(a);cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_imagesLocation=cvjs_applicationFolder+"/images/";cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/";cvjs_defaultJSPath=cvjs_applicationFolder+"/js/";
3076
+ void 0!=b&&(cvjs_applicationFolder=b,cvjs_imagesLocation=cvjs_applicationFolder+"/images/",cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/",cvjs_defaultJSPath=cvjs_applicationFolder+"/js/");cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';
3074
3077
  hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';dual_hbody_flag=!1;void 0!=c&&(defaultColor=c);void 0!=d&&(highlight=d);void 0!=e&&(selectColor=e)}function cvjs_InitCADViewer_app_highLight_popUp(a,b,c,d,e,f){cvjs_InitCADViewerJS_app_highLight_popUp(a,b,c,d,e,f)}
3075
- function cvjs_InitCADViewerJS_app_highLight_popUp(a,b,c,d,e,f){cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_imagesLocation=cvjs_applicationFolder+"/images/";cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/";cvjs_defaultJSPath=cvjs_applicationFolder+"/js/";void 0!=b&&(cvjs_applicationFolder=
3076
- b,cvjs_imagesLocation=cvjs_applicationFolder+"/images/",cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/",cvjs_defaultJSPath=cvjs_applicationFolder+"/js/");cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';
3077
- hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';dual_hbody_flag=!1;void 0!=c&&(defaultColor=c);void 0!=d&&(highlight=d);void 0!=e&&(selectColor=e);void 0!=f&&(hbody=f);dual_hbody_flag=!1}function cvjs_InitCADViewer(a,b,c){cvjs_InitCADViewerJS(a,b,c)}
3078
- function cvjs_InitCADViewerJS(a,b,c){cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);void 0!=b&&(cvjs_imagesLocation=b);void 0!=c&&(cvjs_defaultJSPath=cvjs_relativeScriptsPath=c);cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};
3079
- highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';
3078
+ function cvjs_InitCADViewerJS_app_highLight_popUp(a,b,c,d,e,f){cvjs_emptyMainCanvas(a);cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);cvjs_imagesLocation=cvjs_applicationFolder+"/images/";cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/";cvjs_defaultJSPath=cvjs_applicationFolder+
3079
+ "/js/";void 0!=b&&(cvjs_applicationFolder=b,cvjs_imagesLocation=cvjs_applicationFolder+"/images/",cvjs_relativeScriptsPath=cvjs_applicationFolder+"/js/",cvjs_defaultJSPath=cvjs_applicationFolder+"/js/");cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC","stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody=
3080
+ '<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';dual_hbody_flag=!1;void 0!=c&&(defaultColor=c);void 0!=d&&(highlight=d);void 0!=e&&(selectColor=e);void 0!=f&&(hbody=f);dual_hbody_flag=!1}
3081
+ function cvjs_InitCADViewer(a,b,c){cvjs_InitCADViewerJS(a,b,c)}
3082
+ function cvjs_InitCADViewerJS(a,b,c){cvjs_emptyMainCanvas(a);cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);-1==cvjs_active_floorplan_div_nr&&(cvjs_initFloorPlanDivArray(a+"_svg"),cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a));cvjs_location_flag=!0;cvjs_Community_Version||(cvjs_lastObj[cvjs_active_floorplan_div_nr]=-1);void 0!=b&&(cvjs_imagesLocation=b);void 0!=c&&(cvjs_defaultJSPath=cvjs_relativeScriptsPath=c);cvjs_InitializeModals(a);defaultColor={fill:"#FFF","fill-opacity":"0.1",stroke:"#CCC",
3083
+ "stroke-width":1,"stroke-linejoin":"round"};highlight={fill:"#a4d7f4","fill-opacity":"0.5",stroke:"#a4d7f4","stroke-width":3};selectColor={fill:"#5BBEF6","fill-opacity":"0.5",stroke:"#5BBEF6","stroke-width":3};hbody='<div class="cvjs_modal_1" onclick="my_own_clickmenu1();">Custom<br>Menu 1<br><i class="fa fa-undo"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="my_own_clickmenu2();">Custom<br>Menu 2<br><i class="fa fa-info-circle"></i></div>';hbody+='<div class="cvjs_modal_1" onclick="cvjs_zoomHere();">Zoom<br>Here<br><i class="fa fa-search-plus"></i></div>';
3080
3084
  dual_hbody_flag=!1}var cvjs_imagesLocation="../images/",floor_loaded=!1,nodes_loaded=!1,thumbs_loaded=!1,stickynotesRedlines_loaded=!1,current_jsNodesFloorNames="",current_jsThumbFloorNames="",current_jsFullFloorNames="",current_jsFloorNames="",current_jsRedlinename="",current_js_initialized=0,current_redline_js_initialized=0,js_loaded_flag=0,current_FileNamePath="",cvjs_relativeScriptsPath="../app/js";function cvjs_setRelativeScriptsPath(a){cvjs_relativeScriptsPath=a}
3081
3085
  var cvjs_customPdfFolderFlag=!1,cvjs_customPdfFolderName="",cvjs_customPdfFolderForcedUpdate=!1;function cvjs_setCustomPdfFolder(a,b){cvjs_customPdfFolderFlag=!0;cvjs_customPdfFolderName=a;cvjs_customPdfFolderForcedUpdate=b}function cvjs_getCurrentPage(){return cvjs_SVG_multiPagesFlag[cvjs_active_floorplan_div_nr]?cvjs_SVG_multiPages[cvjs_active_floorplan_div_nr].currentPage:multiPages[cvjs_active_floorplan_div_nr].currentPage}
3082
3086
  function cvjs_LoadDrawingPDF_base(a){var b="",c="",d=cvjs_serverHandlersPath+cvjs_returnPDFparamsController;console.log("pdf configuration file "+d);jQuery.ajax({url:d,type:"post",data:{file:""},success:function(d){console.log("return from fUrl: "+d);var e=d;d=e.substring(0,e.indexOf("|"));e=e.substring(e.indexOf("|")+1);e=e.substring(0,e.indexOf("|"));b=d;c=e;d=b;e=c;var g=cvjs_serverHandlersPath+cvjs_serverPDFConverterController,h={};h.pdf_file=a;h.temp_dir="pdf/"+Math.floor(1E5*Math.random()+1);
@@ -3197,8 +3201,9 @@ contentStreamData=a.contentStreamData,contentStreamThumb=a.contentStreamThumb,1=
3197
3201
  a.contentLocationData,contentLocationThumb=a.contentLocationThumb,cvjs_loaddrawing_FileNamePath[cvjs_active_floorplan_div_nr]=a.contentLocationGraphics.substring(0,a.contentLocationGraphics.lastIndexOf("/")+1),1==cvjs_drawingLoadCounter&&(cvjs_compareDrawingsFirstDrawing=contentLocationData),1==current_js_initialized?(replacejscssfile(current_jsFloorNames,contentLocationData,"js"),cvjs_FourFilesInOne||(replacejscssfile(current_jsNodesFloorNames,contentLocationNodes,"js"),replacejscssfile(current_jsThumbFloorNames,
3198
3202
  contentLocationThumb,"js"),replacejscssfile(current_jsFullFloorNames,contentLocationGraphics,"js"))):(current_js_initialized=1,loadJSbase(contentLocationData),cvjs_FourFilesInOne||(loadJSbase(contentLocationNodes),loadJSbase(contentLocationThumb),loadJSbase(contentLocationGraphics))),current_jsFloorNames=contentLocationData,cvjs_FourFilesInOne||(current_jsNodesFloorNames=contentLocationNodes,current_jsThumbFloorNames=contentLocationThumb,current_jsFullFloorNames=contentLocationGraphics),rebuild_drop_spaces=
3199
3203
  1):cvjs_debug&&console.log("currently contentStream and contentLocation are implemented!! embedded to follow...")),"svg_creation_sharepoint_REST"==a.completedAction&&(cvjs_svgCreationContentLocation=a.contentLocation,cvjs_svgCreatedFromConversion=!0,"stream"==rest_contentResponse?(cvjs_debug&&console.log(" svg_creation_sharepoint_REST 1 svg server response "+a.contentStream),cvjs_LoadDrawingInternal(floorplan_div_Array[cvjs_active_floorplan_div_nr],a.contentStream,void 0,!0)):"file"==rest_contentResponse?
3200
- (cvjs_debug&&console.log("svg_creation_sharepoint_REST 2 here we parse an svg server response "+a.contentLocation),cvjs_LoadDrawingInternal(floorplan_div_Array[cvjs_active_floorplan_div_nr],a.contentLocation,void 0,!0)):cvjs_debug&&console.log("currently contentStream and contentLocation are implemented!! embedded to follow...")),"svg_creation"==a.completedAction&&(cvjs_svgCreationContentLocation=a.contentLocation,cvjs_svgCreatedFromConversion=!0,"stream"==rest_contentResponse?(cvjs_debug&&console.log(" 1 REST parse svg server response "+
3201
- a.contentStreamData+" "+a.contentLocation),contentStreamData=a.contentStreamData,cvjs_LoadDrawingInternal(floorplan_div_Array[cvjs_active_floorplan_div_nr],a.contentStreamData,void 0,!0)):"file"==rest_contentResponse?(cvjs_debug&&console.log("2 REST parse svg server response "+a.contentLocationData+" "+a.contentLocation),contentLocationData=a.contentLocationData,cvjs_LoadDrawingInternal(floorplan_div_Array[cvjs_active_floorplan_div_nr],a.contentLocationData,void 0,!0)):cvjs_debug&&console.log("currently contentStream and contentLocation are implemented!! embedded to follow...")))}
3204
+ (cvjs_debug&&console.log("svg_creation_sharepoint_REST 2 here we parse an svg server response "+a.contentLocation),cvjs_LoadDrawingInternal(floorplan_div_Array[cvjs_active_floorplan_div_nr],a.contentLocation,void 0,!0)):cvjs_debug&&console.log("currently contentStream and contentLocation are implemented!! embedded to follow...")),"svg_creation"==a.completedAction&&(cvjs_svg_creation_contentData="",cvjs_svgCreationContentLocation=a.contentLocation,cvjs_svgCreatedFromConversion=!0,"stream"==rest_contentResponse?
3205
+ (cvjs_debug&&console.log(" 1 REST parse svg server response "+a.contentStreamData+" "+a.contentLocation),cvjs_svg_creation_contentData=contentStreamData=a.contentStreamData,cvjs_LoadDrawingInternal(floorplan_div_Array[cvjs_active_floorplan_div_nr],a.contentStreamData,void 0,!0)):"file"==rest_contentResponse?(cvjs_debug&&console.log("2 REST parse svg server response "+a.contentLocationData+" "+a.contentLocation),cvjs_svg_creation_contentData=contentLocationData=a.contentLocationData,cvjs_LoadDrawingInternal(floorplan_div_Array[cvjs_active_floorplan_div_nr],
3206
+ a.contentLocationData,void 0,!0)):cvjs_debug&&console.log("currently contentStream and contentLocation are implemented!! embedded to follow...")))}
3202
3207
  function createjscssfile(a,b){if("js"==b){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src",a)}else"css"==b&&(c=document.createElement("link"),c.setAttribute("rel","stylesheet"),c.setAttribute("type","text/css"),c.setAttribute("href",a));cvjs_buildFolderTree_crossDomain&&(a=a.substring(0,a.indexOf("?dummy")),c.src=cvjs_serverHandlersPath+cvjs_serverLoadFileController+"?file="+a);return c}
3203
3208
  var cvjs_currentLoadedDrawingAsString="",cvjs_loadCurrentLoadedDrawingAsString=!1;
3204
3209
  function replacejscssfile(a,b,c){if(cvjs_initMasterBackground||"js"!=c){cvjs_debug&&console.log("replacejscssfile "+a+" "+b+" "+c);try{var d="js"==c?"src":"css"==c?"href":"none",e=document.getElementsByTagName("js"==c?"script":"css"==c?"link":"none");cvjs_buildFolderTree_crossDomain&&(b=cvjs_serverHandlersPath+cvjs_serverLoadFileController+"?file="+b);for(var f=e.length;0<=f;f--)if(e[f]&&null!=e[f].getAttribute(d)&&-1!=e[f].getAttribute(d).indexOf(a)){cvjs_debug&&console.log(" i "+f+" "+e[f].getAttribute(d));
@@ -4717,10 +4722,10 @@ l.indexOf('"');l=l.substring(m+1);f=k+l}b=e+f}}catch(q){console.log("err cvjs_ex
4717
4722
  function cvjs_saveAsSVG(a){try{a.lastIndexOf("_svg")!=a.length-4&&(a+="_svg");cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);cvjs_rPaper[cvjs_active_floorplan_div_nr].getBBox();var b='<?xml version="1.0" encoding="utf-8" ?>';b+=' <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';cvjs_active_floorplan_div_nr=cvjs_rPaperIndex(a);var c=""+cvjs_rPaper[cvjs_active_floorplan_div_nr];c=c.substring(c.indexOf("<svg")+4);c=c.substring(c.indexOf("<svg")+4);
4718
4723
  c=c.substring(c.indexOf("<svg"));c=b+c;cvjs_NodeJSserver&&(c=c.replace(/xlink:href=["]assets[/]cadviewer/g,'xlink:href="'+cvjs_ServerUrl+"files?file="));var d=c.indexOf("<desc>Created with Snap</desc>");if(-1<d){var e=c.substring(0,d);if(-1<c.indexOf("<desc>Created with Snap</desc></svg></svg></g>")){var f=c.substring(d+46);console.log("first branch pos2="+f)}else{f=c.substring(d+42);var g=f.indexOf("</text>")+7;f=f.substring(0,g)+f.substring(g+4);console.log("second branch pos2="+f)}var h=f.indexOf("transform=");
4719
4724
  if(-1<h){var k=f.substring(0,h),l=f.substring(h+14),m=l.indexOf('"');l=l.substring(m+1);f=k+l}c=e+f}var q=new Date,p="y"+q.getFullYear()+"_m"+(q.getMonth()+1)+"_d"+q.getDate()+"_h"+q.getHours()+"_m"+q.getMinutes()+"_s"+q.getSeconds();a="jan";var r=q.getHours();10>r&&(r="0"+r);switch(q.getMonth()){case 0:a="Jan";break;case 1:a="Feb";break;case 2:a="Mar";break;case 3:a="Apr";break;case 4:a="May";break;case 5:a="Jun";break;case 6:a="Jul";break;case 7:a="Aug";break;case 8:a="Sep";break;case 9:a="Oct";
4720
- break;case 10:a="Nov";break;case 11:a="Dec";break;default:a="Jan"}p=a+"_"+q.getDate()+"_H"+r+"_"+q.getMinutes();cvjs_downloadObjectAsFile(cvjs_FileNameNoExtension+"_"+p+".svg",c)}catch(t){console.log("cvjs_saveAsSVG: "+t)}}
4721
- function cvjs_downloadObjectAsFile(a,b){var c=!1;0==cvjs_frontEndHandlerType.indexOf("reactjs")&&(c=!0);0==cvjs_frontEndHandlerType.indexOf("vuejs")&&(c=!0);0==cvjs_frontEndHandlerType.indexOf("angular")&&(c=!0);cvjs_debug&&console.log("npmPackageFlag:"+c);c?(c=document.createElement("a"),c.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(b)),c.setAttribute("download",a),document.createEvent?(a=document.createEvent("MouseEvents"),a.initEvent("click",!0,!0),c.dispatchEvent(a)):
4722
- c.click()):(c=this.document.createElement("a"),c.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(b)),c.setAttribute("download",a),this.document.createEvent?(a=this.document.createEvent("MouseEvents"),a.initEvent("click",!0,!0),c.dispatchEvent(a)):c.click())}
4723
- function downloadFile(a,b){var c=this.document.createElement("a");c.setAttribute("href",b);c.setAttribute("download",a);this.document.createEvent?(a=this.document.createEvent("MouseEvents"),a.initEvent("click",!0,!0),c.dispatchEvent(a)):c.click()}
4725
+ break;case 10:a="Nov";break;case 11:a="Dec";break;default:a="Jan"}p=a+"_"+q.getDate()+"_H"+r+"_"+q.getMinutes();cvjs_downloadObjectAsFile(cvjs_FileNameNoExtension+"_"+p+".svg",c)}catch(t){console.log("cvjs_saveAsSVG: "+t)}}function toBase64(a){return btoa(a.reduce(function(a,c){return a+String.fromCharCode(c)},""))}
4726
+ function cvjs_downloadObjectAsFile(a,b,c){try{var d=!1;0==cvjs_frontEndHandlerType.indexOf("reactjs")&&(d=!0);0==cvjs_frontEndHandlerType.indexOf("vuejs")&&(d=!0);0==cvjs_frontEndHandlerType.indexOf("angular")&&(d=!0);cvjs_debug&&console.log("npmPackageFlag:"+d);if(d){var e=document.createElement("a");void 0==c||null==c||0==c?e.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(b)):e.setAttribute("href","data:text/plain;base64,"+btoa(encodeURIComponent(b)));e.setAttribute("download",
4727
+ a);if(document.createEvent){var f=document.createEvent("MouseEvents");f.initEvent("click",!0,!0);e.dispatchEvent(f)}else e.click()}else e=this.document.createElement("a"),void 0==c||null==c||0==c?e.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(b)):e.setAttribute("href","data:text/plain;base64,"+btoa(encodeURIComponent(b))),e.setAttribute("download",a),this.document.createEvent?(f=this.document.createEvent("MouseEvents"),f.initEvent("click",!0,!0),e.dispatchEvent(f)):e.click()}catch(g){console.log("cvjs_downloadObjectAsFile="+
4728
+ g)}}function cvjs_downloadObjectAsBlob(a,b){try{var c=new Blob([b],{type:"application/octet-stream"}),d=this.document.createElement("a");d.href=this.URL.createObjectURL(c);d.download=a;d.click()}catch(e){console.log("cvjs_downloadObjectAsBlob"+e)}}function downloadFile(a,b){var c=this.document.createElement("a");c.setAttribute("href",b);c.setAttribute("download",a);this.document.createEvent?(a=this.document.createEvent("MouseEvents"),a.initEvent("click",!0,!0),c.dispatchEvent(a)):c.click()}
4724
4729
  function downloadBinary(a,b){b=btoa(unescape(encodeURIComponent(b)));window.alert("filenames "+a+" "+b);b=this.document.createElement("a");b.setAttribute("href",cvjs_ServerUrl+"/converters/files/merged/"+a);b.setAttribute("download",a);this.document.createEvent?(a=this.document.createEvent("MouseEvents"),a.initEvent("click",!0,!0),b.dispatchEvent(a)):b.click()}
4725
4730
  function download_link_dwg(a){printWindow=window.open("","CADViewer - Download","width="+window.screen.width*cvjs_print_to_pdf_windowRelativeSize+",height="+window.screen.height*cvjs_print_to_pdf_windowRelativeSize);printWindow.document.write('<!DOCTYPE html><html><title>CADViewer - Print</title><head><script src="'+cvjs_defaultJSPath+'/jquery-2.2.3.js" type="text/javascript">\x3c/script><script src="'+cvjs_defaultJSPath+'/popper.js" type="text/javascript">\x3c/script><script src="'+cvjs_defaultJSPath+
4726
4731
  '/bootstrap.min.js" type="text/javascript">\x3c/script><link href="'+cvjs_defaultJSPath+'../css/bootstrap.min.css" rel="stylesheet">\x3c/script>');printWindow.document.write('<link href="'+cvjs_defaultJSPath+'../css/font-awesome.min.css" rel="stylesheet">\x3c/script>');printWindow.document.write("<style>.btn { background-color: DodgerBlue; border: none; color: white; padding: 12px 30px; cursor: pointer; font-size: 20px;} /* Darker background on mouse-over */ .btn:hover { background-color: RoyalBlue;} </style>");
@@ -5482,8 +5487,9 @@ highlight_fixture_power_legend_4="#FFAA55",highlight_fixture_power_scale_4="s1.3
5482
5487
  cvjsRoomPolygonSelectAttributes_Admin_unlinked={fill:"#ff9999","fill-opacity":"0.5",stroke:"#ff9999","stroke-width":3,"stroke-opacity":"1"};cvjsRoomPolygonBaseAttributes_Admin_linked={fill:"#a4d7f4","fill-opacity":"0.3",stroke:"#a4d7f4","stroke-width":1,"stroke-opacity":"0.1","stroke-linejoin":"round"};cvjsRoomPolygonHighlightAttributes_Admin_linked={fill:"#41A458","fill-opacity":"0.3",stroke:"#a4d7f4","stroke-width":3,"stroke-opacity":"1"};
5483
5488
  cvjsRoomPolygonSelectAttributes_Admin_linked={fill:"#41A458","fill-opacity":"0.5",stroke:"#41A458","stroke-width":3,"stroke-opacity":"1"};
5484
5489
  var cvjs_highlight_colorgrade_delete={fill:"#e76d6d","fill-opacity":"0.2",stroke:"#fe50d9","stroke-width":2,"stroke-opacity":"1","stroke-linejoin":"round"},cvjs_highlight_colorgrade_move_resize_rotate={fill:"#3792cb","fill-opacity":"0.2",stroke:"#296d98","stroke-width":1.5,"stroke-opacity":"1","stroke-linejoin":"round"},cvjs_object_selected_colorgrade_move_resize_rotate={fill:"#3792cb","fill-opacity":"0.6",stroke:"#296d98","stroke-width":3,"stroke-opacity":"1.0","stroke-linejoin":"round"};
5485
- function cvjs_exit_customsearchmodal(a){}function cvjs_startCustomSearchText(){}function cvjs_emptyMainCanvasInAngular(a){jQuery("#"+a).empty();floorplans_divs_Initialized=" ".split(" ")}var cvjs_delta_x,cvjs_delta_y,cvjs_global_scale,cvjs_handleGroup,cvjs_RubberBand,cvjs_firstX,cvjs_firstY,cvjs_lastX,cvjs_lastY;function cvjs_executeCustomCanvasMethod_drag(a,b,c,d){cvjs_executeCustomCanvasMethod("DRAG",a,b,c,"","","",d)}
5486
- function cvjs_executeCustomCanvasMethod_nodrag(a,b,c,d,e){cvjs_executeCustomCanvasMethod("NODRAG","","",a,b,c,d,e)}function cvjs_executeCustomCanvasMethod_click(a,b,c,d,e){cvjs_executeCustomCanvasMethod("NODRAG","","",a,b,c,d,e)}
5490
+ function cvjs_exit_customsearchmodal(a){}function cvjs_startCustomSearchText(){}function cvjs_emptyMainCanvas(a){try{jQuery("#"+a).empty(),floorplans_divs_Initialized=" ".split(" ")}catch(b){cvjs_debug&&console.log("cvjs_emptyMainCanvas: "+b)}try{cvjs_clearCurrentRedline(a)}catch(b){cvjs_debug&&console.log("cvjs_emptyMainCanvas: "+b)}try{cvjs_clearSpaceObjects(a)}catch(b){cvjs_debug&&console.log("cvjs_emptyMainCanvas: "+b)}}
5491
+ function cvjs_emptyMainCanvasInAngular(a){cvjs_emptyMainCanvas(a)}var cvjs_delta_x,cvjs_delta_y,cvjs_global_scale,cvjs_handleGroup,cvjs_RubberBand,cvjs_firstX,cvjs_firstY,cvjs_lastX,cvjs_lastY;function cvjs_executeCustomCanvasMethod_drag(a,b,c,d){cvjs_executeCustomCanvasMethod("DRAG",a,b,c,"","","",d)}function cvjs_executeCustomCanvasMethod_nodrag(a,b,c,d,e){cvjs_executeCustomCanvasMethod("NODRAG","","",a,b,c,d,e)}
5492
+ function cvjs_executeCustomCanvasMethod_click(a,b,c,d,e){cvjs_executeCustomCanvasMethod("NODRAG","","",a,b,c,d,e)}
5487
5493
  function cvjs_customCanvasMethod_globalScale(){try{canvas_width=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).width();canvas_height=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).height();var a=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();global_scale_X=canvas_width/viewBoxWidth[cvjs_active_floorplan_div_nr];global_scale_Y=canvas_height/viewBoxHeight[cvjs_active_floorplan_div_nr];cvjs_global_scale=global_scale_X<global_scale_Y?global_scale_X:
5488
5494
  global_scale_Y;cvjs_delta_x=(canvas_width-viewBoxWidth[cvjs_active_floorplan_div_nr]*cvjs_global_scale)/2-viewBox[cvjs_active_floorplan_div_nr].X*cvjs_global_scale+a.left;cvjs_delta_y=(canvas_height-viewBoxHeight[cvjs_active_floorplan_div_nr]*cvjs_global_scale)/2-viewBox[cvjs_active_floorplan_div_nr].Y*cvjs_global_scale+a.top}catch(b){console.log("cvjs_customCanvasMethod_globalScale: "+b)}}
5489
5495
  function cvjs_customCanvasMethod_setupHandleGroup(){try{cvjs_handleGroup=cvjs_rPaper[cvjs_active_floorplan_div_nr].rect(actualLLX[cvjs_active_floorplan_div_nr],actualLLY[cvjs_active_floorplan_div_nr],actualURX[cvjs_active_floorplan_div_nr]-actualLLX[cvjs_active_floorplan_div_nr],actualURY[cvjs_active_floorplan_div_nr]-actualLLY[cvjs_active_floorplan_div_nr]).attr({fill:"#fff","fill-opacity":"0.01"}),cvjs_handleGroup.attr({transform:"T0,0S5.0"})}catch(a){console.log("cvjs_customCanvasMethod_handleGroup: "+