cnhis-design-vue 3.1.33-beta.1 → 3.1.33-beta.10

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 (104) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +1 -1
  3. package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
  4. package/es/components/big-table/src/BigTable.vue2.js +8 -8
  5. package/es/components/big-table/src/components/edit-form/edit-time.js +7 -4
  6. package/es/components/fabric-chart/index.d.ts +389 -181
  7. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +181 -0
  8. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +171 -0
  9. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +390 -182
  10. package/es/components/fabric-chart/src/FabricChart.vue.js +21 -327
  11. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +214 -0
  12. package/es/components/fabric-chart/src/TemperatureChart.vue.js +358 -0
  13. package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
  14. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  15. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  16. package/es/components/fabric-chart/src/hooks/index.js +2 -1
  17. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +26 -0
  18. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +419 -0
  19. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  20. package/es/components/fabric-chart/src/hooks/useCenter.js +4 -37
  21. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +5 -0
  22. package/es/components/fabric-chart/src/hooks/useCommon.js +16 -0
  23. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +9 -2
  24. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +34 -1
  25. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  26. package/es/components/fabric-chart/src/hooks/useGrid.js +28 -18
  27. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  28. package/es/components/fabric-chart/src/hooks/useLeft.js +3 -1
  29. package/es/components/fabric-chart/src/interface.d.ts +24 -6
  30. package/es/components/fabric-chart/src/interface.js +0 -3
  31. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  32. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  33. package/es/components/form-render/src/FormRender.vue.js +1 -0
  34. package/es/components/form-render/src/FormRenderWrapper.vue.js +5 -1
  35. package/es/components/form-render/src/components/renderer/radio.js +10 -3
  36. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -4
  37. package/es/components/form-render/src/hooks/useFormRenderOptions.js +14 -8
  38. package/es/components/form-render/src/types/index.d.ts +2 -1
  39. package/es/components/iho-table/index.d.ts +1 -0
  40. package/es/components/iho-table/index.js +1 -1
  41. package/es/components/iho-table/src/IhoTable.vue.d.ts +1 -0
  42. package/es/components/iho-table/src/IhoTable.vue.js +7 -1
  43. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -0
  44. package/es/components/iho-table/src/hooks/tapHooks/index.js +3 -1
  45. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +11 -0
  46. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +26 -0
  47. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -2
  48. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +2 -1
  49. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +17 -12
  50. package/es/components/iho-table/src/plugins/filterPlugin/index.js +16 -5
  51. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +8 -22
  52. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +9 -22
  53. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +11 -24
  54. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +8 -16
  55. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +10 -16
  56. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +10 -23
  57. package/es/components/iho-table/src/types/index.d.ts +6 -1
  58. package/es/components/iho-table/src/types/index.js +1 -1
  59. package/es/components/iho-table/src/types/pluginType.d.ts +4 -0
  60. package/es/components/iho-table/src/types/pluginType.js +3 -1
  61. package/es/components/iho-table/src/utils/index.d.ts +10 -0
  62. package/es/components/iho-table/src/utils/index.js +34 -7
  63. package/es/components/iho-table/style/index.css +1 -1
  64. package/es/components/index.css +1 -1
  65. package/es/components/index.js +1 -1
  66. package/es/components/info-header/index.d.ts +2 -0
  67. package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
  68. package/es/components/info-header/src/InfoHeader.vue.js +72 -56
  69. package/es/components/info-header/style/index.css +1 -1
  70. package/es/components/shortcut-provider/src/utils/index.d.ts +0 -1
  71. package/es/components/shortcut-provider/src/utils/index.js +26 -3
  72. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +3 -0
  73. package/es/shared/assets/img/failure.js +1 -1
  74. package/es/shared/assets/img/failure.png.js +1 -1
  75. package/es/shared/assets/img/icon-asc.js +1 -1
  76. package/es/shared/assets/img/icon-desc.js +1 -1
  77. package/es/shared/assets/img/no-permission.js +1 -1
  78. package/es/shared/assets/img/no-permission.png.js +1 -1
  79. package/es/shared/assets/img/nodata.js +1 -1
  80. package/es/shared/assets/img/nodata.png.js +1 -1
  81. package/es/shared/assets/img/notfound.js +1 -1
  82. package/es/shared/assets/img/notfound.png.js +1 -1
  83. package/es/shared/assets/img/qr.js +1 -1
  84. package/es/shared/assets/img/qr.png.js +1 -1
  85. package/es/shared/assets/img/success.js +1 -1
  86. package/es/shared/assets/img/success.png.js +1 -1
  87. package/es/shared/assets/img/video.js +1 -1
  88. package/es/shared/assets/img/video.png.js +1 -1
  89. package/es/shared/assets/img/video_default_cover.js +1 -1
  90. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  91. package/es/shared/assets/img/video_hover.js +1 -1
  92. package/es/shared/assets/img/video_play_hover.js +1 -1
  93. package/es/shared/assets/img/xb_big.js +1 -1
  94. package/es/shared/assets/img/xb_big.png.js +1 -1
  95. package/es/shared/assets/img/xb_small.js +1 -1
  96. package/es/shared/assets/img/xb_small.png.js +1 -1
  97. package/package.json +2 -2
  98. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  99. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  100. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  101. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  102. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  103. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  104. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -0,0 +1,358 @@
