René's URL Explorer Experiment


Title: docs(plugins): 不写 pan 的画布显示整个 viewBox,补充设置区域画布的设计宽度 by xiaoyumuxi · Pull Request #107 · Lithe-IDEA/Lithe-core-rust · GitHub

Open Graph Title: docs(plugins): 不写 pan 的画布显示整个 viewBox,补充设置区域画布的设计宽度 by xiaoyumuxi · Pull Request #107 · Lithe-IDEA/Lithe-core-rust

X Title: docs(plugins): 不写 pan 的画布显示整个 viewBox,补充设置区域画布的设计宽度 by xiaoyumuxi · Pull Request #107 · Lithe-IDEA/Lithe-core-rust

Description: 关联 Issue Refs 1lck/Lithe-IDEA#2181:桌面端用 Viva 绘制插件视图,桌面 Draft PR 是 1lck/Lithe-IDEA#2183,宿主按本 PR 的规则实现。 起因:用新的设置区域给 Go 插件做效果预览时发现,原来写的“按视图宽度缩放、height 点高”在窗口变宽后会裁掉场景的下半部分,窗口变窄时又在下面留出一块空白。 类型 docs:契约 README 的说明修正、schema 说明同步、设置参考页补充,以及更新记录。不新增版本号、宿主方法、通知或 SDK 版本;带 pan 的画布行为不变。 改动 契约 README(shared/plugins/contract/v1/README.md) 画布一节写明缩放为 1 时宿主怎样放 viewBox: 不写 pan:显示整个 viewBox。它按视图宽度缩放,但高度不超过 height,从区域左上角开始画。 视图最窄时,viewBox 和视图一样宽、和 height 一样高的场景正好是一个单位一个点。 视图变宽时,场景大小不变、完整显示,右边留空。 视图更窄时,场景按宽度缩小,下方留空。 写了 pan:和原来一样。viewBox 的宽度占满视图,上边对齐区域顶部,用户拖动查看下面的部分;缩小到比区域窄时,场景水平居中。 schema(shared/plugins/contract/v1/plugin-ui.schema.json) canvas 的 description 同步上面的规则。只改说明,校验规则不变。 参考文档(shared/plugins/reference/domains/settings.md) “设置区域”的中英两段各加一条,告诉插件作者区域画布的设计宽度:区域里的画布通常不写 pan,把 viewBox 设成区域最窄时的宽度、高度设成 height。这两个数是在桌面端最小窗口(900 点宽)里截图量出来的: 语言页:约 610 点(实测 613)。 构建系统页和编译器页右侧的详情:约 340 点(实测 344)。 更新记录(shared/plugins/reference/protocol-changelog.md) #105 移进时间线:#105 已在 2026-11-19(UTC)合入,它的条目从“待合入”移到时间线,放在新的 2026-11-19 分组下,内容不变。 “待合入”登记本 PR。 验证 node shared/plugins/scripts/verify-docs.mjs:通过。 桌面端 1lck/Lithe-IDEA#2183 按这条规则实现,desktop/internal/pluginview 的单元测试和无头测试都已通过。新增的测试覆盖三种情况:不写 pan 的画布按设计宽度画、在更宽的视图里大小不变并贴左上角、在更窄的视图里按宽度缩小;写了 pan 的画布仍然居中。

Open Graph Description: 关联 Issue Refs 1lck/Lithe-IDEA#2181:桌面端用 Viva 绘制插件视图,桌面 Draft PR 是 1lck/Lithe-IDEA#2183,宿主按本 PR 的规则实现。 起因:用新的设置区域给 Go 插件做效果预览时发现,原来写的“按视图宽度缩放、height 点高”在窗口变宽后会裁掉场景的下半部分,窗口变窄时又在下面留出一块空白。 类型 docs:契约...

X Description: 关联 Issue Refs 1lck/Lithe-IDEA#2181:桌面端用 Viva 绘制插件视图,桌面 Draft PR 是 1lck/Lithe-IDEA#2183,宿主按本 PR 的规则实现。 起因:用新的设置区域给 Go 插件做效果预览时发现,原来写的“按视图宽度缩放、height 点高”在窗口变宽后会裁掉场景的下半部分,窗口变窄时又在下面留出一块空白。 类型 docs:契约...

