UNPKG

@mapgis/webclient-common

Version:

mapgis ES6 format for igserver

2,016 lines (618 loc) 34 kB
<header id="page-title" class="page-title"> <span class="page-title-main">类名</span> <span class="page-title-sub">SketchStyle</span> </header> <section> <article> <div class="container-overview"> <div class='vertical-section'> <div class="members"> <div class="member"> <h4 class="name" id="SketchStyle"> <a class="href-link" href="#SketchStyle">#</a> <span class="code-name" id="SketchStyle" style="font-size:30px"> new SketchStyle<span class="signature">(options)</span> </span> </h4> <div class="description"> <p>草图样式管理类</p> </div> <h4>参数</h4> <div class="table-container"> <table class="params table"> <thead> <tr> <th>名称</th> <th>类型</th> <th class="last">描述</th> </tr> </thead> <tbody> <tr class="deep-level-0"> <td class="name" id="options"><code>options</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last"></td> </tr> <tr class="deep-level-1"> <td class="name" id="vertexStyle"><code>vertexStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </td> <td class="description last"><p>草图点样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="lineStyle"><code>lineStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleLineSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleLineSymbol" SimpleLineSymbol.html>SimpleLineSymbol</a></span> </td> <td class="description last"><p>草图线样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="fillStyle"><code>fillStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图区样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textStyle"><code>textStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图文字样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="selectBoxStyle"><code>selectBoxStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图选中框的顶点样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="selectBoxVertexStyle"><code>selectBoxVertexStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图选中框的顶点样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="selectVertexStyle"><code>selectVertexStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图选中时,被编辑顶点样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="selectTextStyle"><code>selectTextStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图文字选中时,被编辑文字样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="selectMidVertexStyle"><code>selectMidVertexStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图选中时,被编辑中点样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="coincidentPointStyle"><code>coincidentPointStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图捕获点重合样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="highlightPointStyle"><code>highlightPointStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图(提示)高亮点样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="highlightLineStyle"><code>highlightLineStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图(提示)高亮线样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="parallelLineStyle"><code>parallelLineStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图(提示)平行线样式</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="perpendicularLineStyle"><code>perpendicularLineStyle</code></td> <td class="type"> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </td> <td class="description last"><p>草图(提示)垂直线样式</p></td> </tr> </tbody> </table> </div> <dl class="details"> </dl> </div> </div> </div> </div> <div class='vertical-section'> <h3 id='member'>成员变量</h3> <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4> <div class="table-container"> <table class="params table"> <thead> <tr> <th>名称</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr class="deep-level-0"> <td class="name"><code><a href="#coincidentPointStyle">coincidentPointStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>草图捕获点重合样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#fillStyle">fillStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </code> </td> <td class="name"><code><p>绘制草图区样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#highlightLineStyle">highlightLineStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>草图(提示)高亮线样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#highlightPointStyle">highlightPointStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>草图(提示)高亮点样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#lineStyle">lineStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleLineSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleLineSymbol" SimpleLineSymbol.html>SimpleLineSymbol</a></span> </code> </td> <td class="name"><code><p>绘制草图线样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#parallelLineStyle">parallelLineStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>草图(提示)平行线样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#perpendicularLineStyle">perpendicularLineStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>草图(提示)垂直线样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#selectBoxStyle">selectBoxStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </code> </td> <td class="name"><code><p>草图选中框的样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#selectBoxVertexStyle">selectBoxVertexStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>草图选中框的顶点样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#selectMidVertexStyle">selectMidVertexStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>草图选中时,被编辑中点样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#selectTextStyle">selectTextStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol" TextSymbol.html>TextSymbol</a></span> </code> </td> <td class="name"><code><p>草图文字选中时,被编辑文字样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#selectVertexStyle">selectVertexStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>草图选中时,被编辑顶点样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textStyle">textStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol" TextSymbol.html>TextSymbol</a></span> </code> </td> <td class="name"><code><p>绘制草图文字样式</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#vertexStyle">vertexStyle</a></code></td> <td class="name"> <code> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </code> </td> <td class="name"><code><p>绘制草图点样式</p></code></td> </tr> </tbody> </table> </div> <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4> <div class="members"> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="coincidentPointStyle"> <a class="href-link" href="#coincidentPointStyle">#</a> <span class="code-name"> coincidentPointStyle </span> </h4> <div class="description"> <p>草图捕获点重合样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </span> <h4 class="name" id="fillStyle"> <a class="href-link" href="#fillStyle">#</a> <span class="code-name"> fillStyle </span> </h4> <div class="description"> <p>绘制草图区样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="highlightLineStyle"> <a class="href-link" href="#highlightLineStyle">#</a> <span class="code-name"> highlightLineStyle </span> </h4> <div class="description"> <p>草图(提示)高亮线样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="highlightPointStyle"> <a class="href-link" href="#highlightPointStyle">#</a> <span class="code-name"> highlightPointStyle </span> </h4> <div class="description"> <p>草图(提示)高亮点样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleLineSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleLineSymbol" SimpleLineSymbol.html>SimpleLineSymbol</a></span> </span> <h4 class="name" id="lineStyle"> <a class="href-link" href="#lineStyle">#</a> <span class="code-name"> lineStyle </span> </h4> <div class="description"> <p>绘制草图线样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="parallelLineStyle"> <a class="href-link" href="#parallelLineStyle">#</a> <span class="code-name"> parallelLineStyle </span> </h4> <div class="description"> <p>草图(提示)平行线样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="perpendicularLineStyle"> <a class="href-link" href="#perpendicularLineStyle">#</a> <span class="code-name"> perpendicularLineStyle </span> </h4> <div class="description"> <p>草图(提示)垂直线样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleFillSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleFillSymbol" SimpleFillSymbol.html>SimpleFillSymbol</a></span> </span> <h4 class="name" id="selectBoxStyle"> <a class="href-link" href="#selectBoxStyle">#</a> <span class="code-name"> selectBoxStyle </span> </h4> <div class="description"> <p>草图选中框的样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="selectBoxVertexStyle"> <a class="href-link" href="#selectBoxVertexStyle">#</a> <span class="code-name"> selectBoxVertexStyle </span> </h4> <div class="description"> <p>草图选中框的顶点样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="selectMidVertexStyle"> <a class="href-link" href="#selectMidVertexStyle">#</a> <span class="code-name"> selectMidVertexStyle </span> </h4> <div class="description"> <p>草图选中时,被编辑中点样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol" TextSymbol.html>TextSymbol</a></span> </span> <h4 class="name" id="selectTextStyle"> <a class="href-link" href="#selectTextStyle">#</a> <span class="code-name"> selectTextStyle </span> </h4> <div class="description"> <p>草图文字选中时,被编辑文字样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="selectVertexStyle"> <a class="href-link" href="#selectVertexStyle">#</a> <span class="code-name"> selectVertexStyle </span> </h4> <div class="description"> <p>草图选中时,被编辑顶点样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol" TextSymbol.html>TextSymbol</a></span> </span> <h4 class="name" id="textStyle"> <a class="href-link" href="#textStyle">#</a> <span class="code-name"> textStyle </span> </h4> <div class="description"> <p>绘制草图文字样式</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="SimpleMarkerSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SimpleMarkerSymbol" SimpleMarkerSymbol.html>SimpleMarkerSymbol</a></span> </span> <h4 class="name" id="vertexStyle"> <a class="href-link" href="#vertexStyle">#</a> <span class="code-name"> vertexStyle </span> </h4> <div class="description"> <p>绘制草图点样式</p> </div> <dl class="details"> </dl> </div> </div> </div> <div class='vertical-section'> <h3 id='function'>方法</h3> <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4> <div class="members"> <div class="table-container"> <table class="params table"> <thead> <tr> <th>名称</th> <th>返回值类型</th> <th>描述</th> </tr> </thead> <tbody> <tr class="deep-level-0"> <td class="name"><code><a href="#clone">clone</a></code></td> <td class="name"> <code> <span class="param-type"><a link="Feature.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Feature" Feature.html>Feature</a></span> </code> </td> <td class="name"><code><p>克隆并返回新要素<a id='clone'></a></p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#toJSON">toJSON</a></code></td> <td class="name"> <code> <span class="param-type">Object</span> </code> </td> <td class="name"><code><p>导出场草图样式的配置文件<a id='toJSON'></a></p></code></td> </tr> </tbody> </table> </div> <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4> <div class="member"> <h4 class="name" id="clone"> <a class="href-link" href="#clone">#</a> <span class="code-name" id="clone" style="font-size:30px"> clone<span class="signature">()</span> </span> </h4> <div class="description"> <p>克隆并返回新要素<a id='clone'></a></p> </div> <dl class="details"> </dl> <div class='columns method-parameter'> <div class="column is-2"><label>返回值</label></div> <div class="column is-10"> <div class="columns"> <div class='param-desc column is-7'><p>克隆后的新要素</p></div> <div class='column is-5 has-text-left'> <label>类型: </label> <span class="param-type"><a link="Feature.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Feature" Feature.html>Feature</a></span> </div> </div> </div> </div> </div> <div class="member"> <h4 class="name" id="toJSON"> <a class="href-link" href="#toJSON">#</a> <span class="code-name" id="toJSON" style="font-size:30px"> toJSON<span class="signature">()</span> </span> </h4> <div class="description"> <p>导出场草图样式的配置文件<a id='toJSON'></a></p> </div> <dl class="details"> </dl> <div class='columns method-parameter'> <div class="column is-2"><label>返回值</label></div> <div class="column is-10"> <div class="columns"> <div class='param-desc column is-7'><p>导出的配置文件</p></div> <div class='column is-5 has-text-left'> <label>类型: </label> <span class="param-type">Object</span> </div> </div> </div> </div> </div> </div> </div> </article> </section>