1
+ import { defineComponent, ref, computed, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
2
+ import { fabric } from './utils/index.js';
3
+ import { defaultBorderStyle } from './hooks/useDraw.js';
4
+ import { useCumputedPoint } from './hooks/useCumputedPoint.js';
5
+ import { useTop } from './hooks/useTop.js';
6
+ import { useLeft } from './hooks/useLeft.js';
7
+ import { useRight } from './hooks/useRight.js';
8
+ import { useCenter } from './hooks/useCenter.js';
9
+ import { useBottom } from './hooks/useBottom.js';
10
+ import { useOther } from './hooks/useOther.js';
11
+ import { useEvent, useCanvasEvent } from './hooks/useEvent.js';
12
+ import 'lodash-es';
13
+ import PopupTip from './components/PopupTip.vue.js';
14
+ import PopupMenu from './components/PopupMenu.js';
15
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
16
+
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ __name: "TemperatureChart",
19
+ props: {
20
+ data: { type: Object, required: true },
21
+ addRenderItem: { type: Function }
22
+ },
23
+ emits: [
24
+ "change",
25
+ "add",
26
+ "select"
27
+ ],
28
+ setup(__props, { expose, emit: emits }) {
29
+ const props = __props;
30
+ const defaultHeight = 15;
31
+ let select = ref();
32
+ const canvasRef = ref(null);
33
+ let canvas = ref();
34
+ const dateHeight = computed(() => {
35
+ const { top } = props.data;
36
+ return top.date.show && (top.date.height || defaultHeight) || 0;
37
+ });
38
+ const hospitalDaysHeight = computed(() => {
39
+ var _a;
40
+ const { top } = props.data;
41
+ return ((_a = top.hospitalDays) == null ? void 0 : _a.show) && (top.hospitalDays.height || defaultHeight) || 0;
42
+ });
43
+ const operationDaysHeight = computed(() => {
44
+ var _a;
45
+ const { top } = props.data;
46
+ return ((_a = top.operationDays) == null ? void 0 : _a.show) && (top.operationDays.height || defaultHeight) || 0;
47
+ });
48
+ const xScalevalueHeight = computed(() => {
49
+ var _a, _b, _c;
50
+ const { top } = props.data;
51
+ const height = ((_a = top.xScalevalue) == null ? void 0 : _a.show) && (top.xScalevalue.height || defaultHeight) || 0;
52
+ const dayHeight = ((_b = top.xScalevalue) == null ? void 0 : _b.show) ? (_c = top.dayHeight) != null ? _c : 0 : 0;
53
+ return height + dayHeight;
54
+ });
55
+ const breathingHeight = computed(() => {
56
+ var _a;
57
+ const { bottom } = props.data;
58
+ return ((_a = bottom == null ? void 0 : bottom.breathing) == null ? void 0 : _a.show) && (bottom.breathing.height || defaultHeight * 2) || 0;
59
+ });
60
+ const gridXNumber = computed(() => {
61
+ const { grid } = props.data;
62
+ return grid.mainXCell * grid.subXCell + grid.surplusXCell;
63
+ });
64
+ const gridYNumber = computed(() => {
65
+ const { grid } = props.data;
66
+ return grid.mainYCell * grid.subYCell + grid.surplusYCell;
67
+ });
68
+ const endX = computed(() => {
69
+ var _a;
70
+ const { width, right = null, top } = props.data;
71
+ if (!right)
72
+ return width;
73
+ const endWidth = (_a = right.width) != null ? _a : 0;
74
+ return width - endWidth;
75
+ });
76
+ const endXLimit = computed(() => {
77
+ const { grid } = props.data;
78
+ return endX.value - grid.surplusXCell * xCellWidth.value;
79
+ });
80
+ const originX = computed(() => {
81
+ const { top, left } = props.data;
82
+ const originX2 = top.titleWidth + iconsWidth.value;
83
+ return originX2;
84
+ });
85
+ const endY = computed(() => {
86
+ const { bottom = null, height } = props.data;
87
+ if (!bottom)
88
+ return height;
89
+ const endHeight = bottom.height || 30;
90
+ return height - endHeight;
91
+ });
92
+ const originY = computed(() => {
93
+ var _a;
94
+ const { top } = props.data;
95
+ const dayHeight = top.xScalevalue.show && ((_a = top.dayHeight) != null ? _a : 0) || 0;
96
+ const xScaleHeight = top.xScalevalue.show && (top.xScalevalue.height || defaultHeight) || 0;
97
+ const topHeight = dateHeight.value + dayHeight + xScaleHeight + hospitalDaysHeight.value + operationDaysHeight.value;
98
+ return topHeight;
99
+ });
100
+ const originYLimit = computed(() => {
101
+ const { grid } = props.data;
102
+ return originY.value + grid.surplusYCell * yCellHeight.value;
103
+ });
104
+ const xCellWidth = computed(() => {
105
+ return (endX.value - originX.value) / gridXNumber.value;
106
+ });
107
+ const yCellHeight = computed(() => {
108
+ return (endY.value - originY.value) / gridYNumber.value;
109
+ });
110
+ const iconsWidth = computed(() => {
111
+ var _a, _b;
112
+ const { left } = props.data;
113
+ return ((_a = left.icons) == null ? void 0 : _a.show) && (((_b = left.icons) == null ? void 0 : _b.width) || 100) || 0;
114
+ });
115
+ const xScaleList = computed(() => {
116
+ const { top } = props.data;
117
+ const dateList = top.date.list;
118
+ const times = top.xScalevalue.times;
119
+ let left = originX.value - xCellWidth.value;
120
+ function getDate(date) {
121
+ const [year = "2022", month = "01", day = "01"] = String(date).match(/\d+/g) || [];
122
+ return `20${year}`.slice(-4) + "-" + `00${month}`.slice(-2) + "-" + `00${day}`.slice(-2);
123
+ }
124
+ const timeList = dateList.map((item) => {
125
+ return times.map((v) => {
126
+ left += xCellWidth.value;
127
+ const start = new Date(`${getDate(item)} ${v.start}`).getTime();
128
+ const end = new Date(`${getDate(item)} ${v.end}`).getTime();
129
+ return {
130
+ start,
131
+ end,
132
+ left,
133
+ center: left + xCellWidth.value / 2,
134
+ scaleCell: (end - start) / xCellWidth.value
135
+ };
136
+ });
137
+ });
138
+ return timeList.flat();
139
+ });
140
+ const breatheYCell = computed(() => {
141
+ return computedYCell("breathe");
142
+ });
143
+ const pulseYCell = computed(() => {
144
+ return computedYCell("pulse");
145
+ });
146
+ const temperatureYCell = computed(() => {
147
+ return computedYCell("temperature");
148
+ });
149
+ const painYCell = computed(() => {
150
+ return computedYCell("pain");
151
+ });
152
+ const event = computed(() => {
153
+ var _a;
154
+ return ((_a = props.data.grid) == null ? void 0 : _a.event) || { selectable: true, evented: true, hovered: true };
155
+ });
156
+ const itemList = computed(() => {
157
+ const { left } = props.data;
158
+ return left.yScaleValue.map((item) => {
159
+ return item.dataList.map((v, dataIndex) => {
160
+ return {
161
+ ...v,
162
+ bigType: item.type,
163
+ unit: item.unit,
164
+ dataIndex
165
+ };
166
+ });
167
+ }).flat();
168
+ });
169
+ const painIndex = computed(() => {
170
+ const { left } = props.data;
171
+ return left.yScaleValue.findIndex((v) => v.type === "pain");
172
+ });
173
+ const painHeight = computed(() => {
174
+ const { grid } = props.data;
175
+ return painIndex.value === -1 ? 0 : yCellHeight.value * grid.subYCell;
176
+ });
177
+ const painOriginY = computed(() => {
178
+ const { left } = props.data;
179
+ let obj = {
180
+ originY: endY.value,
181
+ endY: endY.value
182
+ };
183
+ if (painIndex.value === 0 && left.yScaleValue.length > 1) {
184
+ obj.originY = originYLimit.value;
185
+ obj.endY = originYLimit.value + painHeight.value;
186
+ } else if (painIndex.value === left.yScaleValue.length - 1) {
187
+ obj.originY = endY.value - painHeight.value;
188
+ obj.endY = endY.value;
189
+ }
190
+ return obj;
191
+ });
192
+ const vitalSignsOriginY = computed(() => {
193
+ const { left } = props.data;
194
+ let obj = {
195
+ originY: originY.value,
196
+ endY: endY.value
197
+ };
198
+ if (painIndex.value === 0 && left.yScaleValue.length > 1) {
199
+ obj.originY = originYLimit.value + painHeight.value;
200
+ obj.endY = endY.value;
201
+ } else if (painIndex.value === left.yScaleValue.length - 1) {
202
+ obj.originY = originYLimit.value;
203
+ obj.endY = endY.value - painHeight.value;
204
+ }
205
+ return obj;
206
+ });
207
+ const topList = computed(() => {
208
+ const { top } = props.data;
209
+ let topList2 = [];
210
+ for (let i in top) {
211
+ if (top[i].show) {
212
+ topList2.push({
213
+ ...top[i],
214
+ key: i
215
+ });
216
+ }
217
+ }
218
+ return topList2.sort((a, b) => a.seq - b.seq);
219
+ });
220
+ const getRightInfo = computed(() => {
221
+ var _a;
222
+ const { left, right } = props.data;
223
+ const temperatureObj = left.yScaleValue.find((v) => v.type === "temperature");
224
+ const yScaleValue = (right == null ? void 0 : right.yScaleValue) || {};
225
+ if ((_a = temperatureObj == null ? void 0 : temperatureObj.list) == null ? void 0 : _a.length) {
226
+ Object.assign(yScaleValue, {
227
+ list: temperatureObj.list.map((v) => Math.floor((1.8 * v + 32) * 100) / 100),
228
+ spaceGridNumber: temperatureObj.spaceGridNumber
229
+ });
230
+ }
231
+ return yScaleValue;
232
+ });
233
+ const propItems = reactive({
234
+ canvasWidth: props.data.width,
235
+ canvasHeight: props.data.height,
236
+ borderStyle: props.data.borderStyle || defaultBorderStyle,
237
+ selectionStyle: props.data.selectionStyle || {},
238
+ dateHeight: dateHeight.value,
239
+ hospitalDaysHeight: hospitalDaysHeight.value,
240
+ operationDaysHeight: operationDaysHeight.value,
241
+ xScalevalueHeight: xScalevalueHeight.value,
242
+ topList: topList.value,
243
+ breathingHeight: breathingHeight.value,
244
+ hospitalizationDate: props.data.hospitalizationDate,
245
+ grid: props.data.grid,
246
+ top: props.data.top,
247
+ left: props.data.left,
248
+ right: props.data.right,
249
+ bottom: props.data.bottom,
250
+ other: props.data.other,
251
+ painIndex: painIndex.value,
252
+ painHeight: painHeight.value,
253
+ painOriginY: painOriginY.value,
254
+ vitalSignsOriginY: vitalSignsOriginY.value,
255
+ gridXNumber: gridXNumber.value,
256
+ gridYNumber: gridYNumber.value,
257
+ iconsWidth: iconsWidth.value,
258
+ originX: originX.value,
259
+ originY: originY.value,
260
+ originYLimit: originYLimit.value,
261
+ endX: endX.value,
262
+ endXLimit: endXLimit.value,
263
+ endY: endY.value,
264
+ xCellWidth: xCellWidth.value,
265
+ yCellHeight: yCellHeight.value,
266
+ xScaleList: xScaleList.value,
267
+ breatheYCell: breatheYCell.value,
268
+ pulseYCell: pulseYCell.value,
269
+ temperatureYCell: temperatureYCell.value,
270
+ painYCell: painYCell.value,
271
+ event: event.value,
272
+ itemList: itemList.value,
273
+ getRightInfo: getRightInfo.value,
274
+ config: props.data.config || {}
275
+ });
276
+ function computedYCell(type) {
277
+ const { yScaleValue } = props.data.left;
278
+ const item = yScaleValue.find((v) => v.type === type);
279
+ const list = (item == null ? void 0 : item.list) || [];
280
+ if (!list.length)
281
+ return 0;
282
+ return yCellHeight.value / ((list[1] - list[0]) / item.spaceGridNumber);
283
+ }
284
+ const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
285
+ useTop(canvas, propItems);
286
+ const { setPopup, isAddPoint, updateData, redrawPoints, pointTipProps, pointMenuProps, clickMenu } = useCenter(
287
+ canvas,
288
+ propItems,
289
+ emits,
290
+ cumputedX,
291
+ cumputedY,
292
+ getXValue,
293
+ getYValue,
294
+ props.addRenderItem
295
+ );
296
+ const { drawScaleValue } = useLeft(
297
+ canvas,
298
+ propItems,
299
+ emits,
300
+ setPopup,
301
+ pointTipProps,
302
+ cumputedX,
303
+ cumputedY,
304
+ getXValue,
305
+ getYValue,
306
+ isAddPoint,
307
+ updateData
308
+ );
309
+ useRight(canvas, propItems, drawScaleValue);
310
+ useBottom(canvas, propItems);
311
+ useOther(canvas, propItems, cumputedX);
312
+ onMounted(() => {
313
+ canvas.value = new fabric.Canvas(canvasRef.value, {
314
+ width: propItems.canvasWidth,
315
+ height: propItems.canvasHeight,
316
+ backgroundColor: "#fff",
317
+ selection: false,
318
+ containerClass: "c-fabric-chart",
319
+ fireRightClick: true
320
+ });
321
+ useEvent(canvasRef.value);
322
+ const { select: selectFunc } = useCanvasEvent(canvas, propItems, emits);
323
+ select.value = selectFunc;
324
+ });
325
+ onBeforeUnmount(() => {
326
+ canvas.value.clear();
327
+ canvas.value = null;
328
+ });
329
+ expose({
330
+ redrawPoints,
331
+ select,
332
+ canvas
333
+ });
334
+ return (_ctx, _cache) => {
335
+ return openBlock(), createElementBlock(Fragment, null, [
336
+ createElementVNode("canvas", {
337
+ ref_key: "canvasRef",
338
+ ref: canvasRef
339
+ }, null, 512),
340
+ unref(canvas) ? (openBlock(), createBlock(PopupTip, mergeProps({
341
+ key: 0,
342
+ propItems
343
+ }, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
344
+ unref(canvas) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
345
+ key: 1,
346
+ propItems
347
+ }, unref(pointMenuProps), {
348
+ show: unref(pointMenuProps).show,
349
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => unref(pointMenuProps).show = $event),
350
+ onClickMenu: unref(clickMenu)
351
+ }), null, 16, ["propItems", "show", "onClickMenu"])) : createCommentVNode("v-if", true)
352
+ ], 64);
353
+ };
354
+ }
355
+ });
356
+ var TemperatureChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "TemperatureChart.vue"]]);
357
+
358
+ export { TemperatureChart as default };
@@ -42,7 +42,7 @@ var PopupMenu = defineComponent({
42
42
  } = props.propItems;
43
43
  const pointStyle = useStyle(props);
44
44
  function setNoClick(item) {
45
- if (typeof item === "string" && item.startsWith("\u65B0\u589E")) {
45
+ if (typeof item === "string" && (item.startsWith("\u65B0\u589E") || item.startsWith("\u5220\u9664"))) {
46
46
  return true;
47
47
  }
48
48
  }
@@ -52,7 +52,7 @@ var PopupMenu = defineComponent({
52
52
  return item;
53
53
  if (typeof item.value === "boolean")
54
54
  return item.label;
55
- if (!props.target)
55
+ if (item.renderItem)
56
56
  return item.renderItem();
57
57
  const min = +(((_a = left.yScaleValue.find((v) => v.type === props.target.origin.type)) == null ? void 0 : _a.list[0]) || 0);
58
58
  return createVNode(NSpace, {
@@ -1,4 +1,5 @@
1
- import { IPropItems, ICoordinateValue } from '../interface';
1
+ import { ICoordinateValue } from '../interface';
2
+ import { AnyObject } from '../../../../../es/shared/types';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  show: {
4
5
  type: BooleanConstructor;
@@ -23,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
23
24
  show: boolean;
24
25
  point: ICoordinateValue;
25
26
  list: Array<string>;
26
- propItems: IPropItems;
27
+ propItems: AnyObject;
27
28
  };
28
29
  pointStyle: import("vue").ComputedRef<{
29
30
  top: string;
@@ -7,3 +7,4 @@ export * from './useCenter';
7
7
  export * from './useBottom';
8
8
  export * from './useOther';
9
9
  export * from './useEvent';
10
+ export * from './useBirthProcess';
@@ -1,5 +1,5 @@
1
1
  export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawArrow, drawLine, drawPoint, drawText, drawTextGroup } from './useDraw.js';
2
- export { useCumputedPoint } from './useCumputedPoint.js';
2
+ export { useBirthProcessCumputedPoint, useCumputedPoint } from './useCumputedPoint.js';
3
3
  export { useTop } from './useTop.js';
4
4
  export { useLeft } from './useLeft.js';
5
5
  export { useRight } from './useRight.js';
@@ -7,3 +7,4 @@ export { useCenter } from './useCenter.js';
7
7
  export { useBottom } from './useBottom.js';
8
8
  export { useOther } from './useOther.js';
9
9
  export { useCanvasEvent, useEvent } from './useEvent.js';
10
+ export { useBirthProcess } from './useBirthProcess.js';
@@ -0,0 +1,26 @@
1
+ import { Ref } from 'vue';
2
+ import { fabric } from '../utils';
3
+ import { AnyObject } from '../../../../../es/shared/types';
4
+ export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: any): {
5
+ pointTipProps: {
6
+ show: boolean;
7
+ point: {
8
+ x: number;
9
+ y: number;
10
+ };
11
+ list: string[];
12
+ };
13
+ pointMenuProps: {
14
+ show: boolean;
15
+ point: {
16
+ x: number;
17
+ y: number;
18
+ };
19
+ list: any[];
20
+ target: any;
21
+ };
22
+ clickMenu: ({ item, target }: {
23
+ item: any;
24
+ target: any;
25
+ }) => void;
26
+ };