TextAnnotationStore
Hierarchy
- RegionStore
- TextAnnotationStore
Index
Constructors
Properties
- activeFrame
- color
- controlPoints
- coordinate
- creating
- dashLength
- editing
- fileId
- font
- fontSize
- fontStyle
- isSimplePolygon
- lineRegionSampleWidth
- lineWidth
- locked
- modifiedTimestamp
- name
- position
- regionId
- regionType
- rotation
- text
- AVAILABLE_ANNOTATION_TYPES
- AVAILABLE_REGION_TYPES
- MAX_DASH_LENGTH
- MAX_LINE_WIDTH
- MIN_LINE_WIDTH
- TARGET_VERTEX_COUNT
Accessors
Methods
- beginCreating
- beginEditing
- endCreating
- endEditing
- focusCenter
- getAnnotationStyles
- getAnnotationStylesForExport
- getRegionApproximation
- initializeStyles
- setCenter
- setColor
- setControlPoint
- setControlPoints
- setCoordinate
- setDashLength
- setFont
- setFontSize
- setFontStyle
- setLineWidth
- setLocked
- setName
- setPosition
- setRegionId
- setRotation
- setSize
- setText
- toggleLock
- GetRegionProperties
- IsRegionCustomIcon
- IsRegionDashLengthValid
- IsRegionLineWidthValid
- IsRegionTypeValid
- RegionIconString
- RegionTypeString
Constructors
constructor
Parameters
backendService: BackendService
fileId: number
activeFrame: FrameStore
controlPoints: Point2D[]
regionType: RegionType
regionId: number = -1
rotation: number = 0
name: string = ""
color: string = Colors.TURQUOISE5
lineWidth: number = 2
dashLength: number = 0
Returns TextAnnotationStore
Properties
activeFrame
color
controlPoints
coordinate
creating
dashLength
editing
readonlyfileId
font
fontSize
fontStyle
isSimplePolygon
lineRegionSampleWidth
lineWidth
locked
publicmodifiedTimestamp
name
position
regionId
regionType
rotation
text
staticreadonlyAVAILABLE_ANNOTATION_TYPES
staticreadonlyAVAILABLE_REGION_TYPES
staticreadonlyMAX_DASH_LENGTH
staticreadonlyMAX_LINE_WIDTH
staticreadonlyMIN_LINE_WIDTH
staticreadonlyTARGET_VERTEX_COUNT
Accessors
boundingBox
Returns Point2D
boundingBoxArea
Returns number
center
Returns Point2D
isAnnotation
Returns boolean
isClosedRegion
Returns boolean
isPreviewCut
Returns boolean
isTemporary
Returns boolean
isValid
Returns boolean
nameString
Returns string
regionProperties
Returns string
size
Returns Point2D
wcsSize
Returns Point2D
Methods
beginCreating
Returns void
beginEditing
Returns void
endCreating
Returns Generator<Promise<ISetRegionAck>, void, unknown>
endEditing
Returns void
focusCenter
Returns void
publicgetAnnotationStyles
Returns { font: Font; fontSize: number; fontStyle: FontStyle; textLabel0: string; textPosition: TextAnnotationPosition }
font: Font
fontSize: number
fontStyle: FontStyle
textLabel0: string
textPosition: TextAnnotationPosition
publicgetAnnotationStylesForExport
Returns { font: Font; fontSize: number; fontStyle: FontStyle; textLabel0: string; textPosition: TextAnnotationPosition }
font: Font
fontSize: number
fontStyle: FontStyle
textLabel0: string
textPosition: TextAnnotationPosition
publicgetRegionApproximation
Parameters
astTransform: Mapping
Returns Point2D[] | { eastApproximatePoints: number[]; northApproximatePoints: number[] } | { hypotenuseApproximatePoints: number[]; xApproximatePoints: number[]; yApproximatePoints: number[] }
publicinitializeStyles
Parameters
annotationStyles: { font: Font; fontSize: number; fontStyle: FontStyle; textLabel0: string; textPosition: TextAnnotationPosition }
Returns void
setCenter
Parameters
p: Point2D
skipUpdate: boolean = false
Returns void
setColor
Parameters
color: string
Returns void
setControlPoint
Parameters
index: number
p: Point2D
skipUpdate: boolean = false
Returns void
setControlPoints
Parameters
points: Point2D[]
skipUpdate: boolean = false
shapeChanged: boolean = true
Returns void
setCoordinate
Parameters
coordinate: CoordinateMode
Returns void
setDashLength
Parameters
dashLength: number
Returns void
setFont
Parameters
font: Font
Returns void
setFontSize
Parameters
fontSize: number
Returns void
setFontStyle
Parameters
fontStyle: string
Returns void
setLineWidth
Parameters
lineWidth: number
Returns void
setLocked
Parameters
locked: boolean
Returns void
setName
Parameters
name: string
Returns void
setPosition
Parameters
position: TextAnnotationPosition
Returns void
setRegionId
Parameters
id: number
Returns void
setRotation
Parameters
angle: number
skipUpdate: boolean = false
Returns void
setSize
Parameters
p: Point2D
skipUpdate: boolean = false
Returns void
setText
Parameters
text: string
Returns void
toggleLock
Returns void
publicstaticGetRegionProperties
Parameters
regionType: RegionType
controlPoints: Point2D[]
rotation: number
Returns string
publicstaticIsRegionCustomIcon
Parameters
regionType: RegionType
Returns boolean
publicstaticIsRegionDashLengthValid
Parameters
regionDashLength: number
Returns boolean
publicstaticIsRegionLineWidthValid
Parameters
regionLineWidth: number
Returns boolean
publicstaticIsRegionTypeValid
Parameters
regionType: RegionType
Returns boolean
publicstaticRegionIconString
Parameters
regionType: RegionType
Returns IconName | CustomIconName
publicstaticRegionTypeString
Parameters
regionType: RegionType
Returns string