cfd-materials 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +17 -0
  2. package/build/docs/404.html +47 -0
  3. package/build/docs/_demos/:uuid +47 -0
  4. package/build/docs/cloud-visualization.html +48 -0
  5. package/build/docs/colorful-button.html +48 -0
  6. package/build/docs/colorful-input.html +48 -0
  7. package/build/docs/index.html +48 -0
  8. package/build/docs/mesh-visualization.html +48 -0
  9. package/build/docs/umi.4e426eb9.js +1 -0
  10. package/build/docs/umi.6b1604cb.css +8 -0
  11. package/build/docs/~demos/:uuid.html +47 -0
  12. package/build/docs/~demos/cloud-visualization-demo.html +47 -0
  13. package/build/docs/~demos/colorful-button-demo.html +47 -0
  14. package/build/docs/~demos/colorful-input-demo.html +47 -0
  15. package/build/docs/~demos/mesh-visualization-demo.html +47 -0
  16. package/build/index.css +2 -0
  17. package/build/index.html +1 -0
  18. package/build/index.js +53 -0
  19. package/build/lowcode/assets-daily.json +67 -0
  20. package/build/lowcode/assets-dev.json +67 -0
  21. package/build/lowcode/assets-prod.json +67 -0
  22. package/build/lowcode/designer.html +302 -0
  23. package/build/lowcode/index.html +304 -0
  24. package/build/lowcode/index.js +1 -0
  25. package/build/lowcode/meta.js +1 -0
  26. package/build/lowcode/preview.css +1 -0
  27. package/build/lowcode/preview.html +33 -0
  28. package/build/lowcode/preview.js +310 -0
  29. package/build/lowcode/render/default/view.css +1 -0
  30. package/build/lowcode/render/default/view.js +13 -0
  31. package/build/lowcode/view.css +1 -0
  32. package/build/lowcode/view.js +13 -0
  33. package/dist/BizComps.css +1 -0
  34. package/dist/BizComps.js +14 -0
  35. package/dist/BizComps.js.map +1 -0
  36. package/es/components/cloud-visualization/cloud-visualization.d.ts +20 -0
  37. package/es/components/cloud-visualization/cloud-visualization.js +738 -0
  38. package/es/components/cloud-visualization/index.d.ts +3 -0
  39. package/es/components/cloud-visualization/index.js +2 -0
  40. package/es/components/cloud-visualization/index.scss +55 -0
  41. package/es/components/colorful-button/colorful-button.d.ts +12 -0
  42. package/es/components/colorful-button/colorful-button.js +25 -0
  43. package/es/components/colorful-button/index.d.ts +3 -0
  44. package/es/components/colorful-button/index.js +2 -0
  45. package/es/components/colorful-button/index.scss +5 -0
  46. package/es/components/colorful-input/colorful-input.d.ts +8 -0
  47. package/es/components/colorful-input/colorful-input.js +19 -0
  48. package/es/components/colorful-input/index.d.ts +3 -0
  49. package/es/components/colorful-input/index.js +2 -0
  50. package/es/components/colorful-input/index.scss +5 -0
  51. package/es/components/mesh-visualization/index.d.ts +3 -0
  52. package/es/components/mesh-visualization/index.js +2 -0
  53. package/es/components/mesh-visualization/index.scss +441 -0
  54. package/es/components/mesh-visualization/mesh-visualization.d.ts +30 -0
  55. package/es/components/mesh-visualization/mesh-visualization.js +2609 -0
  56. package/es/index.d.ts +10 -0
  57. package/es/index.js +6 -0
  58. package/es/index.scss +2 -0
  59. package/es/style.js +3 -0
  60. package/es/variables.d.ts +2 -0
  61. package/es/variables.js +2 -0
  62. package/es/variables.scss +3 -0
  63. package/lib/components/cloud-visualization/cloud-visualization.d.ts +20 -0
  64. package/lib/components/cloud-visualization/cloud-visualization.js +743 -0
  65. package/lib/components/cloud-visualization/index.d.ts +3 -0
  66. package/lib/components/cloud-visualization/index.js +7 -0
  67. package/lib/components/cloud-visualization/index.scss +55 -0
  68. package/lib/components/colorful-button/colorful-button.d.ts +12 -0
  69. package/lib/components/colorful-button/colorful-button.js +31 -0
  70. package/lib/components/colorful-button/index.d.ts +3 -0
  71. package/lib/components/colorful-button/index.js +7 -0
  72. package/lib/components/colorful-button/index.scss +5 -0
  73. package/lib/components/colorful-input/colorful-input.d.ts +8 -0
  74. package/lib/components/colorful-input/colorful-input.js +25 -0
  75. package/lib/components/colorful-input/index.d.ts +3 -0
  76. package/lib/components/colorful-input/index.js +7 -0
  77. package/lib/components/colorful-input/index.scss +5 -0
  78. package/lib/components/mesh-visualization/index.d.ts +3 -0
  79. package/lib/components/mesh-visualization/index.js +7 -0
  80. package/lib/components/mesh-visualization/index.scss +441 -0
  81. package/lib/components/mesh-visualization/mesh-visualization.d.ts +30 -0
  82. package/lib/components/mesh-visualization/mesh-visualization.js +2614 -0
  83. package/lib/index.d.ts +10 -0
  84. package/lib/index.js +14 -0
  85. package/lib/index.scss +2 -0
  86. package/lib/style.js +3 -0
  87. package/lib/variables.d.ts +2 -0
  88. package/lib/variables.js +5 -0
  89. package/lib/variables.scss +3 -0
  90. package/lowcode/cloud-visualization/meta.ts +194 -0
  91. package/lowcode/colorful-button/meta.ts +102 -0
  92. package/lowcode/colorful-input/meta.ts +56 -0
  93. package/lowcode/mesh-visualization/meta.ts +278 -0
  94. package/lowcode_es/cloud-visualization/meta.d.ts +22 -0
  95. package/lowcode_es/cloud-visualization/meta.js +197 -0
  96. package/lowcode_es/colorful-button/meta.d.ts +22 -0
  97. package/lowcode_es/colorful-button/meta.js +85 -0
  98. package/lowcode_es/colorful-input/meta.d.ts +22 -0
  99. package/lowcode_es/colorful-input/meta.js +48 -0
  100. package/lowcode_es/mesh-visualization/meta.d.ts +22 -0
  101. package/lowcode_es/mesh-visualization/meta.js +285 -0
  102. package/lowcode_es/meta.js +167 -0
  103. package/lowcode_es/view.js +18 -0
  104. package/lowcode_lib/cloud-visualization/meta.d.ts +22 -0
  105. package/lowcode_lib/cloud-visualization/meta.js +202 -0
  106. package/lowcode_lib/colorful-button/meta.d.ts +22 -0
  107. package/lowcode_lib/colorful-button/meta.js +90 -0
  108. package/lowcode_lib/colorful-input/meta.d.ts +22 -0
  109. package/lowcode_lib/colorful-input/meta.js +53 -0
  110. package/lowcode_lib/mesh-visualization/meta.d.ts +22 -0
  111. package/lowcode_lib/mesh-visualization/meta.js +290 -0
  112. package/lowcode_lib/meta.js +171 -0
  113. package/lowcode_lib/view.js +28 -0
  114. package/package.json +104 -0
