Skip to content

feat(modelStyles): add logic to color all model_component by type#356

Open
MaxNumerique wants to merge 46 commits intonextfrom
feat/model-component-type-color
Open

feat(modelStyles): add logic to color all model_component by type#356
MaxNumerique wants to merge 46 commits intonextfrom
feat/model-component-type-color

Conversation

@MaxNumerique
Copy link
Copy Markdown
Contributor

No description provided.

MaxNumerique and others added 29 commits April 13, 2026 14:54
…use for both specific model components and groups of model_components
@MaxNumerique MaxNumerique marked this pull request as ready for review April 16, 2026 22:15
@@ -0,0 +1,4 @@
export const modelComponentTypeDataStyleTable = {
name: "model_component_type_datastyle",
schema: "[id_model+type], id_model",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cette table ne stocke pas le DataStyle ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sont stockées directement à la racine de l'objet plutôt que dans une propriété data_style imbriquée. Simplifie les mutations via Dexie et l'accès dans le store modelComponentTypeStyles.

Dans la DB :

{id_model: '71b458eb35a3486db7131a8b80e6adf4', type: 'Surface', color_mode: 'random'}
color_mode
:
"random"
id_model
:
"71b458eb35a3486db7131a8b80e6adf4"
type
:
"Surface"

Comment thread app/utils/color.js Outdated
Comment thread app/components/Viewer/Generic/Model/ModelStyleCard.vue Outdated
Comment thread app/components/Viewer/Generic/Model/ModelStyleCard.vue Outdated
Comment thread app/components/Viewer/Generic/Model/ModelStyleCard.vue Outdated
Comment thread internal/stores/data_style/model/blocks/color.js
Comment thread internal/stores/data_style/model/color.js
Comment thread internal/stores/data_style/model/constants.js Outdated
Comment thread internal/stores/data_style/model/constants.js Outdated
Comment thread internal/stores/data_style/model/common.js Outdated
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.

2 participants