Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tldraw/tldraw
/ getCurrentPageState
Method
getCurrentPageState
packages/editor/src/lib/editor/Editor.ts:2000–2002 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1998
* @public
1999
*/
2000
@computed getCurrentPageState(): TLInstancePageState {
2001
return
this.store.get(this._getCurrentPageStateId())!
2002
}
2003
2004
/** @internal */
2005
@computed private _getCurrentPageStateId() {
Callers
15
createErrorAnnotations
Method · 0.95
_updateCurrentPageState
Method · 0.95
getSelectedShapeIds
Method · 0.95
setSelectedShapes
Method · 0.95
getFocusedGroupId
Method · 0.95
setFocusedGroup
Method · 0.95
getEditingShapeId
Method · 0.95
getHoveredShapeId
Method · 0.95
getHintingShapeIds
Method · 0.95
getErasingShapeIds
Method · 0.95
getCroppingShapeId
Method · 0.95
component
Method · 0.80
Calls
2
_getCurrentPageStateId
Method · 0.95
get
Method · 0.65
Tested by
1
allOk
Function · 0.64