-
anchorPosition
Object
- 自從:ArcGIS 適用於 JavaScript 4.10 的 API
定義相對於符號層資源中心的錨點。它被指定為資源邊界框尺寸的比率。例如,值
{ x: 0, y: 0, z: 0 }
指定中心,而值{ x: -0.5, y: -0.5, z: -0.5 }
將符號放置在符號邊界框的 south-west 下角。僅當錨點設置為
relative
時,此屬性才適用。例子:
symbolLayer.anchor = "relative"; symbolLayer.anchorPosition = { x: 0, y: 0, z: -0.5 }; // equivalent to `anchor: "bottom"`
symbolLayer.anchor = "relative"; symbolLayer.anchorPosition = { x: 1.5, y: 1, z: 0 }; // the anchor can be placed outside of the symbol's bounding box
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/symbols/ObjectSymbol3DLayer"], (ObjectSymbol3DLayer) => { /* code goes here */ });
ESM:
import ObjectSymbol3DLayer from "@arcgis/core/symbols/ObjectSymbol3DLayer";
類:
esri/symbols/ObjectSymbol3DLayer
繼承: ObjectSymbol3DLayer > Symbol3DLayer > Accessor
自從:用於 JavaScript 4.0 的 ArcGIS API
用法說明
ObjectSymbol3DLayer.anchorPosition
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS ObjectSymbol3DLayer.height用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer.material用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer.heading用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer.tilt用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer.width用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer.castShadows用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer.depth用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer.roll用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer.clone用法及代碼示例
- JavaScript ArcGIS ObjectSymbol3DLayer用法及代碼示例
- JavaScript Object valueOf()用法及代碼示例
- JavaScript Object.isPrototypeOf()用法及代碼示例
- JavaScript Object getOwnPropertyDescriptor()用法及代碼示例
- JavaScript Object.assign()用法及代碼示例
- JavaScript Object.isFrozen()用法及代碼示例
- JavaScript Object toString()用法及代碼示例
- JavaScript Object.seal()用法及代碼示例
- JavaScript Object.getOwnPropertyDescriptors()用法及代碼示例
- JavaScript Object.setPrototypeOf()用法及代碼示例
- JavaScript Object toLocaleString()用法及代碼示例
- JavaScript Object hasOwnProperty()用法及代碼示例
- JavaScript Object.getOwnPropertySymbols()用法及代碼示例
- JavaScript Object.defineProperties()用法及代碼示例
- JavaScript Object.isExtensible()用法及代碼示例
- JavaScript Object.freeze()用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 ObjectSymbol3DLayer.anchorPosition。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。