Etude exploratoire XML / SVG IDL_CERTU1/ETU_001 / 1.1 - Lara
Etude exploratoire XML / SVG IDL_CERTU1/ETU_001 / 1.1 - Lara
Etude exploratoire XML / SVG IDL_CERTU1/ETU_001 / 1.1 - Lara
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Edité le 11 juin 2002 Annexes de l'étude CERTUvar width = maxX-minX;var height = maxY-minY;doc.getDocumentElement().setCurrentScale(1);doc.getDocumentElement().currentTranslate.x=0;doc.getDocumentElement().currentTranslate.y=0;doc.getDocumentElement().setAttribute("viewBox", "" + (minX-width/2) + " " +(minY-height/2) + " " + (width*2) + " " + (height*2));var outerStroke = doc.getElementById("OuterStroke");outerStroke.style.setProperty('stroke-width', '0.2');var innerStroke = doc.getElementById("InnerStroke");innerStroke.style.setProperty('stroke-width', '0.2');innerStroke.style.setProperty('stroke-dasharray', '0.4,0.4');}}var bluePath = doc.getElementById("bluepath");bluePath.setAttribute("d", parc.getAttribute("d"));bluePath.style.setProperty('visibility', 'visible');var guide = document.svgMiniMap.get<strong>SVG</strong>Document().getElementById("guide");guide.style.setProperty("visibility", "hidden");// Retour à la vue normalefunction vueNormale() {var doc = document.svgMap.get<strong>SVG</strong>Document();doc.getDocumentElement().setCurrentScale(1);doc.getDocumentElement().currentTranslate.x=0;doc.getDocumentElement().currentTranslate.y=0;doc.getDocumentElement().setAttribute("viewBox", "2500 1000 2400 1800");var outerStroke = doc.getElementById("OuterStroke");outerStroke.style.setProperty('stroke-width', '10');var innerStroke = doc.getElementById("InnerStroke");innerStroke.style.setProperty('stroke-width', '10');innerStroke.style.setProperty('stroke-dasharray', '20,20');var bluePath = doc.getElementById("bluepath");bluePath.style.setProperty('visibility', 'hidden');}var guide = document.svgMiniMap.get<strong>SVG</strong>Document().getElementById("guide");guide.style.setProperty("visibility", "visible");// Gestion de la vue miniaturefunction changeMinimap(evt) {var docelem = document.svgMap.get<strong>SVG</strong>Document().getDocumentElement();var guide = document.svgMiniMap.get<strong>SVG</strong>Document().getElementById("guide");guide.setAttribute("x", new String((3000 -docelem.currentTranslate.x*4/docelem.currentScale)/8400*200));guide.setAttribute("y", new String((1200 -docelem.currentTranslate.y*4/docelem.currentScale)/6300*150));guide.setAttribute("width", new String(2400/8400*200/docelem.currentScale));guide.setAttribute("height", new String(1800/6300*150/docelem.currentScale));}var pointeX=0;var pointeY=0;var press=0;SWORD - Nos réf. : <strong>IDL</strong>_<strong>CERTU1</strong>/<strong>ETU</strong>_002 / 1.0 Diffusion : contrôlée Page : 13/48