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