@lm_fe/pages 0.1.201 → 0.2.5
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.
- package/README.md +1 -1
- package/dist/a_chunks/{.root5.js → components.doctor_end.ExemplaryCase.js} +36 -68
- package/dist/a_chunks/components.doctor_end.HeaderInfo.js +635 -0
- package/dist/a_chunks/curve.components.BmiCanvas.js +242 -0
- package/dist/a_chunks/curve.components.FetusCanvas.js +259 -0
- package/dist/a_chunks/curve.components.FetusCanvasNICHD.js +1907 -0
- package/dist/a_chunks/curve.components.Pregnogram.js +166 -0
- package/dist/a_chunks/data.js +572 -0
- package/dist/a_chunks/func.js +86 -0
- package/dist/a_chunks/index.js +1049 -286
- package/dist/a_chunks/modals.entries.BF_Form.js +41 -0
- package/dist/a_chunks/modals.entries.StupidTemplateModal2.js +22 -0
- package/dist/a_chunks/modals.entries.box.js +23 -0
- package/dist/a_chunks/{.root11.js → modals.entries.modal_form.js} +99 -70
- package/dist/a_chunks/modals.entries.modal_page.js +143 -0
- package/dist/a_chunks/{.root13.js → modals.entries.print_modal.js} +22 -48
- package/dist/a_chunks/modals.entries.result_template.js +201 -0
- package/dist/a_chunks/{.root14.js → modals.entries.template_modal3.js} +80 -124
- package/dist/a_chunks/modals.entries.test.js +30 -0
- package/dist/a_chunks/{.root16.js → modals.entries.text_search.js} +20 -49
- package/dist/a_chunks/{.root17.js → modals.entries./344/271/231/350/202/235/347/256/241/347/220/206.js} +17 -45
- package/dist/a_chunks/{.root18.js → modals.entries./345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250.js} +68 -93
- package/dist/a_chunks/modals.entries./346/213/223/345/261/225/351/207/217/350/241/250.js +257 -0
- package/dist/a_chunks/{.root19.js → modals.entries./346/242/205/346/257/222/347/256/241/347/220/206.js} +58 -90
- package/dist/a_chunks/{.root20.js → modals.entries./346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250.js} +144 -154
- package/dist/a_chunks/{.root21.js → modals.entries./347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250.js} +27 -48
- package/dist/a_chunks/{.root22.js → modals.entries./350/257/212/346/226/255/345/216/206/345/217/262.js} +9 -37
- package/dist/a_chunks/{.root23.js → modals.entries./351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257.js} +127 -172
- package/dist/a_chunks/{.root24.js → modals.entries./351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206.js} +438 -336
- package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/277.js +102 -0
- package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/2772.js +157 -0
- package/dist/a_chunks/{.root8.js → src.block./346/243/200/351/252/214/346/243/200/346/237/245.js} +69 -208
- package/dist/a_chunks/{.root3.js → src.components.Base_List.js} +329 -320
- package/dist/a_chunks/src.components.Layout_Sider.js +101 -0
- package/dist/a_chunks/src.components.Layout_TabButton.js +69 -0
- package/dist/a_chunks/src.components.Login.js +151 -0
- package/dist/a_chunks/src.components.MenuSearch.js +106 -0
- package/dist/a_chunks/{.root7.js → src.components.QuickDocButton.js} +1 -2
- package/dist/a_chunks/src.pages.questionnaire.js +1633 -0
- package/dist/a_chunks/use_fetus.js +138 -0
- package/dist/a_chunks/utils.js +100 -0
- package/dist/a_chunks/utils2.js +36 -0
- package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
- package/dist/components/BF_Form/Wrap.d.ts +2 -2
- package/dist/components/BF_Form/index.d.ts +4 -2
- package/dist/components/BF_Form/types.d.ts +7 -0
- package/dist/components/BF_Form/use_table_config.d.ts +1 -5
- package/dist/components/Base_List/Helper.d.ts +0 -5
- package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
- package/dist/components/Base_List/index.d.ts +2 -1
- package/dist/components/Base_List/types.d.ts +6 -3
- package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
- package/dist/components/Base_List/utils.d.ts +11 -0
- package/dist/components/HighRiskTableEntry/utils.d.ts +4 -3
- package/dist/components/IdNOButton/index copy.d.ts +1 -1
- package/dist/components/Layout_Sider/Inner.d.ts +2 -4
- package/dist/components/Layout_Sider/index.d.ts +2 -2
- package/dist/components/Layout_Sider/utils.d.ts +13 -0
- package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
- package/dist/components/Layout_TabButton/index.d.ts +3 -8
- package/dist/components/Layout_TabButton/types.d.ts +8 -0
- package/dist/components/Login/Inner.d.ts +0 -1
- package/dist/components/Login/index.d.ts +2 -1
- package/dist/components/MenuSearch/Inner.d.ts +6 -0
- package/dist/components/MenuSearch/index.d.ts +2 -0
- package/dist/components/QuickDocButton/index.d.ts +5 -1
- package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
- package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
- package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
- package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
- package/dist/components/exception/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
- package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
- package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/use_fetus.d.ts +33 -0
- package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
- package/dist/curve/components/Pregnogram/index.d.ts +11 -0
- package/dist/curve/components/api.d.ts +17 -0
- package/dist/curve/components-new/BmiCanvas/index.d.ts +23 -0
- package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvas/index.d.ts +19 -0
- package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +21 -0
- package/dist/curve/components-new/Pregnogram/index.d.ts +13 -0
- package/dist/curve/data.d.ts +125 -0
- package/dist/curve/func.d.ts +12 -0
- package/dist/curve/func.test.d.ts +1 -0
- package/dist/curve/index.d.ts +7 -0
- package/dist/curve/intro-steps.d.ts +7 -0
- package/dist/curve/utils.d.ts +8 -0
- package/dist/form_config/conceiveMode.d.ts +2 -0
- package/dist/form_config/index.d.ts +4 -0
- package/dist/form_config/mlUltrasounds.d.ts +2 -0
- package/dist/form_config/not_yes_input.d.ts +4 -0
- package/dist/form_config/pressure.d.ts +4 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use_duck_form.d.ts +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -33
- package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
- package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
- package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +7 -1
- package/dist/modals/entries/box/index.d.ts +6 -0
- package/dist/modals/entries/modal_form/index.d.ts +1 -1
- package/dist/modals/entries/result_template/index.d.ts +24 -0
- package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
- package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
- package/dist/modals/entries/template_modal3/index.d.ts +6 -3
- package/dist/modals/entries/text_search/index.d.ts +1 -1
- package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
- package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/utils.d.ts +5 -0
- package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/History.d.ts +10 -0
- package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/index.d.ts +9 -0
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +2 -1
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +3 -3
- package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +4 -5
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +1 -1
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/Tag.d.ts +12 -0
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/utils.d.ts +8 -0
- package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
- package/dist/modals/index.d.ts +4 -1
- package/dist/modals/meta.d.ts +4 -1
- package/dist/pages/doc_record/index.d.ts +1 -1
- package/dist/pages/index.d.ts +1 -0
- package/dist/pages/questionnaire/Inner.d.ts +4 -0
- package/dist/pages/questionnaire/Qn.d.ts +3 -0
- package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
- package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
- package/dist/pages/questionnaire/create/common.d.ts +46 -0
- package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
- package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
- package/dist/pages/questionnaire/create/step1.d.ts +12 -0
- package/dist/pages/questionnaire/create/step2.d.ts +10 -0
- package/dist/pages/questionnaire/create/step3.d.ts +8 -0
- package/dist/pages/questionnaire/create/step4.d.ts +8 -0
- package/dist/pages/questionnaire/index.d.ts +3 -0
- package/dist/pages/questionnaire/types.d.ts +10 -0
- package/dist/utils/helper.d.ts +5 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +34 -16
- package/dist/a_chunks/.root.js +0 -245
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js +0 -474
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js +0 -200
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js +0 -58
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js +0 -76
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js +0 -281
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root4.js +0 -629
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root6.js +0 -164
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root9.js +0 -69
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/extends.js +0 -11
- package/dist/a_chunks/extends.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
- package/dist/index.js.map +0 -1
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
|
@@ -0,0 +1,1907 @@
|
|
|
1
|
+
import { MyIcon } from '@lm_fe/components';
|
|
2
|
+
import { Radio, Space, Button, Modal } from 'antd';
|
|
3
|
+
import { set, get, forEach } from 'lodash';
|
|
4
|
+
import React, { useState, useEffect } from 'react';
|
|
5
|
+
import ReactToPrint from 'react-to-print';
|
|
6
|
+
import { h as getLineArea, d as get_canvas_el, e as draw_info, s as setVerRules, f as setHorRules, p as printCanvas, j as judgeAreas, b as get_fetus_color, c as get_abnormal_color } from './func.js';
|
|
7
|
+
import { u as use_fetus, F as FetuGrowsEdit } from './use_fetus.js';
|
|
8
|
+
import { s as styleInject } from './index.js';
|
|
9
|
+
import '@lm_fe/components_m';
|
|
10
|
+
import '@lm_fe/env';
|
|
11
|
+
import '@lm_fe/service';
|
|
12
|
+
import '@lm_fe/utils';
|
|
13
|
+
import '@lm_fe/provoke';
|
|
14
|
+
import 'classnames';
|
|
15
|
+
var bpdData = {
|
|
16
|
+
bottomLine: [{
|
|
17
|
+
x: 9,
|
|
18
|
+
y: 39.6
|
|
19
|
+
}, {
|
|
20
|
+
x: 10,
|
|
21
|
+
y: 42.6
|
|
22
|
+
}, {
|
|
23
|
+
x: 11,
|
|
24
|
+
y: 45.6
|
|
25
|
+
}, {
|
|
26
|
+
x: 12,
|
|
27
|
+
y: 48.6
|
|
28
|
+
}, {
|
|
29
|
+
x: 13,
|
|
30
|
+
y: 51.6
|
|
31
|
+
}, {
|
|
32
|
+
x: 14,
|
|
33
|
+
y: 54.7
|
|
34
|
+
}, {
|
|
35
|
+
x: 15,
|
|
36
|
+
y: 57.7
|
|
37
|
+
}, {
|
|
38
|
+
x: 16,
|
|
39
|
+
y: 60.6
|
|
40
|
+
}, {
|
|
41
|
+
x: 17,
|
|
42
|
+
y: 63.5
|
|
43
|
+
}, {
|
|
44
|
+
x: 18,
|
|
45
|
+
y: 66.3
|
|
46
|
+
}, {
|
|
47
|
+
x: 19,
|
|
48
|
+
y: 69.0
|
|
49
|
+
}, {
|
|
50
|
+
x: 20,
|
|
51
|
+
y: 71.5
|
|
52
|
+
}, {
|
|
53
|
+
x: 21,
|
|
54
|
+
y: 73.9
|
|
55
|
+
}, {
|
|
56
|
+
x: 22,
|
|
57
|
+
y: 76.2
|
|
58
|
+
}, {
|
|
59
|
+
x: 23,
|
|
60
|
+
y: 78.3
|
|
61
|
+
}, {
|
|
62
|
+
x: 24,
|
|
63
|
+
y: 80.2
|
|
64
|
+
}, {
|
|
65
|
+
x: 25,
|
|
66
|
+
y: 81.9
|
|
67
|
+
}, {
|
|
68
|
+
x: 26,
|
|
69
|
+
y: 83.5
|
|
70
|
+
}, {
|
|
71
|
+
x: 27,
|
|
72
|
+
y: 84.8
|
|
73
|
+
}, {
|
|
74
|
+
x: 28,
|
|
75
|
+
y: 86
|
|
76
|
+
}, {
|
|
77
|
+
x: 29,
|
|
78
|
+
y: 87
|
|
79
|
+
}, {
|
|
80
|
+
x: 30,
|
|
81
|
+
y: 87.7
|
|
82
|
+
}],
|
|
83
|
+
middleLine: [{
|
|
84
|
+
x: 9,
|
|
85
|
+
y: 43.1
|
|
86
|
+
}, {
|
|
87
|
+
x: 10,
|
|
88
|
+
y: 46.1
|
|
89
|
+
}, {
|
|
90
|
+
x: 11,
|
|
91
|
+
y: 49.2
|
|
92
|
+
}, {
|
|
93
|
+
x: 12,
|
|
94
|
+
y: 52.3
|
|
95
|
+
}, {
|
|
96
|
+
x: 13,
|
|
97
|
+
y: 55.5
|
|
98
|
+
}, {
|
|
99
|
+
x: 14,
|
|
100
|
+
y: 58.6
|
|
101
|
+
}, {
|
|
102
|
+
x: 15,
|
|
103
|
+
y: 61.7
|
|
104
|
+
}, {
|
|
105
|
+
x: 16,
|
|
106
|
+
y: 64.7
|
|
107
|
+
}, {
|
|
108
|
+
x: 17,
|
|
109
|
+
y: 67.7
|
|
110
|
+
}, {
|
|
111
|
+
x: 18,
|
|
112
|
+
y: 70.6
|
|
113
|
+
}, {
|
|
114
|
+
x: 19,
|
|
115
|
+
y: 73.3
|
|
116
|
+
}, {
|
|
117
|
+
x: 20,
|
|
118
|
+
y: 76.0
|
|
119
|
+
}, {
|
|
120
|
+
x: 21,
|
|
121
|
+
y: 78.5
|
|
122
|
+
}, {
|
|
123
|
+
x: 22,
|
|
124
|
+
y: 80.8
|
|
125
|
+
}, {
|
|
126
|
+
x: 23,
|
|
127
|
+
y: 83.0
|
|
128
|
+
}, {
|
|
129
|
+
x: 24,
|
|
130
|
+
y: 85.0
|
|
131
|
+
}, {
|
|
132
|
+
x: 25,
|
|
133
|
+
y: 86.8
|
|
134
|
+
}, {
|
|
135
|
+
x: 26,
|
|
136
|
+
y: 88.5
|
|
137
|
+
}, {
|
|
138
|
+
x: 27,
|
|
139
|
+
y: 89.9
|
|
140
|
+
}, {
|
|
141
|
+
x: 28,
|
|
142
|
+
y: 91.1
|
|
143
|
+
}, {
|
|
144
|
+
x: 29,
|
|
145
|
+
y: 92.1
|
|
146
|
+
}, {
|
|
147
|
+
x: 30,
|
|
148
|
+
y: 93.0
|
|
149
|
+
}],
|
|
150
|
+
topLine: [{
|
|
151
|
+
x: 9,
|
|
152
|
+
y: 46.8
|
|
153
|
+
}, {
|
|
154
|
+
x: 10,
|
|
155
|
+
y: 49.9
|
|
156
|
+
}, {
|
|
157
|
+
x: 11,
|
|
158
|
+
y: 53.1
|
|
159
|
+
}, {
|
|
160
|
+
x: 12,
|
|
161
|
+
y: 56.4
|
|
162
|
+
}, {
|
|
163
|
+
x: 13,
|
|
164
|
+
y: 59.6
|
|
165
|
+
}, {
|
|
166
|
+
x: 14,
|
|
167
|
+
y: 62.8
|
|
168
|
+
}, {
|
|
169
|
+
x: 15,
|
|
170
|
+
y: 66.0
|
|
171
|
+
}, {
|
|
172
|
+
x: 16,
|
|
173
|
+
y: 69.1
|
|
174
|
+
}, {
|
|
175
|
+
x: 17,
|
|
176
|
+
y: 72.2
|
|
177
|
+
}, {
|
|
178
|
+
x: 18,
|
|
179
|
+
y: 75.1
|
|
180
|
+
}, {
|
|
181
|
+
x: 19,
|
|
182
|
+
y: 78.0
|
|
183
|
+
}, {
|
|
184
|
+
x: 20,
|
|
185
|
+
y: 80.7
|
|
186
|
+
}, {
|
|
187
|
+
x: 21,
|
|
188
|
+
y: 83.3
|
|
189
|
+
}, {
|
|
190
|
+
x: 22,
|
|
191
|
+
y: 85.7
|
|
192
|
+
}, {
|
|
193
|
+
x: 23,
|
|
194
|
+
y: 88.0
|
|
195
|
+
}, {
|
|
196
|
+
x: 24,
|
|
197
|
+
y: 90.1
|
|
198
|
+
}, {
|
|
199
|
+
x: 25,
|
|
200
|
+
y: 92.0
|
|
201
|
+
}, {
|
|
202
|
+
x: 26,
|
|
203
|
+
y: 93.7
|
|
204
|
+
}, {
|
|
205
|
+
x: 27,
|
|
206
|
+
y: 95.3
|
|
207
|
+
}, {
|
|
208
|
+
x: 28,
|
|
209
|
+
y: 96.6
|
|
210
|
+
}, {
|
|
211
|
+
x: 29,
|
|
212
|
+
y: 97.7
|
|
213
|
+
}, {
|
|
214
|
+
x: 30,
|
|
215
|
+
y: 98.6
|
|
216
|
+
}]
|
|
217
|
+
};
|
|
218
|
+
set(bpdData, 'lineArea', getLineArea(get(bpdData, 'bottomLine'), get(bpdData, 'topLine')));
|
|
219
|
+
var flData = {
|
|
220
|
+
bottomLine: [{
|
|
221
|
+
x: 0,
|
|
222
|
+
y: 1.8
|
|
223
|
+
}, {
|
|
224
|
+
x: 1,
|
|
225
|
+
y: 3.2
|
|
226
|
+
}, {
|
|
227
|
+
x: 2,
|
|
228
|
+
y: 5.1
|
|
229
|
+
}, {
|
|
230
|
+
x: 3,
|
|
231
|
+
y: 7.6
|
|
232
|
+
}, {
|
|
233
|
+
x: 4,
|
|
234
|
+
y: 10.5
|
|
235
|
+
}, {
|
|
236
|
+
x: 5,
|
|
237
|
+
y: 13.6
|
|
238
|
+
}, {
|
|
239
|
+
x: 6,
|
|
240
|
+
y: 16.8
|
|
241
|
+
}, {
|
|
242
|
+
x: 7,
|
|
243
|
+
y: 19.8
|
|
244
|
+
}, {
|
|
245
|
+
x: 8,
|
|
246
|
+
y: 22.6
|
|
247
|
+
}, {
|
|
248
|
+
x: 9,
|
|
249
|
+
y: 25.3
|
|
250
|
+
}, {
|
|
251
|
+
x: 10,
|
|
252
|
+
y: 28.0
|
|
253
|
+
}, {
|
|
254
|
+
x: 11,
|
|
255
|
+
y: 30.7
|
|
256
|
+
}, {
|
|
257
|
+
x: 12,
|
|
258
|
+
y: 33.4
|
|
259
|
+
}, {
|
|
260
|
+
x: 13,
|
|
261
|
+
y: 36.0
|
|
262
|
+
}, {
|
|
263
|
+
x: 14,
|
|
264
|
+
y: 38.6
|
|
265
|
+
}, {
|
|
266
|
+
x: 15,
|
|
267
|
+
y: 41.0
|
|
268
|
+
}, {
|
|
269
|
+
x: 16,
|
|
270
|
+
y: 43.4
|
|
271
|
+
}, {
|
|
272
|
+
x: 17,
|
|
273
|
+
y: 45.7
|
|
274
|
+
}, {
|
|
275
|
+
x: 18,
|
|
276
|
+
y: 47.8
|
|
277
|
+
}, {
|
|
278
|
+
x: 19,
|
|
279
|
+
y: 49.9
|
|
280
|
+
}, {
|
|
281
|
+
x: 20,
|
|
282
|
+
y: 51.9
|
|
283
|
+
}, {
|
|
284
|
+
x: 21,
|
|
285
|
+
y: 53.9
|
|
286
|
+
}, {
|
|
287
|
+
x: 22,
|
|
288
|
+
y: 55.7
|
|
289
|
+
}, {
|
|
290
|
+
x: 23,
|
|
291
|
+
y: 57.5
|
|
292
|
+
}, {
|
|
293
|
+
x: 24,
|
|
294
|
+
y: 59.2
|
|
295
|
+
}, {
|
|
296
|
+
x: 25,
|
|
297
|
+
y: 60.9
|
|
298
|
+
}, {
|
|
299
|
+
x: 26,
|
|
300
|
+
y: 62.4
|
|
301
|
+
}, {
|
|
302
|
+
x: 27,
|
|
303
|
+
y: 63.9
|
|
304
|
+
}, {
|
|
305
|
+
x: 28,
|
|
306
|
+
y: 65.3
|
|
307
|
+
}, {
|
|
308
|
+
x: 29,
|
|
309
|
+
y: 66.6
|
|
310
|
+
}, {
|
|
311
|
+
x: 30,
|
|
312
|
+
y: 67.7
|
|
313
|
+
}],
|
|
314
|
+
middleLine: [{
|
|
315
|
+
x: 0,
|
|
316
|
+
y: 2.2
|
|
317
|
+
}, {
|
|
318
|
+
x: 1,
|
|
319
|
+
y: 3.8
|
|
320
|
+
}, {
|
|
321
|
+
x: 2,
|
|
322
|
+
y: 6.1
|
|
323
|
+
}, {
|
|
324
|
+
x: 3,
|
|
325
|
+
y: 8.9
|
|
326
|
+
}, {
|
|
327
|
+
x: 4,
|
|
328
|
+
y: 12.2
|
|
329
|
+
}, {
|
|
330
|
+
x: 5,
|
|
331
|
+
y: 15.7
|
|
332
|
+
}, {
|
|
333
|
+
x: 6,
|
|
334
|
+
y: 19.1
|
|
335
|
+
}, {
|
|
336
|
+
x: 7,
|
|
337
|
+
y: 22.4
|
|
338
|
+
}, {
|
|
339
|
+
x: 8,
|
|
340
|
+
y: 25.4
|
|
341
|
+
}, {
|
|
342
|
+
x: 9,
|
|
343
|
+
y: 28.2
|
|
344
|
+
}, {
|
|
345
|
+
x: 10,
|
|
346
|
+
y: 31.0
|
|
347
|
+
}, {
|
|
348
|
+
x: 11,
|
|
349
|
+
y: 33.8
|
|
350
|
+
}, {
|
|
351
|
+
x: 12,
|
|
352
|
+
y: 36.5
|
|
353
|
+
}, {
|
|
354
|
+
x: 13,
|
|
355
|
+
y: 39.1
|
|
356
|
+
}, {
|
|
357
|
+
x: 14,
|
|
358
|
+
y: 41.7
|
|
359
|
+
}, {
|
|
360
|
+
x: 15,
|
|
361
|
+
y: 44.2
|
|
362
|
+
}, {
|
|
363
|
+
x: 16,
|
|
364
|
+
y: 46.6
|
|
365
|
+
}, {
|
|
366
|
+
x: 17,
|
|
367
|
+
y: 49.0
|
|
368
|
+
}, {
|
|
369
|
+
x: 18,
|
|
370
|
+
y: 51.2
|
|
371
|
+
}, {
|
|
372
|
+
x: 19,
|
|
373
|
+
y: 53.4
|
|
374
|
+
}, {
|
|
375
|
+
x: 20,
|
|
376
|
+
y: 55.5
|
|
377
|
+
}, {
|
|
378
|
+
x: 21,
|
|
379
|
+
y: 57.5
|
|
380
|
+
}, {
|
|
381
|
+
x: 22,
|
|
382
|
+
y: 59.5
|
|
383
|
+
}, {
|
|
384
|
+
x: 23,
|
|
385
|
+
y: 61.4
|
|
386
|
+
}, {
|
|
387
|
+
x: 24,
|
|
388
|
+
y: 63.2
|
|
389
|
+
}, {
|
|
390
|
+
x: 25,
|
|
391
|
+
y: 65.0
|
|
392
|
+
}, {
|
|
393
|
+
x: 26,
|
|
394
|
+
y: 66.7
|
|
395
|
+
}, {
|
|
396
|
+
x: 27,
|
|
397
|
+
y: 68.3
|
|
398
|
+
}, {
|
|
399
|
+
x: 28,
|
|
400
|
+
y: 69.7
|
|
401
|
+
}, {
|
|
402
|
+
x: 29,
|
|
403
|
+
y: 71.1
|
|
404
|
+
}, {
|
|
405
|
+
x: 30,
|
|
406
|
+
y: 72.4
|
|
407
|
+
}],
|
|
408
|
+
topLine: [{
|
|
409
|
+
x: 0,
|
|
410
|
+
y: 2.6
|
|
411
|
+
}, {
|
|
412
|
+
x: 1,
|
|
413
|
+
y: 4.6
|
|
414
|
+
}, {
|
|
415
|
+
x: 2,
|
|
416
|
+
y: 7.21
|
|
417
|
+
}, {
|
|
418
|
+
x: 3,
|
|
419
|
+
y: 10.5
|
|
420
|
+
}, {
|
|
421
|
+
x: 4,
|
|
422
|
+
y: 14.2
|
|
423
|
+
}, {
|
|
424
|
+
x: 5,
|
|
425
|
+
y: 18.1
|
|
426
|
+
}, {
|
|
427
|
+
x: 6,
|
|
428
|
+
y: 21.9
|
|
429
|
+
}, {
|
|
430
|
+
x: 7,
|
|
431
|
+
y: 25.4
|
|
432
|
+
}, {
|
|
433
|
+
x: 8,
|
|
434
|
+
y: 28.5
|
|
435
|
+
}, {
|
|
436
|
+
x: 9,
|
|
437
|
+
y: 31.5
|
|
438
|
+
}, {
|
|
439
|
+
x: 10,
|
|
440
|
+
y: 34.3
|
|
441
|
+
}, {
|
|
442
|
+
x: 11,
|
|
443
|
+
y: 37.1
|
|
444
|
+
}, {
|
|
445
|
+
x: 12,
|
|
446
|
+
y: 39.9
|
|
447
|
+
}, {
|
|
448
|
+
x: 13,
|
|
449
|
+
y: 42.5
|
|
450
|
+
}, {
|
|
451
|
+
x: 14,
|
|
452
|
+
y: 45.1
|
|
453
|
+
}, {
|
|
454
|
+
x: 15,
|
|
455
|
+
y: 47.7
|
|
456
|
+
}, {
|
|
457
|
+
x: 16,
|
|
458
|
+
y: 50.1
|
|
459
|
+
}, {
|
|
460
|
+
x: 17,
|
|
461
|
+
y: 52.5
|
|
462
|
+
}, {
|
|
463
|
+
x: 18,
|
|
464
|
+
y: 54.8
|
|
465
|
+
}, {
|
|
466
|
+
x: 19,
|
|
467
|
+
y: 57.1
|
|
468
|
+
}, {
|
|
469
|
+
x: 20,
|
|
470
|
+
y: 59.3
|
|
471
|
+
}, {
|
|
472
|
+
x: 21,
|
|
473
|
+
y: 61.4
|
|
474
|
+
}, {
|
|
475
|
+
x: 22,
|
|
476
|
+
y: 63.5
|
|
477
|
+
}, {
|
|
478
|
+
x: 23,
|
|
479
|
+
y: 65.6
|
|
480
|
+
}, {
|
|
481
|
+
x: 24,
|
|
482
|
+
y: 67.5
|
|
483
|
+
}, {
|
|
484
|
+
x: 25,
|
|
485
|
+
y: 69.4
|
|
486
|
+
}, {
|
|
487
|
+
x: 26,
|
|
488
|
+
y: 71.2
|
|
489
|
+
}, {
|
|
490
|
+
x: 27,
|
|
491
|
+
y: 72.9
|
|
492
|
+
}, {
|
|
493
|
+
x: 28,
|
|
494
|
+
y: 74.5
|
|
495
|
+
}, {
|
|
496
|
+
x: 29,
|
|
497
|
+
y: 76.0
|
|
498
|
+
}, {
|
|
499
|
+
x: 30,
|
|
500
|
+
y: 77.4
|
|
501
|
+
}]
|
|
502
|
+
};
|
|
503
|
+
set(flData, 'lineArea', getLineArea(get(flData, 'bottomLine'), get(flData, 'topLine')));
|
|
504
|
+
var acData = {
|
|
505
|
+
bottomLine: [{
|
|
506
|
+
x: 4,
|
|
507
|
+
y: 7.18
|
|
508
|
+
}, {
|
|
509
|
+
x: 5,
|
|
510
|
+
y: 8.3
|
|
511
|
+
}, {
|
|
512
|
+
x: 6,
|
|
513
|
+
y: 9.43
|
|
514
|
+
}, {
|
|
515
|
+
x: 7,
|
|
516
|
+
y: 10.57
|
|
517
|
+
}, {
|
|
518
|
+
x: 8,
|
|
519
|
+
y: 11.7
|
|
520
|
+
}, {
|
|
521
|
+
x: 9,
|
|
522
|
+
y: 12.81
|
|
523
|
+
}, {
|
|
524
|
+
x: 10,
|
|
525
|
+
y: 13.92
|
|
526
|
+
}, {
|
|
527
|
+
x: 11,
|
|
528
|
+
y: 15.02
|
|
529
|
+
}, {
|
|
530
|
+
x: 12,
|
|
531
|
+
y: 16.1
|
|
532
|
+
}, {
|
|
533
|
+
x: 13,
|
|
534
|
+
y: 17.15
|
|
535
|
+
}, {
|
|
536
|
+
x: 14,
|
|
537
|
+
y: 18.18
|
|
538
|
+
}, {
|
|
539
|
+
x: 15,
|
|
540
|
+
y: 19.19
|
|
541
|
+
}, {
|
|
542
|
+
x: 16,
|
|
543
|
+
y: 20.18
|
|
544
|
+
}, {
|
|
545
|
+
x: 17,
|
|
546
|
+
y: 21.15
|
|
547
|
+
}, {
|
|
548
|
+
x: 18,
|
|
549
|
+
y: 22.12
|
|
550
|
+
}, {
|
|
551
|
+
x: 19,
|
|
552
|
+
y: 23.09
|
|
553
|
+
}, {
|
|
554
|
+
x: 20,
|
|
555
|
+
y: 24.08
|
|
556
|
+
}, {
|
|
557
|
+
x: 21,
|
|
558
|
+
y: 25.05
|
|
559
|
+
}, {
|
|
560
|
+
x: 22,
|
|
561
|
+
y: 26.02
|
|
562
|
+
}, {
|
|
563
|
+
x: 23,
|
|
564
|
+
y: 26.96
|
|
565
|
+
}, {
|
|
566
|
+
x: 24,
|
|
567
|
+
y: 27.87
|
|
568
|
+
}, {
|
|
569
|
+
x: 25,
|
|
570
|
+
y: 28.73
|
|
571
|
+
}, {
|
|
572
|
+
x: 26,
|
|
573
|
+
y: 29.54
|
|
574
|
+
}, {
|
|
575
|
+
x: 27,
|
|
576
|
+
y: 30.31
|
|
577
|
+
}, {
|
|
578
|
+
x: 28,
|
|
579
|
+
y: 31.06
|
|
580
|
+
}, {
|
|
581
|
+
x: 29,
|
|
582
|
+
y: 31.79
|
|
583
|
+
}, {
|
|
584
|
+
x: 30,
|
|
585
|
+
y: 32.52
|
|
586
|
+
}],
|
|
587
|
+
middleLine: [{
|
|
588
|
+
x: 4,
|
|
589
|
+
y: 7.84
|
|
590
|
+
}, {
|
|
591
|
+
x: 5,
|
|
592
|
+
y: 9.04
|
|
593
|
+
}, {
|
|
594
|
+
x: 6,
|
|
595
|
+
y: 10.25
|
|
596
|
+
}, {
|
|
597
|
+
x: 7,
|
|
598
|
+
y: 11.45
|
|
599
|
+
}, {
|
|
600
|
+
x: 8,
|
|
601
|
+
y: 12.63
|
|
602
|
+
}, {
|
|
603
|
+
x: 9,
|
|
604
|
+
y: 13.8
|
|
605
|
+
}, {
|
|
606
|
+
x: 10,
|
|
607
|
+
y: 14.96
|
|
608
|
+
}, {
|
|
609
|
+
x: 11,
|
|
610
|
+
y: 16.11
|
|
611
|
+
}, {
|
|
612
|
+
x: 12,
|
|
613
|
+
y: 17.24
|
|
614
|
+
}, {
|
|
615
|
+
x: 13,
|
|
616
|
+
y: 18.34
|
|
617
|
+
}, {
|
|
618
|
+
x: 14,
|
|
619
|
+
y: 19.43
|
|
620
|
+
}, {
|
|
621
|
+
x: 15,
|
|
622
|
+
y: 20.49
|
|
623
|
+
}, {
|
|
624
|
+
x: 16,
|
|
625
|
+
y: 21.54
|
|
626
|
+
}, {
|
|
627
|
+
x: 17,
|
|
628
|
+
y: 22.58
|
|
629
|
+
}, {
|
|
630
|
+
x: 18,
|
|
631
|
+
y: 23.61
|
|
632
|
+
}, {
|
|
633
|
+
x: 19,
|
|
634
|
+
y: 24.67
|
|
635
|
+
}, {
|
|
636
|
+
x: 20,
|
|
637
|
+
y: 25.73
|
|
638
|
+
}, {
|
|
639
|
+
x: 21,
|
|
640
|
+
y: 26.8
|
|
641
|
+
}, {
|
|
642
|
+
x: 22,
|
|
643
|
+
y: 27.87
|
|
644
|
+
}, {
|
|
645
|
+
x: 23,
|
|
646
|
+
y: 28.91
|
|
647
|
+
}, {
|
|
648
|
+
x: 24,
|
|
649
|
+
y: 29.93
|
|
650
|
+
}, {
|
|
651
|
+
x: 25,
|
|
652
|
+
y: 30.9
|
|
653
|
+
}, {
|
|
654
|
+
x: 26,
|
|
655
|
+
y: 31.83
|
|
656
|
+
}, {
|
|
657
|
+
x: 27,
|
|
658
|
+
y: 32.72
|
|
659
|
+
}, {
|
|
660
|
+
x: 28,
|
|
661
|
+
y: 33.59
|
|
662
|
+
}, {
|
|
663
|
+
x: 29,
|
|
664
|
+
y: 34.45
|
|
665
|
+
}, {
|
|
666
|
+
x: 30,
|
|
667
|
+
y: 35.33
|
|
668
|
+
}],
|
|
669
|
+
topLine: [{
|
|
670
|
+
x: 4,
|
|
671
|
+
y: 8.57
|
|
672
|
+
}, {
|
|
673
|
+
x: 5,
|
|
674
|
+
y: 9.85
|
|
675
|
+
}, {
|
|
676
|
+
x: 6,
|
|
677
|
+
y: 11.13
|
|
678
|
+
}, {
|
|
679
|
+
x: 7,
|
|
680
|
+
y: 12.39
|
|
681
|
+
}, {
|
|
682
|
+
x: 8,
|
|
683
|
+
y: 13.64
|
|
684
|
+
}, {
|
|
685
|
+
x: 9,
|
|
686
|
+
y: 14.87
|
|
687
|
+
}, {
|
|
688
|
+
x: 10,
|
|
689
|
+
y: 16.08
|
|
690
|
+
}, {
|
|
691
|
+
x: 11,
|
|
692
|
+
y: 17.28
|
|
693
|
+
}, {
|
|
694
|
+
x: 12,
|
|
695
|
+
y: 18.46
|
|
696
|
+
}, {
|
|
697
|
+
x: 13,
|
|
698
|
+
y: 19.62
|
|
699
|
+
}, {
|
|
700
|
+
x: 14,
|
|
701
|
+
y: 20.76
|
|
702
|
+
}, {
|
|
703
|
+
x: 15,
|
|
704
|
+
y: 21.88
|
|
705
|
+
}, {
|
|
706
|
+
x: 16,
|
|
707
|
+
y: 22.99
|
|
708
|
+
}, {
|
|
709
|
+
x: 17,
|
|
710
|
+
y: 24.1
|
|
711
|
+
}, {
|
|
712
|
+
x: 18,
|
|
713
|
+
y: 25.21
|
|
714
|
+
}, {
|
|
715
|
+
x: 19,
|
|
716
|
+
y: 26.34
|
|
717
|
+
}, {
|
|
718
|
+
x: 20,
|
|
719
|
+
y: 27.5
|
|
720
|
+
}, {
|
|
721
|
+
x: 21,
|
|
722
|
+
y: 28.67
|
|
723
|
+
}, {
|
|
724
|
+
x: 22,
|
|
725
|
+
y: 29.85
|
|
726
|
+
}, {
|
|
727
|
+
x: 23,
|
|
728
|
+
y: 31.01
|
|
729
|
+
}, {
|
|
730
|
+
x: 24,
|
|
731
|
+
y: 32.14
|
|
732
|
+
}, {
|
|
733
|
+
x: 25,
|
|
734
|
+
y: 33.24
|
|
735
|
+
}, {
|
|
736
|
+
x: 26,
|
|
737
|
+
y: 34.29
|
|
738
|
+
}, {
|
|
739
|
+
x: 27,
|
|
740
|
+
y: 35.32
|
|
741
|
+
}, {
|
|
742
|
+
x: 28,
|
|
743
|
+
y: 36.32
|
|
744
|
+
}, {
|
|
745
|
+
x: 29,
|
|
746
|
+
y: 37.34
|
|
747
|
+
}, {
|
|
748
|
+
x: 30,
|
|
749
|
+
y: 38.33
|
|
750
|
+
}]
|
|
751
|
+
};
|
|
752
|
+
set(acData, 'lineArea', getLineArea(get(acData, 'bottomLine'), get(acData, 'topLine')));
|
|
753
|
+
var hcData = {
|
|
754
|
+
bottomLine: [{
|
|
755
|
+
x: 4,
|
|
756
|
+
y: 8.99
|
|
757
|
+
}, {
|
|
758
|
+
x: 5,
|
|
759
|
+
y: 10.25
|
|
760
|
+
}, {
|
|
761
|
+
x: 6,
|
|
762
|
+
y: 11.47
|
|
763
|
+
}, {
|
|
764
|
+
x: 7,
|
|
765
|
+
y: 12.66
|
|
766
|
+
}, {
|
|
767
|
+
x: 8,
|
|
768
|
+
y: 13.81
|
|
769
|
+
}, {
|
|
770
|
+
x: 9,
|
|
771
|
+
y: 14.94
|
|
772
|
+
}, {
|
|
773
|
+
x: 10,
|
|
774
|
+
y: 16.08
|
|
775
|
+
}, {
|
|
776
|
+
x: 11,
|
|
777
|
+
y: 17.23
|
|
778
|
+
}, {
|
|
779
|
+
x: 12,
|
|
780
|
+
y: 18.39
|
|
781
|
+
}, {
|
|
782
|
+
x: 13,
|
|
783
|
+
y: 19.53
|
|
784
|
+
}, {
|
|
785
|
+
x: 14,
|
|
786
|
+
y: 20.66
|
|
787
|
+
}, {
|
|
788
|
+
x: 15,
|
|
789
|
+
y: 21.77
|
|
790
|
+
}, {
|
|
791
|
+
x: 16,
|
|
792
|
+
y: 22.84
|
|
793
|
+
}, {
|
|
794
|
+
x: 17,
|
|
795
|
+
y: 23.88
|
|
796
|
+
}, {
|
|
797
|
+
x: 18,
|
|
798
|
+
y: 24.86
|
|
799
|
+
}, {
|
|
800
|
+
x: 19,
|
|
801
|
+
y: 25.79
|
|
802
|
+
}, {
|
|
803
|
+
x: 20,
|
|
804
|
+
y: 26.66
|
|
805
|
+
}, {
|
|
806
|
+
x: 21,
|
|
807
|
+
y: 27.47
|
|
808
|
+
}, {
|
|
809
|
+
x: 22,
|
|
810
|
+
y: 28.21
|
|
811
|
+
}, {
|
|
812
|
+
x: 23,
|
|
813
|
+
y: 28.88
|
|
814
|
+
}, {
|
|
815
|
+
x: 24,
|
|
816
|
+
y: 29.49
|
|
817
|
+
}, {
|
|
818
|
+
x: 25,
|
|
819
|
+
y: 30.03
|
|
820
|
+
}, {
|
|
821
|
+
x: 26,
|
|
822
|
+
y: 30.5
|
|
823
|
+
}, {
|
|
824
|
+
x: 27,
|
|
825
|
+
y: 30.9
|
|
826
|
+
}, {
|
|
827
|
+
x: 28,
|
|
828
|
+
y: 31.22
|
|
829
|
+
}, {
|
|
830
|
+
x: 29,
|
|
831
|
+
y: 31.45
|
|
832
|
+
}, {
|
|
833
|
+
x: 30,
|
|
834
|
+
y: 31.59
|
|
835
|
+
}],
|
|
836
|
+
middleLine: [{
|
|
837
|
+
x: 4,
|
|
838
|
+
y: 9.73
|
|
839
|
+
}, {
|
|
840
|
+
x: 5,
|
|
841
|
+
y: 11.05
|
|
842
|
+
}, {
|
|
843
|
+
x: 6,
|
|
844
|
+
y: 12.33
|
|
845
|
+
}, {
|
|
846
|
+
x: 7,
|
|
847
|
+
y: 13.56
|
|
848
|
+
}, {
|
|
849
|
+
x: 8,
|
|
850
|
+
y: 14.75
|
|
851
|
+
}, {
|
|
852
|
+
x: 9,
|
|
853
|
+
y: 15.9
|
|
854
|
+
}, {
|
|
855
|
+
x: 10,
|
|
856
|
+
y: 17.07
|
|
857
|
+
}, {
|
|
858
|
+
x: 11,
|
|
859
|
+
y: 18.24
|
|
860
|
+
}, {
|
|
861
|
+
x: 12,
|
|
862
|
+
y: 19.4
|
|
863
|
+
}, {
|
|
864
|
+
x: 13,
|
|
865
|
+
y: 20.57
|
|
866
|
+
}, {
|
|
867
|
+
x: 14,
|
|
868
|
+
y: 21.71
|
|
869
|
+
}, {
|
|
870
|
+
x: 15,
|
|
871
|
+
y: 22.83
|
|
872
|
+
}, {
|
|
873
|
+
x: 16,
|
|
874
|
+
y: 23.92
|
|
875
|
+
}, {
|
|
876
|
+
x: 17,
|
|
877
|
+
y: 24.97
|
|
878
|
+
}, {
|
|
879
|
+
x: 18,
|
|
880
|
+
y: 25.98
|
|
881
|
+
}, {
|
|
882
|
+
x: 19,
|
|
883
|
+
y: 26.93
|
|
884
|
+
}, {
|
|
885
|
+
x: 20,
|
|
886
|
+
y: 27.83
|
|
887
|
+
}, {
|
|
888
|
+
x: 21,
|
|
889
|
+
y: 28.67
|
|
890
|
+
}, {
|
|
891
|
+
x: 22,
|
|
892
|
+
y: 29.45
|
|
893
|
+
}, {
|
|
894
|
+
x: 23,
|
|
895
|
+
y: 30.17
|
|
896
|
+
}, {
|
|
897
|
+
x: 24,
|
|
898
|
+
y: 30.83
|
|
899
|
+
}, {
|
|
900
|
+
x: 25,
|
|
901
|
+
y: 31.42
|
|
902
|
+
}, {
|
|
903
|
+
x: 26,
|
|
904
|
+
y: 31.95
|
|
905
|
+
}, {
|
|
906
|
+
x: 27,
|
|
907
|
+
y: 32.41
|
|
908
|
+
}, {
|
|
909
|
+
x: 28,
|
|
910
|
+
y: 32.78
|
|
911
|
+
}, {
|
|
912
|
+
x: 29,
|
|
913
|
+
y: 33.07
|
|
914
|
+
}, {
|
|
915
|
+
x: 30,
|
|
916
|
+
y: 33.26
|
|
917
|
+
}],
|
|
918
|
+
topLine: [{
|
|
919
|
+
x: 4,
|
|
920
|
+
y: 10.53
|
|
921
|
+
}, {
|
|
922
|
+
x: 5,
|
|
923
|
+
y: 11.92
|
|
924
|
+
}, {
|
|
925
|
+
x: 6,
|
|
926
|
+
y: 13.26
|
|
927
|
+
}, {
|
|
928
|
+
x: 7,
|
|
929
|
+
y: 14.53
|
|
930
|
+
}, {
|
|
931
|
+
x: 8,
|
|
932
|
+
y: 15.74
|
|
933
|
+
}, {
|
|
934
|
+
x: 9,
|
|
935
|
+
y: 16.93
|
|
936
|
+
}, {
|
|
937
|
+
x: 10,
|
|
938
|
+
y: 18.11
|
|
939
|
+
}, {
|
|
940
|
+
x: 11,
|
|
941
|
+
y: 19.3
|
|
942
|
+
}, {
|
|
943
|
+
x: 12,
|
|
944
|
+
y: 20.48
|
|
945
|
+
}, {
|
|
946
|
+
x: 13,
|
|
947
|
+
y: 21.66
|
|
948
|
+
}, {
|
|
949
|
+
x: 14,
|
|
950
|
+
y: 22.81
|
|
951
|
+
}, {
|
|
952
|
+
x: 15,
|
|
953
|
+
y: 23.95
|
|
954
|
+
}, {
|
|
955
|
+
x: 16,
|
|
956
|
+
y: 25.05
|
|
957
|
+
}, {
|
|
958
|
+
x: 17,
|
|
959
|
+
y: 26.12
|
|
960
|
+
}, {
|
|
961
|
+
x: 18,
|
|
962
|
+
y: 27.15
|
|
963
|
+
}, {
|
|
964
|
+
x: 19,
|
|
965
|
+
y: 28.13
|
|
966
|
+
}, {
|
|
967
|
+
x: 20,
|
|
968
|
+
y: 29.06
|
|
969
|
+
}, {
|
|
970
|
+
x: 21,
|
|
971
|
+
y: 29.93
|
|
972
|
+
}, {
|
|
973
|
+
x: 22,
|
|
974
|
+
y: 30.75
|
|
975
|
+
}, {
|
|
976
|
+
x: 23,
|
|
977
|
+
y: 31.52
|
|
978
|
+
}, {
|
|
979
|
+
x: 24,
|
|
980
|
+
y: 32.23
|
|
981
|
+
}, {
|
|
982
|
+
x: 25,
|
|
983
|
+
y: 32.88
|
|
984
|
+
}, {
|
|
985
|
+
x: 26,
|
|
986
|
+
y: 33.47
|
|
987
|
+
}, {
|
|
988
|
+
x: 27,
|
|
989
|
+
y: 33.98
|
|
990
|
+
}, {
|
|
991
|
+
x: 28,
|
|
992
|
+
y: 34.42
|
|
993
|
+
}, {
|
|
994
|
+
x: 29,
|
|
995
|
+
y: 34.77
|
|
996
|
+
}, {
|
|
997
|
+
x: 30,
|
|
998
|
+
y: 35.03
|
|
999
|
+
}]
|
|
1000
|
+
};
|
|
1001
|
+
set(hcData, 'lineArea', getLineArea(get(hcData, 'bottomLine'), get(hcData, 'topLine')));
|
|
1002
|
+
var hlData = {
|
|
1003
|
+
bottomLine: [{
|
|
1004
|
+
x: 0,
|
|
1005
|
+
y: 1.9
|
|
1006
|
+
}, {
|
|
1007
|
+
x: 1,
|
|
1008
|
+
y: 3.4
|
|
1009
|
+
}, {
|
|
1010
|
+
x: 2,
|
|
1011
|
+
y: 5.5
|
|
1012
|
+
}, {
|
|
1013
|
+
x: 3,
|
|
1014
|
+
y: 8.1
|
|
1015
|
+
}, {
|
|
1016
|
+
x: 4,
|
|
1017
|
+
y: 11.0
|
|
1018
|
+
}, {
|
|
1019
|
+
x: 5,
|
|
1020
|
+
y: 14.1
|
|
1021
|
+
}, {
|
|
1022
|
+
x: 6,
|
|
1023
|
+
y: 17.2
|
|
1024
|
+
}, {
|
|
1025
|
+
x: 7,
|
|
1026
|
+
y: 20.0
|
|
1027
|
+
}, {
|
|
1028
|
+
x: 8,
|
|
1029
|
+
y: 22.6
|
|
1030
|
+
}, {
|
|
1031
|
+
x: 9,
|
|
1032
|
+
y: 25.0
|
|
1033
|
+
}, {
|
|
1034
|
+
x: 10,
|
|
1035
|
+
y: 27.4
|
|
1036
|
+
}, {
|
|
1037
|
+
x: 11,
|
|
1038
|
+
y: 29.7
|
|
1039
|
+
}, {
|
|
1040
|
+
x: 12,
|
|
1041
|
+
y: 31.9
|
|
1042
|
+
}, {
|
|
1043
|
+
x: 13,
|
|
1044
|
+
y: 34.1
|
|
1045
|
+
}, {
|
|
1046
|
+
x: 14,
|
|
1047
|
+
y: 36.3
|
|
1048
|
+
}, {
|
|
1049
|
+
x: 15,
|
|
1050
|
+
y: 38.3
|
|
1051
|
+
}, {
|
|
1052
|
+
x: 16,
|
|
1053
|
+
y: 40.2
|
|
1054
|
+
}, {
|
|
1055
|
+
x: 17,
|
|
1056
|
+
y: 42.0
|
|
1057
|
+
}, {
|
|
1058
|
+
x: 18,
|
|
1059
|
+
y: 43.7
|
|
1060
|
+
}, {
|
|
1061
|
+
x: 19,
|
|
1062
|
+
y: 45.3
|
|
1063
|
+
}, {
|
|
1064
|
+
x: 20,
|
|
1065
|
+
y: 46.8
|
|
1066
|
+
}, {
|
|
1067
|
+
x: 21,
|
|
1068
|
+
y: 48.2
|
|
1069
|
+
}, {
|
|
1070
|
+
x: 22,
|
|
1071
|
+
y: 49.5
|
|
1072
|
+
}, {
|
|
1073
|
+
x: 23,
|
|
1074
|
+
y: 50.8
|
|
1075
|
+
}, {
|
|
1076
|
+
x: 24,
|
|
1077
|
+
y: 52.0
|
|
1078
|
+
}, {
|
|
1079
|
+
x: 25,
|
|
1080
|
+
y: 53.3
|
|
1081
|
+
}, {
|
|
1082
|
+
x: 26,
|
|
1083
|
+
y: 54.5
|
|
1084
|
+
}, {
|
|
1085
|
+
x: 27,
|
|
1086
|
+
y: 55.6
|
|
1087
|
+
}, {
|
|
1088
|
+
x: 28,
|
|
1089
|
+
y: 56.7
|
|
1090
|
+
}, {
|
|
1091
|
+
x: 29,
|
|
1092
|
+
y: 57.6
|
|
1093
|
+
}, {
|
|
1094
|
+
x: 30,
|
|
1095
|
+
y: 58.3
|
|
1096
|
+
}],
|
|
1097
|
+
middleLine: [{
|
|
1098
|
+
x: 0,
|
|
1099
|
+
y: 2.3
|
|
1100
|
+
}, {
|
|
1101
|
+
x: 1,
|
|
1102
|
+
y: 4.1
|
|
1103
|
+
}, {
|
|
1104
|
+
x: 2,
|
|
1105
|
+
y: 6.4
|
|
1106
|
+
}, {
|
|
1107
|
+
x: 3,
|
|
1108
|
+
y: 9.4
|
|
1109
|
+
}, {
|
|
1110
|
+
x: 4,
|
|
1111
|
+
y: 12.7
|
|
1112
|
+
}, {
|
|
1113
|
+
x: 5,
|
|
1114
|
+
y: 16.1
|
|
1115
|
+
}, {
|
|
1116
|
+
x: 6,
|
|
1117
|
+
y: 19.4
|
|
1118
|
+
}, {
|
|
1119
|
+
x: 7,
|
|
1120
|
+
y: 22.5
|
|
1121
|
+
}, {
|
|
1122
|
+
x: 8,
|
|
1123
|
+
y: 25.2
|
|
1124
|
+
}, {
|
|
1125
|
+
x: 9,
|
|
1126
|
+
y: 27.7
|
|
1127
|
+
}, {
|
|
1128
|
+
x: 10,
|
|
1129
|
+
y: 30.0
|
|
1130
|
+
}, {
|
|
1131
|
+
x: 11,
|
|
1132
|
+
y: 32.4
|
|
1133
|
+
}, {
|
|
1134
|
+
x: 12,
|
|
1135
|
+
y: 34.7
|
|
1136
|
+
}, {
|
|
1137
|
+
x: 13,
|
|
1138
|
+
y: 36.9
|
|
1139
|
+
}, {
|
|
1140
|
+
x: 14,
|
|
1141
|
+
y: 39.1
|
|
1142
|
+
}, {
|
|
1143
|
+
x: 15,
|
|
1144
|
+
y: 41.2
|
|
1145
|
+
}, {
|
|
1146
|
+
x: 16,
|
|
1147
|
+
y: 43.1
|
|
1148
|
+
}, {
|
|
1149
|
+
x: 17,
|
|
1150
|
+
y: 45.0
|
|
1151
|
+
}, {
|
|
1152
|
+
x: 18,
|
|
1153
|
+
y: 46.8
|
|
1154
|
+
}, {
|
|
1155
|
+
x: 19,
|
|
1156
|
+
y: 48.5
|
|
1157
|
+
}, {
|
|
1158
|
+
x: 20,
|
|
1159
|
+
y: 50.1
|
|
1160
|
+
}, {
|
|
1161
|
+
x: 21,
|
|
1162
|
+
y: 51.6
|
|
1163
|
+
}, {
|
|
1164
|
+
x: 22,
|
|
1165
|
+
y: 53.1
|
|
1166
|
+
}, {
|
|
1167
|
+
x: 23,
|
|
1168
|
+
y: 54.5
|
|
1169
|
+
}, {
|
|
1170
|
+
x: 24,
|
|
1171
|
+
y: 55.9
|
|
1172
|
+
}, {
|
|
1173
|
+
x: 25,
|
|
1174
|
+
y: 57.3
|
|
1175
|
+
}, {
|
|
1176
|
+
x: 26,
|
|
1177
|
+
y: 58.6
|
|
1178
|
+
}, {
|
|
1179
|
+
x: 27,
|
|
1180
|
+
y: 59.8
|
|
1181
|
+
}, {
|
|
1182
|
+
x: 28,
|
|
1183
|
+
y: 60.9
|
|
1184
|
+
}, {
|
|
1185
|
+
x: 29,
|
|
1186
|
+
y: 61.9
|
|
1187
|
+
}, {
|
|
1188
|
+
x: 30,
|
|
1189
|
+
y: 62.7
|
|
1190
|
+
}],
|
|
1191
|
+
topLine: [{
|
|
1192
|
+
x: 0,
|
|
1193
|
+
y: 2.8
|
|
1194
|
+
}, {
|
|
1195
|
+
x: 1,
|
|
1196
|
+
y: 4.8
|
|
1197
|
+
}, {
|
|
1198
|
+
x: 2,
|
|
1199
|
+
y: 7.6
|
|
1200
|
+
}, {
|
|
1201
|
+
x: 3,
|
|
1202
|
+
y: 10.9
|
|
1203
|
+
}, {
|
|
1204
|
+
x: 4,
|
|
1205
|
+
y: 14.6
|
|
1206
|
+
}, {
|
|
1207
|
+
x: 5,
|
|
1208
|
+
y: 18.4
|
|
1209
|
+
}, {
|
|
1210
|
+
x: 6,
|
|
1211
|
+
y: 22.0
|
|
1212
|
+
}, {
|
|
1213
|
+
x: 7,
|
|
1214
|
+
y: 25.3
|
|
1215
|
+
}, {
|
|
1216
|
+
x: 8,
|
|
1217
|
+
y: 28.1
|
|
1218
|
+
}, {
|
|
1219
|
+
x: 9,
|
|
1220
|
+
y: 30.6
|
|
1221
|
+
}, {
|
|
1222
|
+
x: 10,
|
|
1223
|
+
y: 33.0
|
|
1224
|
+
}, {
|
|
1225
|
+
x: 11,
|
|
1226
|
+
y: 35.4
|
|
1227
|
+
}, {
|
|
1228
|
+
x: 12,
|
|
1229
|
+
y: 37.7
|
|
1230
|
+
}, {
|
|
1231
|
+
x: 13,
|
|
1232
|
+
y: 39.9
|
|
1233
|
+
}, {
|
|
1234
|
+
x: 14,
|
|
1235
|
+
y: 42.1
|
|
1236
|
+
}, {
|
|
1237
|
+
x: 15,
|
|
1238
|
+
y: 44.2
|
|
1239
|
+
}, {
|
|
1240
|
+
x: 16,
|
|
1241
|
+
y: 46.3
|
|
1242
|
+
}, {
|
|
1243
|
+
x: 17,
|
|
1244
|
+
y: 48.3
|
|
1245
|
+
}, {
|
|
1246
|
+
x: 18,
|
|
1247
|
+
y: 50.1
|
|
1248
|
+
}, {
|
|
1249
|
+
x: 19,
|
|
1250
|
+
y: 52.0
|
|
1251
|
+
}, {
|
|
1252
|
+
x: 20,
|
|
1253
|
+
y: 53.7
|
|
1254
|
+
}, {
|
|
1255
|
+
x: 21,
|
|
1256
|
+
y: 55.4
|
|
1257
|
+
}, {
|
|
1258
|
+
x: 22,
|
|
1259
|
+
y: 57.0
|
|
1260
|
+
}, {
|
|
1261
|
+
x: 23,
|
|
1262
|
+
y: 58.6
|
|
1263
|
+
}, {
|
|
1264
|
+
x: 24,
|
|
1265
|
+
y: 60.1
|
|
1266
|
+
}, {
|
|
1267
|
+
x: 25,
|
|
1268
|
+
y: 61.5
|
|
1269
|
+
}, {
|
|
1270
|
+
x: 26,
|
|
1271
|
+
y: 63.0
|
|
1272
|
+
}, {
|
|
1273
|
+
x: 27,
|
|
1274
|
+
y: 64.3
|
|
1275
|
+
}, {
|
|
1276
|
+
x: 28,
|
|
1277
|
+
y: 65.5
|
|
1278
|
+
}, {
|
|
1279
|
+
x: 29,
|
|
1280
|
+
y: 66.6
|
|
1281
|
+
}, {
|
|
1282
|
+
x: 30,
|
|
1283
|
+
y: 67.5
|
|
1284
|
+
}]
|
|
1285
|
+
};
|
|
1286
|
+
set(hlData, 'lineArea', getLineArea(get(hlData, 'bottomLine'), get(hlData, 'topLine')));
|
|
1287
|
+
var efwData = {
|
|
1288
|
+
bottomLine: [{
|
|
1289
|
+
x: 0,
|
|
1290
|
+
y: 2 / 50
|
|
1291
|
+
}, {
|
|
1292
|
+
x: 1,
|
|
1293
|
+
y: 28 / 50
|
|
1294
|
+
}, {
|
|
1295
|
+
x: 2,
|
|
1296
|
+
y: 39 / 50
|
|
1297
|
+
}, {
|
|
1298
|
+
x: 3,
|
|
1299
|
+
y: 53 / 50
|
|
1300
|
+
}, {
|
|
1301
|
+
x: 4,
|
|
1302
|
+
y: 71 / 50
|
|
1303
|
+
}, {
|
|
1304
|
+
x: 5,
|
|
1305
|
+
y: 92 / 50
|
|
1306
|
+
}, {
|
|
1307
|
+
x: 6,
|
|
1308
|
+
y: 118 / 50
|
|
1309
|
+
}, {
|
|
1310
|
+
x: 7,
|
|
1311
|
+
y: 149 / 50
|
|
1312
|
+
}, {
|
|
1313
|
+
x: 8,
|
|
1314
|
+
y: 185 / 50
|
|
1315
|
+
}, {
|
|
1316
|
+
x: 9,
|
|
1317
|
+
y: 227 / 50
|
|
1318
|
+
}, {
|
|
1319
|
+
x: 10,
|
|
1320
|
+
y: 275 / 50
|
|
1321
|
+
}, {
|
|
1322
|
+
x: 11,
|
|
1323
|
+
y: 331 / 50
|
|
1324
|
+
}, {
|
|
1325
|
+
x: 12,
|
|
1326
|
+
y: 394 / 50
|
|
1327
|
+
}, {
|
|
1328
|
+
x: 13,
|
|
1329
|
+
y: 466 / 50
|
|
1330
|
+
}, {
|
|
1331
|
+
x: 14,
|
|
1332
|
+
y: 546 / 50
|
|
1333
|
+
}, {
|
|
1334
|
+
x: 15,
|
|
1335
|
+
y: 637 / 50
|
|
1336
|
+
}, {
|
|
1337
|
+
x: 16,
|
|
1338
|
+
y: 740 / 50
|
|
1339
|
+
}, {
|
|
1340
|
+
x: 17,
|
|
1341
|
+
y: 853 / 50
|
|
1342
|
+
}, {
|
|
1343
|
+
x: 18,
|
|
1344
|
+
y: 978 / 50
|
|
1345
|
+
}, {
|
|
1346
|
+
x: 19,
|
|
1347
|
+
y: 1114 / 50
|
|
1348
|
+
}, {
|
|
1349
|
+
x: 20,
|
|
1350
|
+
y: 1260 / 50
|
|
1351
|
+
}, {
|
|
1352
|
+
x: 21,
|
|
1353
|
+
y: 1414 / 50
|
|
1354
|
+
}, {
|
|
1355
|
+
x: 22,
|
|
1356
|
+
y: 1574 / 50
|
|
1357
|
+
}, {
|
|
1358
|
+
x: 23,
|
|
1359
|
+
y: 1740 / 50
|
|
1360
|
+
}, {
|
|
1361
|
+
x: 24,
|
|
1362
|
+
y: 1911 / 50
|
|
1363
|
+
}, {
|
|
1364
|
+
x: 25,
|
|
1365
|
+
y: 2085 / 50
|
|
1366
|
+
}, {
|
|
1367
|
+
x: 26,
|
|
1368
|
+
y: 2262 / 50
|
|
1369
|
+
}, {
|
|
1370
|
+
x: 27,
|
|
1371
|
+
y: 2437 / 50
|
|
1372
|
+
}, {
|
|
1373
|
+
x: 28,
|
|
1374
|
+
y: 2604 / 50
|
|
1375
|
+
}, {
|
|
1376
|
+
x: 29,
|
|
1377
|
+
y: 2752 / 50
|
|
1378
|
+
}, {
|
|
1379
|
+
x: 30,
|
|
1380
|
+
y: 2873 / 50
|
|
1381
|
+
}],
|
|
1382
|
+
middleLine: [{
|
|
1383
|
+
x: 0,
|
|
1384
|
+
y: 24 / 50
|
|
1385
|
+
}, {
|
|
1386
|
+
x: 1,
|
|
1387
|
+
y: 34 / 50
|
|
1388
|
+
}, {
|
|
1389
|
+
x: 2,
|
|
1390
|
+
y: 47 / 50
|
|
1391
|
+
}, {
|
|
1392
|
+
x: 3,
|
|
1393
|
+
y: 63 / 50
|
|
1394
|
+
}, {
|
|
1395
|
+
x: 4,
|
|
1396
|
+
y: 83 / 50
|
|
1397
|
+
}, {
|
|
1398
|
+
x: 5,
|
|
1399
|
+
y: 108 / 50
|
|
1400
|
+
}, {
|
|
1401
|
+
x: 6,
|
|
1402
|
+
y: 138 / 50
|
|
1403
|
+
}, {
|
|
1404
|
+
x: 7,
|
|
1405
|
+
y: 173 / 50
|
|
1406
|
+
}, {
|
|
1407
|
+
x: 8,
|
|
1408
|
+
y: 215 / 50
|
|
1409
|
+
}, {
|
|
1410
|
+
x: 9,
|
|
1411
|
+
y: 264 / 50
|
|
1412
|
+
}, {
|
|
1413
|
+
x: 10,
|
|
1414
|
+
y: 320 / 50
|
|
1415
|
+
}, {
|
|
1416
|
+
x: 11,
|
|
1417
|
+
y: 385 / 50
|
|
1418
|
+
}, {
|
|
1419
|
+
x: 12,
|
|
1420
|
+
y: 458 / 50
|
|
1421
|
+
}, {
|
|
1422
|
+
x: 13,
|
|
1423
|
+
y: 541 / 50
|
|
1424
|
+
}, {
|
|
1425
|
+
x: 14,
|
|
1426
|
+
y: 634 / 50
|
|
1427
|
+
}, {
|
|
1428
|
+
x: 15,
|
|
1429
|
+
y: 740 / 50
|
|
1430
|
+
}, {
|
|
1431
|
+
x: 16,
|
|
1432
|
+
y: 859 / 50
|
|
1433
|
+
}, {
|
|
1434
|
+
x: 17,
|
|
1435
|
+
y: 990 / 50
|
|
1436
|
+
}, {
|
|
1437
|
+
x: 18,
|
|
1438
|
+
y: 1136 / 50
|
|
1439
|
+
}, {
|
|
1440
|
+
x: 19,
|
|
1441
|
+
y: 1293 / 50
|
|
1442
|
+
}, {
|
|
1443
|
+
x: 20,
|
|
1444
|
+
y: 1463 / 50
|
|
1445
|
+
}, {
|
|
1446
|
+
x: 21,
|
|
1447
|
+
y: 1642 / 50
|
|
1448
|
+
}, {
|
|
1449
|
+
x: 22,
|
|
1450
|
+
y: 1830 / 50
|
|
1451
|
+
}, {
|
|
1452
|
+
x: 23,
|
|
1453
|
+
y: 2026 / 50
|
|
1454
|
+
}, {
|
|
1455
|
+
x: 24,
|
|
1456
|
+
y: 2229 / 50
|
|
1457
|
+
}, {
|
|
1458
|
+
x: 25,
|
|
1459
|
+
y: 2438 / 50
|
|
1460
|
+
}, {
|
|
1461
|
+
x: 26,
|
|
1462
|
+
y: 2653 / 50
|
|
1463
|
+
}, {
|
|
1464
|
+
x: 27,
|
|
1465
|
+
y: 2869 / 50
|
|
1466
|
+
}, {
|
|
1467
|
+
x: 28,
|
|
1468
|
+
y: 3077 / 50
|
|
1469
|
+
}, {
|
|
1470
|
+
x: 29,
|
|
1471
|
+
y: 3269 / 50
|
|
1472
|
+
}, {
|
|
1473
|
+
x: 30,
|
|
1474
|
+
y: 3434 / 50
|
|
1475
|
+
}],
|
|
1476
|
+
topLine: [{
|
|
1477
|
+
x: 0,
|
|
1478
|
+
y: 3 / 50
|
|
1479
|
+
}, {
|
|
1480
|
+
x: 1,
|
|
1481
|
+
y: 41 / 50
|
|
1482
|
+
}, {
|
|
1483
|
+
x: 2,
|
|
1484
|
+
y: 55 / 50
|
|
1485
|
+
}, {
|
|
1486
|
+
x: 3,
|
|
1487
|
+
y: 74 / 50
|
|
1488
|
+
}, {
|
|
1489
|
+
x: 4,
|
|
1490
|
+
y: 97 / 50
|
|
1491
|
+
}, {
|
|
1492
|
+
x: 5,
|
|
1493
|
+
y: 125 / 50
|
|
1494
|
+
}, {
|
|
1495
|
+
x: 6,
|
|
1496
|
+
y: 160 / 50
|
|
1497
|
+
}, {
|
|
1498
|
+
x: 7,
|
|
1499
|
+
y: 202 / 50
|
|
1500
|
+
}, {
|
|
1501
|
+
x: 8,
|
|
1502
|
+
y: 250 / 50
|
|
1503
|
+
}, {
|
|
1504
|
+
x: 9,
|
|
1505
|
+
y: 307 / 50
|
|
1506
|
+
}, {
|
|
1507
|
+
x: 10,
|
|
1508
|
+
y: 373 / 50
|
|
1509
|
+
}, {
|
|
1510
|
+
x: 11,
|
|
1511
|
+
y: 447 / 50
|
|
1512
|
+
}, {
|
|
1513
|
+
x: 12,
|
|
1514
|
+
y: 532 / 50
|
|
1515
|
+
}, {
|
|
1516
|
+
x: 13,
|
|
1517
|
+
y: 628 / 50
|
|
1518
|
+
}, {
|
|
1519
|
+
x: 14,
|
|
1520
|
+
y: 737 / 50
|
|
1521
|
+
}, {
|
|
1522
|
+
x: 15,
|
|
1523
|
+
y: 859 / 50
|
|
1524
|
+
}, {
|
|
1525
|
+
x: 16,
|
|
1526
|
+
y: 997 / 50
|
|
1527
|
+
}, {
|
|
1528
|
+
x: 17,
|
|
1529
|
+
y: 1149 / 50
|
|
1530
|
+
}, {
|
|
1531
|
+
x: 18,
|
|
1532
|
+
y: 1318 / 50
|
|
1533
|
+
}, {
|
|
1534
|
+
x: 19,
|
|
1535
|
+
y: 1501 / 50
|
|
1536
|
+
}, {
|
|
1537
|
+
x: 20,
|
|
1538
|
+
y: 1698 / 50
|
|
1539
|
+
}, {
|
|
1540
|
+
x: 21,
|
|
1541
|
+
y: 1908 / 50
|
|
1542
|
+
}, {
|
|
1543
|
+
x: 22,
|
|
1544
|
+
y: 2129 / 50
|
|
1545
|
+
}, {
|
|
1546
|
+
x: 23,
|
|
1547
|
+
y: 2360 / 50
|
|
1548
|
+
}, {
|
|
1549
|
+
x: 24,
|
|
1550
|
+
y: 2600 / 50
|
|
1551
|
+
}, {
|
|
1552
|
+
x: 25,
|
|
1553
|
+
y: 2851 / 50
|
|
1554
|
+
}, {
|
|
1555
|
+
x: 26,
|
|
1556
|
+
y: 3111 / 50
|
|
1557
|
+
}, {
|
|
1558
|
+
x: 27,
|
|
1559
|
+
y: 3376 / 50
|
|
1560
|
+
}, {
|
|
1561
|
+
x: 28,
|
|
1562
|
+
y: 3637 / 50
|
|
1563
|
+
}, {
|
|
1564
|
+
x: 29,
|
|
1565
|
+
y: 3884 / 50
|
|
1566
|
+
}, {
|
|
1567
|
+
x: 30,
|
|
1568
|
+
y: 4105 / 50
|
|
1569
|
+
}]
|
|
1570
|
+
};
|
|
1571
|
+
set(efwData, 'lineArea', getLineArea(get(efwData, 'bottomLine'), get(efwData, 'topLine')));
|
|
1572
|
+
var css_248z = ".fetus-wrapper {\n width: 660px;\n position: relative;\n}\n.fetus-wrapper .radio-wrapper {\n position: absolute;\n top: 16px;\n left: 45px;\n}\n.fetus-wrapper .btn-wrapper {\n position: absolute;\n top: 30px;\n right: 50px;\n}\n.fetus-wrapper-note {\n width: 550px;\n display: block;\n padding-left: 40px;\n font-size: small;\n color: #7a7a7a;\n}\n.point-modal {\n width: 360px !important;\n}\n.point-modal .info-item {\n margin-right: 18px;\n}\n.point-modal .ant-modal-close-x {\n line-height: 40px;\n}\n.table-modal {\n width: 1100px !important;\n}\n.table-modal .ant-modal-body {\n padding: 0;\n}\n";
|
|
1573
|
+
styleInject(css_248z);
|
|
1574
|
+
var curveOptions = [{
|
|
1575
|
+
label: 'BPD,FL,AC',
|
|
1576
|
+
value: 'bpd'
|
|
1577
|
+
}, {
|
|
1578
|
+
label: 'HC,HL',
|
|
1579
|
+
value: 'hc'
|
|
1580
|
+
}, {
|
|
1581
|
+
label: 'EFW',
|
|
1582
|
+
value: 'efw'
|
|
1583
|
+
}];
|
|
1584
|
+
function FetusCanvasNICHD(props) {
|
|
1585
|
+
var headerInfo = props.headerInfo;
|
|
1586
|
+
props.id;
|
|
1587
|
+
var isAllPregnancies = props.isAllPregnancies;
|
|
1588
|
+
var _a = useState('bpd'),
|
|
1589
|
+
currentCurve = _a[0],
|
|
1590
|
+
set_currentCurve = _a[1];
|
|
1591
|
+
var _b = use_fetus(props),
|
|
1592
|
+
sys_theme = _b.sys_theme,
|
|
1593
|
+
line_color = _b.line_color,
|
|
1594
|
+
font_color = _b.font_color,
|
|
1595
|
+
imageRef = _b.imageRef,
|
|
1596
|
+
isShowPointModal = _b.isShowPointModal,
|
|
1597
|
+
set_isShowPointModal = _b.set_isShowPointModal,
|
|
1598
|
+
getFetusData = _b.getFetusData,
|
|
1599
|
+
formData = _b.formData,
|
|
1600
|
+
pointData = _b.pointData,
|
|
1601
|
+
set_pointData = _b.set_pointData;
|
|
1602
|
+
useEffect(function () {
|
|
1603
|
+
if (formData) drawFetusCanvas();
|
|
1604
|
+
return function () {};
|
|
1605
|
+
}, [formData, currentCurve]);
|
|
1606
|
+
function drawScaleLine(canvas, ctx, oringin, steps, data, point, color, shape, lineWidth) {
|
|
1607
|
+
var _loop_1 = function _loop_1(i) {
|
|
1608
|
+
ctx.beginPath();
|
|
1609
|
+
ctx.setLineDash(shape);
|
|
1610
|
+
ctx.lineWidth = lineWidth;
|
|
1611
|
+
if (i < data.length - 1) {
|
|
1612
|
+
ctx.moveTo(oringin[0] + steps[0] * data[i].x, oringin[1] - steps[1] * data[i].y);
|
|
1613
|
+
ctx.lineTo(oringin[0] + steps[0] * data[i + 1].x, oringin[1] - steps[1] * data[i + 1].y);
|
|
1614
|
+
}
|
|
1615
|
+
ctx.strokeStyle = color;
|
|
1616
|
+
ctx.stroke();
|
|
1617
|
+
if (point[0]) {
|
|
1618
|
+
ctx.beginPath();
|
|
1619
|
+
ctx.setLineDash([]);
|
|
1620
|
+
ctx.arc(oringin[0] + steps[0] * data[i].x, oringin[1] - steps[1] * data[i].y, 3, 0, 2 * Math.PI);
|
|
1621
|
+
ctx.fillStyle = point[1];
|
|
1622
|
+
ctx.fill();
|
|
1623
|
+
canvas && canvas.addEventListener('click', function (e) {
|
|
1624
|
+
var X = oringin[0] + steps[0] * data[i].x;
|
|
1625
|
+
var Y = oringin[1] - steps[1] * data[i].y;
|
|
1626
|
+
var obj = {
|
|
1627
|
+
x: X,
|
|
1628
|
+
y: Y,
|
|
1629
|
+
r: 5
|
|
1630
|
+
};
|
|
1631
|
+
var x = e.pageX - canvas.getBoundingClientRect().left;
|
|
1632
|
+
var y = e.pageY - canvas.getBoundingClientRect().top;
|
|
1633
|
+
if (x > obj.x - obj.r && x < obj.x + obj.r && y > obj.y - obj.r && y < obj.y + obj.r) {
|
|
1634
|
+
var obj_1 = {
|
|
1635
|
+
x: data[i].gestationalWeek,
|
|
1636
|
+
y: data[i].value,
|
|
1637
|
+
line: point[2],
|
|
1638
|
+
fetus: data[i].sort,
|
|
1639
|
+
style: {
|
|
1640
|
+
position: 'fixed',
|
|
1641
|
+
top: e.pageY,
|
|
1642
|
+
left: e.pageX
|
|
1643
|
+
}
|
|
1644
|
+
};
|
|
1645
|
+
set_pointData(obj_1);
|
|
1646
|
+
set_isShowPointModal(true);
|
|
1647
|
+
}
|
|
1648
|
+
}, false);
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
for (var i = 0; i < data.length; i++) {
|
|
1652
|
+
_loop_1(i);
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
function setVertical(context, xCount, yCount, xStep, yStep, baseLeft, baseTop) {
|
|
1656
|
+
context.strokeStyle = line_color;
|
|
1657
|
+
for (var i = 0; i < xCount; i++) {
|
|
1658
|
+
context.beginPath();
|
|
1659
|
+
context.lineWidth = 1;
|
|
1660
|
+
context.moveTo(baseLeft, baseTop + xStep * i);
|
|
1661
|
+
context.lineTo(baseLeft + (yCount - 1) * yStep, baseTop + xStep * i);
|
|
1662
|
+
context.textBaseline = 'middle';
|
|
1663
|
+
context.fillStyle = font_color;
|
|
1664
|
+
context.font = 'bold 12px normal';
|
|
1665
|
+
if (i * 2 % 10 === 0) {
|
|
1666
|
+
context.lineWidth = 1;
|
|
1667
|
+
if (currentCurve === 'efw') {
|
|
1668
|
+
context.fillText(i * 100, baseLeft - 20, (xCount - 1) * xStep + baseTop - i * xStep);
|
|
1669
|
+
} else {
|
|
1670
|
+
context.fillText(i * 2, baseLeft - 20, (xCount - 1) * xStep + baseTop - i * xStep);
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
context.stroke();
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
function setHorizontal(context, xCount, yCount, xStep, yStep, baseLeft, baseTop) {
|
|
1677
|
+
for (var i = 0; i < yCount; i++) {
|
|
1678
|
+
context.beginPath();
|
|
1679
|
+
context.lineWidth = 1;
|
|
1680
|
+
context.moveTo(yStep * i + baseLeft, baseTop);
|
|
1681
|
+
context.lineTo(yStep * i + baseLeft, baseTop + xStep * (xCount - 1));
|
|
1682
|
+
context.textAlign = 'center';
|
|
1683
|
+
context.fillStyle = font_color;
|
|
1684
|
+
context.font = 'bold 12px normal';
|
|
1685
|
+
if (i % 5 === 0) {
|
|
1686
|
+
context.lineWidth = 1;
|
|
1687
|
+
context.fillText(i + 10, baseLeft + i * yStep, xStep * xCount + baseTop + 5);
|
|
1688
|
+
}
|
|
1689
|
+
context.stroke();
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
function drawFetusCanvas() {
|
|
1693
|
+
var mlUltrasounds = get(formData, 'mlUltrasounds') || [];
|
|
1694
|
+
var allBpdArr = [];
|
|
1695
|
+
var allFlArr = [];
|
|
1696
|
+
var allAcArr = [];
|
|
1697
|
+
var allHlArr = [];
|
|
1698
|
+
var allHcArr = [];
|
|
1699
|
+
var allEfwArr = [];
|
|
1700
|
+
if (mlUltrasounds.length > 0) {
|
|
1701
|
+
forEach(mlUltrasounds, function (item) {
|
|
1702
|
+
var yunWeek = item.gestationalWeek;
|
|
1703
|
+
if (yunWeek && yunWeek.indexOf('+') !== -1) {
|
|
1704
|
+
var arr = yunWeek.split('+');
|
|
1705
|
+
yunWeek = Number(arr[0]) + Number(arr[1]) / 7;
|
|
1706
|
+
}
|
|
1707
|
+
var setData = function setData(param, arr) {
|
|
1708
|
+
var obj = {};
|
|
1709
|
+
var sort = +item.fetal - 1;
|
|
1710
|
+
obj.x = yunWeek - 10;
|
|
1711
|
+
if (param === 'ac' || param === 'hc') {
|
|
1712
|
+
obj.y = Number(item[param]) / 10;
|
|
1713
|
+
} else if (param === 'efw') {
|
|
1714
|
+
obj.y = Number(item[param]) / 50;
|
|
1715
|
+
} else {
|
|
1716
|
+
obj.y = Number(item[param]);
|
|
1717
|
+
}
|
|
1718
|
+
obj.value = Number(item[param]);
|
|
1719
|
+
obj.gestationalWeek = item.gestationalWeek;
|
|
1720
|
+
obj.sort = item.fetal;
|
|
1721
|
+
if (yunWeek && item[param] && yunWeek >= 10 && yunWeek <= 40 && obj.y <= 110) {
|
|
1722
|
+
var arrItem = get(arr, sort) || [];
|
|
1723
|
+
arrItem.push(obj);
|
|
1724
|
+
set(arr, sort, arrItem);
|
|
1725
|
+
}
|
|
1726
|
+
};
|
|
1727
|
+
setData('bpd', allBpdArr);
|
|
1728
|
+
setData('fl', allFlArr);
|
|
1729
|
+
setData('ac', allAcArr);
|
|
1730
|
+
setData('hl', allHlArr);
|
|
1731
|
+
setData('hc', allHcArr);
|
|
1732
|
+
setData('efw', allEfwArr);
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1735
|
+
var canvas = get_canvas_el('fetus-canvas', sys_theme);
|
|
1736
|
+
var context = canvas.getContext('2d');
|
|
1737
|
+
if (!context) return;
|
|
1738
|
+
canvas.width = 660;
|
|
1739
|
+
canvas.height = 710;
|
|
1740
|
+
var baseLeft = 50;
|
|
1741
|
+
var baseTop = 120;
|
|
1742
|
+
var xStep = 10;
|
|
1743
|
+
var xCount = 56;
|
|
1744
|
+
var yStep = 17;
|
|
1745
|
+
var yCount = 31;
|
|
1746
|
+
if (currentCurve === 'bpd') {
|
|
1747
|
+
xStep = 10;
|
|
1748
|
+
xCount = 56;
|
|
1749
|
+
} else if (currentCurve === 'hc') {
|
|
1750
|
+
xStep = 15.56;
|
|
1751
|
+
xCount = 36;
|
|
1752
|
+
} else {
|
|
1753
|
+
xStep = 12.17;
|
|
1754
|
+
xCount = 46;
|
|
1755
|
+
}
|
|
1756
|
+
context.fillStyle = font_color;
|
|
1757
|
+
context.font = 'bold 16px normal';
|
|
1758
|
+
context.textAlign = 'center';
|
|
1759
|
+
context.fillText("".concat(draw_info(headerInfo)), canvas.width / 2, baseTop - 60);
|
|
1760
|
+
context.fillText('胎儿生长曲线', canvas.width / 2, baseTop - 25);
|
|
1761
|
+
setVertical(context, xCount, yCount, xStep, yStep, baseLeft, baseTop);
|
|
1762
|
+
setHorizontal(context, xCount, yCount, xStep, yStep, baseLeft, baseTop);
|
|
1763
|
+
setVerRules(context, [baseLeft, baseTop + (xCount - 1) * xStep], (yCount - 1) * yStep, line_color, 1, yStep, 5);
|
|
1764
|
+
setHorRules(context, [baseLeft, baseTop + (xCount - 1) * xStep], (xCount - 1) * xStep, line_color, 1, xStep, 5);
|
|
1765
|
+
if (currentCurve === 'bpd') {
|
|
1766
|
+
context.fillText('90th', baseLeft + yCount * yStep, baseTop + 6 * xStep);
|
|
1767
|
+
context.fillText('50th', baseLeft + yCount * yStep, baseTop + 8.5 * xStep);
|
|
1768
|
+
context.fillText('10th', baseLeft + yCount * yStep, baseTop + 11.5 * xStep);
|
|
1769
|
+
context.fillText('90th', baseLeft + yCount * yStep, baseTop + 16.5 * xStep);
|
|
1770
|
+
context.fillText('50th', baseLeft + yCount * yStep, baseTop + 19 * xStep);
|
|
1771
|
+
context.fillText('10th', baseLeft + yCount * yStep, baseTop + 21.5 * xStep);
|
|
1772
|
+
context.fillText('90th', baseLeft + yCount * yStep, baseTop + 36 * xStep);
|
|
1773
|
+
context.fillText('50th', baseLeft + yCount * yStep, baseTop + 37.5 * xStep);
|
|
1774
|
+
context.fillText('10th', baseLeft + yCount * yStep, baseTop + 39 * xStep);
|
|
1775
|
+
context.font = 'bold 18px normal';
|
|
1776
|
+
context.textAlign = 'center';
|
|
1777
|
+
context.fillText('BPD', baseLeft + (yCount - 6) * yStep, baseTop + 6 * xStep);
|
|
1778
|
+
context.fillText('FL', baseLeft + (yCount - 6) * yStep, baseTop + 28 * xStep);
|
|
1779
|
+
context.fillText('AC', baseLeft + (yCount - 6) * yStep, baseTop + 44 * xStep);
|
|
1780
|
+
} else if (currentCurve === 'hc') {
|
|
1781
|
+
context.fillText('90th', baseLeft + yCount * yStep, baseTop + 1.5 * xStep);
|
|
1782
|
+
context.fillText('50th', baseLeft + yCount * yStep, baseTop + 3.5 * xStep);
|
|
1783
|
+
context.fillText('10th', baseLeft + yCount * yStep, baseTop + 6 * xStep);
|
|
1784
|
+
context.fillText('90th', baseLeft + yCount * yStep, baseTop + 17.5 * xStep);
|
|
1785
|
+
context.fillText('50th', baseLeft + yCount * yStep, baseTop + 18.5 * xStep);
|
|
1786
|
+
context.fillText('10th', baseLeft + yCount * yStep, baseTop + 19.5 * xStep);
|
|
1787
|
+
context.font = 'bold 18px normal';
|
|
1788
|
+
context.textAlign = 'center';
|
|
1789
|
+
context.fillText('HL', baseLeft + (yCount - 6) * yStep, baseTop + 2 * xStep);
|
|
1790
|
+
context.fillText('HC', baseLeft + (yCount - 6) * yStep, baseTop + 22 * xStep);
|
|
1791
|
+
} else {
|
|
1792
|
+
context.fillText('90th', baseLeft + yCount * yStep, baseTop + 4.5 * xStep);
|
|
1793
|
+
context.fillText('50th', baseLeft + yCount * yStep, baseTop + 10.5 * xStep);
|
|
1794
|
+
context.fillText('10th', baseLeft + yCount * yStep, baseTop + 16.5 * xStep);
|
|
1795
|
+
context.font = 'bold 18px normal';
|
|
1796
|
+
context.textAlign = 'center';
|
|
1797
|
+
context.fillText('EFW', baseLeft + (yCount - 6) * yStep, baseTop + 6 * xStep);
|
|
1798
|
+
}
|
|
1799
|
+
var middleLineArr = [];
|
|
1800
|
+
var endLineArr = [];
|
|
1801
|
+
var drawItemLine = function drawItemLine(itemArr, itemData, itemName) {
|
|
1802
|
+
itemArr.forEach(function (item, index) {
|
|
1803
|
+
if (item.length > 0) {
|
|
1804
|
+
var color = judgeAreas(item[item.length - 1], get(itemData, 'lineArea')) ? get_fetus_color(sys_theme, index) : get_abnormal_color(sys_theme);
|
|
1805
|
+
drawScaleLine(canvas, context, [baseLeft, baseTop + (xCount - 1) * xStep], [yStep, xStep / 2], item, [true, color, itemName], color, [], 2);
|
|
1806
|
+
}
|
|
1807
|
+
});
|
|
1808
|
+
};
|
|
1809
|
+
if (currentCurve === 'bpd') {
|
|
1810
|
+
middleLineArr = [get(bpdData, 'middleLine'), get(flData, 'middleLine'), get(acData, 'middleLine')];
|
|
1811
|
+
endLineArr = [get(bpdData, 'bottomLine'), get(bpdData, 'topLine'), get(flData, 'bottomLine'), get(flData, 'topLine'), get(acData, 'bottomLine'), get(acData, 'topLine')];
|
|
1812
|
+
forEach(middleLineArr, function (line) {
|
|
1813
|
+
drawScaleLine(null, context, [baseLeft, baseTop + (xCount - 1) * xStep], [yStep, xStep / 2], line, [false], '#787878', [], 2);
|
|
1814
|
+
});
|
|
1815
|
+
forEach(endLineArr, function (line) {
|
|
1816
|
+
drawScaleLine(null, context, [baseLeft, baseTop + (xCount - 1) * xStep], [yStep, xStep / 2], line, [false], '#787878', [8], 2);
|
|
1817
|
+
});
|
|
1818
|
+
drawItemLine(allBpdArr, bpdData, 'BPD');
|
|
1819
|
+
drawItemLine(allFlArr, flData, 'FL');
|
|
1820
|
+
drawItemLine(allAcArr, acData, 'AC');
|
|
1821
|
+
} else if (currentCurve === 'hc') {
|
|
1822
|
+
middleLineArr = [get(hcData, 'middleLine'), get(hlData, 'middleLine')];
|
|
1823
|
+
endLineArr = [get(hcData, 'bottomLine'), get(hcData, 'topLine'), get(hlData, 'bottomLine'), get(hlData, 'topLine')];
|
|
1824
|
+
forEach(middleLineArr, function (line) {
|
|
1825
|
+
drawScaleLine(null, context, [baseLeft, baseTop + (xCount - 1) * xStep], [yStep, xStep / 2], line, [false], '#787878', [], 2);
|
|
1826
|
+
});
|
|
1827
|
+
forEach(endLineArr, function (line) {
|
|
1828
|
+
drawScaleLine(null, context, [baseLeft, baseTop + (xCount - 1) * xStep], [yStep, xStep / 2], line, [false], '#787878', [8], 2);
|
|
1829
|
+
});
|
|
1830
|
+
drawItemLine(allHlArr, hlData, 'HL');
|
|
1831
|
+
drawItemLine(allHcArr, hcData, 'HC');
|
|
1832
|
+
} else {
|
|
1833
|
+
middleLineArr = [get(efwData, 'middleLine')];
|
|
1834
|
+
endLineArr = [get(efwData, 'bottomLine'), get(efwData, 'topLine')];
|
|
1835
|
+
forEach(middleLineArr, function (line) {
|
|
1836
|
+
drawScaleLine(null, context, [baseLeft, baseTop + (xCount - 1) * xStep], [yStep, xStep / 2], line, [false], '#787878', [], 2);
|
|
1837
|
+
});
|
|
1838
|
+
forEach(endLineArr, function (line) {
|
|
1839
|
+
drawScaleLine(null, context, [baseLeft, baseTop + (xCount - 1) * xStep], [yStep, xStep / 2], line, [false], '#787878', [8], 2);
|
|
1840
|
+
});
|
|
1841
|
+
drawItemLine(allEfwArr, efwData, 'EFW');
|
|
1842
|
+
}
|
|
1843
|
+
imageRef.current = canvas === null || canvas === void 0 ? void 0 : canvas.toDataURL('image/jpg');
|
|
1844
|
+
props.onLoad && props.onLoad();
|
|
1845
|
+
}
|
|
1846
|
+
function handleIndexBtn(e) {
|
|
1847
|
+
set_currentCurve(e.target.value);
|
|
1848
|
+
}
|
|
1849
|
+
function renderPointModal() {
|
|
1850
|
+
var handleCancel = function handleCancel() {
|
|
1851
|
+
set_isShowPointModal(false);
|
|
1852
|
+
};
|
|
1853
|
+
return isShowPointModal && pointData ? (/*#__PURE__*/React.createElement(Modal, {
|
|
1854
|
+
style: pointData.style,
|
|
1855
|
+
className: "point-modal",
|
|
1856
|
+
visible: isShowPointModal,
|
|
1857
|
+
footer: null,
|
|
1858
|
+
onCancel: handleCancel
|
|
1859
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1860
|
+
className: "info-item"
|
|
1861
|
+
}, "\u5B55\u5468\uFF1A", pointData.x), /*#__PURE__*/React.createElement("span", {
|
|
1862
|
+
className: "info-item"
|
|
1863
|
+
}, pointData.line, "\uFF1A", pointData.y), /*#__PURE__*/React.createElement("span", null, "\u80CE\u513F\u4FE1\u606F\uFF1A\u80CE\u513F", pointData.fetus))) : null;
|
|
1864
|
+
}
|
|
1865
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1866
|
+
className: "fetus-wrapper"
|
|
1867
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
1868
|
+
style: {
|
|
1869
|
+
position: 'absolute',
|
|
1870
|
+
top: 8,
|
|
1871
|
+
left: 40,
|
|
1872
|
+
margin: 0
|
|
1873
|
+
}
|
|
1874
|
+
}, "\u6307\u6807\uFF1A", /*#__PURE__*/React.createElement(Radio.Group, {
|
|
1875
|
+
className: "bmi-radio",
|
|
1876
|
+
value: currentCurve,
|
|
1877
|
+
options: curveOptions,
|
|
1878
|
+
onChange: handleIndexBtn
|
|
1879
|
+
})), !get(props, 'hidePrintBtn') && (/*#__PURE__*/React.createElement(Space, {
|
|
1880
|
+
style: {
|
|
1881
|
+
position: 'absolute',
|
|
1882
|
+
top: 8,
|
|
1883
|
+
right: 50
|
|
1884
|
+
}
|
|
1885
|
+
}, /*#__PURE__*/React.createElement(ReactToPrint, {
|
|
1886
|
+
trigger: function trigger() {
|
|
1887
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
1888
|
+
type: "primary",
|
|
1889
|
+
size: "small"
|
|
1890
|
+
}, /*#__PURE__*/React.createElement(MyIcon, {
|
|
1891
|
+
value: 'PrinterOutlined'
|
|
1892
|
+
}), "\u6253\u5370");
|
|
1893
|
+
},
|
|
1894
|
+
content: function content() {
|
|
1895
|
+
return printCanvas('fetus-canvas');
|
|
1896
|
+
}
|
|
1897
|
+
}), !isAllPregnancies && (/*#__PURE__*/React.createElement(FetuGrowsEdit, {
|
|
1898
|
+
value: formData,
|
|
1899
|
+
onSubmit: getFetusData
|
|
1900
|
+
})))), /*#__PURE__*/React.createElement("canvas", {
|
|
1901
|
+
id: "fetus-canvas",
|
|
1902
|
+
className: "fetus-canvas"
|
|
1903
|
+
}, "\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301canvas\uFF0C\u8BF7\u66F4\u6362\u6D4F\u89C8\u5668."), renderPointModal(), /*#__PURE__*/React.createElement("span", {
|
|
1904
|
+
className: "fetus-wrapper-note"
|
|
1905
|
+
}, "\u4F9D\u636E\uFF1ANICHD\u4E9A\u88D4\u80CE\u513F\u751F\u957F\u66F2\u7EBF"));
|
|
1906
|
+
}
|
|
1907
|
+
export { FetusCanvasNICHD as default };
|