Skip to content

@maomi/sge / SpeechBubble

Class: SpeechBubble ​

Defined in: src/bubble.ts:26

Constructors ​

Constructor ​

new SpeechBubble(opts?): SpeechBubble

Defined in: src/bubble.ts:31

Parameters ​

opts? ​

SpeechBubbleOptions = {}

Returns ​

SpeechBubble

Properties ​

object ​

readonly object: CSS2DObject

Defined in: src/bubble.ts:27

Methods ​

attachTo() ​

attachTo(entity): this

Defined in: src/bubble.ts:116

Parameters ​

entity ​

GraphicEntity

Returns ​

this


detach() ​

detach(): this

Defined in: src/bubble.ts:121

Returns ​

this


setChoices() ​

setChoices(label, options, onPick): this

Defined in: src/bubble.ts:81

Parameters ​

label ​

string

options ​

string[]

onPick ​

(choice) => void

Returns ​

this


setText() ​

setText(text): this

Defined in: src/bubble.ts:75

Parameters ​

text ​

string

Returns ​

this


setVisible() ​

setVisible(visible): this

Defined in: src/bubble.ts:126

Parameters ​

visible ​

boolean

Returns ​

this