Class: Placeholder

OSDPaperjsAnnotation.Placeholder()

Represents a placeholder annotation item.

Constructor

new Placeholder()

The `Placeholder` class represents a placeholder annotation item. It inherits from the `AnnotationItem` class and provides methods to work with placeholder annotations.
Properties:
Name Type Description
paperItem paper.Path The associated paper item representing the placeholder.
Source:

Extends

  • AnnotationItem

Methods

getCoordinates() → {Array}

This method returns an empty array since the Placeholder class does not have coordinates.
Source:
Returns:
An empty array.
Type
Array

getGeoJSONType() → {Object}

Get the type of this object.
Source:
Returns:
with fields `type === null`
Type
Object

getProperties() → {Object}

This method returns the properties associated with the placeholder.
Source:
Returns:
The properties object.
Type
Object

(static) supportsGeoJSONType(type, subtypeopt) → {Boolean}

Retrieves the supported types by the Placeholder annotation item.
Parameters:
Name Type Attributes Default Description
type String
subtype String <optional>
null
Source:
Returns:
Whether this constructor supports the requested type/subtype
Type
Boolean