Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const edge_attribute_color_map = computed({
</script>
<template>
<ViewerContextMenuItem
data-testid="meshEdgesMenu"
:itemProps="itemProps"
:btn_image="EdgedCurveEdges"
tooltip="Edges options"
Expand Down
1 change: 1 addition & 0 deletions app/components/Viewer/Generic/Model/ModelStyleOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const { itemProps } = defineProps({

<template>
<ViewerContextMenuItem
data-testid="modelStyleMenu"
:index="itemProps.index"
:itemProps="itemProps"
tooltip="Style options"
Expand Down
2 changes: 2 additions & 0 deletions app/components/Viewer/Options/AttributeColorBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const colorMap = defineModel("colorMap", { type: String });
<v-row dense align="center" class="mt-2" no-gutters>
<v-col cols="5" class="pe-1">
<v-text-field
data-testid="attributeMinInput"
:model-value="minimum"
@update:model-value="(value) => (minimum = Number(value))"
label="Min"
Expand All @@ -35,6 +36,7 @@ const colorMap = defineModel("colorMap", { type: String });
</v-col>
<v-col cols="5" class="ps-1">
<v-text-field
data-testid="attributeMaxInput"
:model-value="maximum"
@update:model-value="(value) => (maximum = Number(value))"
label="Max"
Expand Down
1 change: 1 addition & 0 deletions app/components/Viewer/Options/AttributeSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ watch(name, (newName, oldName) => {

<template>
<v-select
data-testid="attributeSelector"
v-model="name"
:items="attributes.map((attribute) => attribute.attribute_name)"
item-title="attribute_name"
Expand Down
1 change: 1 addition & 0 deletions app/components/Viewer/Options/ColorMapList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ watch(filteredPresets, drawAllCanvases);
/>

<v-list
data-testid="colorMapList"
density="compact"
max-height="350"
bg-color="transparent"
Expand Down
1 change: 1 addition & 0 deletions app/components/Viewer/Options/ColorMapPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ watch([lutCanvas, selectedPresetName, () => min, () => max], drawLutCanvas);
<v-menu v-model="menuOpen" :close-on-content-click="false" location="bottom">
<template #activator="{ props: menuProps }">
<GlassCard
data-testid="colorMapPicker"
v-bind="menuProps"
variant="ui"
padding="pa-2"
Expand Down
1 change: 1 addition & 0 deletions app/components/Viewer/Options/ColoringTypeSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ watch(
</v-col>
<v-col>
<v-select
data-testid="coloringStyleSelector"
v-model="coloring_style_label"
:items="coloring_styles.labels"
label="Select a coloring style"
Expand Down
12 changes: 10 additions & 2 deletions app/components/Viewer/Solid/SpecificPolyhedraOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,17 @@ const polyhedron_attribute_color_map = computed({
});
</script>
<template>
<ViewerContextMenuItem :itemProps="itemProps" :tooltip="tooltip" :btn_image="SolidPolyhedra">
<ViewerContextMenuItem
data-testid="meshPolyhedraMenu"
:itemProps="itemProps"
:tooltip="tooltip"
:btn_image="SolidPolyhedra"
>
<template #options>
<ViewerOptionsVisibilitySwitch v-model="visibility" />
<ViewerOptionsVisibilitySwitch
data-testid="meshPolyhedraVisibilitySwitch"
v-model="visibility"
/>
<template v-if="visibility">
<ViewerOptionsColoringTypeSelector
:id="id"
Expand Down
6 changes: 5 additions & 1 deletion app/components/Viewer/Surface/PolygonsOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,16 @@ const polygon_attribute_color_map = computed({

<template>
<ViewerContextMenuItem
data-testid="meshPolygonsMenu"
:itemProps="itemProps"
:tooltip="tooltip"
:btn_image="PolygonalSurfacePolygons"
>
<template #options>
<ViewerOptionsVisibilitySwitch v-model="visibility" />
<ViewerOptionsVisibilitySwitch
data-testid="meshPolygonsVisibilitySwitch"
v-model="visibility"
/>
<template v-if="visibility">
<ViewerOptionsColoringTypeSelector
:id="id"
Expand Down
2 changes: 1 addition & 1 deletion app/utils/local/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function waitNuxt(nuxtProcess) {
for await (const [data] of on(nuxtProcess.stdout, "data")) {
const output = data.toString();
console.log("Nuxt:", output);
const portMatch = output.match(/Listening on http:\/\/\[::\]:(\d+)/u);
const portMatch = output.match(/Listening on http:\/\/\[::\]:(?<port>\d+)/u);
if (portMatch) {
const [, nuxtPort] = portMatch;

Expand Down
Loading