@@ -116,27 +116,58 @@ When [roaming](~${componentNameInLink}.roam), the values in [center](~${componen
116116
117117When roaming , the values in [center ](~ $ {componentNameInLink }.center ) and [zoom ](~ $ {componentNameInLink }.zoom ) will be modified correspondingly .
118118
119+ #$ {prefix } roamTrigger (string ) = $ {roamTriggerDefault | default (" 'selfRect'" )}
119120
121+ {{ use : partial - version (version = " 6.0.0" ) }}
122+
123+ [Roaming ](~ $ {componentNameInLink }.roam ) can be triggered by mouse dragging or mouse wheel .
124+
125+ Options :
126+ - ` 'selfRect' ` :
127+
128+ The roaming can only be triggered on the bounding rect of the graphic elements .
129+
130+ - ` 'global' ` :
131+
132+ {{ if : $ {supportClip } }}If ` clip: true ` , the roaming can only be triggered at any position within the clipped area . Otherwise it can be triggered in canvas globally .{{ else }}The roaming can be triggered in canvas globally .{{ / if }}
133+
134+ {{ if : $ {isGeoOrMap } }}
135+ ** See example :** [geo roam indicator ]($ {galleryEditorPath }doc - example / geo - roam - indicator & edit = 1 & reset = 1 ).
136+ {{ / if }}
120137
121138{{ target : partial - preserve - aspect }}
122139
123140#$ {prefix } preserveAspect (boolean | string ) = $ {preserveAspectDefault | default (false )}
124141
142+ {{ if : $ {componentNameInLink } === ' geo' || $ {componentNameInLink } === ' series-map' }}
143+ {{ var : isGeoOrMap = true }}
144+ {{ / if }}
145+
125146< ExampleUIControlBoolean default = " false" / >
126147
127148{{ use : partial - version (version = " 6.0.0" ) }}
128149
129- ` aspect ratio ` here refers to ` width / height ` of the original bounding rect of the content to be rendered .
150+ ` aspect ratio ` here refers to ` width / height ` .
130151
131- Suppose a ` rectangular area ` allocated to ` ${componentNameReadable } ` is defined by [$ {componentNameInLink }.left ](~ $ {componentNameInLink }.left ) / [.right ](~ $ {componentNameInLink }.right ) / [.top ](~ $ {componentNameInLink }.top ) / [.bottom ](~ $ {componentNameInLink }.bottom ) / [.width ](~ $ {componentNameInLink }.width ) / [.height ](~ $ {componentNameInLink }.height ).
152+ " preserve aspect" refers whether to preserve the ` aspect ratio ` of the original bounding rect of the content to be rendered .
153+
154+ {{ use : partial - view - coord - sys - allocated - rect - desc (
155+ componentNameReadable = $ {componentNameReadable },
156+ componentNameInLink = $ {componentNameInLink },
157+ isGeoOrMap = $ {isGeoOrMap }
158+ ) }}
159+
160+ But the ` aspect ratio ` of this rectangle may not match that of the content ' s original bounding rect, which may cause distortion.
132161
133162Options of ` preserveAspect ` :
134- - ` null ` / `undefined`/ ` false ` (default ): ` aspect ratio ` will not be preserved , but stretched to fill the ` ${componentNameReadable } rectangular area ` , which may cause distortion .
135- - ` 'contain' ` / ` true ` : The ` aspect ratio ` is preserved ; the bounding rect of the content are fully contained by the ` ${componentNameReadable } rectangular area ` , and scaled up as much as possible to meet the ` ${componentNameReadable } rectangular area ` . [preserveAspectAlign ](~$ {componentNameInLink}.preserveAspectAlign ) and [preserveAspectVerticalAlign ](~$ {componentNameInLink}.preserveAspectVerticalAlign ) can be used to adjust the position in this case .
136- - ` 'cover' ` : The ` aspect ratio ` is preserved ; the bounding rect of the content covers the ` ${componentNameReadable } rectangular area ` , and scaled down as much as possible to meet the ` ${componentNameReadable } rectangular area ` . [preserveAspectAlign ](~$ {componentNameInLink}.preserveAspectAlign ) and [preserveAspectVerticalAlign ](~$ {componentNameInLink}.preserveAspectVerticalAlign ) can be used to adjust the position in this case .
163+ - ` null ` / `undefined`/ ` false ` (default ): The original ` aspect ratio ` of the content will not be preserved , but stretched to fill the ` ${componentNameReadable } rectangular area ` , which may cause distortion .
164+ - ` 'contain' ` / ` true ` : The original ` aspect ratio ` of the content is preserved ; the bounding rect of the content are fully contained by the ` ${componentNameReadable } rectangular area ` , and scaled up as much as possible to meet the ` ${componentNameReadable } rectangular area ` . [preserveAspectAlign ](~$ {componentNameInLink}.preserveAspectAlign ) and [preserveAspectVerticalAlign ](~$ {componentNameInLink}.preserveAspectVerticalAlign ) can be used to adjust the position in this case .
165+ - ` 'cover' ` : The original ` aspect ratio ` of the content is preserved ; the bounding rect of the content covers the ` ${componentNameReadable } rectangular area ` , and scaled down as much as possible to meet the ` ${componentNameReadable } rectangular area ` . [preserveAspectAlign ](~$ {componentNameInLink}.preserveAspectAlign ) and [preserveAspectVerticalAlign ](~$ {componentNameInLink}.preserveAspectVerticalAlign ) can be used to adjust the position in this case .
137166
138- {{ if : ( $ { componentNameInLink } === ' geo ' || $ { componentNameInLink } === ' series-map ' ) }}
167+ {{ if : $ { isGeoOrMap } }}
139168Notice : When using [layoutCenter ](~ $ {componentNameInLink }.layoutCenter ) and [layoutSize ](~ $ {componentNameInLink }.layoutSize ), the ` aspect radio ` is always preserved , regardless of this ` preserveAspect ` .
169+
170+ ** See example :** [geo roam indicator ]($ {galleryEditorPath }doc - example / geo - roam - indicator & edit = 1 & reset = 1 ).
140171{{ / if }}
141172
142173#$ {prefix } preserveAspectAlign (string ) = ' center'
@@ -149,6 +180,8 @@ Options: `'left'` | `'right'` | `'center'`.
149180
150181See [preserveAspect ](~ $ {componentNameInLink }.preserveAspect ).
151182
183+ See example [geo roam indicator ]($ {galleryEditorPath }doc - example / geo - roam - indicator & edit = 1 & reset = 1 ).
184+
152185#$ {prefix } preserveAspectVerticalAlign (string ) = ' middle'
153186
154187< ExampleUIControlEnum options = " top,bottom,middle" default = " middle" / >
@@ -158,3 +191,11 @@ See [preserveAspect](~${componentNameInLink}.preserveAspect).
158191Options : ` 'top' ` | ` 'bottom' ` | ` 'middle' ` .
159192
160193See [preserveAspect ](~ $ {componentNameInLink }.preserveAspect ).
194+
195+ See example [geo roam indicator ]($ {galleryEditorPath }doc - example / geo - roam - indicator & edit = 1 & reset = 1 ).
196+
197+
198+
199+ {{ target : partial - view - coord - sys - allocated - rect - desc }}
200+
201+ A ` rectangular area ` allocated to ` ${componentNameReadable } ` is determined by [$ {componentNameInLink }.left ](~ $ {componentNameInLink }.left ) / [.right ](~ $ {componentNameInLink }.right ) / [.top ](~ $ {componentNameInLink }.top ) / [.bottom ](~ $ {componentNameInLink }.bottom ) / [.width ](~ $ {componentNameInLink }.width ) / [.height ](~ $ {componentNameInLink }.height ){{ if : $ {isGeoOrMap } }} / [.aspectScale ](~ $ {componentNameInLink }.aspectScale ){{ / if }}.
0 commit comments