@@ -0,0 +1,197 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var CloudVisualizationMeta = {
3
+ componentName: 'CloudVisualization',
4
+ title: '云图可视化',
5
+ group: 'CFD可视化组件',
6
+ category: '可视化与网格前处理',
7
+ docUrl: '',
8
+ screenshot: '',
9
+ devMode: 'proCode',
10
+ npm: {
11
+ "package": 'cfd-materials',
12
+ version: '0.1.0',
13
+ exportName: 'CloudVisualization',
14
+ main: 'src/index.tsx',
15
+ destructuring: true,
16
+ subName: ''
17
+ },
18
+ configure: {
19
+ props: [{
20
+ title: '数据地址',
21
+ name: 'dataUrl',
22
+ setter: {
23
+ componentName: 'StringSetter',
24
+ isRequired: false,
25
+ initialValue: '/public/cfd-sample-distinct.csv'
26
+ }
27
+ }, {
28
+ title: '物理量',
29
+ name: 'field',
30
+ setter: {
31
+ componentName: 'SelectSetter',
32
+ props: {
33
+ options: [{
34
+ label: '速度',
35
+ value: 'velocity'
36
+ }, {
37
+ label: '压力',
38
+ value: 'pressure'
39
+ }, {
40
+ label: '温度',
41
+ value: 'temperature'
42
+ }, {
43
+ label: '涡量',
44
+ value: 'vorticity'
45
+ }, {
46
+ label: '马赫数',
47
+ value: 'mach'
48
+ }]
49
+ },
50
+ initialValue: 'pressure'
51
+ }
52
+ }, {
53
+ title: '视图模式',
54
+ name: 'viewMode',
55
+ setter: {
56
+ componentName: 'RadioGroupSetter',
57
+ props: {
58
+ options: [{
59
+ label: '2D',
60
+ value: '2d'
61
+ }, {
62
+ label: '3D',
63
+ value: '3d'
64
+ }]
65
+ },
66
+ initialValue: '3d'
67
+ }
68
+ }, {
69
+ title: '展示模式',
70
+ name: 'displayMode',
71
+ setter: {
72
+ componentName: 'RadioGroupSetter',
73
+ props: {
74
+ options: [{
75
+ label: '表面',
76
+ value: 'surface'
77
+ }, {
78
+ label: '切面',
79
+ value: 'slice'
80
+ }, {
81
+ label: '等值面',
82
+ value: 'isosurface'
83
+ }]
84
+ },
85
+ initialValue: 'surface'
86
+ }
87
+ }, {
88
+ title: '色带',
89
+ name: 'colorMap',
90
+ setter: {
91
+ componentName: 'SelectSetter',
92
+ props: {
93
+ options: [{
94
+ label: 'Jet',
95
+ value: 'jet'
96
+ }, {
97
+ label: 'Coolwarm',
98
+ value: 'coolwarm'
99
+ }, {
100
+ label: 'Rainbow',
101
+ value: 'rainbow'
102
+ }, {
103
+ label: 'Viridis',
104
+ value: 'viridis'
105
+ }]
106
+ },
107
+ initialValue: 'jet'
108
+ }
109
+ }, {
110
+ title: '透明度',
111
+ name: 'opacity',
112
+ setter: {
113
+ componentName: 'NumberSetter',
114
+ props: {
115
+ min: 0,
116
+ max: 1,
117
+ step: 0.1
118
+ },
119
+ initialValue: 1
120
+ }
121
+ }, {
122
+ title: '切面位置',
123
+ name: 'sliceOrigin',
124
+ setter: {
125
+ componentName: 'NumberSetter',
126
+ props: {
127
+ min: 0,
128
+ max: 1,
129
+ step: 0.05
130
+ },
131
+ initialValue: 0.5
132
+ }
133
+ }, {
134
+ title: '等值面值',
135
+ name: 'isoValue',
136
+ setter: {
137
+ componentName: 'NumberSetter',
138
+ props: {
139
+ min: 0,
140
+ max: 1,
141
+ step: 0.05
142
+ },
143
+ initialValue: 0.5
144
+ }
145
+ }, {
146
+ title: '背景色',
147
+ name: 'background',
148
+ setter: {
149
+ componentName: 'SelectSetter',
150
+ props: {
151
+ options: [{
152
+ label: '黑色',
153
+ value: '#061526'
154
+ }, {
155
+ label: '白色',
156
+ value: '#ffffff'
157
+ }, {
158
+ label: '灰色',
159
+ value: '#878787'
160
+ }, {
161
+ label: '蓝色',
162
+ value: '#2a579a'
163
+ }]
164
+ },
165
+ isRequired: false,
166
+ initialValue: '#061526'
167
+ }
168
+ }],
169
+ supports: {
170
+ style: true
171
+ },
172
+ component: {}
173
+ }
174
+ };
175
+ var snippets = [{
176
+ title: '云图可视化',
177
+ screenshot: '',
178
+ schema: {
179
+ componentName: 'CloudVisualization',
180
+ props: {
181
+ field: 'pressure',
182
+ viewMode: '3d',
183
+ displayMode: 'surface',
184
+ colorMap: 'jet',
185
+ opacity: 1,
186
+ sliceOrigin: 0.5,
187
+ isoValue: 0.5,
188
+ style: {
189
+ width: '100%',
190
+ height: 360
191
+ }
192
+ }
193
+ }
194
+ }];
195
+ export default _extends({}, CloudVisualizationMeta, {
196
+ snippets: snippets
197
+ });
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -0,0 +1,85 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var ColorfulButtonMeta = {
3
+ "componentName": "ColorfulButton",
4
+ "title": "ColorfulButton",
5
+ "docUrl": "",
6
+ "screenshot": "",
7
+ "devMode": "proCode",
8
+ "npm": {
9
+ "package": "cfd-materials",
10
+ "version": "0.1.0",
11
+ "exportName": "ColorfulButton",
12
+ "main": "src/index.tsx",
13
+ "destructuring": true,
14
+ "subName": ""
15
+ },
16
+ "configure": {
17
+ "props": [{
18
+ "title": {
19
+ "label": {
20
+ "type": "i18n",
21
+ "en-US": "type",
22
+ "zh-CN": "类型"
23
+ },
24
+ "tip": "type | 类型"
25
+ },
26
+ "name": "type",
27
+ "description": "类型",
28
+ "setter": {
29
+ "componentName": "RadioGroupSetter",
30
+ "props": {
31
+ "dataSource": [{
32
+ "label": "primary",
33
+ "value": "primary"
34
+ }, {
35
+ "label": "secondary",
36
+ "value": "secondary"
37
+ }, {
38
+ "label": "normal",
39
+ "value": "normal"
40
+ }],
41
+ "options": [{
42
+ "label": "primary",
43
+ "value": "primary"
44
+ }, {
45
+ "label": "secondary",
46
+ "value": "secondary"
47
+ }, {
48
+ "label": "normal",
49
+ "value": "normal"
50
+ }]
51
+ },
52
+ "initialValue": "primary"
53
+ }
54
+ }, {
55
+ "title": {
56
+ "label": {
57
+ "type": "i18n",
58
+ "en-US": "color",
59
+ "zh-CN": "color"
60
+ }
61
+ },
62
+ "name": "color",
63
+ "setter": {
64
+ "componentName": "StringSetter",
65
+ "isRequired": false,
66
+ "initialValue": ""
67
+ }
68
+ }],
69
+ "supports": {
70
+ "style": true
71
+ },
72
+ "component": {}
73
+ }
74
+ };
75
+ var snippets = [{
76
+ "title": "ColorfulButton",
77
+ "screenshot": "",
78
+ "schema": {
79
+ "componentName": "ColorfulButton",
80
+ "props": {}
81
+ }
82
+ }];
83
+ export default _extends({}, ColorfulButtonMeta, {
84
+ snippets: snippets
85
+ });
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -0,0 +1,48 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var ColorfulInputMeta = {
3
+ "componentName": "ColorfulInput",
4
+ "title": "ColorfulInput",
5
+ "docUrl": "",
6
+ "screenshot": "",
7
+ "devMode": "proCode",
8
+ "npm": {
9
+ "package": "cfd-materials",
10
+ "version": "0.1.0",
11
+ "exportName": "ColorfulInput",
12
+ "main": "src/index.tsx",
13
+ "destructuring": true,
14
+ "subName": ""
15
+ },
16
+ "configure": {
17
+ "props": [{
18
+ "title": {
19
+ "label": {
20
+ "type": "i18n",
21
+ "en-US": "color",
22
+ "zh-CN": "color"
23
+ }
24
+ },
25
+ "name": "color",
26
+ "setter": {
27
+ "componentName": "StringSetter",
28
+ "isRequired": false,
29
+ "initialValue": ""
30
+ }
31
+ }],
32
+ "supports": {
33
+ "style": true
34
+ },
35
+ "component": {}
36
+ }
37
+ };
38
+ var snippets = [{
39
+ "title": "ColorfulInput",
40
+ "screenshot": "",
41
+ "schema": {
42
+ "componentName": "ColorfulInput",
43
+ "props": {}
44
+ }
45
+ }];
46
+ export default _extends({}, ColorfulInputMeta, {
47
+ snippets: snippets
48
+ });
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -0,0 +1,285 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var MeshVisualizationMeta = {
3
+ componentName: 'MeshVisualization',
4
+ title: '网格前处理',
5
+ group: 'CFD可视化组件',
6
+ category: '可视化与网格前处理',
7
+ docUrl: '',
8
+ screenshot: '',
9
+ devMode: 'proCode',
10
+ npm: {
11
+ "package": 'cfd-materials',
12
+ version: '0.1.0',
13
+ exportName: 'MeshVisualization',
14
+ main: 'src/index.tsx',
15
+ destructuring: true,
16
+ subName: ''
17
+ },
18
+ configure: {
19
+ props: [{
20
+ title: '数据来源',
21
+ name: 'sourceType',
22
+ setter: {
23
+ componentName: 'RadioGroupSetter',
24
+ props: {
25
+ options: [{
26
+ label: '示例数据',
27
+ value: 'demo'
28
+ }, {
29
+ label: '静态地址',
30
+ value: 'url'
31
+ }, {
32
+ label: '本地上传',
33
+ value: 'local'
34
+ }]
35
+ },
36
+ initialValue: 'demo'
37
+ }
38
+ }, {
39
+ title: '数据格式',
40
+ name: 'dataFormat',
41
+ setter: {
42
+ componentName: 'SelectSetter',
43
+ props: {
44
+ options: [{
45
+ label: '自定义 JSON',
46
+ value: 'custom-json'
47
+ }, {
48
+ label: 'STL 几何',
49
+ value: 'stl'
50
+ }, {
51
+ label: 'OBJ 几何',
52
+ value: 'obj'
53
+ }]
54
+ },
55
+ initialValue: 'custom-json'
56
+ }
57
+ }, {
58
+ title: '数据地址',
59
+ name: 'dataUrl',
60
+ setter: {
61
+ componentName: 'StringSetter',
62
+ isRequired: false,
63
+ initialValue: '/public/mesh-sample.json'
64
+ }
65
+ }, {
66
+ title: '网格类型',
67
+ name: 'meshType',
68
+ setter: {
69
+ componentName: 'SelectSetter',
70
+ props: {
71
+ options: [{
72
+ label: '结构化',
73
+ value: 'structured'
74
+ }, {
75
+ label: '非结构化',
76
+ value: 'unstructured'
77
+ }]
78
+ },
79
+ initialValue: 'unstructured'
80
+ }
81
+ }, {
82
+ title: '目标尺寸',
83
+ name: 'targetSize',
84
+ setter: {
85
+ componentName: 'NumberSetter',
86
+ props: {
87
+ min: 0.01,
88
+ max: 1,
89
+ step: 0.01
90
+ },
91
+ initialValue: 0.12
92
+ }
93
+ }, {
94
+ title: '启用局部加密',
95
+ name: 'refineEnabled',
96
+ setter: {
97
+ componentName: 'BoolSetter',
98
+ initialValue: true
99
+ }
100
+ }, {
101
+ title: '加密级别',
102
+ name: 'refinementLevel',
103
+ setter: {
104
+ componentName: 'NumberSetter',
105
+ props: {
106
+ min: 0,
107
+ max: 6,
108
+ step: 1
109
+ },
110
+ initialValue: 2
111
+ }
112
+ }, {
113
+ title: '启用边界层',
114
+ name: 'boundaryLayerEnabled',
115
+ setter: {
116
+ componentName: 'BoolSetter',
117
+ initialValue: true
118
+ }
119
+ }, {
120
+ title: '边界层层数',
121
+ name: 'boundaryLayerCount',
122
+ setter: {
123
+ componentName: 'NumberSetter',
124
+ props: {
125
+ min: 0,
126
+ max: 24,
127
+ step: 1
128
+ },
129
+ initialValue: 6
130
+ }
131
+ }, {
132
+ title: '边界层厚度',
133
+ name: 'boundaryLayerThickness',
134
+ setter: {
135
+ componentName: 'NumberSetter',
136
+ props: {
137
+ min: 0,
138
+ max: 0.5,
139
+ step: 0.005
140
+ },
141
+ initialValue: 0.02
142
+ }
143
+ }, {
144
+ title: '显示模式',
145
+ name: 'displayMode',
146
+ setter: {
147
+ componentName: 'RadioGroupSetter',
148
+ props: {
149
+ options: [{
150
+ label: '表面',
151
+ value: 'surface'
152
+ }, {
153
+ label: '线框',
154
+ value: 'wireframe'
155
+ }, {
156
+ label: '表面+线框',
157
+ value: 'surface-wireframe'
158
+ }, {
159
+ label: '质量着色',
160
+ value: 'quality'
161
+ }]
162
+ },
163
+ initialValue: 'surface-wireframe'
164
+ }
165
+ }, {
166
+ title: '质量指标',
167
+ name: 'qualityMode',
168
+ setter: {
169
+ componentName: 'RadioGroupSetter',
170
+ props: {
171
+ options: [{
172
+ label: '正交性',
173
+ value: 'orthogonality'
174
+ }, {
175
+ label: '偏斜度',
176
+ value: 'skewness'
177
+ }, {
178
+ label: '长宽比',
179
+ value: 'aspectRatio'
180
+ }]
181
+ },
182
+ initialValue: 'orthogonality'
183
+ }
184
+ }, {
185
+ title: '质量阈值',
186
+ name: 'qualityThreshold',
187
+ setter: {
188
+ componentName: 'NumberSetter',
189
+ props: {
190
+ min: 0,
191
+ max: 1,
192
+ step: 0.05
193
+ },
194
+ initialValue: 0.58
195
+ }
196
+ }, {
197
+ title: '显示节点',
198
+ name: 'showNodes',
199
+ setter: {
200
+ componentName: 'BoolSetter',
201
+ initialValue: false
202
+ }
203
+ }, {
204
+ title: '显示边界提示',
205
+ name: 'showBoundaryHint',
206
+ setter: {
207
+ componentName: 'BoolSetter',
208
+ initialValue: true
209
+ }
210
+ }, {
211
+ title: '自动旋转',
212
+ name: 'autoRotate',
213
+ setter: {
214
+ componentName: 'BoolSetter',
215
+ initialValue: false
216
+ }
217
+ }, {
218
+ title: '允许本地上传',
219
+ name: 'allowLocalUpload',
220
+ setter: {
221
+ componentName: 'BoolSetter',
222
+ initialValue: true
223
+ }
224
+ }, {
225
+ title: '背景色',
226
+ name: 'background',
227
+ setter: {
228
+ componentName: 'SelectSetter',
229
+ props: {
230
+ options: [{
231
+ label: '深海蓝',
232
+ value: '#061526'
233
+ }, {
234
+ label: '石墨黑',
235
+ value: '#101820'
236
+ }, {
237
+ label: '灰蓝',
238
+ value: '#14263b'
239
+ }, {
240
+ label: '浅色',
241
+ value: '#f5f8fc'
242
+ }]
243
+ },
244
+ initialValue: '#061526'
245
+ }
246
+ }],
247
+ supports: {
248
+ style: true
249
+ },
250
+ component: {}
251
+ }
252
+ };
253
+ var snippets = [{
254
+ title: '网格前处理',
255
+ screenshot: '',
256
+ schema: {
257
+ componentName: 'MeshVisualization',
258
+ props: {
259
+ sourceType: 'demo',
260
+ dataFormat: 'custom-json',
261
+ dataUrl: '/public/mesh-sample.json',
262
+ meshType: 'unstructured',
263
+ targetSize: 0.12,
264
+ refineEnabled: true,
265
+ refinementLevel: 2,
266
+ boundaryLayerEnabled: true,
267
+ boundaryLayerCount: 6,
268
+ boundaryLayerThickness: 0.02,
269
+ displayMode: 'surface-wireframe',
270
+ qualityMode: 'orthogonality',
271
+ qualityThreshold: 0.58,
272
+ showNodes: false,
273
+ showBoundaryHint: true,
274
+ autoRotate: false,
275
+ allowLocalUpload: true,
276
+ style: {
277
+ width: '100%',
278
+ height: 520
279
+ }
280
+ }
281
+ }
282
+ }];
283
+ export default _extends({}, MeshVisualizationMeta, {
284
+ snippets: snippets
285
+ });