@@ -47,49 +47,7 @@ export function useDataStyleState() {
4747 ) ;
4848
4949 function getStyle ( id ) {
50- const default_style = {
51- visibility : true ,
52- color : { r : 255 , g : 255 , b : 255 } ,
53- corners : { visibility : true , color : { r : 20 , g : 20 , b : 20 } } ,
54- lines : { visibility : true , color : { r : 20 , g : 20 , b : 20 } } ,
55- surfaces : { visibility : true , color : { r : 255 , g : 255 , b : 255 } } ,
56- blocks : { visibility : true , color : { r : 255 , g : 255 , b : 255 } } ,
57- points : { visibility : true , size : 10 } ,
58- edges : { visibility : true } ,
59- cells : {
60- visibility : true ,
61- coloring : {
62- active : "color" ,
63- color : { r : 255 , g : 255 , b : 255 } ,
64- cell : { name : "" , storedConfigs : { } } ,
65- vertex : { name : "" , storedConfigs : { } } ,
66- textures : [ ] ,
67- } ,
68- } ,
69- polygons : {
70- visibility : true ,
71- coloring : {
72- active : "color" ,
73- color : { r : 255 , g : 255 , b : 255 } ,
74- polygon : { name : "" , storedConfigs : { } } ,
75- vertex : { name : "" , storedConfigs : { } } ,
76- textures : [ ] ,
77- } ,
78- } ,
79- polyhedra : {
80- visibility : true ,
81- coloring : {
82- active : "color" ,
83- color : { r : 255 , g : 255 , b : 255 } ,
84- polyhedron : { name : "" , storedConfigs : { } } ,
85- vertex : { name : "" , storedConfigs : { } } ,
86- } ,
87- } ,
88- } ;
89- if ( styles . value [ id ] ) {
90- return { ...default_style , ...toRaw ( styles . value [ id ] ) } ;
91- }
92- return default_style ;
50+ return { ...toRaw ( styles . value [ id ] ) } ;
9351 }
9452
9553 function mutateStyle ( id , values ) {
@@ -137,15 +95,15 @@ export function useDataStyleState() {
13795 }
13896
13997 return {
140- styles,
141- componentStyles,
142- objectVisibility,
143- selectedObjects,
14498 getStyle,
14599 mutateStyle,
146100 getComponentStyle,
147101 mutateComponentStyle,
148102 mutateComponentStyles,
103+ styles,
104+ componentStyles,
105+ objectVisibility,
106+ selectedObjects,
149107 clear,
150108 } ;
151109}
0 commit comments