Accessors
currentStyle
- get currentStyle(): TStyle
model
- get model(): OIModel
recognizer
- get recognizer(): OIRecognizer
renderer
- get renderer(): OISVGRenderer
rowHeight
- get rowHeight(): number
Returns number
strokeSpaceWidth
- get strokeSpaceWidth(): number
Returns number
texter
- get texter(): OITextManager
Constructors
constructor
- new OIGestureManager(behaviors, gestureAction?): OIGestureManager
Methods
apply
- apply(gestureStroke, gesture): Promise<void>
Returns Promise<void>
applyInsertGesture
- applyInsertGesture(gestureStroke, gesture): Promise<void>
Returns Promise<void>
applyJoinGesture
- applyJoinGesture(gestureStroke, gesture): Promise<void>
Returns Promise<void>
applyScratch
- applyScratch(gestureStroke, gesture): Promise<void>
Returns Promise<void>
applyStrikeThroughGesture
- applyStrikeThroughGesture(gestureStroke, gesture): Promise<void | TOISymbol[]>
Returns Promise<void | TOISymbol[]>
applySurroundGesture
- applySurroundGesture(gestureStroke, gesture): Promise<void>
Returns Promise<void>
applyUnderlineGesture
- applyUnderlineGesture(gestureStroke, gesture): Promise<void>
Returns Promise<void>
Protected
computeChangesOnSplitGroup
- computeChangesOnSplitGroup(gestureStroke, groupToSplit): TOIHistoryChanges
Protected
computeChangesOnSplitStroke
- computeChangesOnSplitStroke(gestureStroke, strokeIdToSplit, subStrokes): TOIHistoryChanges
Parameters
strokeIdToSplit: string
subStrokes: {
fullStrokeId: string;
x: number[];
y: number[];
}[]
Protected
computeChangesOnSplitText
- computeChangesOnSplitText(gestureStroke, textToSplit): TOIHistoryChanges
Protected
computeScratchOnStrokes
- computeScratchOnStrokes(gesture, stroke): OIStroke[]
Protected
computeScratchOnSymbol
- computeScratchOnSymbol(gestureStroke, gesture, symbol): {
erased?: boolean;
replaced?: TOISymbol[];
} Returns {
erased?: boolean;
replaced?: TOISymbol[];
}
Optional
erased?: boolean
Optional
replaced?: TOISymbol[]
Protected
computeScratchOnText
- computeScratchOnText(gestureStroke, textSymbol): undefined | OIText
Returns undefined | OIText
Protected
computeSplitStroke
- computeSplitStroke(strokeOrigin, subStrokes): {
after?: OIStroke;
before?: OIStroke;
} Parameters
subStrokes: {
x: number[];
y: number[];
}[]
Protected
computeSplitStrokeInGroup
- computeSplitStrokeInGroup(gestureStroke, group, subStrokes): OISymbolGroup[]
Parameters
subStrokes: {
fullStrokeId: string;
x: number[];
y: number[];
}[]
Protected
createStrokesFromGestureSubStroke
- createStrokesFromGestureSubStroke(strokeOrigin, subStrokes): OIStroke[]
Parameters
subStrokes: {
x: number[];
y: number[];
}[]
getGestureFromContextLess
- getGestureFromContextLess(gestureStroke): Promise<undefined | TGesture>
Returns Promise<undefined | TGesture>
Properties
Private
#logger
behaviors
insertAction
strikeThroughAction
surroundAction