* @inner
(mainType, newCptOption, existComponent)
| 21922 | * @inner |
| 21923 | */ |
| 21924 | function determineSubType(mainType, newCptOption, existComponent) { |
| 21925 | var subType = newCptOption.type |
| 21926 | ? newCptOption.type |
| 21927 | : existComponent |
| 21928 | ? existComponent.subType |
| 21929 | // Use determineSubType only when there is no existComponent. |
| 21930 | : ComponentModel.determineSubType(mainType, newCptOption); |
| 21931 | |
| 21932 | // tooltip, markline, markpoint may always has no subType |
| 21933 | return subType; |
| 21934 | } |
| 21935 | |
| 21936 | /** |
| 21937 | * @inner |