@fugood/bricks-ctor 2.25.0-beta.7 → 2.25.0-beta.70

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 (135) hide show
  1. package/package.json +4 -24
  2. package/tools/__tests__/legacy-forwarder.test.js +91 -0
  3. package/tools/_forward.ts +26 -0
  4. package/tools/deploy.ts +3 -164
  5. package/tools/mcp-server.ts +3 -27
  6. package/tools/postinstall.ts +3 -234
  7. package/tools/pull.ts +3 -121
  8. package/tools/push-config.ts +4 -0
  9. package/tools/simulator.ts +4 -0
  10. package/compile/action-name-map.ts +0 -1015
  11. package/compile/index.ts +0 -1278
  12. package/compile/util.ts +0 -358
  13. package/index.ts +0 -6
  14. package/skills/bricks-ctor/SKILL.md +0 -32
  15. package/skills/bricks-ctor/rules/animation.md +0 -159
  16. package/skills/bricks-ctor/rules/architecture-patterns.md +0 -69
  17. package/skills/bricks-ctor/rules/automations.md +0 -221
  18. package/skills/bricks-ctor/rules/buttress.md +0 -156
  19. package/skills/bricks-ctor/rules/data-calculation.md +0 -209
  20. package/skills/bricks-ctor/rules/local-sync.md +0 -129
  21. package/skills/bricks-ctor/rules/media-flow.md +0 -158
  22. package/skills/bricks-ctor/rules/remote-data-bank.md +0 -196
  23. package/skills/bricks-ctor/rules/standby-transition.md +0 -124
  24. package/skills/bricks-design/LICENSE.txt +0 -180
  25. package/skills/bricks-design/SKILL.md +0 -66
  26. package/skills/rive-marketplace/SKILL.md +0 -99
  27. package/tools/_git-author.ts +0 -29
  28. package/tools/_shell.ts +0 -173
  29. package/tools/icons/.gitattributes +0 -1
  30. package/tools/icons/fa6pro-glyphmap.json +0 -4686
  31. package/tools/icons/fa6pro-meta.json +0 -1
  32. package/tools/mcp-tools/compile.ts +0 -92
  33. package/tools/mcp-tools/huggingface.ts +0 -762
  34. package/tools/mcp-tools/icons.ts +0 -81
  35. package/tools/mcp-tools/lottie.ts +0 -102
  36. package/tools/mcp-tools/media.ts +0 -110
  37. package/tools/preview-main.mjs +0 -293
  38. package/tools/preview.ts +0 -150
  39. package/types/animation.ts +0 -100
  40. package/types/automation.ts +0 -235
  41. package/types/brick-base.ts +0 -80
  42. package/types/bricks/Camera.ts +0 -246
  43. package/types/bricks/Chart.ts +0 -372
  44. package/types/bricks/GenerativeMedia.ts +0 -290
  45. package/types/bricks/Icon.ts +0 -98
  46. package/types/bricks/Image.ts +0 -126
  47. package/types/bricks/Items.ts +0 -476
  48. package/types/bricks/Lottie.ts +0 -168
  49. package/types/bricks/Maps.ts +0 -262
  50. package/types/bricks/QrCode.ts +0 -117
  51. package/types/bricks/Rect.ts +0 -150
  52. package/types/bricks/RichText.ts +0 -128
  53. package/types/bricks/Rive.ts +0 -220
  54. package/types/bricks/Sketch.ts +0 -254
  55. package/types/bricks/Slideshow.ts +0 -201
  56. package/types/bricks/Svg.ts +0 -99
  57. package/types/bricks/Text.ts +0 -148
  58. package/types/bricks/TextInput.ts +0 -242
  59. package/types/bricks/Video.ts +0 -175
  60. package/types/bricks/VideoStreaming.ts +0 -112
  61. package/types/bricks/WebRtcStream.ts +0 -65
  62. package/types/bricks/WebView.ts +0 -168
  63. package/types/bricks/index.ts +0 -22
  64. package/types/canvas.ts +0 -82
  65. package/types/common.ts +0 -144
  66. package/types/data-calc-command.ts +0 -7005
  67. package/types/data-calc-script.ts +0 -21
  68. package/types/data-calc.ts +0 -11
  69. package/types/data.ts +0 -95
  70. package/types/generators/AlarmClock.ts +0 -110
  71. package/types/generators/Assistant.ts +0 -621
  72. package/types/generators/BleCentral.ts +0 -247
  73. package/types/generators/BlePeripheral.ts +0 -208
  74. package/types/generators/CanvasMap.ts +0 -74
  75. package/types/generators/CastlesPay.ts +0 -87
  76. package/types/generators/DataBank.ts +0 -160
  77. package/types/generators/File.ts +0 -432
  78. package/types/generators/GraphQl.ts +0 -132
  79. package/types/generators/Http.ts +0 -222
  80. package/types/generators/HttpServer.ts +0 -176
  81. package/types/generators/Information.ts +0 -103
  82. package/types/generators/Intent.ts +0 -168
  83. package/types/generators/Iterator.ts +0 -108
  84. package/types/generators/Keyboard.ts +0 -105
  85. package/types/generators/LlmAnthropicCompat.ts +0 -212
  86. package/types/generators/LlmAppleBuiltin.ts +0 -159
  87. package/types/generators/LlmGgml.ts +0 -861
  88. package/types/generators/LlmMediaTekNeuroPilot.ts +0 -235
  89. package/types/generators/LlmMlx.ts +0 -227
  90. package/types/generators/LlmOnnx.ts +0 -213
  91. package/types/generators/LlmOpenAiCompat.ts +0 -312
  92. package/types/generators/LlmQualcommAiEngine.ts +0 -247
  93. package/types/generators/Mcp.ts +0 -637
  94. package/types/generators/McpServer.ts +0 -289
  95. package/types/generators/MediaFlow.ts +0 -170
  96. package/types/generators/MqttBroker.ts +0 -141
  97. package/types/generators/MqttClient.ts +0 -141
  98. package/types/generators/Question.ts +0 -408
  99. package/types/generators/RealtimeTranscription.ts +0 -287
  100. package/types/generators/RerankerGgml.ts +0 -191
  101. package/types/generators/SerialPort.ts +0 -151
  102. package/types/generators/SoundPlayer.ts +0 -94
  103. package/types/generators/SoundRecorder.ts +0 -130
  104. package/types/generators/SpeechToTextGgml.ts +0 -419
  105. package/types/generators/SpeechToTextOnnx.ts +0 -236
  106. package/types/generators/SpeechToTextPlatform.ts +0 -85
  107. package/types/generators/SqLite.ts +0 -159
  108. package/types/generators/Step.ts +0 -107
  109. package/types/generators/SttAppleBuiltin.ts +0 -130
  110. package/types/generators/Tcp.ts +0 -126
  111. package/types/generators/TcpServer.ts +0 -147
  112. package/types/generators/TextToSpeechAppleBuiltin.ts +0 -127
  113. package/types/generators/TextToSpeechGgml.ts +0 -221
  114. package/types/generators/TextToSpeechOnnx.ts +0 -178
  115. package/types/generators/TextToSpeechOpenAiLike.ts +0 -121
  116. package/types/generators/ThermalPrinter.ts +0 -191
  117. package/types/generators/Tick.ts +0 -83
  118. package/types/generators/Udp.ts +0 -120
  119. package/types/generators/VadGgml.ts +0 -250
  120. package/types/generators/VadOnnx.ts +0 -231
  121. package/types/generators/VadTraditional.ts +0 -138
  122. package/types/generators/VectorStore.ts +0 -257
  123. package/types/generators/Watchdog.ts +0 -107
  124. package/types/generators/WebCrawler.ts +0 -103
  125. package/types/generators/WebRtc.ts +0 -181
  126. package/types/generators/WebSocket.ts +0 -148
  127. package/types/generators/index.ts +0 -57
  128. package/types/index.ts +0 -13
  129. package/types/subspace.ts +0 -60
  130. package/types/switch.ts +0 -51
  131. package/types/system.ts +0 -707
  132. package/utils/calc.ts +0 -126
  133. package/utils/data.ts +0 -497
  134. package/utils/event-props.ts +0 -886
  135. package/utils/id.ts +0 -80
