cadviewer 6.8.7 → 6.8.56
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.
- package/README.md +11 -65
- package/app/cv/cv-pro/{cadviewer_6.8.10c.min.js → cadviewer_6.8.14e.min.js} +68 -72
- package/app/cv/cv-pro/{cadviewer_6.8.03a.min.js → npm_cadviewer_6.8.59d.min.js} +719 -619
- package/package.json +2 -3
- package/app/cv/cv-pro/cadviewer_6.7.45b.min.js +0 -5274
- package/app/cv/cv-pro/cadviewer_6.7.46a.min.js +0 -5280
package/README.md
CHANGED
|
@@ -5,34 +5,34 @@
|
|
|
5
5
|
Install CADViewer via *npm i cadviewer* on all platforms, see specifics below for each platform on how to add auxillary files and connect with back-end conversion server.
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
## Install Instructions for ReactJS
|
|
8
|
+
## Install Instructions for ReactJS and VueJS
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
1: Install CADViewer from: *npm i cadviewer*
|
|
11
11
|
|
|
12
|
-
1B: There are some general image and XML configuration files that CADViewer needs during execution, please download [react_public_folder_cadviewer_6_7.zip](https://cadviewer.com/downloads/handlers/reactjs/react_public_folder_cadviewer_6_7.zip) and place in your React /public/ project folder.
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
To see how a CAD Canvas is set up with callback methods and initialization of CADViewer use the following samples as a template:
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
2A: ReactJS - download the CADViewer [React](https://github.com/CADViewer/cadviewer-testapp-react-01) implementation sample from the [Github](https://github.com/CADViewer/cadviewer-testapp-react-01) repository [cadviewer-testapp-react-01](https://github.com/CADViewer/cadviewer-testapp-react-01).
|
|
17
16
|
|
|
17
|
+
2B: VueJS - download the CADViewer [VueJS](https://github.com/CADViewer/cadviewer-testapp-vue-01) implementation sample from [Github](https://github.com/CADViewer/cadviewer-testapp-vue-v01) repository [cadviewer-testapp-vue-01](https://github.com/CADViewer/cadviewer-testapp-vue-01).
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
These samples illustrates initialization and loading of CADViewer as well as illustrates the functional interface for highlight and adding interactive image content to the CAD canvas.
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
3: Install a back-end CAD Conversion server to process CAD files and communicate with CADViewer.
|
|
23
|
+
|
|
22
24
|
Download the Node JS CAD Conversion server (or alternatively the PHP, .NET or Servlet Server implementations): Go to: https://cadviewer.com/download/, register and receive email and then download from **CADViewer Handler/Connector Scripts**.
|
|
23
25
|
|
|
24
26
|
The [CADViewer](https://github.com/CADViewer/cadviewer-conversion-server) NodeJS CAD Conversion Server can be downloaded from [Github](https://github.com/CADViewer/cadviewer-conversion-server) from the repository [cadviewer-conversion-server](https://github.com/CADViewer/cadviewer-conversion-server).
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
You can always update the CAD Converter AutoXchange 2022 in the server structure: Go to: https://cadviewer.com/download/, register and receive email and then download from **AutoXchange 2022 Downloads**.
|
|
27
29
|
|
|
28
|
-
Use the Github [cadviewer-testapp-react-01](https://github.com/CADViewer/cadviewer-testapp-react-01) as reference sample. This sample illustrates initialization and loading of CADViewer as well as illustrates the functional interface for highlight and adding interactive image content to the CAD canvas.
|
|
29
|
-
|
|
30
|
-
Note that the path book-keeping is important for proper initialization, where the ServerBackEndUrl and ServerLocation is the location and Url of the CAD Server and ServerUrl is the Url of the React application encapulating CADViewer.
|
|
31
30
|
|
|
31
|
+
Note that the path book-keeping is important for proper initialization, where the ServerBackEndUrl and ServerLocation is the location and Url of the CAD Server and ServerUrl is the Url of the React/VueJS application encapulating CADViewer.
|
|
32
32
|
|
|
33
33
|
var ServerBackEndUrl = "http://localhost:3000/";
|
|
34
34
|
var ServerUrl = "http://localhost:8000/";
|
|
35
|
-
var ServerLocation = "c:/nodejs/cadviewer-conversion-server/
|
|
35
|
+
var ServerLocation = ""; // leave blank, for devopment purposes can be set: c:/nodejs/cadviewer-conversion-server/
|
|
36
36
|
|
|
37
37
|
The CADViewer React JS general install instructions are at: https://cadviewer.com/cadviewertechdocs/handlers/reactjs/
|
|
38
38
|
|
|
@@ -52,7 +52,6 @@ The CADViewer API is found at: https://cadviewer.com/cadviewerproapi/global.html
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
|
|
56
55
|
## Install Instruction for Angular
|
|
57
56
|
|
|
58
57
|
1A: Install CADViewer: *npm i cadviewer*
|
|
@@ -109,56 +108,3 @@ The general documentation on **AutoXchange 2022** is found at: https://tailormad
|
|
|
109
108
|
|
|
110
109
|
The CADViewer API is found at: https://cadviewer.com/cadviewerproapi/global.html.
|
|
111
110
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
## Install Instruction for VueJS
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
1A: Install CADViewer from: *npm i cadviewer*
|
|
120
|
-
|
|
121
|
-
1B: There are some general image and XML configuration files that CADViewer needs during execution, please download [vue_react_public_folder_cadviewer_6_7.zip](https://cadviewer.com/downloads/handlers/reactjs/react_public_folder_cadviewer_6_7.zip) and place in your VueJS /public/ project folder.
|
|
122
|
-
|
|
123
|
-
As an alternative:
|
|
124
|
-
|
|
125
|
-
2: Download a CADViewer [VueJS](https://github.com/CADViewer/cadviewer-testapp-vue-01) implementation sample from [Github](https://github.com/CADViewer/cadviewer-testapp-vue-v01) repository [cadviewer-testapp-vue-01](https://github.com/CADViewer/cadviewer-testapp-vue-01).
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
For both methods 1: and 2: , then do the following:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Download the Node JS CAD Conversion server (or alternatively the PHP, .NET or Servlet Server implementations): Go to: https://cadviewer.com/download/, register and receive email and then download from **CADViewer Handler/Connector Scripts**.
|
|
133
|
-
|
|
134
|
-
The [CADViewer](https://github.com/CADViewer/cadviewer-conversion-server) NodeJS CAD Conversion Server can be downloaded from [Github](https://github.com/CADViewer/cadviewer-conversion-server) from the repository [cadviewer-conversion-server](https://github.com/CADViewer/cadviewer-conversion-server).
|
|
135
|
-
|
|
136
|
-
Download the CAD Converter AutoXchange 2022: Go to: https://cadviewer.com/download/, register and receive email and then download from **AutoXchange 2022 Downloads**.
|
|
137
|
-
|
|
138
|
-
Use the Github [cadviewer-testapp-vue-01](https://github.com/CADViewer/cadviewer-testapp-vue-01) as reference sample. This sample illustrates initialization and loading of CADViewer as well as illustrates the functional interface for highlight and adding interactive image content to the CAD canvas.
|
|
139
|
-
|
|
140
|
-
Note that the path book-keeping is important for proper initialization, where the ServerBackEndUrl and ServerLocation is the location and Url of the CAD Server and ServerUrl is the Url of the React application encapulating CADViewer.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
var ServerBackEndUrl = "http://localhost:3000/";
|
|
144
|
-
var ServerUrl = "http://localhost:8080/";
|
|
145
|
-
var ServerLocation = "c:/nodejs/cadviewer-conversion-server/";
|
|
146
|
-
|
|
147
|
-
The CADViewer Vue JS general install instructions are at: https://cadviewer.com/cadviewertechdocs/handlers/vuejs/
|
|
148
|
-
|
|
149
|
-
**LICENSE: TMS 1.0:** Use freely on localhost. Commercial use requires licensing, both using entirely or in parts. Forbidden to remove license key check. Contact Tailor Made Software, https://cadviewer.com/contact, for more information.
|
|
150
|
-
|
|
151
|
-
Use the [CADViewer API](https://cadviewer.com/cadviewerproapi/global.html) to open and manipulate drawings in your application.
|
|
152
|
-
|
|
153
|
-
Read the Guide on how to **[create hotspots](https://cadviewer.com/highlight/main/)** (Space Objects), it outlines how spaces can be processed on a drawing to create interactive objects.
|
|
154
|
-
|
|
155
|
-
Read the Guide on how to **[modify hotspots](https://cadviewer.com/highlight2/main/)** (Space Objects), this will help you work with the code in this sample.
|
|
156
|
-
|
|
157
|
-
Read the general documentation on **CADViewer** is found at: https://cadviewer.com/cadviewertechdocs/.
|
|
158
|
-
|
|
159
|
-
The general documentation on **AutoXchange 2022** is found at: https://tailormade.com/ax2020techdocs/.
|
|
160
|
-
|
|
161
|
-
The CADViewer API is found at: https://cadviewer.com/cadviewerproapi/global.html.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
@@ -2187,14 +2187,13 @@ var cvjs_buildCustom_5_dropdownMenu
|
|
|
2187
2187
|
var id_custom_6_dropdown_name;
|
|
2188
2188
|
var cvjs_buildCustom_6_dropdownMenu;
|
|
2189
2189
|
|
|
2190
|
-
|
|
2191
2190
|
var cadviewerProLanguage,
|
|
2192
2191
|
cadviewer_full_commands_01;
|
|
2193
2192
|
|
|
2194
|
-
|
|
2195
2193
|
// END REACTJS and ANGULAR placeholders for all callbackmethods
|
|
2196
2194
|
//*/
|
|
2197
|
-
|
|
2195
|
+
|
|
2196
|
+
var cvjs_versionNumber="CADViewer - v6.8.14e",cvjs_AXversionNumber="",cvjs_Community_Version=!0,reactstaticbindxml=!1,reactstaticbindbitmap=!0,vuestaticbindxml=!1,vuestaticbindbitmap=!0,angularstaticbindxml=!1,angularstaticbindbitmap=!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=
|
|
2198
2197
|
"",cvjs_isAngular=!1,cvjs_firstCloneHandle="",cvjs_firstCloneHandleFlag=!1,cvjs_setProcessHandleObjects=!1,cvjs_layerlist_layeritemsmax=120,pt1="htt",lt1="log",lt2="oJS",lt3=".p",lt4="ng",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,
|
|
2199
2198
|
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,
|
|
2200
2199
|
cvjs_popupTitleClick,cvjs_mousedown,cvjs_click,cvjs_dblclick,cvjs_mouseout,cvjs_mouseover,cvjs_mouseleave,cvjs_mouseenter,cvjs_graphicalObjectCreated,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,FacMgr_name,FacMgr_title,FacMgr_email,FacMgr_phone,refresh_rate,id_data_connector,
|
|
@@ -3716,18 +3715,20 @@ jQuery("#stickyNoteSelectIcon").mouseover(function(a){var b=jQuery("#"+floorplan
|
|
|
3716
3715
|
document.documentElement.scrollTop-20);tip[cvjs_active_floorplan_div_nr].html(tipText);tip[cvjs_active_floorplan_div_nr].show()});
|
|
3717
3716
|
function cvjs_showIconnoteTip(a,b,c){var d;c="#cvjs_floorPlanInsertImageEncapsulate_"+floorplan_div_Array[cvjs_active_floorplan_div_nr];var e=jQuery(c).position();jQuery(c).css("position");1==b&&(d=jQuery("#imageNoteIcon1").position());2==b&&(d=jQuery("#imageNoteIcon2").position());3==b&&(d=jQuery("#imageNoteIcon3").position());jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position");tip[cvjs_active_floorplan_div_nr].css({left:e.left+
|
|
3718
3717
|
d.left-(window.pageXOffset||document.documentElement.scrollLeft),top:e.top-25-(window.pageYOffset||document.documentElement.scrollTop),position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(a);tip[cvjs_active_floorplan_div_nr].show()}var StickNoteQtipDiv="";
|
|
3719
|
-
function cvjs_showStickynoteTip(a,b,c){var
|
|
3720
|
-
|
|
3718
|
+
function cvjs_showStickynoteTip(a,b,c,d,e){var f,g="#"+e;e=jQuery(g).position();var h=jQuery(g).css("position");cvjs_debug&&console.log("qtip div "+h);cvjs_debug&&console.log("we are here "+a+" "+c+" "+StickNoteQtipDiv+" "+g+" "+e.left+" "+e.top);1==b&&(f=jQuery("#stickyNoteIcon1_"+d).position());2==b&&(f=jQuery("#stickyNoteIcon2_"+d).position());3==b&&(f=jQuery("#stickyNoteIcon3_"+d).position());4==b&&(f=jQuery("#stickyNoteIcon4_"+d).position());jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();
|
|
3719
|
+
c=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position");cvjs_debug&&console.log("iconPosition "+f.left+" "+f.top+" "+c);tip[cvjs_active_floorplan_div_nr].css({left:e.left+f.left,top:e.top-25,position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(a);tip[cvjs_active_floorplan_div_nr].show();3==b&&-1==a.indexOf("Inactive")&&jQuery("#stickyNoteIcon3").css("color","#FB5300")}
|
|
3721
3720
|
function noteIconChangeHighlight(a,b){3==a&&jQuery("#stickyNoteIcon3").css("color",b);tip[cvjs_active_floorplan_div_nr].hide()}var StickNoteEditMode=!1;
|
|
3722
|
-
function cvjs_edit_note(){cvjs_debug_stickynotes&&window.alert("edit note!");var a=cvjs_StickyNoteClicked();for(
|
|
3723
|
-
vqStickyNotes[b].data("id")+'</div><td class="cvjs_modal_header_stickynote_info_2_background"></td><td class="cvjs_modal_header_1" >'+vqStickyNotes[b].data("name")+'</td><td class="cvjs_modal_header_sticky_note_info_1_nonselect" id="
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
jQuery(
|
|
3727
|
-
vqStickyNotes[b].data("
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3721
|
+
function cvjs_edit_note(){cvjs_debug_stickynotes&&window.alert("edit note!");var a=cvjs_StickyNoteClicked();for(c in vqStickyNotes)if(a==vqStickyNotes[c].data("node")&&1==vqStickyNotes[c].data("locked")){cvjs_debug&&console.log("StickyNote locked for editing!");return}var b=cvjs_StickyNotes_arrayIndex(a);if(0==StickNoteEditMode){var c=vqStickyNotes[b].data("text");c=c.replace(/(<br>)/gm,"\n");cvjs_setStickyNoteEditText(c);var d=Math.floor(1E4*Math.random()+1);c='<table width="100%"><tr><td cols="3"><div class="cvjs_modal_header_stickynote_info_2">#'+
|
|
3722
|
+
vqStickyNotes[b].data("id")+'</div><td class="cvjs_modal_header_stickynote_info_2_background"></td><td class="cvjs_modal_header_1" >'+vqStickyNotes[b].data("name")+'</td><td class="cvjs_modal_header_sticky_note_info_1_nonselect" id="stickyNoteIcon1_'+d+'" ><i class=""></i></td><td class="cvjs_modal_header_sticky_note_info_1_select" id="stickyNoteIcon2_'+d+'" ><i class="fa fa-edit"></i></td><td class="cvjs_modal_header_sticky_note_info_1_nonselect" id="stickyNoteIcon3_'+d+'" ><i class="fa fa-trash-o"></i></td><td class="cvjs_modal_header_sticky_note_info_2_select" id="stickyNoteIcon4_'+
|
|
3723
|
+
d+'" ><i class="fa fa-times"></i></td></tr></table>';jQuery(vqStickyNotes[b].node).qtip({content:{text:cvjsStickyNoteBody,title:c},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"false"});cvjs_debug_stickynotes&&console.log("2 stickynote show");jQuery(vqStickyNotes[b].node).qtip("show");StickNoteEditMode=!0;var e="";c=document.getElementsByTagName("div");for(var f=0;f<c.length;f++)-1<c[f].id.indexOf("qtip-")&&-1==
|
|
3724
|
+
c[f].id.indexOf("-content")&&-1==c[f].id.indexOf("-title")&&(e=c[f].id);jQuery("#stickyNoteIcon1_"+d).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.Inactive,1,b,d,e)});jQuery("#stickyNoteIcon1_"+d).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon2_"+d).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.SaveNote,2,b,d,e)});jQuery("#stickyNoteIcon2_"+d).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});
|
|
3725
|
+
jQuery("#stickyNoteIcon2_"+d).on("click",function(){cvjs_edit_note()});jQuery("#stickyNoteIcon3_"+d).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.Inactive,3,b,d,e)});jQuery("#stickyNoteIcon3_"+d).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon4_"+d).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.Cancel,4,b,d,e)});jQuery("#stickyNoteIcon4_"+d).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()})}else{tip[cvjs_active_floorplan_div_nr].hide();
|
|
3726
|
+
c=jQuery("#sNote_text").val();c=c.replace(/(\r\n|\n|\r)/gm,"<br>");vqStickyNotes[b].data("text",c);cvjs_setStickyNoteText(c);d=Math.floor(1E4*Math.random()+1);c='<table width="100%"><tr><td cols="3"><div class="cvjs_modal_header_stickynote_info_2">#'+vqStickyNotes[b].data("id")+'</div><td class="cvjs_modal_header_stickynote_info_2_background"></td><td class="cvjs_modal_header_1" >'+vqStickyNotes[b].data("name")+'</td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon1_'+d+'" ><i class="fa fa-arrows"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon2_'+
|
|
3727
|
+
d+'" ><i class="fa fa-edit"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon3_'+d+'" ><i class="fa fa-trash-o"></i></td><td class="cvjs_modal_header_sticky_note_info_2" id="stickyNoteIcon4_'+d+'" ><i class="fa fa-times"></i></td></tr></table>';jQuery(vqStickyNotes[b].node).qtip({content:{text:cvjsStickyNoteBody,title:c},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"false"});jQuery(vqStickyNotes[b].node).qtip("show");
|
|
3728
|
+
e="";c=document.getElementsByTagName("div");for(f=0;f<c.length;f++)-1<c[f].id.indexOf("qtip-")&&-1==c[f].id.indexOf("-content")&&-1==c[f].id.indexOf("-title")&&(e=c[f].id);jQuery("#stickyNoteIcon1_"+d).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.MoveNote,1,b,d,e)});jQuery("#stickyNoteIcon1_"+d).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon1_"+d).on("click",function(){cvjs_move_note()});jQuery("#stickyNoteIcon2_"+
|
|
3729
|
+
d).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.EditNote,2,b,d,e)});jQuery("#stickyNoteIcon2_"+d).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon2_"+d).on("click",function(){cvjs_edit_note()});jQuery("#stickyNoteIcon3_"+d).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.DeleteNote,3,b,d,e)});jQuery("#stickyNoteIcon3_"+d).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});
|
|
3730
|
+
jQuery("#stickyNoteIcon3_"+d).on("click",function(){cvjs_delete_note()});jQuery("#stickyNoteIcon4_"+d).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.MinimizeNote,4,b,d,e)});jQuery("#stickyNoteIcon4_"+d).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon4_"+d).on("click",function(){hideOnlyStickyNote(b)});StickNoteEditMode=!1}c=document.getElementsByTagName("div");for(f=0;f<c.length;f++)-1<c[f].id.indexOf("qtip-")&&
|
|
3731
|
+
-1==c[f].id.indexOf("-content")&&-1==c[f].id.indexOf("-title")&&(StickNoteQtipDiv=c[f].id);cvjs_graphicalObjectOnChange("Edit","StickyNote",a)}
|
|
3731
3732
|
function cvjs_move_note(){var a=cvjs_StickyNoteClicked();for(b in vqStickyNotes)if(a==vqStickyNotes[b].data("node")&&1==vqStickyNotes[b].data("locked")){cvjs_debug&&console.log("StickyNote locked for editing!");return}var b=cvjs_StickyNotes_arrayIndex(a);cvjs_debug_stickynotes&&console.log("2 stickynote hide");cvjs_debug&&console.log("2 stickynote move");jQuery(vqStickyNotes[b].node).qtip("hide");vqStickyNotes[b].attr({"fill-opacity":"0.1","stroke-opacity":"0.3"});tip[cvjs_active_floorplan_div_nr].hide();
|
|
3732
3733
|
cvjs_addHandleFunc_MoveStickyNote();cvjs_graphicalObjectOnChange("Move","StickyNote",a)}function cvjs_delete_note(){var a=cvjs_StickyNoteClicked();cvjs_debug&&console.log("StickyNote delete "+a);for(var b in vqStickyNotes)if(a==vqStickyNotes[b].data("node")&&1==vqStickyNotes[b].data("locked")){cvjs_debug&&console.log("StickyNote locked for editing!");return}cvjs_setUpStickyNotes_deleteNode(a);cvjs_graphicalObjectOnChange("Delete","StickyNote",a)}
|
|
3733
3734
|
function cvjs_currentMaxNodeId(){var a=0,b;for(b in cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr]){var c=cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("node");c=c.substring(5);c=parseInt(c);c>a&&(a=c)}return a}function cvjs_currentMaxSpaceNodeId(){var a=0,b;for(b in cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr]){var c=cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("node");c=c.substring(5);c=parseInt(c);c>a&&(a=c)}return a}
|
|
@@ -3817,58 +3818,61 @@ else try{layer_cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr].attr(show)
|
|
|
3817
3818
|
!locked){var b=this.data("id");cvjs_change_space(b);c=!cvjs_supressPopUpModal||cvjs_standardHighLightColors?this.data("name"):this.data("id");cvjs_customToolTip&&(c=cvjs_displayCustomToolTip(this.data("id")));tip[cvjs_active_floorplan_div_nr].html(c)}DoTouchEnd(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop);c=cvjs_supressPopUpModal?this.data("id"):this.data("name");cvjs_customToolTip&&(c=cvjs_displayCustomToolTip(this.data("id")));tip[cvjs_active_floorplan_div_nr].html(c);
|
|
3818
3819
|
bMouseDown=!1;cvjs_clearDrawing();b=this.data("id");change_space_fixed_location(b,cvjs_active_floorplan_div_nr)}).touchmove(function(a){if(!bPan){var b=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();"absolute"==jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position")?tip[cvjs_active_floorplan_div_nr].css("left",a.clientX+document.documentElement.scrollLeft+10).css("top",a.clientY+document.documentElement.scrollTop-25):tip[cvjs_active_floorplan_div_nr].css("left",
|
|
3819
3820
|
a.clientX-b.left+document.documentElement.scrollLeft+10).css("top",a.clientY-b.top+document.documentElement.scrollTop-25);tip[cvjs_active_floorplan_div_nr].html(c);cvjs_customToolTip&&(c=cvjs_displayCustomToolTip(this.data("id")))}DoTouchMove(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop)}).dblclick(function(a){a.preventDefault();a.stopPropagation()})}layer_cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr].add(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][d])}
|
|
3820
|
-
function cvjs_setUpVqStickyNotes_currentNode_vqIndex(a,b,c,d){floorplan_height=.9*jQuery(window).height();floorplan_width=.9*jQuery(window).width();tip[cvjs_active_floorplan_div_nr]=jQuery("#tip_"+floorplan_div_Array[cvjs_active_floorplan_div_nr]);tip[cvjs_active_floorplan_div_nr].hide().css("left",floorplan_width).css("top",floorplan_height);var e="";try{jQuery.fn.qtip.defaults.show.event="click",jQuery.fn.qtip.defaults.hide.event=null}catch(
|
|
3821
|
+
function cvjs_setUpVqStickyNotes_currentNode_vqIndex(a,b,c,d){floorplan_height=.9*jQuery(window).height();floorplan_width=.9*jQuery(window).width();tip[cvjs_active_floorplan_div_nr]=jQuery("#tip_"+floorplan_div_Array[cvjs_active_floorplan_div_nr]);tip[cvjs_active_floorplan_div_nr].hide().css("left",floorplan_width).css("top",floorplan_height);var e="";try{jQuery.fn.qtip.defaults.show.event="click",jQuery.fn.qtip.defaults.hide.event=null}catch(k){}var f=vqStickyNotes[c].data("node");if(b==f){vqStickyNotes[c].data("name",
|
|
3821
3822
|
cvjs_currentStickyNote_name);vqStickyNotes[c].data("id",cvjs_currentStickyNote_id);vqStickyNotes[c].data("text",cvjs_currentStickyNote_text);try{vqStickyNotes[c].data("layer",cvjs_currentStickyNote_layer),vqStickyNotes[c].data("group",cvjs_currentStickyNote_group),vqStickyNotes[c].data("linked",cvjs_currentStickyNote_linked),vqStickyNotes[c].data("userid",cvjs_currentStickyNote_userid),vqStickyNotes[c].data("date",cvjs_currentStickyNote_date),vqStickyNotes[c].data("currentPage",cvjs_currentStickyNote_currentPage),
|
|
3822
|
-
vqStickyNotes[c].data("transform",cvjs_currentStickyNote_transform),vqStickyNotes[c].data("drawingRotation",cvjs_currentStickyNote_drawingRotation)}catch(
|
|
3823
|
-
position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"true"}),jQuery(vqStickyNotes[c].node).qtip("destroy");else
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
jQuery(
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
e=this.data("id");tip[cvjs_active_floorplan_div_nr].html(e);bMouseDown=!1;cvjs_clearDrawingStickyNotes();f=this.data("id");console.log("stickynote
|
|
3834
|
-
|
|
3823
|
+
vqStickyNotes[c].data("transform",cvjs_currentStickyNote_transform),vqStickyNotes[c].data("drawingRotation",cvjs_currentStickyNote_drawingRotation)}catch(k){console.log(k)}!cvjs_supressPopUpModal||cvjs_standardHighLightColors?vqStickyNotes[c].attr(defaultColor_StickyNotes):vqStickyNotes[c].data("linked")?vqStickyNotes[c].attr(defaultColor_linked):vqStickyNotes[c].attr(defaultColor_unlinked);if(1==cvjs_supressPopUpModal)jQuery(vqStickyNotes[c].node).qtip({content:{text:"",title:""},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},
|
|
3824
|
+
position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"true"}),jQuery(vqStickyNotes[c].node).qtip("destroy");else{var g=Math.floor(1E4*Math.random()+1);console.log("postfix 2: "+g);a='<table width="100%"><tr><td cols="3"><div class="cvjs_modal_header_stickynote_info_2">#'+cvjs_currentStickyNote_id+'</div><td class="cvjs_modal_header_stickynote_info_2_background"></td><td class="cvjs_modal_header_1" >'+cvjs_currentStickyNote_name+'</td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon1_'+
|
|
3825
|
+
g+'" ><i class="fa fa-arrows"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon2_'+g+'" ><i class="fa fa-edit"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon3_'+g+'" ><i class="fa fa-trash-o"></i></td><td class="cvjs_modal_header_sticky_note_info_2" id="stickyNoteIcon4_'+g+'" ><i class="fa fa-times"></i></td></tr></table>';cvjs_setStickyNoteText(cvjs_currentStickyNote_text);jQuery(vqStickyNotes[c].node).qtip({content:{text:cvjsStickyNoteBody,
|
|
3826
|
+
title:a},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"false"});jQuery(vqStickyNotes[c].node).qtip("show");var h="";a=document.getElementsByTagName("div");for(b=0;b<a.length;b++)-1<a[b].id.indexOf("qtip-")&&-1==a[b].id.indexOf("-content")&&-1==a[b].id.indexOf("-title")&&(h=a[b].id);jQuery("#stickyNoteIcon1_"+g).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.MoveNote,
|
|
3827
|
+
1,c,g,h)});jQuery("#stickyNoteIcon1_"+g).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon1_"+g).on("click",function(){cvjs_move_note()});jQuery("#stickyNoteIcon2_"+g).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.EditNote,2,c,g,h)});jQuery("#stickyNoteIcon2_"+g).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon2_"+g).on("click",function(){cvjs_edit_note()});jQuery("#stickyNoteIcon3_"+
|
|
3828
|
+
g).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.DeleteNote,3,c,g,h)});jQuery("#stickyNoteIcon3_"+g).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon3_"+g).on("click",function(){cvjs_delete_note()});jQuery("#stickyNoteIcon4_"+g).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.MinimizeNote,4,c,g,h)});jQuery("#stickyNoteIcon4_"+g).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});
|
|
3829
|
+
jQuery("#stickyNoteIcon4_"+g).on("click",function(){hideOnlyStickyNote(c)});jQuery(vqStickyNotes[c].node).qtip("hide");a=document.getElementsByTagName("div");for(b=0;b<a.length;b++)-1<a[b].id.indexOf("qtip-")&&-1==a[b].id.indexOf("-content")&&-1==a[b].id.indexOf("-title")&&(StickNoteQtipDiv=a[b].id)}vqStickyNotes[c].mousedown(function(a){vqRoomMouseSelect=!0;cvjs_debug&&console.log("B Domousedown");DoMouseDown(a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop,cvjs_active_floorplan_div_nr)}).mousemove(function(a){currentStickyNoteId=
|
|
3830
|
+
this.data("id");currentStickyNoteName=this.data("name");if(bMouseDown||bTempMouseDown)DoMouseMove(a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop);else{var b=findStickyNotes(currentStickyNoteId);0<=b&&b!=lastObjStickyNote[cvjs_active_floorplan_div_nr]&&cvjs_location_flag&&(tooltipLastStickyNote!=lastObjStickyNote[cvjs_active_floorplan_div_nr]&&(cvjs_supressPopUpModal?vqStickyNotes[tooltipLastStickyNote].data("linked")?vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_linked):
|
|
3831
|
+
vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_unlinked):vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_StickyNotes)),cvjs_supressPopUpModal?vqStickyNotes[b].data("linked")?vqStickyNotes[b].attr(highlight_linked):vqStickyNotes[b].attr(highlight_unlinked):vqStickyNotes[b].attr(highlight_StickyNotes),tooltipLastStickyNote=b);b=this.data("date").toString();-1<b.indexOf("(")&&(b=b.substring(0,b.indexOf("(")));e="Note #"+this.data("id")+"<br>"+b;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});
|
|
3832
|
+
tip[cvjs_active_floorplan_div_nr].html(e);tip[cvjs_active_floorplan_div_nr].show();b=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();"absolute"==jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position")?tip[cvjs_active_floorplan_div_nr].css("left",a.clientX+document.documentElement.scrollLeft+10).css("top",a.clientY+document.documentElement.scrollTop-25):tip[cvjs_active_floorplan_div_nr].css("left",a.clientX-b.left+document.documentElement.scrollLeft+10).css("top",
|
|
3833
|
+
a.clientY-b.top+document.documentElement.scrollTop-25)}}).mouseup(function(a){vqRoomMouseSelect=!1;if(bPan)DoMouseUp(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop),a=this.data("date").toString(),-1<a.indexOf("(")&&(a=a.substring(0,a.indexOf("("))),e="Note #"+this.data("id")+"<br>"+a,tip[cvjs_active_floorplan_div_nr].css({position:"fixed"}),tip[cvjs_active_floorplan_div_nr].html(e),bMouseDown=!1,cvjs_clearDrawingStickyNotes(),f=this.data("id"),cvjs_debug&&console.log("stickynote 1");
|
|
3834
|
+
else{try{layer_vqstickynotes.attr(show)}catch(l){}a=this.data("date").toString();-1<a.indexOf("(")&&(a=a.substring(0,a.indexOf("(")));e="Note #"+this.data("id")+"<br>"+a;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(e);bMouseDown=!1;cvjs_clearDrawingStickyNotes();f=this.data("id");cvjs_debug&&console.log("stickynote 2x")}change_space_fixed_locationStickyNotes(f);bPan=!1}).touchstart(function(a){DoTouchStart(a,a.clientX+document.body.scrollLeft,a.clientY+
|
|
3835
|
+
document.body.scrollTop)}).touchend(function(a){if(!bPan&&!locked){f=this.data("id");cvjs_change_space(f);var b=this.data("date").toString();-1<b.indexOf("(")&&(b=b.substring(0,b.indexOf("(")));e="Note #"+this.data("id")+"<br>"+b;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(e)}DoTouchEnd(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop);e=this.data("id");tip[cvjs_active_floorplan_div_nr].html(e);bMouseDown=!1;cvjs_clearDrawingStickyNotes();
|
|
3836
|
+
f=this.data("id");console.log("stickynote 3x");change_space_fixed_locationStickyNotes(f)}).touchmove(function(a){if(!bPan){var b=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();"absolute"==jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position")?tip[cvjs_active_floorplan_div_nr].css("left",a.clientX+document.documentElement.scrollLeft+10).css("top",a.clientY+document.documentElement.scrollTop-25):tip[cvjs_active_floorplan_div_nr].css("left",a.clientX-
|
|
3837
|
+
b.left+document.documentElement.scrollLeft+10).css("top",a.clientY-b.top+document.documentElement.scrollTop-25);tip[cvjs_active_floorplan_div_nr].html(e)}DoTouchMove(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop)}).dblclick(function(a){a.preventDefault();a.stopPropagation()})}}
|
|
3835
3838
|
function cvjs_setUpVqStickyNotes_currentNode_vqIndex_passedInstance(a,b,c,d){floorplan_height=.9*jQuery(window).height();floorplan_width=.9*jQuery(window).width();tip[cvjs_active_floorplan_div_nr]=jQuery("#tip_"+floorplan_div_Array[cvjs_active_floorplan_div_nr]);tip[cvjs_active_floorplan_div_nr].hide().css("left",floorplan_width).css("top",floorplan_height);try{jQuery.fn.qtip.defaults.show.event="click",jQuery.fn.qtip.defaults.hide.event=null}catch(e){}""==layer_vqstickynotes&&(layer_vqstickynotes=
|
|
3836
3839
|
a.g(),layer_vqstickynotes.prepend(cvjs_masterBackground[cvjs_active_floorplan_div_nr]));a=d.data("node");console.log("cvjs_setUpVqStickyNotes_currentNode_vqIndex_passedInstance rid "+a);console.log("rid ="+a+" "+d+" "+(b==a));d.data("name",cvjs_currentStickyNote_name);d.data("id",cvjs_currentStickyNote_id);d.data("text",cvjs_currentStickyNote_text);d.data("layer",cvjs_currentStickyNote_layer);d.data("group",cvjs_currentStickyNote_group);d.data("linked",cvjs_currentStickyNote_linked);
|
|
3837
3840
|
d.data("userid",cvjs_currentStickyNote_userid);d.data("date",cvjs_currentStickyNote_date);d.data("currentPage",cvjs_currentStickyNote_currentPage);d.data("transform",cvjs_currentStickyNote_transform);d.data("drawingRotation",cvjs_currentStickyNote_drawingRotation)}
|
|
3838
|
-
function cvjs_setUpVqStickyNotes_currentNode(a,b){floorplan_height=.9*jQuery(window).height();floorplan_width=.9*jQuery(window).width();tip[cvjs_active_floorplan_div_nr]=jQuery("#tip_"+floorplan_div_Array[cvjs_active_floorplan_div_nr]);tip[cvjs_active_floorplan_div_nr].hide().css("left",floorplan_width).css("top",floorplan_height);var c="";try{jQuery.fn.qtip.defaults.show.event="click",jQuery.fn.qtip.defaults.hide.event=null}catch(
|
|
3841
|
+
function cvjs_setUpVqStickyNotes_currentNode(a,b){floorplan_height=.9*jQuery(window).height();floorplan_width=.9*jQuery(window).width();tip[cvjs_active_floorplan_div_nr]=jQuery("#tip_"+floorplan_div_Array[cvjs_active_floorplan_div_nr]);tip[cvjs_active_floorplan_div_nr].hide().css("left",floorplan_width).css("top",floorplan_height);var c="";try{jQuery.fn.qtip.defaults.show.event="click",jQuery.fn.qtip.defaults.hide.event=null}catch(g){}""==layer_vqstickynotes&&(layer_vqstickynotes=a.g(),layer_vqstickynotes.prepend(cvjs_masterBackground[cvjs_active_floorplan_div_nr]));
|
|
3839
3842
|
var d=vqStickyNotes.length-1;rid=vqStickyNotes[d].data("node");if(b==rid){vqStickyNotes[d].data("name",cvjs_currentStickyNote_name);vqStickyNotes[d].data("id",cvjs_currentStickyNote_id);vqStickyNotes[d].data("text",cvjs_currentStickyNote_text);try{vqStickyNotes[d].data("layer",cvjs_currentStickyNote_layer),vqStickyNotes[d].data("group",cvjs_currentStickyNote_group),vqStickyNotes[d].data("linked",cvjs_currentStickyNote_linked),vqStickyNotes[d].data("userid",cvjs_currentStickyNote_userid),vqStickyNotes[d].data("date",
|
|
3840
|
-
cvjs_currentStickyNote_date),vqStickyNotes[d].data("currentPage",multiPages[cvjs_active_floorplan_div_nr].currentPage),vqStickyNotes[d].data("transform",cvjs_currentStickyNote_transform),vqStickyNotes[d].data("drawingRotation",cvjs_currentRotationAngle[cvjs_active_floorplan_div_nr])}catch(
|
|
3841
|
-
cvjs_supressPopUpModal
|
|
3842
|
-
'</td><td class="cvjs_modal_header_sticky_note_info_1" id="
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
a.
|
|
3856
|
-
function cvjs_setUpVqStickyNotes_currentNode_PageChange(a,b,c){floorplan_height=.9*jQuery(window).height();floorplan_width=.9*jQuery(window).width();tip[cvjs_active_floorplan_div_nr]=jQuery("#tip_"+floorplan_div_Array[cvjs_active_floorplan_div_nr]);tip[cvjs_active_floorplan_div_nr].hide().css("left",floorplan_width).css("top",floorplan_height);var d="";try{jQuery.fn.qtip.defaults.show.event="click",jQuery.fn.qtip.defaults.hide.event=null}catch(f){}""==layer_vqstickynotes&&(layer_vqstickynotes=a.g(),
|
|
3843
|
+
cvjs_currentStickyNote_date),vqStickyNotes[d].data("currentPage",multiPages[cvjs_active_floorplan_div_nr].currentPage),vqStickyNotes[d].data("transform",cvjs_currentStickyNote_transform),vqStickyNotes[d].data("drawingRotation",cvjs_currentRotationAngle[cvjs_active_floorplan_div_nr])}catch(g){console.log(g)}cvjs_supressPopUpModal?vqStickyNotes[d].data("linked")?vqStickyNotes[d].attr(defaultColor_linked):vqStickyNotes[d].attr(defaultColor_unlinked):vqStickyNotes[d].attr(defaultColor_StickyNotes);if(1==
|
|
3844
|
+
cvjs_supressPopUpModal)jQuery(vqStickyNotes[d].node).qtip({content:{text:"",title:""},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"true"}),jQuery(vqStickyNotes[d].node).qtip("destroy");else{var e=Math.floor(1E4*Math.random()+1);console.log("postfix init: "+e);b='<table width="100%"><tr><td cols="3"><div class="cvjs_modal_header_stickynote_info_2">#'+cvjs_currentStickyNote_id+'</div><td class="cvjs_modal_header_stickynote_info_2_background"></td><td class="cvjs_modal_header_1" >'+
|
|
3845
|
+
cvjs_currentStickyNote_name+'</td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon1_'+e+'" ><i class="fa fa-arrows"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon2_'+e+'" ><i class="fa fa-edit"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon3_'+e+'" ><i class="fa fa-trash-o"></i></td><td class="cvjs_modal_header_sticky_note_info_2" id="stickyNoteIcon4_'+e+'" ><i class="fa fa-times"></i></td></tr></table>';cvjs_setStickyNoteText(cvjs_currentStickyNote_text);
|
|
3846
|
+
jQuery(vqStickyNotes[d].node).qtip({content:{text:cvjsStickyNoteBody,title:b},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"false"})}vqStickyNotes[d].mousedown(function(a){vqRoomMouseSelect=!0;cvjs_debug&&console.log("C Domousedown");DoMouseDown(a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop,cvjs_active_floorplan_div_nr)}).mousemove(function(a){currentStickyNoteId=this.data("id");currentStickyNoteName=
|
|
3847
|
+
this.data("name");if(bMouseDown||bTempMouseDown)DoMouseMove(a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop);else{var b=findStickyNotes(currentStickyNoteId);0<=b&&b!=lastObjStickyNote[cvjs_active_floorplan_div_nr]&&cvjs_location_flag&&(tooltipLastStickyNote!=lastObjStickyNote[cvjs_active_floorplan_div_nr]&&(cvjs_supressPopUpModal?vqStickyNotes[tooltipLastStickyNote].data("linked")?vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_linked):vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_unlinked):
|
|
3848
|
+
vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_StickyNotes)),cvjs_supressPopUpModal?vqStickyNotes[b].data("linked")?vqStickyNotes[b].attr(highlight_linked):vqStickyNotes[b].attr(highlight_unlinked):vqStickyNotes[b].attr(highlight_StickyNotes),tooltipLastStickyNote=b);b=this.data("date").toString();-1<b.indexOf("(")&&(b=b.substring(0,b.indexOf("(")));c="Note #"+this.data("id")+"<br>"+b;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(c);tip[cvjs_active_floorplan_div_nr].show();
|
|
3849
|
+
b=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();"absolute"==jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position")?tip[cvjs_active_floorplan_div_nr].css("left",a.clientX+document.documentElement.scrollLeft+10).css("top",a.clientY+document.documentElement.scrollTop-25):tip[cvjs_active_floorplan_div_nr].css("left",a.clientX-b.left+document.documentElement.scrollLeft+10).css("top",a.clientY-b.top+document.documentElement.scrollTop-25)}}).mouseup(function(a){vqRoomMouseSelect=
|
|
3850
|
+
!1;if(bPan)DoMouseUp(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop),a=this.data("date").toString(),-1<a.indexOf("(")&&(a=a.substring(0,a.indexOf("("))),c="Note #"+this.data("id")+"<br>"+a,tip[cvjs_active_floorplan_div_nr].css({position:"fixed"}),tip[cvjs_active_floorplan_div_nr].html(c),bMouseDown=!1,cvjs_clearDrawingStickyNotes(),rid=this.data("id"),cvjs_debug_stickynotes&&console.log("zzxz");else{try{layer_vqstickynotes.attr(show)}catch(h){}a=this.data("date").toString();
|
|
3851
|
+
-1<a.indexOf("(")&&(a=a.substring(0,a.indexOf("(")));c="Note #"+this.data("id")+"<br>"+a;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(c);bMouseDown=!1;rid=this.data("id");console.log("stickynote 5x")}change_space_fixed_locationStickyNotes(rid);bPan=!1}).touchstart(function(a){DoTouchStart(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop)}).touchend(function(a){if(!bPan&&!locked){rid=this.data("id");cvjs_change_space(rid);var b=
|
|
3852
|
+
this.data("date").toString();-1<b.indexOf("(")&&(b=b.substring(0,b.indexOf("(")));c="Note #"+this.data("id")+"<br>"+b;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(c)}DoTouchEnd(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop)}).touchmove(function(a){if(!bPan){var b=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();"absolute"==jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position")?
|
|
3853
|
+
tip[cvjs_active_floorplan_div_nr].css("left",a.clientX+document.documentElement.scrollLeft+10).css("top",a.clientY+document.documentElement.scrollTop-25):tip[cvjs_active_floorplan_div_nr].css("left",a.clientX-b.left+document.documentElement.scrollLeft+10).css("top",a.clientY-b.top+document.documentElement.scrollTop-25);tip[cvjs_active_floorplan_div_nr].html(c)}DoTouchMove(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop)}).dblclick(function(a){a.preventDefault();a.stopPropagation()})}a.add(vqStickyNotes[d]);
|
|
3854
|
+
console.log("before show"+vqStickyNotes[d].node);jQuery(vqStickyNotes[d].node).qtip("show");a=document.getElementsByTagName("div");var f="";for(b=0;b<a.length;b++)-1<a[b].id.indexOf("qtip-")&&-1==a[b].id.indexOf("-content")&&-1==a[b].id.indexOf("-title")&&(f=a[b].id);console.log(f);jQuery("#stickyNoteIcon1_"+e).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.MoveNote,1,d,e,f)});jQuery("#stickyNoteIcon1_"+e).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});
|
|
3855
|
+
jQuery("#stickyNoteIcon1_"+e).on("click",function(){cvjs_move_note(f,d)});jQuery("#stickyNoteIcon2_"+e).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.EditNote,2,d,e,f)});jQuery("#stickyNoteIcon2_"+e).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon2_"+e).on("click",function(){cvjs_edit_note(f,d)});jQuery("#stickyNoteIcon3_"+e).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.DeleteNote,
|
|
3856
|
+
3,d,e,f)});jQuery("#stickyNoteIcon3_"+e).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon3_"+e).on("click",function(){cvjs_delete_note(f,d)});jQuery("#stickyNoteIcon4_"+e).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.MinimizeNote,4,d,e,f)});jQuery("#stickyNoteIcon4_"+e).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon4_"+e).on("click",function(){hideOnlyStickyNote(d,
|
|
3857
|
+
f)});jQuery(vqStickyNotes[d].node).qtip("show").qtip("hide")}
|
|
3858
|
+
function cvjs_setUpVqStickyNotes_currentNode_PageChange(a,b,c){floorplan_height=.9*jQuery(window).height();floorplan_width=.9*jQuery(window).width();tip[cvjs_active_floorplan_div_nr]=jQuery("#tip_"+floorplan_div_Array[cvjs_active_floorplan_div_nr]);tip[cvjs_active_floorplan_div_nr].hide().css("left",floorplan_width).css("top",floorplan_height);var d="";try{jQuery.fn.qtip.defaults.show.event="click",jQuery.fn.qtip.defaults.hide.event=null}catch(h){}""==layer_vqstickynotes&&(layer_vqstickynotes=a.g(),
|
|
3857
3859
|
layer_vqstickynotes.prepend(cvjs_masterBackground[cvjs_active_floorplan_div_nr]));var e=vqStickyNotes[c].data("node");if(b==e){vqStickyNotes[c].data("name",cvjs_currentStickyNote_name);vqStickyNotes[c].data("id",cvjs_currentStickyNote_id);vqStickyNotes[c].data("text",cvjs_currentStickyNote_text);try{vqStickyNotes[c].data("layer",cvjs_currentStickyNote_layer),vqStickyNotes[c].data("group",cvjs_currentStickyNote_group),vqStickyNotes[c].data("linked",cvjs_currentStickyNote_linked),vqStickyNotes[c].data("userid",
|
|
3858
|
-
cvjs_currentStickyNote_userid),vqStickyNotes[c].data("date",cvjs_currentStickyNote_date),vqStickyNotes[c].data("currentPage",cvjs_currentStickyNote_currentPage),vqStickyNotes[c].data("transform",cvjs_currentStickyNote_transform),vqStickyNotes[c].data("drawingRotation",cvjs_currentStickyNote_drawingRotation)}catch(
|
|
3859
|
-
vqStickyNotes[c].attr(defaultColor_unlinked);if(1==cvjs_supressPopUpModal)jQuery(vqStickyNotes[c].node).qtip({content:{text:"",title:""},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"true"}),jQuery(vqStickyNotes[c].node).qtip("destroy");else
|
|
3860
|
-
cvjs_currentStickyNote_name+'</td><td class="cvjs_modal_header_sticky_note_info_1" id="
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
tip[cvjs_active_floorplan_div_nr].
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3860
|
+
cvjs_currentStickyNote_userid),vqStickyNotes[c].data("date",cvjs_currentStickyNote_date),vqStickyNotes[c].data("currentPage",cvjs_currentStickyNote_currentPage),vqStickyNotes[c].data("transform",cvjs_currentStickyNote_transform),vqStickyNotes[c].data("drawingRotation",cvjs_currentStickyNote_drawingRotation)}catch(h){console.log(h)}!cvjs_supressPopUpModal||cvjs_standardHighLightColors?vqStickyNotes[c].attr(defaultColor_StickyNotes):vqStickyNotes[c].data("linked")?vqStickyNotes[c].attr(defaultColor_linked):
|
|
3861
|
+
vqStickyNotes[c].attr(defaultColor_unlinked);if(1==cvjs_supressPopUpModal)jQuery(vqStickyNotes[c].node).qtip({content:{text:"",title:""},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"true"}),jQuery(vqStickyNotes[c].node).qtip("destroy");else{var f=Math.floor(1E4*Math.random()+1);console.log("postfix 3: "+f);a='<table width="100%"><tr><td cols="3"><div class="cvjs_modal_header_stickynote_info_2">#'+cvjs_currentStickyNote_id+
|
|
3862
|
+
'</div><td class="cvjs_modal_header_stickynote_info_2_background"></td><td class="cvjs_modal_header_1" >'+cvjs_currentStickyNote_name+'</td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon1_'+f+'" ><i class="fa fa-arrows"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon2_'+f+'" ><i class="fa fa-edit"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon3_'+f+'" ><i class="fa fa-trash-o"></i></td><td class="cvjs_modal_header_sticky_note_info_2" id="stickyNoteIcon4_'+
|
|
3863
|
+
f+'" ><i class="fa fa-times"></i></td></tr></table>';cvjs_setStickyNoteText(cvjs_currentStickyNote_text);jQuery(vqStickyNotes[c].node).qtip({content:{text:cvjsStickyNoteBody,title:a},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"false"});a=document.getElementsByTagName("div");for(b=0;b<a.length;b++)-1<a[b].id.indexOf("qtip-")&&-1==a[b].id.indexOf("-content")&&-1==a[b].id.indexOf("-title")&&(StickNoteQtipDiv=a[b].id)}vqStickyNotes[c].mousedown(function(a){vqRoomMouseSelect=
|
|
3864
|
+
!0;cvjs_debug&&console.log("E Domousedown");DoMouseDown(a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop,cvjs_active_floorplan_div_nr)}).mousemove(function(a){currentStickyNoteId=this.data("id");currentStickyNoteName=this.data("name");if(bMouseDown||bTempMouseDown)DoMouseMove(a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop);else{var b=findStickyNotes(currentStickyNoteId);if(0<=b&&b!=lastObjStickyNote[cvjs_active_floorplan_div_nr]&&cvjs_location_flag){if(tooltipLastStickyNote!=
|
|
3865
|
+
lastObjStickyNote[cvjs_active_floorplan_div_nr])try{cvjs_supressPopUpModal?vqStickyNotes[tooltipLastStickyNote].data("linked")?vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_linked):vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_unlinked):vqStickyNotes[tooltipLastStickyNote].attr(defaultColor_StickyNotes)}catch(l){}cvjs_supressPopUpModal?vqStickyNotes[b].data("linked")?vqStickyNotes[b].attr(highlight_linked):vqStickyNotes[b].attr(highlight_unlinked):vqStickyNotes[b].attr(highlight_StickyNotes);
|
|
3866
|
+
tooltipLastStickyNote=b}b=this.data("date").toString();-1<b.indexOf("(")&&(b=b.substring(0,b.indexOf("(")));d="Note #"+this.data("id")+"<br>"+b;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(d);tip[cvjs_active_floorplan_div_nr].show();b=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();"absolute"==jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position")?tip[cvjs_active_floorplan_div_nr].css("left",a.clientX+
|
|
3867
|
+
document.documentElement.scrollLeft+10).css("top",a.clientY+document.documentElement.scrollTop-25):tip[cvjs_active_floorplan_div_nr].css("left",a.clientX-b.left+document.documentElement.scrollLeft+10).css("top",a.clientY-b.top+document.documentElement.scrollTop-25)}}).mouseup(function(a){vqRoomMouseSelect=!1;if(bPan)DoMouseUp(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop),a=this.data("date").toString(),-1<a.indexOf("(")&&(a=a.substring(0,a.indexOf("("))),d="Note #"+this.data("id")+
|
|
3868
|
+
"<br>"+a,tip[cvjs_active_floorplan_div_nr].css({position:"fixed"}),tip[cvjs_active_floorplan_div_nr].html(d),bMouseDown=!1,cvjs_clearDrawingStickyNotes(),e=this.data("id"),console.log("sticky note up 7x");else{try{layer_vqstickynotes.attr(show)}catch(k){}a=this.data("date").toString();-1<a.indexOf("(")&&(a=a.substring(0,a.indexOf("(")));d="Note #"+this.data("id")+"<br>"+a;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(d);bMouseDown=!1;cvjs_clearDrawingStickyNotes();
|
|
3869
|
+
e=this.data("id");console.log("2")}change_space_fixed_locationStickyNotes(e);bPan=!1}).touchstart(function(a){DoTouchStart(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop)}).touchend(function(a){if(!bPan&&!locked){e=this.data("id");cvjs_change_space(e);var b=this.data("date").toString();-1<b.indexOf("(")&&(b=b.substring(0,b.indexOf("(")));d="Note #"+this.data("id")+"<br>"+b;tip[cvjs_active_floorplan_div_nr].css({position:"fixed"});tip[cvjs_active_floorplan_div_nr].html(d)}DoTouchEnd(a,
|
|
3870
|
+
a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop);d=this.data("id");tip[cvjs_active_floorplan_div_nr].html(d);bMouseDown=!1;cvjs_clearDrawingStickyNotes();e=this.data("id");console.log("3");change_space_fixed_locationStickyNotes(e)}).touchmove(function(a){if(!bPan){var b=jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).position();"absolute"==jQuery("#"+floorplan_div_Array[cvjs_active_floorplan_div_nr]).css("position")?tip[cvjs_active_floorplan_div_nr].css("left",a.clientX+
|
|
3871
|
+
document.documentElement.scrollLeft+10).css("top",a.clientY+document.documentElement.scrollTop-25):tip[cvjs_active_floorplan_div_nr].css("left",a.clientX-b.left+document.documentElement.scrollLeft+10).css("top",a.clientY-b.top+document.documentElement.scrollTop-25);tip[cvjs_active_floorplan_div_nr].html(d)}DoTouchMove(a,a.clientX+document.body.scrollLeft,a.clientY+document.body.scrollTop)}).dblclick(function(a){a.preventDefault();a.stopPropagation()})}jQuery(vqStickyNotes[c].node).qtip("show");var g=
|
|
3872
|
+
"";a=document.getElementsByTagName("div");for(b=0;b<a.length;b++)-1<a[b].id.indexOf("qtip-")&&-1==a[b].id.indexOf("-content")&&-1==a[b].id.indexOf("-title")&&(g=a[b].id);jQuery("#stickyNoteIcon1_"+f).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.MoveNote,1,c,f,g)});jQuery("#stickyNoteIcon1_"+f).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon1_"+f).on("click",function(){cvjs_move_note()});jQuery("#stickyNoteIcon2_"+
|
|
3873
|
+
f).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.EditNote,2,c,f,g)});jQuery("#stickyNoteIcon2_"+f).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon2_"+f).on("click",function(){cvjs_edit_note()});jQuery("#stickyNoteIcon3_"+f).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.DeleteNote,3,c,f,g)});jQuery("#stickyNoteIcon3_"+f).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});
|
|
3874
|
+
jQuery("#stickyNoteIcon3_"+f).on("click",function(){cvjs_delete_note()});jQuery("#stickyNoteIcon4_"+f).mouseover(function(){cvjs_showStickynoteTip(languageTable.languages[cvjs_currentLanguage].StickyNote.MinimizeNote,4,c,f,g)});jQuery("#stickyNoteIcon4_"+f).mouseout(function(){tip[cvjs_active_floorplan_div_nr].hide()});jQuery("#stickyNoteIcon4_"+f).on("click",function(){hideOnlyStickyNote(c)});jQuery(vqStickyNotes[c].node).qtip("hide")}
|
|
3875
|
+
function getGroupByName(a){for(var b=document.getElementById("container").getElementsByTagName("g"),c=0;c<b.length;c++)if(b[c].getAttributeNS(null,"name")===a)return b[c];return null}
|
|
3872
3876
|
function cvjs_setUpVqRooms_deleteNode(a){try{var b;for(b in cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr]){var c=cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("node");c==a&&(jQuery("#cv_"+c+"_group").remove(),cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr].splice(b,1),cvjs_clearSpaceLayer())}}catch(d){console.log("DeleteNode err: "+d)}}
|
|
3873
3877
|
function cvjs_setUpStickyNotes_deleteNode(a){var b;for(b in vqStickyNotes){var c=vqStickyNotes[b].data("node");console.log("delete "+a+" "+c+" "+b);c==a&&(vqStickyNotes[b].data("deleted",!0),cvjs_debug&&console.log("DELETING "+b+" "+vqStickyNotes[b]),vqStickyNotes[b].attr({transform:"S0.001",opacity:"1"}),hideOnlyStickyNote(b),cvjs_debug&&console.log("AFTER DELETING "+b+" "+vqStickyNotes[b]),jQuery(vqStickyNotes[b].node).qtip("destroy"),vqStickyNotes.splice(b,1))}}
|
|
3874
3878
|
function cvjs_StickyNotes_arrayIndex(a){var b;for(b in vqStickyNotes){var c=vqStickyNotes[b].data("node");if(c==a)return b}return-1}var firstX_c=0,firstY_c=0,lastX_c=0,lastY_c=0,flag_c=!1,tTransform_c="",tRubberBand_c,myText,delta=0;function cvjs_drawSpaceObject_Circle(){cvjs_addHandleFunc_Circle()}
|
|
@@ -5240,18 +5244,10 @@ cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_lastObj[cvjs_active_
|
|
|
5240
5244
|
cvjs_popObj[cvjs_active_floorplan_div_nr]<cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr].length){jQuery(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_popObj[cvjs_active_floorplan_div_nr]].node).qtip("hide");!cvjs_supressPopUpModal||cvjs_standardHighLightColors?-1<cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_popObj[cvjs_active_floorplan_div_nr]].data("defaultcolor").toString().indexOf("undefined")?(a=cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_popObj[cvjs_active_floorplan_div_nr]].data("node"),
|
|
5241
5245
|
a="#"+jQuery('[cvjs\\:node="'+a+'"]').attr("id"),jQuery(a).attr(defaultColor)):(a=cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_popObj[cvjs_active_floorplan_div_nr]].data("node"),a="#"+jQuery('[cvjs\\:node="'+a+'"]').attr("id"),jQuery(a).attr(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_popObj[cvjs_active_floorplan_div_nr]].data("defaultcolor"))):cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_popObj[cvjs_active_floorplan_div_nr]].data("linked")?(a=cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_popObj[cvjs_active_floorplan_div_nr]].data("node"),
|
|
5242
5246
|
a="#"+jQuery('[cvjs\\:node="'+a+'"]').attr("id"),jQuery(a).attr(defaultColor_linked)):(a=cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][cvjs_popObj[cvjs_active_floorplan_div_nr]].data("node"),a="#"+jQuery('[cvjs\\:node="'+a+'"]').attr("id"),jQuery(a).attr(defaultColor_unlinked));cvjs_popObj[cvjs_active_floorplan_div_nr]=-1;try{cvjs_NoObjectSelected()}catch(b){}}}
|
|
5243
|
-
function hideOnlyStickyNote(a){a=lastObjStickyNote[cvjs_active_floorplan_div_nr]==popObjStickyNote[cvjs_active_floorplan_div_nr];cvjs_debug&&console.log("before branch");cvjs_debug_stickynotes&&(cvjs_debug&&console.log("hide pop"),hidePopStickyNotes());if(0<=lastObjStickyNote[cvjs_active_floorplan_div_nr]){jQuery(vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].node.qtip).is(":visible")&&jQuery(vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].node).qtip("hide");
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
"',4,"+lastObjStickyNote[cvjs_active_floorplan_div_nr]+');" ><i class="fa fa-times"></i></td></tr></table>';jQuery(vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].node).qtip({content:{text:cvjsStickyNoteBody,title:b},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"false"});jQuery(vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].node).qtip("hide");cvjs_supressPopUpModal?vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].data("linked")?
|
|
5248
|
-
vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_linked):vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_unlinked):vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_StickyNotes);lastObjStickyNote[cvjs_active_floorplan_div_nr]=-1;try{cvjs_NoObjectSelected()}catch(c){}}if(0<=popObjStickyNote[cvjs_active_floorplan_div_nr]&&!a){jQuery(vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]+1].node).qtip("hide");
|
|
5249
|
-
StickNoteEditMode=!1;b=vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].data("text");cvjs_setStickyNoteText(b);b='<table width="100%"><tr><td cols="3"><div class="cvjs_modal_header_stickynote_info_2">#'+vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].data("id")+'</div><td class="cvjs_modal_header_stickynote_info_2_background"></td><td class="cvjs_modal_header_1" >'+vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].data("name")+'</td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon1" onclick="cvjs_move_note();" onmouseout="javascript:tip[cvjs_active_floorplan_div_nr].hide();" onmouseover="javascript:cvjs_showStickynoteTip(\''+
|
|
5250
|
-
languageTable.languages[cvjs_currentLanguage].StickyNote.MoveNote+"',1,"+popObjStickyNote[cvjs_active_floorplan_div_nr]+');" ><i class="fa fa-arrows"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon2" onclick="cvjs_edit_note();" onmouseout="javascript:tip[cvjs_active_floorplan_div_nr].hide();" onmouseover="javascript:cvjs_showStickynoteTip(\''+languageTable.languages[cvjs_currentLanguage].StickyNote.EditNote+"',2,"+popObjStickyNote[cvjs_active_floorplan_div_nr]+');" ><i class="fa fa-edit"></i></td><td class="cvjs_modal_header_sticky_note_info_1" id="stickyNoteIcon3" onclick="cvjs_delete_note();" onmouseout="javascript:tip[cvjs_active_floorplan_div_nr].hide();" onmouseover="javascript:cvjs_showStickynoteTip(\''+
|
|
5251
|
-
languageTable.languages[cvjs_currentLanguage].StickyNote.DeleteNote+"',3,"+popObjStickyNote[cvjs_active_floorplan_div_nr]+');" ><i class="fa fa-trash-o"></i></td><td class="cvjs_modal_header_sticky_note_info_2" id="stickyNoteIcon4" onclick="hideOnlyStickyNote('+popObjStickyNote[cvjs_active_floorplan_div_nr]+');" onmouseout="javascript:tip[cvjs_active_floorplan_div_nr].hide();" onmouseover="javascript:cvjs_showStickynoteTip(\''+languageTable.languages[cvjs_currentLanguage].StickyNote.MinimizeNote+
|
|
5252
|
-
"',4,"+popObjStickyNote[cvjs_active_floorplan_div_nr]+');" ><i class="fa fa-times"></i></td></tr></table>';jQuery(vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].node).qtip({content:{text:cvjsStickyNoteBody,title:b},style:{classes:"qtip-bootstrap qtip-shadow qtip-rounded qtip-zindex"},position:{my:"bottom center",at:"top left"},hideOnHTMLClick:"false"});cvjs_supressPopUpModal?vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].data("linked")?vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_linked):
|
|
5253
|
-
vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_unlinked):vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_StickyNotes);popObjStickyNote[cvjs_active_floorplan_div_nr]=-1;try{cvjs_NoObjectSelected()}catch(c){}}else popObjStickyNote[cvjs_active_floorplan_div_nr]=-1}
|
|
5254
|
-
function closeAllPopups(a){cvjs_debug&&console.log("closeAllPopups");for(var b in cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr])b!=a&&jQuery(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].node).qtip("hide")}function closeAllPopupsStickyNotes(a){for(var b in vqStickyNotes)b!=a&&jQuery(vqStickyNotes[b].node).qtip("hide")}
|
|
5247
|
+
function hideOnlyStickyNote(a){a=lastObjStickyNote[cvjs_active_floorplan_div_nr]==popObjStickyNote[cvjs_active_floorplan_div_nr];cvjs_debug&&console.log("before branch");cvjs_debug_stickynotes&&(cvjs_debug&&console.log("hide pop"),hidePopStickyNotes());jQuery(vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].node).qtip("hide");if(0<=lastObjStickyNote[cvjs_active_floorplan_div_nr]){jQuery(vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].node.qtip).is(":visible")&&jQuery(vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].node).qtip("hide");
|
|
5248
|
+
cvjs_supressPopUpModal?vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].data("linked")?vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_linked):vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_unlinked):vqStickyNotes[lastObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_StickyNotes);lastObjStickyNote[cvjs_active_floorplan_div_nr]=-1;try{cvjs_NoObjectSelected()}catch(b){}}if(0<=popObjStickyNote[cvjs_active_floorplan_div_nr]&&
|
|
5249
|
+
!a){jQuery(vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]+1].node).qtip("hide");cvjs_supressPopUpModal?vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].data("linked")?vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_linked):vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_unlinked):vqStickyNotes[popObjStickyNote[cvjs_active_floorplan_div_nr]].attr(defaultColor_StickyNotes);popObjStickyNote[cvjs_active_floorplan_div_nr]=
|
|
5250
|
+
-1;try{cvjs_NoObjectSelected()}catch(b){}}else popObjStickyNote[cvjs_active_floorplan_div_nr]=-1}function closeAllPopups(a){cvjs_debug&&console.log("closeAllPopups");for(var b in cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr])b!=a&&jQuery(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].node).qtip("hide")}function closeAllPopupsStickyNotes(a){for(var b in vqStickyNotes)b!=a&&jQuery(vqStickyNotes[b].node).qtip("hide")}
|
|
5255
5251
|
function pick_space(a){jQuery("#SearchResultsPanel").hide();cvjs_change_space(a);var b=findRoom(a);if(b){cvjs_debug&&console.log("pickspace");jQuery(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].node).qtip("show");cvjs_popObj[cvjs_active_floorplan_div_nr]=b;a=!1;try{a=cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("qtip")}catch(c){console.log(c+" QTIP not defined")}a||(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("qtip",!0),jQuery("#hideOnlyPop_"+cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("id_link")).on("click",
|
|
5256
5252
|
function(){hideOnlyPop()}),jQuery("#cvjs_popupTitleClick_"+cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("id_link")).on("click",function(){cvjs_popupTitleClick(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("id"))}),0!=cvjs_frontEndHandlerType.indexOf("reactjs")&&0!=cvjs_frontEndHandlerType.indexOf("vuejs")&&0!=cvjs_frontEndHandlerType.indexOf("angular"))||(jQuery("#my_own_clickmenu1_"+cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("id")).on("click",
|
|
5257
5253
|
function(){my_own_clickmenu1(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("id"))}),jQuery("#my_own_clickmenu2_"+cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("id")).on("click",function(){my_own_clickmenu2(cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("id"))}),jQuery("#cvjs_zoomHere_"+cvjs_SpaceObjectsContent[cvjs_active_floorplan_div_nr][b].data("id")).on("click",function(){cvjs_zoomHere()}))}}
|