import type LinePattern3D from "./LinePattern3D.js"; /** @since 5.2 */ export interface LineTemplatePattern3DProperties extends Partial> {} /** * Renders lines using a custom repeating sequence of dashes and gaps. * * @since 5.2 * @see [LineSymbol3DLayer](https://developers.arcgis.com/javascript/latest/references/core/symbols/LineSymbol3DLayer/) * @example * ```js * const symbol = { * type: "line-3d", // autocasts as new LineSymbol3D() * symbolLayers: [{ * type: "line", // autocasts as new LineSymbol3DLayer() * size: 4, * material: { color: "red" }, * pattern: { * type: "template", // autocasts as new LineTemplatePattern3D() * dashTemplate: [10, 6, 2, 6] // lengths relative to the line width * } * }] * }; * ``` */ export default class LineTemplatePattern3D extends LinePattern3D { constructor(properties?: LineTemplatePattern3DProperties); /** * The custom dash and gap lengths. * * Values alternate between visible dash lengths and transparent gap lengths, starting with a dash. * Each value is a multiple of the [line width](https://developers.arcgis.com/javascript/latest/references/core/symbols/LineSymbol3DLayer/#size). For instance, a value of `1` equals one * line width. * * In case an odd number of values is provided, the sequence is repeated to form a complete dash-gap cycle. * Decimals are supported and negative values are converted to their absolute values. * * @since 5.2 */ accessor dashTemplate: number[]; /** * The pattern type. * * @since 5.2 */ get type(): "template"; }