UNPKG

@mapgis/webclient-common

Version:

mapgis ES6 format for igserver

3,003 lines (1,054 loc) 67.7 kB
<header id="page-title" class="page-title"> <span class="page-title-main">类名</span> <span class="page-title-sub">MapGISTextSymbol</span> </header> <section> <article> <div class="container-overview"> <div class='vertical-section'> <div class="members"> <div class="member"> <h4 class="name" id="MapGISTextSymbol"> <a class="href-link" href="#MapGISTextSymbol">#</a> <span class="code-name" id="MapGISTextSymbol" style="font-size:30px"> new MapGISTextSymbol<span class="signature">(options)</span> </span> </h4> <div class="description"> <p>文本符号,支持点几何对象,参考示例:<a href='#new-MapGISTextSymbol'>[创建文本样式]</a> <br><br>[ES5引入方式]:<br/> Zondy.Symbol.MapGISTextSymbol() <br/> [ES6引入方式]:<br/> import { MapGISTextSymbol } from &quot;@mapgis/webclient-common&quot; <br/> <br/></p> </div> <h4>参数</h4> <div class="table-container"> <table class="params table"> <thead> <tr> <th>名称</th> <th>类型</th> <th style="min-width: 100px;">默认值</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="default"> </td> <td class="description last"><p>构造参数</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="backgroundPadding"><code>backgroundPadding</code></td> <td class="type"> <span class="param-type">Array.&lt;Number></span> </td> <td class="default"> [5,5] </td> <td class="description last"><p>背景内边距</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="backgroundImage"><code>backgroundImage</code></td> <td class="type"> <span class="param-type">Image</span> | <span class="param-type">function</span> </td> <td class="default"> </td> <td class="description last"><p>背景图片样式,设置时会覆盖backgroundColor</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textDecorationUnderlineColor"><code>textDecorationUnderlineColor</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="default"> </td> <td class="description last"><p>文字下划线颜色,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textDecorationUnderlineWidth"><code>textDecorationUnderlineWidth</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="default"> </td> <td class="description last"><p>文字下划线宽度,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textDecorationThroughlineColor"><code>textDecorationThroughlineColor</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="default"> </td> <td class="description last"><p>文字删除线颜色,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textDecorationThroughlineWidth"><code>textDecorationThroughlineWidth</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="default"> </td> <td class="description last"><p>文字删除线宽度,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textShadowOffsetX"><code>textShadowOffsetX</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="default"> 0 </td> <td class="description last"><p>文字阴影横轴偏移</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textShadowOffsetY"><code>textShadowOffsetY</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="default"> 0 </td> <td class="description last"><p>文字阴影纵轴偏移</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textShadowBlur"><code>textShadowBlur</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="default"> 1 </td> <td class="description last"><p>文字阴影模糊度</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textShadowColor"><code>textShadowColor</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="default"> </td> <td class="description last"><p>文字阴影颜色</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="letterSpacing"><code>letterSpacing</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="default"> 0 </td> <td class="description last"><p>文字间距</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="lineMaxNum"><code>lineMaxNum</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="default"> 3 </td> <td class="description last"><p>文字最大行数</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textWraps"><code>textWraps</code></td> <td class="type"> <span class="param-type">Boolean</span> </td> <td class="default"> false </td> <td class="description last"><p>是否换行</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textExtraIcon"><code>textExtraIcon</code></td> <td class="type"> <span class="param-type">Image</span> </td> <td class="default"> </td> <td class="description last"><p>文字额外符号图标。测试接口,后续可能会改动。</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textExtraIconAnchor"><code>textExtraIconAnchor</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="default"> 'left' </td> <td class="description last"><p>文字额外图标方位,可选&quot;left&quot; &quot;right&quot; &quot;top&quot; &quot;bottom&quot;。测试接口,后续可能会改动。</p></td> </tr> <tr class="deep-level-1"> <td class="name" id="textExtraIconSize"><code>textExtraIconSize</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="default"> 14 </td> <td class="description last"><p>文字额外图标大小,单位像素。测试接口,后续可能会改动。</p></td> </tr> </tbody> </table> </div> <dl class="details"> </dl> <p class="summary"><h5>支持如下方法:</h5> <a href='#fromJSON'>[1、将JSON里的数据导入,并返回一个新的TextSymbol对象]</a><br/> <a href='#toJSON'>[2、导出为JSON对象]</a><br/> <a href='#clone'>[3、克隆并返回新的符号对象]</a><br/></p> <h5>示例</h5> <p class="code-caption"><h7 id='new-MapGISTextSymbol'>创建文本样式</h7></p> <pre class="prettyprint"><code>// ES5引入方式 const { MapGISTextSymbol } = Zondy.Symbol const { MapGISTextSymbol, Color } = Zondy // ES6引入方式 import { MapGISTextSymbol, Color } from "@mapgis/webclient-common" const textSymbol = new MapGISTextSymbol({ // 字体颜色 color: new Color(252, 100, 22, 1), // 字体内容,如果是服务端数据,可不填 text: "默认文字", // 字体样式 font: { // 字体 family: "微软雅黑", // 文字大小,单位像素 size: 30, // 文字是否为斜体,正常模式 style: "normal", // 文字粗细 weight: "normal" } })</code></pre> </div> </div> </div> </div> <h3 class="subsection-title">继承关系</h3> <ul> <li><a link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol" TextSymbol.html>TextSymbol</a></li> </ul> <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="#angle">angle</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字角度</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#backgroundColor">backgroundColor</a></code></td> <td class="name"> <code> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </code> </td> <td class="name"><code><p>文字背景颜色</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#backgroundImage">backgroundImage</a></code></td> <td class="name"> <code> <span class="param-type">function</span> | <span class="param-type">Image</span> </code> </td> <td class="name"><code><p>文字背景颜色</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#backgroundPadding">backgroundPadding</a></code></td> <td class="name"> <code> <span class="param-type">Array.&lt;Number></span> </code> </td> <td class="name"><code><p>文字背景内边距</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#borderLineColor">borderLineColor</a></code></td> <td class="name"> <code> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </code> </td> <td class="name"><code><p>文字外边框颜色</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#borderLineSize">borderLineSize</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字外边框线宽</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#color">color</a></code></td> <td class="name"> <code> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </code> </td> <td class="name"><code><p>文字颜色</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#extendOptions">extendOptions</a></code></td> <td class="name"> <code> <span class="param-type">Object</span> </code> </td> <td class="name"><code><p>符号的额外构造参数,该构造参数是地图引擎的额外构造参数,在此设置了之后,会覆盖该符号转换好地图引擎的构造参数</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#font">font</a></code></td> <td class="name"> <code> <span class="param-type">String</span> </code> </td> <td class="name"><code><p>文字字体</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#haloColor">haloColor</a></code></td> <td class="name"> <code> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </code> </td> <td class="name"><code><p>光晕颜色</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#haloSize">haloSize</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>光晕大小</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#horizontalAlignment">horizontalAlignment</a></code></td> <td class="name"> <code> <span class="param-type"><a link="HorizontalAlignment.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="HorizontalAlignment" global.html#HorizontalAlignment>HorizontalAlignment</a></span> </code> </td> <td class="name"><code><p>水平方向</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#kerning">kerning</a></code></td> <td class="name"> <code> <span class="param-type">Boolean</span> </code> </td> <td class="name"><code><p>是否调整文本字符串中字符之间的间距</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#letterSpacing">letterSpacing</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字间距</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#lineHeight">lineHeight</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>行高</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#lineMaxNum">lineMaxNum</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字最大行数</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#lineWidth">lineWidth</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>行宽</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#rotated">rotated</a></code></td> <td class="name"> <code> <span class="param-type">Boolean</span> </code> </td> <td class="name"><code><p>是否旋转</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#text">text</a></code></td> <td class="name"> <code> <span class="param-type">String</span> </code> </td> <td class="name"><code><p>显示的内容</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textDecorationThroughlineColor">textDecorationThroughlineColor</a></code></td> <td class="name"> <code> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </code> </td> <td class="name"><code><p>文字删除线颜色,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textDecorationThroughlineWidth">textDecorationThroughlineWidth</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字删除线宽度,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textDecorationUnderlineColor">textDecorationUnderlineColor</a></code></td> <td class="name"> <code> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </code> </td> <td class="name"><code><p>文字下划线颜色,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textDecorationUnderlineWidth">textDecorationUnderlineWidth</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字下划线宽度,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textExtraIcon">textExtraIcon</a></code></td> <td class="name"> <code> <span class="param-type">Image</span> </code> </td> <td class="name"><code><p>注记额外符号</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textExtraIconAnchor">textExtraIconAnchor</a></code></td> <td class="name"> <code> <span class="param-type">String</span> </code> </td> <td class="name"><code><p>图标方位 &quot;left&quot; &quot;right&quot; &quot;top&quot; &quot;bottom&quot;</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textExtraIconSize">textExtraIconSize</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>图标大小</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textShadowBlur">textShadowBlur</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字阴影模糊度</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textShadowColor">textShadowColor</a></code></td> <td class="name"> <code> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </code> </td> <td class="name"><code><p>文字阴影颜色</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textShadowOffsetX">textShadowOffsetX</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字阴影横轴偏移</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textShadowOffsetY">textShadowOffsetY</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>文字阴影纵轴偏移</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#textWraps">textWraps</a></code></td> <td class="name"> <code> <span class="param-type">Boolean</span> </code> </td> <td class="name"><code><p>是否换行</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#type">type</a></code></td> <td class="name"> <code> <span class="param-type">String</span> </code> </td> <td class="name"><code><p>符号类型</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#verticalAlignment">verticalAlignment</a></code></td> <td class="name"> <code> <span class="param-type"><a link="VerticalAlignment.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="VerticalAlignment" global.html#VerticalAlignment>VerticalAlignment</a></span> </code> </td> <td class="name"><code><p>垂直对齐</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#xoffset">xoffset</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>x偏移</p></code></td> </tr> <tr class="deep-level-0"> <td class="name"><code><a href="#yoffset">yoffset</a></code></td> <td class="name"> <code> <span class="param-type">Number</span> </code> </td> <td class="name"><code><p>y偏移</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">Number</span> </span> <h4 class="name" id="angle"> <a class="href-link" href="#angle">#</a> <span class="code-name"> angle </span> </h4> <div class="description"> <p>文字角度</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="angle" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#angle" TextSymbol.html#angle>TextSymbol#angle</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </span> <h4 class="name" id="backgroundColor"> <a class="href-link" href="#backgroundColor">#</a> <span class="code-name"> backgroundColor </span> </h4> <div class="description"> <p>文字背景颜色</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="backgroundColor" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#backgroundColor" TextSymbol.html#backgroundColor>TextSymbol#backgroundColor</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">function</span> | <span class="param-type">Image</span> </span> <h4 class="name" id="backgroundImage"> <a class="href-link" href="#backgroundImage">#</a> <span class="code-name"> backgroundImage </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">Array.&lt;Number></span> </span> <h4 class="name" id="backgroundPadding"> <a class="href-link" href="#backgroundPadding">#</a> <span class="code-name"> backgroundPadding </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="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </span> <h4 class="name" id="borderLineColor"> <a class="href-link" href="#borderLineColor">#</a> <span class="code-name"> borderLineColor </span> </h4> <div class="description"> <p>文字外边框颜色</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="borderLineColor" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#borderLineColor" TextSymbol.html#borderLineColor>TextSymbol#borderLineColor</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Number</span> </span> <h4 class="name" id="borderLineSize"> <a class="href-link" href="#borderLineSize">#</a> <span class="code-name"> borderLineSize </span> </h4> <div class="description"> <p>文字外边框线宽</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="borderLineSize" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#borderLineSize" TextSymbol.html#borderLineSize>TextSymbol#borderLineSize</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </span> <h4 class="name" id="color"> <a class="href-link" href="#color">#</a> <span class="code-name"> color </span> </h4> <div class="description"> <p>文字颜色</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="color" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#color" TextSymbol.html#color>TextSymbol#color</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Object</span> </span> <h4 class="name" id="extendOptions"> <a class="href-link" href="#extendOptions">#</a> <span class="code-name"> extendOptions </span> </h4> <div class="description"> <p>符号的额外构造参数,该构造参数是地图引擎的额外构造参数,在此设置了之后,会覆盖该符号转换好地图引擎的构造参数</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="extendOptions" link="Symbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Symbol#extendOptions" Symbol.html#extendOptions>Symbol#extendOptions</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">String</span> </span> <h4 class="name" id="font"> <a class="href-link" href="#font">#</a> <span class="code-name"> font </span> </h4> <div class="description"> <p>文字字体</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="font" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#font" TextSymbol.html#font>TextSymbol#font</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </span> <h4 class="name" id="haloColor"> <a class="href-link" href="#haloColor">#</a> <span class="code-name"> haloColor </span> </h4> <div class="description"> <p>光晕颜色</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="haloColor" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#haloColor" TextSymbol.html#haloColor>TextSymbol#haloColor</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Number</span> </span> <h4 class="name" id="haloSize"> <a class="href-link" href="#haloSize">#</a> <span class="code-name"> haloSize </span> </h4> <div class="description"> <p>光晕大小</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="haloSize" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#haloSize" TextSymbol.html#haloSize>TextSymbol#haloSize</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="HorizontalAlignment.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="HorizontalAlignment" global.html#HorizontalAlignment>HorizontalAlignment</a></span> </span> <h4 class="name" id="horizontalAlignment"> <a class="href-link" href="#horizontalAlignment">#</a> <span class="code-name"> horizontalAlignment </span> </h4> <div class="description"> <p>水平方向</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="horizontalAlignment" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#horizontalAlignment" TextSymbol.html#horizontalAlignment>TextSymbol#horizontalAlignment</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Boolean</span> </span> <h4 class="name" id="kerning"> <a class="href-link" href="#kerning">#</a> <span class="code-name"> kerning </span> </h4> <div class="description"> <p>是否调整文本字符串中字符之间的间距</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="kerning" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#kerning" TextSymbol.html#kerning>TextSymbol#kerning</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Number</span> </span> <h4 class="name" id="letterSpacing"> <a class="href-link" href="#letterSpacing">#</a> <span class="code-name"> letterSpacing </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">Number</span> </span> <h4 class="name" id="lineHeight"> <a class="href-link" href="#lineHeight">#</a> <span class="code-name"> lineHeight </span> </h4> <div class="description"> <p>行高</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="lineHeight" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#lineHeight" TextSymbol.html#lineHeight>TextSymbol#lineHeight</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Number</span> </span> <h4 class="name" id="lineMaxNum"> <a class="href-link" href="#lineMaxNum">#</a> <span class="code-name"> lineMaxNum </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">Number</span> </span> <h4 class="name" id="lineWidth"> <a class="href-link" href="#lineWidth">#</a> <span class="code-name"> lineWidth </span> </h4> <div class="description"> <p>行宽</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="lineWidth" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#lineWidth" TextSymbol.html#lineWidth>TextSymbol#lineWidth</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Boolean</span> </span> <h4 class="name" id="rotated"> <a class="href-link" href="#rotated">#</a> <span class="code-name"> rotated </span> </h4> <div class="description"> <p>是否旋转</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="rotated" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#rotated" TextSymbol.html#rotated>TextSymbol#rotated</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">String</span> </span> <h4 class="name" id="text"> <a class="href-link" href="#text">#</a> <span class="code-name"> text </span> </h4> <div class="description"> <p>显示的内容</p> </div> <dl class="details"> <dt class="inherited-from">Inherited From:</dt> <dd class="inherited-from"><ul class="dummy"><li> <a goto="text" link="TextSymbol.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TextSymbol#text" TextSymbol.html#text>TextSymbol#text</a> </li></ul></dd> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type"><a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </span> <h4 class="name" id="textDecorationThroughlineColor"> <a class="href-link" href="#textDecorationThroughlineColor">#</a> <span class="code-name"> textDecorationThroughlineColor </span> </h4> <div class="description"> <p>文字删除线颜色,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Number</span> </span> <h4 class="name" id="textDecorationThroughlineWidth"> <a class="href-link" href="#textDecorationThroughlineWidth">#</a> <span class="code-name"> textDecorationThroughlineWidth </span> </h4> <div class="description"> <p>文字删除线宽度,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</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="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a></span> </span> <h4 class="name" id="textDecorationUnderlineColor"> <a class="href-link" href="#textDecorationUnderlineColor">#</a> <span class="code-name"> textDecorationUnderlineColor </span> </h4> <div class="description"> <p>文字下划线颜色,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Number</span> </span> <h4 class="name" id="textDecorationUnderlineWidth"> <a class="href-link" href="#textDecorationUnderlineWidth">#</a> <span class="code-name"> textDecorationUnderlineWidth </span> </h4> <div class="description"> <p>文字下划线宽度,待废弃接口,推荐使用font属性中文字装饰元素属性decoration</p> </div> <dl class="details"> </dl> </div> <div class="member"> <span class="method-parameter is-pulled-right"> <label>类型:</label> <span class="param-type">Image</span> </span> <h4 class="name" id="textExtraIcon"> <a class="href-link" href="#textExtraIcon">#</a> <span class="code-name"> textExtraIcon </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">String</span> </span> <h4 class="name" id="textExtraIconAnchor"> <a class="href-link" href="#textExtraIconAnchor">#</a> <span class