setLineCap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
<syntaxhighlight lang="mtmacro" line> | <syntaxhighlight lang="mtmacro" line> | ||
getLineCap( | getLineCap(mapRef, drawingId, capType) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param| | {{param|mapRef|The Name or ID of the map.}} | ||
{{param|drawingId|A string containing the id of the drawing. The easiest way to discover a drawing's Id is via the Draw Explorer interface.}} | {{param|drawingId|A string containing the id of the drawing. The easiest way to discover a drawing's Id is via the Draw Explorer interface.}} | ||
{{param|capType|The value of the setting to set, {{code|round}}({{code|0}}) or {{code|square}}({{code|1}}).}} | {{param|capType|The value of the setting to set, {{code|round}}({{code|0}}) or {{code|square}}({{code|1}}).}} |
Latest revision as of 23:59, 14 March 2023
setLineCap() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.5.0
Sets the line cap setting of the drawing that corresponds to the map and drawing id. If Set to
round
(0
) the drawing will display with round line ends, but if set to square
(1
) the drawing display with square line ends and angled corners.Usage
getLineCap(mapRef, drawingId, capType)
Parameters
mapRef
- The Name or ID of the map.drawingId
- A string containing the id of the drawing. The easiest way to discover a drawing's Id is via the Draw Explorer interface.capType
- The value of the setting to set,round
(0
) orsquare
(1
).
Example
[h:setLineCap("Grasslands", "0000000094218C675800000000000000",0)]
[h:refreshDrawing("Grasslands", "0000000094218C675800000000000000")]
[h:setLineCap("Grasslands", "00000000CCF6B567CC00000000000000",1)]
[h:refreshDrawing("Grasslands", "00000000CCF6B567CC00000000000000")]