Skip to content

Expose committed MyGo text and container geometry - #278

Closed
tiensonqin wants to merge 1 commit into
mainfrom
feature/mygo-retained-text-geometry
Closed

tiensonqin wants to merge 1 commit into
mainfrom
feature/mygo-retained-text-geometry

Conversation

@tiensonqin

Copy link
Copy Markdown
Collaborator

Summary

Add Backend.TextGeometry(context, nodeID) and Backend.CommittedBounds(context, nodeID) to read the actual committed MyGo text/control layout without reconstructing styles or shaping a second approximation. The backend generation guard rejects patched-but-not-committed state; retained MyGo identities expire on the next build/removal/close. Rune offsets are relative to each rich-text run and coordinates are window DIPs.

Requires the production MyGo Handle.TextGeometry / Handle.Coordinates APIs in logseq/mygo@236fd4d. Dependency replacement/pin changes are intentionally left to the desktop host integration branch. Public migration notes document the lifetime and UTF-8/UTF-16 conversion responsibility.

Validation: gofmt, CGO_ENABLED=0 go test ./..., go vet ./..., and go build ./... passed in platform/mygo, using an external temporary modfile pointing at the above MyGo API. No temporary replacements or build outputs are committed.

Link to Devin session: https://app.devin.ai/sessions/bc6be65b65d1499d8c2861e8136752b8
Open in Devin Desktop: https://app.devin.ai/desktop/session/bc6be65b65d1499d8c2861e8136752b8?variant=devin
Requested by: @tiensonqin

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant