MCPcopy
hub / github.com/basecamp/trix / getPieceAtPosition

Method getPieceAtPosition

src/trix/models/document.js:469–472  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

467 }
468
469 getPieceAtPosition(position) {
470 const { index, offset } = this.locationFromPosition(position)
471 return this.getTextAtIndex(index).getPieceAtPosition(offset)
472 }
473
474 getCharacterAtPosition(position) {
475 const { index, offset } = this.locationFromPosition(position)

Callers

nothing calls this directly

Calls 2

locationFromPositionMethod · 0.95
getTextAtIndexMethod · 0.95

Tested by

no test coverage detected