Skip to content

Commit 17607da

Browse files
committed
fix : brep imports
1 parent e6d2c43 commit 17607da

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

stores/data_base.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const useDataBaseStore = defineStore("dataBase", () => {
4848
})
4949
}
5050

51-
const treeviewStore = useTreeviewStore()
51+
// const treeviewStore = useTreeviewStore()
5252
const hybridViewerStore = useHybridViewerStore()
5353

5454
async function addItem(
@@ -62,11 +62,11 @@ export const useDataBaseStore = defineStore("dataBase", () => {
6262
vtk_js: { binary_light_viewable },
6363
},
6464
) {
65-
console.log("[DataBase] addItem start", {
66-
id,
67-
object_type: value.object_type,
68-
geode_object: value.geode_object,
69-
})
65+
// console.log("[DataBase] addItem start", {
66+
// id,
67+
// object_type: value.object_type,
68+
// geode_object: value.geode_object,
69+
// })
7070
db[id] = value
7171

7272
if (value.object_type === "model") {

stores/data_style.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import useDataStyleState from "../internal_stores/data_style_state.js"
22
import useMeshStyle from "../internal_stores/mesh/index.js"
33
import useModelStyle from "../internal_stores/model/index.js"
4-
import { defineStore } from "pinia"
5-
import { useDataBaseStore } from "./data_base.js"
64

75
export const useDataStyleStore = defineStore("dataStyle", () => {
86
const dataStyleState = useDataStyleState()
@@ -11,7 +9,8 @@ export const useDataStyleStore = defineStore("dataStyle", () => {
119
const dataBaseStore = useDataBaseStore()
1210

1311
function addDataStyle(id, geode_object) {
14-
dataStyleState.styles[id] = getDefaultStyle(geode_object)
12+
const style = getDefaultStyle(geode_object)
13+
dataStyleState.styles[id] = style
1514
}
1615

1716
function setVisibility(id, visibility) {

utils/default_styles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const corners_defaultColor = { r: 20, g: 20, b: 20 }
1616
const lines_defaultVisibility = true
1717
const lines_defaultColor = { r: 20, g: 20, b: 20 }
1818
const surfaces_defaultVisibility = true
19-
const surfaces_defaultColor = { r: 20, g: 20, b: 20 }
19+
const surfaces_defaultColor = { r: 255, g: 255, b: 255 }
2020
const blocks_defaultVisibility = true
21-
const blocks_defaultColor = { r: 20, g: 20, b: 20 }
21+
const blocks_defaultColor = { r: 255, g: 255, b: 255 }
2222

2323
// Mesh functions
2424
const meshPointsDefaultStyle = (

0 commit comments

Comments
 (0)