cadviewer 6.8.88 → 6.8.89

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.
@@ -1287,7 +1287,8 @@ export default{
1287
1287
  cvjs_extractSVGfromCanvas,
1288
1288
  cvjs_downloadObjectAsFile,
1289
1289
  cvjs_setSpaceObjectProcessing,
1290
- cvjs_returnNonPreprocessedSVG
1290
+ cvjs_returnNonPreprocessedSVG,
1291
+ cvjs_restAPI_getSVGContentData
1291
1292
  }
1292
1293
  // ANGULAR , REACT - no default
1293
1294
  export {
@@ -2234,8 +2235,8 @@ export {
2234
2235
  cvjs_extractSVGfromCanvas,
2235
2236
  cvjs_downloadObjectAsFile,
2236
2237
  cvjs_setSpaceObjectProcessing,
2237
- cvjs_returnNonPreprocessedSVG
2238
-
2238
+ cvjs_returnNonPreprocessedSVG,
2239
+ cvjs_restAPI_getSVGContentData
2239
2240
  }
2240
2241
 
2241
2242
  var id_supress_standard_dropdown_menus;
@@ -2260,14 +2261,13 @@ cadviewer_full_commands_01;
2260
2261
  // END REACTJS and ANGULAR placeholders for all callbackmethods
2261
2262
  //*/
2262
2263
 
2263
-
2264
- var cvjs_versionNumber="CADViewer - v6.8.88c",cvjs_AXversionNumber="",cvjs_Community_Version=!0,rest_customConversionEndpointExtension=!1,reactstaticbindxml=!1,reactstaticbindbitmap=!0,vuestaticbindxml=
2265
- !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,
2266
- 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,
2267
- 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,
2268
- 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,
2269
- 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,
2270
- 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,
2271
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=
2272
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=
2273
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;
@@ -2305,6 +2305,7 @@ cvjs_debug&&console.log("worldUnits.units "+worldUnits.units)}catch(k){cvjs_debu
2305
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)}}
2306
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}
2307
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"}
2308
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)}}
2309
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);
2310
2311
  cvjs_setServerLocationURL(c,b);cvjs_setHandlers_FrontEnd(d,e,f,g)}
@@ -3200,8 +3201,9 @@ contentStreamData=a.contentStreamData,contentStreamThumb=a.contentStreamThumb,1=
3200
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,
3201
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=
3202
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?
3203
- (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 "+
3204
- 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...")))}
3205
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}
3206
3208
  var cvjs_currentLoadedDrawingAsString="",cvjs_loadCurrentLoadedDrawingAsString=!1;
3207
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));
@@ -4720,10 +4722,10 @@ l.indexOf('"');l=l.substring(m+1);f=k+l}b=e+f}}catch(q){console.log("err cvjs_ex
4720
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);
4721
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=");
4722
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";
4723
- 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)}}
4724
- 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)):
4725
- 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())}
4726
- 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()}
4727
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()}
4728
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+
4729
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>");
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "cadviewer",
3
- "version": "6.8.88",
3
+ "version": "6.8.89",
4
4
  "description": "CADViewer - JavaScript CAD Viewer Library for FrameWorks (ReactJS, Angular, VueJS, etc.)",
5
- "main": "app/cv/cv-pro/npm_cadviewer_6.8.88c.min.js",
5
+ "main": "app/cv/cv-pro/npm_cadviewer_6.8.89b.min.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Use test samples on Github https://github.com/CADViewer/cadviewer-testapp-react-01 \" && exit 1"
8
8
  },