Skip to content

Feat/color bar#296

Open
SpliiT wants to merge 44 commits intonextfrom
feat/color-bar
Open

Feat/color bar#296
SpliiT wants to merge 44 commits intonextfrom
feat/color-bar

Conversation

@SpliiT
Copy link
Member

@SpliiT SpliiT commented Jan 28, 2026

No description provided.


function setMeshCellsCellScalarRange(id, minimum, maximum) {
return viewerStore.request(
mesh_cells_schemas.cell_scalar_range,
Copy link
Member

Choose a reason for hiding this comment

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

@BotellaA même question que pour le back mais pour le viewer, veut-on vraiment 2 rpc différentes ou considère-t-on qu'un attribute est constitué d'un name et d'une range ?
Si on toggle de type d'attribute affiché on va toujours vouloir changer la range en même temps, j'ai l'impression que c'est lié


const props = defineProps({
id: { type: String, required: true },
meshType: { type: String, default: "polygons" },
Copy link
Member

Choose a reason for hiding this comment

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

Pourquoi est-ce le seul à avoir une props meshType ?

@@ -107,9 +109,10 @@ export function useMeshEdgesStyle() {
}
function setMeshEdgesVertexAttribute(id, vertex_attribute) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
function setMeshEdgesVertexAttribute(id, vertex_attribute) {
function setMeshEdgesVertexAttributeName(id, name) {

}
function setMeshEdgesVertexAttribute(id, vertex_attribute) {
const coloring_style = meshEdgesStyle(id).coloring
const { name } = vertex_attribute
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const { name } = vertex_attribute

promise_array.push(modelPointsStyleStore.applyModelPointsStyle(id))
} else if (key === "edges") {
promise_array.push(modelEdgesStyleStore.applyModelEdgesStyle(id))
} else if (key === "attributes") {
Copy link
Member

Choose a reason for hiding this comment

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

A enlever

}
function meshCellsCellAttributeName(id) {
const cell = meshCellsStyle(id).coloring.cell
return cell ? cell.name : ""
Copy link
Member

Choose a reason for hiding this comment

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

Ajoute { name: undefined,
minimum: 0,
maximum: 1,
scalarRange: "Cool to warm"}

dans tous les data styles à la place de vertex/edge/polygon/polyhedron: null,

return setMeshCellsCellAttributeName(id, cell_attribute.name)
}
function meshCellsCellAttributeName(id) {
const cell = meshCellsStyle(id).coloring.cell
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const cell = meshCellsStyle(id).coloring.cell
return meshCellsStyle(id).coloring.cell.name

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