Skip to content

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é

{
response_function: (response) => {
cell_attribute_names.value = response.cell_attribute_names
cell_attribute_names.value = response.attributes || []
Copy link
Member

Choose a reason for hiding this comment

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

L'api ne revoie pas un tableau vide automatiquement ?

label="Select an attribute"
density="compact"
/>
<div>
Copy link
Member

Choose a reason for hiding this comment

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

Pour quoi faire cette div ?


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 ça par défaut ?

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 ?

if (min !== undefined && max !== undefined) {
x = minVal + x * range
}
points.push(
Copy link
Member

Choose a reason for hiding this comment

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

Pas besoin de faire de transo des points

}

function setVertexScalarRange(id, meshType, minimum, maximum) {
switch (meshType) {
Copy link
Member

Choose a reason for hiding this comment

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

Je crois qu'on avait dit que les switchs c’était pas ouf ?

}
}

function setElementScalarRange(id, elementType, minimum, maximum) {
Copy link
Member

Choose a reason for hiding this comment

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

Pourquoi mettre une fonction générique ? On sait quel est le type de l'élément ?

export const useDataStyleStateStore = defineStore("dataStyleState", () => {
const styles = reactive({})

const attributeSettings = reactive({})
Copy link
Member

Choose a reason for hiding this comment

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

Les attributes doivent être stockés dans styles ? pourquoi les mettre à part ?

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.

4 participants