VintaSoft Imaging .NET SDK 12.4: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationViewFabricJS type / registerAnnotation Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    registerAnnotation Method
    In This Topic
    Registers the annotation view type.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.UI.WebAnnotationViewFabricJS();
    
    var value; // Type: any
    
    // Parameters
    var id; // Type: string
    var creationFunction; // Type: function
    
    value = instance.registerAnnotation(id, creationFunction);
    
    
    function registerAnnotation(
    id
    The ID of the annotation view type.
    : string,
    creationFunction
    Function, which allows to create required WebAnnotationViewJS object.
    : Function
    ) : any;

    Parameters

    id
    The ID of the annotation view type.
    creationFunction
    Function, which allows to create required WebAnnotationViewJS object.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Thrown if element ID is empty string.
    Thrown if fabric contains standard registered tool with the same ID (WebAnnotationViewFabricJS.getAllStandardRegisteredIds).
    Browser Compatibility
    56+
    45+
    11
    See Also