@@ -1,246 +0,0 @@
1
- /* Auto generated by build script
2
- *
3
- * Camera view with photo capture and barcode scanning capabilities
4
- */
5
- import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
6
- import type { Data, DataLink } from '../data'
7
- import type { Animation, AnimationBasicEvents } from '../animation'
8
- import type {
9
- Brick,
10
- EventAction,
11
- EventActionForItem,
12
- ActionWithDataParams,
13
- ActionWithParams,
14
- Action,
15
- EventProperty,
16
- } from '../common'
17
- import type { BrickBasicProperty, BrickBasicEvents, BrickBasicEventsForItem } from '../brick-base'
18
- import type { TemplateEventPropsMap } from '../../utils/event-props'
19
-
20
- /* Take picture on the Camera */
21
- export type BrickCameraActionTakePicture = ActionWithParams & {
22
- __actionName: 'BRICK_CAMERA_TAKE_PICTURE'
23
- params?: Array<
24
- | {
25
- input: 'width'
26
- value?: number | DataLink | EventProperty
27
- mapping?: string
28
- }
29
- | {
30
- input: 'quality'
31
- value?: string | DataLink | EventProperty
32
- mapping?: string
33
- }
34
- | {
35
- input: 'base64'
36
- value?: boolean | DataLink | EventProperty
37
- mapping?: string
38
- }
39
- | {
40
- input: 'mirrorImage'
41
- value?: boolean | DataLink | EventProperty
42
- mapping?: string
43
- }
44
- >
45
- }
46
-
47
- /* Record video on the Camera */
48
- export type BrickCameraActionRecord = ActionWithParams & {
49
- __actionName: 'BRICK_CAMERA_RECORD'
50
- params?: Array<
51
- | {
52
- input: 'quality'
53
- value?: '4:3' | '288p' | '480p' | '720p' | '1080p' | '2160p' | DataLink | EventProperty
54
- mapping?: string
55
- }
56
- | {
57
- input: 'mirrorVideo'
58
- value?: boolean | DataLink | EventProperty
59
- mapping?: string
60
- }
61
- | {
62
- input: 'videoBitrate'
63
- value?: string | DataLink | EventProperty
64
- mapping?: string
65
- }
66
- | {
67
- input: 'maxDuration'
68
- value?: number | DataLink | EventProperty
69
- mapping?: string
70
- }
71
- | {
72
- input: 'maxFileSize'
73
- value?: string | DataLink | EventProperty
74
- mapping?: string
75
- }
76
- >
77
- }
78
-
79
- /* Record video on the Camera */
80
- export type BrickCameraActionStopRecord = Action & {
81
- __actionName: 'BRICK_CAMERA_STOP_RECORD'
82
- }
83
-
84
- /* Focus the Camera at a specific point */
85
- export type BrickCameraActionFocus = ActionWithParams & {
86
- __actionName: 'BRICK_CAMERA_FOCUS'
87
- params?: Array<
88
- | {
89
- input: 'focusX'
90
- value?: number | DataLink | EventProperty
91
- mapping?: string
92
- }
93
- | {
94
- input: 'focusY'
95
- value?: number | DataLink | EventProperty
96
- mapping?: string
97
- }
98
- >
99
- }
100
-
101
- interface BrickCameraDef {
102
- /*
103
- Default property:
104
- {
105
- "type": "back",
106
- "flashMode": "off",
107
- "captureAudio": false,
108
- "whiteBalance": "auto",
109
- "faceDetectionEnabled": false,
110
- "faceDetectionEventMode": "when-detected"
111
- }
112
- */
113
- property?: BrickBasicProperty & {
114
- /* Camera type */
115
- type?: 'back' | 'front' | 'external' | DataLink
116
- /* Enable or disable camera */
117
- isActive?: boolean | DataLink
118
- /* Camera zoom */
119
- zoom?: number | DataLink
120
- /* Camera flash mode */
121
- flashMode?: 'off' | 'on' | 'torch' | 'auto' | DataLink
122
- /* Camera ratio (Unsupported ratio will be ignored) */
123
- ratio?: string | DataLink
124
- /* Capture audio when start recording */
125
- captureAudio?: boolean | DataLink
126
- /* Allows you to control the color temperature in your photos by cooling down or warming up the colors. */
127
- whiteBalance?:
128
- | 'auto'
129
- | 'sunny'
130
- | 'cloudy'
131
- | 'shadow'
132
- | 'incandescent'
133
- | 'fluorescent'
134
- | DataLink
135
- /* Enable face detection (Note: Barcode detection will be disabled when enabled) */
136
- faceDetectionEnabled?: boolean | DataLink
137
- /* Face detection event mode */
138
- faceDetectionEventMode?: 'when-detected' | 'interval' | DataLink
139
- /* Quality of take picture */
140
- pictureQuality?: number | DataLink
141
- /* Take picture format as base64 */
142
- pictureBase64?: boolean | DataLink
143
- /* Mirror image of take picture */
144
- pictureIsMirrorImage?: boolean | DataLink
145
- /* Quality of record video */
146
- recordQuality?: '4:3' | '288p' | '480p' | '720p' | '1080p' | '2160p' | DataLink
147
- /* Bitrate of record video (bit/s) */
148
- recordVideoBitrate?: number | DataLink
149
- /* Mirror video of record video */
150
- recordMirrorVideo?: boolean | DataLink
151
- /* Max duration of record video (s) */
152
- recordMaxDuration?: number | DataLink
153
- /* Max file size of record video (bytes) */
154
- recordMaxFileSize?: number | DataLink
155
- }
156
- events?: BrickBasicEvents & {
157
- /* Event of the Camera state change */
158
- stateChange?: Array<EventAction<string & keyof TemplateEventPropsMap['Camera']['stateChange']>>
159
- /* Event of the Camera record start */
160
- recordStart?: Array<EventAction>
161
- /* Event of the Camera record end */
162
- recordEnd?: Array<EventAction>
163
- /* Event of the Camera barcode read */
164
- barcodeRead?: Array<EventAction<string & keyof TemplateEventPropsMap['Camera']['barcodeRead']>>
165
- /* Event of the Camera picture taken */
166
- pictureTaken?: Array<
167
- EventAction<string & keyof TemplateEventPropsMap['Camera']['pictureTaken']>
168
- >
169
- /* Event of the Camera record finished */
170
- recordFinish?: Array<
171
- EventAction<string & keyof TemplateEventPropsMap['Camera']['recordFinish']>
172
- >
173
- /* Event of the Camera mount error */
174
- mountError?: Array<EventAction<string & keyof TemplateEventPropsMap['Camera']['mountError']>>
175
- }
176
- outlets?: {
177
- /* Camera device and format information */
178
- info?: () => Data<{ [key: string]: any }>
179
- /* Picture taken result */
180
- pictureTaken?: () => Data<{
181
- width?: number
182
- height?: number
183
- uri?: string
184
- base64?: string
185
- [key: string]: any
186
- }>
187
- /* Record video result */
188
- recordVideo?: () => Data<{
189
- uri?: string
190
- [key: string]: any
191
- }>
192
- /* Barcode read result */
193
- barcodeRead?: () => Data<{
194
- type?: string
195
- data?: string
196
- rawData?: string
197
- bounds?: {
198
- origin?: {
199
- x?: number
200
- y?: number
201
- [key: string]: any
202
- }
203
- size?: {
204
- width?: number
205
- height?: number
206
- [key: string]: any
207
- }
208
- [key: string]: any
209
- }
210
- [key: string]: any
211
- }>
212
- /* Faces detected result */
213
- faceDetected?: () => Data<Array<{ [key: string]: any }>>
214
- }
215
- animation?: AnimationBasicEvents & {
216
- stateChange?: Animation
217
- recordStart?: Animation
218
- recordEnd?: Animation
219
- barcodeRead?: Animation
220
- pictureTaken?: Animation
221
- recordFinish?: Animation
222
- mountError?: Animation
223
- }
224
- }
225
-
226
- /* Camera view with photo capture and barcode scanning capabilities */
227
- export type BrickCamera = Brick &
228
- BrickCameraDef & {
229
- templateKey: 'BRICK_CAMERA'
230
- switches?: Array<
231
- SwitchDef &
232
- BrickCameraDef & {
233
- conds?: Array<{
234
- method: '==' | '!=' | '>' | '<' | '>=' | '<='
235
- cond:
236
- | SwitchCondInnerStateCurrentCanvas
237
- | SwitchCondData
238
- | {
239
- __typename: 'SwitchCondInnerStateOutlet'
240
- outlet: 'info' | 'pictureTaken' | 'recordVideo' | 'barcodeRead' | 'faceDetected'
241
- value: any
242
- }
243
- }>
244
- }
245
- >
246
- }
@@ -1,372 +0,0 @@
1
- /* Auto generated by build script
2
- *
3
- * Chart brick, based on [Apache ECharts](https://echarts.apache.org/en/index.html).
4
- */
5
- import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
6
- import type { Data, DataLink } from '../data'
7
- import type { Animation, AnimationBasicEvents } from '../animation'
8
- import type {
9
- Brick,
10
- EventAction,
11
- EventActionForItem,
12
- ActionWithDataParams,
13
- ActionWithParams,
14
- Action,
15
- EventProperty,
16
- } from '../common'
17
- import type { BrickBasicProperty, BrickBasicEvents, BrickBasicEventsForItem } from '../brick-base'
18
- import type { TemplateEventPropsMap } from '../../utils/event-props'
19
-
20
- /* Data highlight */
21
- export type BrickChartActionDataHighlight = ActionWithParams & {
22
- __actionName: 'BRICK_CHART_DATA_HIGHLIGHT'
23
- params?: Array<
24
- | {
25
- input: 'seriesName'
26
- value?: string | DataLink | EventProperty
27
- mapping?: string
28
- }
29
- | {
30
- input: 'seriesId'
31
- value?: string | DataLink | EventProperty
32
- mapping?: string
33
- }
34
- | {
35
- input: 'seriesIndex'
36
- value?: number | DataLink | EventProperty
37
- mapping?: string
38
- }
39
- | {
40
- input: 'dataIndex'
41
- value?: number | DataLink | EventProperty
42
- mapping?: string
43
- }
44
- | {
45
- input: 'name'
46
- value?: string | DataLink | EventProperty
47
- mapping?: string
48
- }
49
- >
50
- }
51
-
52
- /* Data downplay */
53
- export type BrickChartActionDataDownplay = ActionWithParams & {
54
- __actionName: 'BRICK_CHART_DATA_DOWNPLAY'
55
- params?: Array<
56
- | {
57
- input: 'seriesName'
58
- value?: string | DataLink | EventProperty
59
- mapping?: string
60
- }
61
- | {
62
- input: 'seriesId'
63
- value?: string | DataLink | EventProperty
64
- mapping?: string
65
- }
66
- | {
67
- input: 'seriesIndex'
68
- value?: number | DataLink | EventProperty
69
- mapping?: string
70
- }
71
- | {
72
- input: 'dataIndex'
73
- value?: number | DataLink | EventProperty
74
- mapping?: string
75
- }
76
- | {
77
- input: 'name'
78
- value?: string | DataLink | EventProperty
79
- mapping?: string
80
- }
81
- >
82
- }
83
-
84
- /* Data select */
85
- export type BrickChartActionDataSelect = ActionWithParams & {
86
- __actionName: 'BRICK_CHART_DATA_SELECT'
87
- params?: Array<
88
- | {
89
- input: 'seriesName'
90
- value?: string | DataLink | EventProperty
91
- mapping?: string
92
- }
93
- | {
94
- input: 'seriesId'
95
- value?: string | DataLink | EventProperty
96
- mapping?: string
97
- }
98
- | {
99
- input: 'seriesIndex'
100
- value?: number | DataLink | EventProperty
101
- mapping?: string
102
- }
103
- | {
104
- input: 'dataIndex'
105
- value?: number | DataLink | EventProperty
106
- mapping?: string
107
- }
108
- | {
109
- input: 'name'
110
- value?: string | DataLink | EventProperty
111
- mapping?: string
112
- }
113
- >
114
- }
115
-
116
- /* Data unselect */
117
- export type BrickChartActionDataUnselect = ActionWithParams & {
118
- __actionName: 'BRICK_CHART_DATA_UNSELECT'
119
- params?: Array<
120
- | {
121
- input: 'seriesName'
122
- value?: string | DataLink | EventProperty
123
- mapping?: string
124
- }
125
- | {
126
- input: 'seriesId'
127
- value?: string | DataLink | EventProperty
128
- mapping?: string
129
- }
130
- | {
131
- input: 'seriesIndex'
132
- value?: number | DataLink | EventProperty
133
- mapping?: string
134
- }
135
- | {
136
- input: 'dataIndex'
137
- value?: number | DataLink | EventProperty
138
- mapping?: string
139
- }
140
- | {
141
- input: 'name'
142
- value?: string | DataLink | EventProperty
143
- mapping?: string
144
- }
145
- >
146
- }
147
-
148
- /* Data toggle select */
149
- export type BrickChartActionDataToggleSelect = ActionWithParams & {
150
- __actionName: 'BRICK_CHART_DATA_TOGGLE_SELECT'
151
- params?: Array<
152
- | {
153
- input: 'seriesName'
154
- value?: string | DataLink | EventProperty
155
- mapping?: string
156
- }
157
- | {
158
- input: 'seriesId'
159
- value?: string | DataLink | EventProperty
160
- mapping?: string
161
- }
162
- | {
163
- input: 'seriesIndex'
164
- value?: number | DataLink | EventProperty
165
- mapping?: string
166
- }
167
- | {
168
- input: 'dataIndex'
169
- value?: number | DataLink | EventProperty
170
- mapping?: string
171
- }
172
- | {
173
- input: 'name'
174
- value?: string | DataLink | EventProperty
175
- mapping?: string
176
- }
177
- >
178
- }
179
-
180
- /* Legend select */
181
- export type BrickChartActionLegendSelect = ActionWithParams & {
182
- __actionName: 'BRICK_CHART_LEGEND_SELECT'
183
- params?: Array<{
184
- input: 'name'
185
- value?: string | DataLink | EventProperty
186
- mapping?: string
187
- }>
188
- }
189
-
190
- /* Legend unselect */
191
- export type BrickChartActionLegendUnselect = ActionWithParams & {
192
- __actionName: 'BRICK_CHART_LEGEND_UNSELECT'
193
- params?: Array<{
194
- input: 'name'
195
- value?: string | DataLink | EventProperty
196
- mapping?: string
197
- }>
198
- }
199
-
200
- /* Legend toggle select */
201
- export type BrickChartActionLegendToggleSelect = Action & {
202
- __actionName: 'BRICK_CHART_LEGEND_TOGGLE_SELECT'
203
- }
204
-
205
- /* Legend all select */
206
- export type BrickChartActionLegendAllSelect = Action & {
207
- __actionName: 'BRICK_CHART_LEGEND_ALL_SELECT'
208
- }
209
-
210
- /* Legend inverse select */
211
- export type BrickChartActionLegendInverseSelect = Action & {
212
- __actionName: 'BRICK_CHART_LEGEND_INVERSE_SELECT'
213
- }
214
-
215
- /* Tooltip show */
216
- export type BrickChartActionTooltipShow = ActionWithParams & {
217
- __actionName: 'BRICK_CHART_TOOLTIP_SHOW'
218
- params?: Array<
219
- | {
220
- input: 'seriesIndex'
221
- value?: number | DataLink | EventProperty
222
- mapping?: string
223
- }
224
- | {
225
- input: 'dataIndex'
226
- value?: number | DataLink | EventProperty
227
- mapping?: string
228
- }
229
- | {
230
- input: 'name'
231
- value?: string | DataLink | EventProperty
232
- mapping?: string
233
- }
234
- >
235
- }
236
-
237
- /* Tooltip hide */
238
- export type BrickChartActionTooltipHide = ActionWithParams & {
239
- __actionName: 'BRICK_CHART_TOOLTIP_HIDE'
240
- params?: Array<
241
- | {
242
- input: 'seriesIndex'
243
- value?: number | DataLink | EventProperty
244
- mapping?: string
245
- }
246
- | {
247
- input: 'dataIndex'
248
- value?: number | DataLink | EventProperty
249
- mapping?: string
250
- }
251
- | {
252
- input: 'name'
253
- value?: string | DataLink | EventProperty
254
- mapping?: string
255
- }
256
- >
257
- }
258
-
259
- interface BrickChartDef {
260
- /*
261
- Default property:
262
- {
263
- "renderMode": "svg",
264
- "legendShow": true,
265
- "xAxisShow": true,
266
- "xAxisType": "category",
267
- "yAxisShow": true,
268
- "yAxisType": "value",
269
- "tooltipShow": true,
270
- "tooltipTrigger": "item"
271
- }
272
- */
273
- property?: BrickBasicProperty & {
274
- /* The render mode */
275
- renderMode?: 'svg' | 'skia' | DataLink
276
- /* Theme. You can use https://echarts.apache.org/en/theme-builder.html to generate theme */
277
- themeEntry?: {} | DataLink
278
- /* Theme of URL (.json) */
279
- themeUrl?: string | DataLink
280
- /* Theme of MD5 */
281
- themeMd5?: string | DataLink
282
- /* Title text */
283
- titleText?: string | DataLink
284
- /* Subtitle text */
285
- titleSubtext?: string | DataLink
286
- /* Full configuration of title, see https://echarts.apache.org/en/option.html#title */
287
- titleOptions?: {} | DataLink
288
- /* Show legend */
289
- legendShow?: boolean | DataLink
290
- /* Legend data */
291
- legendData?: Array<string | DataLink> | DataLink
292
- /* Full configuration of legend, see https://echarts.apache.org/en/option.html#legend */
293
- legendOptions?: {} | DataLink
294
- /* Show grid */
295
- gridShow?: boolean | DataLink
296
- /* Full configuration of grid, see https://echarts.apache.org/en/option.html#grid */
297
- gridOptions?: {} | DataLink
298
- /* Dataset (see https://echarts.apache.org/en/option.html#dataset) */
299
- dataset?: Array<any> | DataLink
300
- /* Show x axis */
301
- xAxisShow?: boolean | DataLink
302
- /* Type of x axis */
303
- xAxisType?: 'category' | 'value' | 'time' | 'log' | DataLink
304
- /* Name of x axis */
305
- xAxisName?: string | DataLink
306
- /* Data of x axis */
307
- xAxisData?: Array<string | DataLink> | DataLink
308
- /* Full configuration of x axis, see https://echarts.apache.org/en/option.html#xAxis */
309
- xAxisOptions?: {} | DataLink
310
- /* Show y axis */
311
- yAxisShow?: boolean | DataLink
312
- /* Type of x axis */
313
- yAxisType?: 'value' | 'category' | 'time' | 'log' | DataLink
314
- /* Name of x axis */
315
- yAxisName?: string | DataLink
316
- /* Data of y axis */
317
- yAxisData?: Array<string | DataLink> | DataLink
318
- /* Full configuration of y axis, see https://echarts.apache.org/en/option.html#yAxis */
319
- yAxisOptions?: {} | DataLink
320
- /* Show axis pointer */
321
- axisPointerShow?: boolean | DataLink
322
- /* Full configuration of axis pointer, see https://echarts.apache.org/en/option.html#axisPointer */
323
- axisPointerOptions?: {} | DataLink
324
- /* data series (see https://echarts.apache.org/en/option.html#series-line) */
325
- series?: Array<any> | DataLink
326
- /* Show tooltip */
327
- tooltipShow?: boolean | DataLink
328
- /* Trigger type of tooltip */
329
- tooltipTrigger?: 'item' | 'axis' | 'none' | DataLink
330
- /* data series (see https://echarts.apache.org/en/option.html#tooltip) */
331
- tooltipOptions?: {} | DataLink
332
- /* Full configuration of options, see https://echarts.apache.org/en/option.html */
333
- options?: {} | DataLink
334
- }
335
- events?: BrickBasicEvents & {
336
- /* Event of chart render */
337
- onRender?: Array<EventAction>
338
- /* Event of data point on press */
339
- onPress?: Array<EventAction<string & keyof TemplateEventPropsMap['Chart']['onPress']>>
340
- /* Event of legend select changed */
341
- onLegendSelectChanged?: Array<
342
- EventAction<string & keyof TemplateEventPropsMap['Chart']['onLegendSelectChanged']>
343
- >
344
- }
345
- animation?: AnimationBasicEvents & {
346
- onRender?: Animation
347
- onPress?: Animation
348
- onLegendSelectChanged?: Animation
349
- }
350
- }
351
-
352
- /* Chart brick, based on [Apache ECharts](https://echarts.apache.org/en/index.html). */
353
- export type BrickChart = Brick &
354
- BrickChartDef & {
355
- templateKey: 'BRICK_CHART'
356
- switches?: Array<
357
- SwitchDef &
358
- BrickChartDef & {
359
- conds?: Array<{
360
- method: '==' | '!=' | '>' | '<' | '>=' | '<='
361
- cond:
362
- | SwitchCondInnerStateCurrentCanvas
363
- | SwitchCondData
364
- | {
365
- __typename: 'SwitchCondInnerStateOutlet'
366
- outlet: ''
367
- value: any
368
- }
369
- }>
370
- }
371
- >
372
- }