|
|
{ id: 'db_node_%%%NODEID%%%', title: '%%%NODENAME%%%', draggable: false, collapsible: false, tools: [{ id:'gear', handler: function(){ //Ext.Msg.alert('Message', 'The Settings tool was clicked.');
//showSensorToolBox( %%%NODEID%%% );
} }], listeners:{ afterrender: function(p){ var W=p.getWidth(); var H=9*(W/16); p.setHeight( H + 32 ); Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 18 ); document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-45 ); set2DZoomLevel( %%%NODEID%%%, 100 ); } }, layout: 'hbox', items:[{ id: 'cp_radar_%%%NODEID%%%', //html: '<center><img id="draw_img_%%%NODEID%%%" src="/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=100" style="cursor: crosshair;"><canvas id="targ_canvas_%%%NODEID%%%" style="display: none; cursor: crosshair;" onclick="DrawClicker( %%%NODEID%%%, event );" width="200" height="210"></canvas></center>',
//html: '<center><img id="draw_svg_%%%NODEID%%%" width="86%" src="/style/assets/draw100.svg" style="cursor: crosshair;"></center>',
//html: '<center><img id="draw_svg_%%%NODEID%%%" width="86%" src=\'data:image/svg+xml;utf8,<svg id="layer_0_%%%NODEID%%%" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="1024px" height="1024px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" viewBox="0 0 574 574" xmlns:xlink="http://www.w3.org/1999/xlink"><circle fill="%2300A859" stroke="%23373435" stroke-width="5.92139" cx="287" cy="287" r="284"/><line fill="none" stroke="%23FFF212" stroke-width="3.94741" x1="287" y1="3" x2="287" y2="571"/><line fill="none" stroke="%23FFF212" stroke-width="3.94741" x1="3" y1="287" x2="571" y2="287"/><circle fill="none" stroke="%23373435" stroke-width="5.92139" cx="287" cy="287" r="284"/><circle id="r50_%%%NODEID%%%" fill="none" stroke="%23FFF212" stroke-width="3.94741" cx="287" cy="287" r="142"/><circle id="r25_%%%NODEID%%%" fill="none" stroke="%23FFF212" stroke-width="2.96042" cx="287" cy="287" r="71"/><circle id="r12_%%%NODEID%%%" fill="none" stroke="%23FFF212" stroke-width="1.47993" cx="287" cy="287" r="34"/></svg>\' style="cursor: crosshair;"/></center>',
//html: '<center><object id="draw_svg_%%%NODEID%%%" type="image/svg+xml" width="86%" data=\'data:image/svg+xml;utf8,<svg id="layer_0_%%%NODEID%%%" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="1024px" height="1024px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" viewBox="0 0 574 574" xmlns:xlink="http://www.w3.org/1999/xlink"><circle fill="%2300A859" stroke="%23373435" stroke-width="5.92139" cx="287" cy="287" r="284"/><line fill="none" stroke="%23FFF212" stroke-width="3.94741" x1="287" y1="3" x2="287" y2="571"/><line fill="none" stroke="%23FFF212" stroke-width="3.94741" x1="3" y1="287" x2="571" y2="287"/><circle fill="none" stroke="%23373435" stroke-width="5.92139" cx="287" cy="287" r="284"/><circle id="r50_%%%NODEID%%%" fill="none" stroke="%23FFF212" stroke-width="3.94741" cx="287" cy="287" r="142"/><circle id="r25_%%%NODEID%%%" fill="none" stroke="%23FFF212" stroke-width="2.96042" cx="287" cy="287" r="71"/><circle id="r12_%%%NODEID%%%" fill="none" stroke="%23FFF212" stroke-width="1.47993" cx="287" cy="287" r="34"/></svg>\' style="cursor: crosshair;"></object></center>',
html: '<center><svg id="draw_svg_%%%NODEID%%%" opacity="0.3" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="86%" height="86%" version="1.1" onclick="select2DROI( %%%NODEID%%%, event );" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd; cursor: crosshair;" viewBox="0 0 574 574" xmlns:xlink="http://www.w3.org/1999/xlink"><text id="g_txt_%%%NODEID%%%" text-anchor="left" transform="rotate(0,35,35)" x="35" y="35" fill="#FFF212" style="font: 30px sans-serif">100 m.</text><circle fill="#00A859" stroke="#373435" stroke-width="5.92139" cx="287" cy="287" r="284"/><circle id="r50_%%%NODEID%%%" fill="none" stroke="#FFF212" stroke-width="3.94741" cx="287" cy="287" r="142"/><text id="50_txt_%%%NODEID%%%" text-anchor="left" transform="rotate(45,140,140)" x="140" y="140" fill="#FFF212" style="font: 25px sans-serif">50</text><circle id="r25_%%%NODEID%%%" fill="none" stroke="#FFF212" stroke-width="2.96042" cx="287" cy="287" r="71"/><text id="25_txt_%%%NODEID%%%" text-anchor="left" transform="rotate(45,210,210)" x="210" y="210" fill="#FFF212" style="font: 15px sans-serif">25</text><circle id="r12_%%%NODEID%%%" fill="none" stroke="#FFF212" stroke-width="1.47993" cx="287" cy="287" r="34"/><text id="12_txt_%%%NODEID%%%" text-anchor="left" transform="rotate(45,245,245)" x="245" y="245" fill="#FFF212" style="font: 10px sans-serif">12.5</text><line fill="none" stroke="#FFF212" stroke-width="3.94741" x1="287" y1="3" x2="287" y2="571"/><line fill="none" stroke="#FFF212" stroke-width="3.94741" x1="3" y1="287" x2="571" y2="287"/><circle fill="none" stroke="#373435" stroke-width="5.92139" cx="287" cy="287" r="284"/></svg></center>', width: '56%' },{ frame: false, border: false, width: '44%', items:[{ xtype: 'button', id: 'cp_clear_btn_%%%NODEID%%%', width: '100%', text: 'Clear Allerts' },{ xtype: 'spacer', height: 6 },{ xtype: 'button', id: 'cp_draw_btn_%%%NODEID%%%', width: '100%', text: 'Draw Background', disabled: true, handler: function(){ doDeviceOperation( %%%NODEID%%%, 3,'', true ); } },{ xtype: 'spacer', height: 6 },{ xtype: 'button', id: 'cp_study_btn_%%%NODEID%%%', width: '100%', text: 'Study Background', disabled: true, handler: function(){ doDeviceOperation( %%%NODEID%%%, 2,'', true ); } }] }], bbar:[{ xtype: 'button', text: '12.5%', enableToggle: true, id: 'zoom_bt12_%%%NODEID%%%', toggleGroup: 'zoom_tg_%%%NODEID%%%', toggleHandler: function( bt, st ){ if( st ){ set2DZoomLevel( %%%NODEID%%%, 12 ); }; } },{ xtype: 'button', text: '25%', enableToggle: true, id: 'zoom_bt25_%%%NODEID%%%', toggleGroup: 'zoom_tg_%%%NODEID%%%', toggleHandler: function( bt, st ){ if( st ){ set2DZoomLevel( %%%NODEID%%%, 25 ); }; } },{ xtype: 'button', text: '50%', enableToggle: true, id: 'zoom_bt50_%%%NODEID%%%', toggleGroup: 'zoom_tg_%%%NODEID%%%', toggleHandler: function( bt, st ){ if( st ){ set2DZoomLevel( %%%NODEID%%%, 50 ); }; } },{ xtype: 'button', text: '100%', pressed: true, enableToggle: true, id: 'zoom_bt100_%%%NODEID%%%', toggleGroup: 'zoom_tg_%%%NODEID%%%', toggleHandler: function( bt, st ){ if( st ){ set2DZoomLevel( %%%NODEID%%%, 100 ); }; } },{ xtype: 'panel', id: 'status_%%%NODEID%%%', border: false, frame: false, width: 800, height: 28, html: '' }]}
|