Opengraph URL: https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7f4f54d5-298d-081f-8b4b-a74218169282
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8BBA:392ED4:1B1CFBC:26206F1:6B072753
html-safe-noncee4b654b79631cc14d88e4cd9ea749d4768884181c51469f76479a111da9c8222
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkJBOjM5MkVENDoxQjFDRkJDOjI2MjA2RjE6NkIwNzI3NTMiLCJ2aXNpdG9yX2lkIjoiNTUwNTA2MDE5ODcwNjI1OTc5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac48ce4a56a25d892ab26c5c594691ac472b08fa0da5d8e4df1a9511e8da936467
hovercard-subject-tagpull_request:5388463693
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
twitter:imagehttps://avatars.githubusercontent.com/u/145102356?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/145102356?s=400&v=4
og:image:alt关联 Issue Refs 1lck/Lithe-IDEA#2181:桌面端用 Viva 绘制插件视图,桌面 Draft PR 是 1lck/Lithe-IDEA#2183,宿主按本 PR 的规则实现。 起因:用新的设置区域给 Go 插件做效果预览时发现,原来写的“按视图宽度缩放、height 点高”在窗口变宽后会裁掉场景的下半部分,窗口变窄时又在下面留出一块空白。 类型 docs:契约...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5a20fe9aa5e45c6df9328a5ec3f167a7805856126d8bf72d810541ca01962ef9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Lithe-IDEA/Lithe-core-rust git https://github.com/Lithe-IDEA/Lithe-core-rust.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1449354685
octolytics-dimension-repository_nwoLithe-IDEA/Lithe-core-rust
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1449354685
octolytics-dimension-repository_network_root_nwoLithe-IDEA/Lithe-core-rust
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6ce961d9a663a99bc4bcab9fd6ac5cca54bd6fcc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2FLithe-core-rust%2Fpull%2F107%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2FLithe-core-rust%2Fpull%2F107%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Lithe-IDEA%2FLithe-core-rust
Reloadhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
Reloadhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
Reloadhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
Lithe-IDEAhttps://github.com/Lithe-IDEA
Lithe-core-rusthttps://github.com/Lithe-IDEA/Lithe-core-rust
Codehttps://github.com/Lithe-IDEA/Lithe-core-rust
Issues1 (1)https://github.com/Lithe-IDEA/Lithe-core-rust/issues
Pull requests2 (2)https://github.com/Lithe-IDEA/Lithe-core-rust/pulls
Actionshttps://github.com/Lithe-IDEA/Lithe-core-rust/actions
Projectshttps://github.com/Lithe-IDEA/Lithe-core-rust/projects
Security and qualityhttps://github.com/Lithe-IDEA/Lithe-core-rust/security
Insightshttps://github.com/Lithe-IDEA/Lithe-core-rust/insights
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2FLithe-core-rust%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FLithe-IDEA%2FLithe-core-rust%2Fissues%2Fnew%2Fchoose
xiaoyumuxihttps://github.com/xiaoyumuxi
mainhttps://github.com/Lithe-IDEA/Lithe-core-rust/tree/main
docs/canvas-fit-without-panhttps://github.com/Lithe-IDEA/Lithe-core-rust/tree/docs/canvas-fit-without-pan
Conversation 1 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107
Commits 2 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/commits
Checks 9 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/checks
Files changed https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
Please reload this pagehttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
docs(plugins): 不写 pan 的画布显示整个 viewBox,补充设置区域画布的设计宽度 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#top
Show all changes 2 commits https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
1dd0859 docs(plugins): 不写 pan 的画布显示整个 viewBox,补充设置区域画布的设计宽度 xiaoyumuxi Nov 19, 2026 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/commits/1dd0859bc43219bd7fd8c4718876fcd1afc38747
9aab486 docs(plugins): 更新记录的待合入条目链接 #107 xiaoyumuxi Nov 19, 2026 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/commits/9aab486aa87258197eaf04d40ce3404b2685d471
Clear filters https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
Please reload this pagehttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
Please reload this pagehttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files
README.md https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-5b3defe79f6648f76410ecc588526d6459e1f66f48305dd73e0c42e8cfc75f72
plugin-ui.schema.json https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-de6b2d03c432ca92e31830563a831077120ba727ef7477c6e42d38368a3db51a
settings.md https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-db522a92fc863040029c4a36fbe838a34d3ec166b7f46cf8cd4030d23e9af9b5
protocol-changelog.md https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-b1256ddd3df4587b48c0966049b4bdc0d591695f3c214a009efcb01692e1e160
shared/plugins/contract/v1/README.mdhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-5b3defe79f6648f76410ecc588526d6459e1f66f48305dd73e0c42e8cfc75f72
View file https://github.com/Lithe-IDEA/Lithe-core-rust/blob/9aab486aa87258197eaf04d40ce3404b2685d471/shared/plugins/contract/v1/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-5b3defe79f6648f76410ecc588526d6459e1f66f48305dd73e0c42e8cfc75f72
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-5b3defe79f6648f76410ecc588526d6459e1f66f48305dd73e0c42e8cfc75f72
shared/plugins/contract/v1/plugin-ui.schema.jsonhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-de6b2d03c432ca92e31830563a831077120ba727ef7477c6e42d38368a3db51a
View file https://github.com/Lithe-IDEA/Lithe-core-rust/blob/9aab486aa87258197eaf04d40ce3404b2685d471/shared/plugins/contract/v1/plugin-ui.schema.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-de6b2d03c432ca92e31830563a831077120ba727ef7477c6e42d38368a3db51a
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-de6b2d03c432ca92e31830563a831077120ba727ef7477c6e42d38368a3db51a
shared/plugins/reference/domains/settings.mdhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-db522a92fc863040029c4a36fbe838a34d3ec166b7f46cf8cd4030d23e9af9b5
View file https://github.com/Lithe-IDEA/Lithe-core-rust/blob/9aab486aa87258197eaf04d40ce3404b2685d471/shared/plugins/reference/domains/settings.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-db522a92fc863040029c4a36fbe838a34d3ec166b7f46cf8cd4030d23e9af9b5
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-db522a92fc863040029c4a36fbe838a34d3ec166b7f46cf8cd4030d23e9af9b5
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-db522a92fc863040029c4a36fbe838a34d3ec166b7f46cf8cd4030d23e9af9b5
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-db522a92fc863040029c4a36fbe838a34d3ec166b7f46cf8cd4030d23e9af9b5
shared/plugins/reference/protocol-changelog.mdhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-b1256ddd3df4587b48c0966049b4bdc0d591695f3c214a009efcb01692e1e160
View file https://github.com/Lithe-IDEA/Lithe-core-rust/blob/9aab486aa87258197eaf04d40ce3404b2685d471/shared/plugins/reference/protocol-changelog.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-b1256ddd3df4587b48c0966049b4bdc0d591695f3c214a009efcb01692e1e160
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-b1256ddd3df4587b48c0966049b4bdc0d591695f3c214a009efcb01692e1e160
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-b1256ddd3df4587b48c0966049b4bdc0d591695f3c214a009efcb01692e1e160
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/107/files#diff-b1256ddd3df4587b48c0966049b4bdc0d591695f3c214a009efcb01692e1e160
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.