Optionaloptions: ClusteringTransformerOptionsA set of optional parameters to help you customize the clustering behavior.
A classConfig object is a Javascript Object that contains an identifier for the class on which it applies, and the clustering parameters that should be applied for that class.
To specify the class, the classConfig object must contain exactly one of the following two properties:
classification: apply this configuration if the classification of your object matches this exact string classMatcher: apply this configuration if this function is evaluated to true when passing the
classification of your object as a parameter
To specify the settings for that class, the classConfig object must also contain a parameters property:
parameters: an instance of ClusteringParameters defining the parameters for the specified class.
Creates a new ClusteringTransformer instance.
You can assign classifications to the original model elements. Model elements with different classifications will never be put together in a single cluster. You can use this, for instance, to prevent air-units and ground-units to be put together in a single cluster. You can also specify the clustering configuration per classification. If you do not specify a separate configuration for a classification, the default configuration will be used.
Consult the class documentation for example usages of this method. The LuciadRIA developer guide contains some more information and examples.