Skip to content

feat(plugin.d.ts): add collectionId and collectionName to style type#149

Open
muzi131313 wants to merge 2 commits into
masterfrom
feat_team_library_collection
Open

feat(plugin.d.ts): add collectionId and collectionName to style type#149
muzi131313 wants to merge 2 commits into
masterfrom
feat_team_library_collection

Conversation

@muzi131313

@muzi131313 muzi131313 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

变更摘要

为插件类型定义的 Style 接口新增 collectionId 和 collectionName 字段。

文件变更

文件 变更
plugin.d.ts +4

提交历史

  • feat(plugin.d.ts): add collectionId and collectionName to style type

@muzi131313 muzi131313 changed the title feat(plugin.d.ts): add collectionId and collectionName to style type feat(plugin.d.ts): support per-paint colorStyleId and modeId writeback Jul 15, 2026
@muzi131313 muzi131313 closed this Jul 15, 2026
@muzi131313
muzi131313 force-pushed the feat_team_library_collection branch from 4322bf4 to 1128efc Compare July 15, 2026 03:38
Add two new readonly optional properties to the style type declaration:
collectionId for the variable's collection ID, and collectionName for the collection's name,
both only present for variable type items like color/number/string/bool
@muzi131313 muzi131313 reopened this Jul 15, 2026
@muzi131313 muzi131313 changed the title feat(plugin.d.ts): support per-paint colorStyleId and modeId writeback feat(plugin.d.ts): add collectionId and collectionName to style type Jul 15, 2026
Add getLayerVariableModes API to fetch variable modes for a target layer, add new LayerVariableMode interface to define the returned data structure, and improve setVariableReferenceInLayer doc with more details about supported id types
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.

3 participants