Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跨多行connection渲染失败 #59

Open
kinginsun opened this issue Mar 14, 2020 · 1 comment
Open

跨多行connection渲染失败 #59

kinginsun opened this issue Mar 14, 2020 · 1 comment

Comments

@kinginsun
Copy link

测试json:

{
"content": "1. Carbamazepine (CBZ) is an antiepileptic drug with narrow therapeutic window and administration in humans receiving long-term therapy with diosmin (DSN) may occur, which leads to CYP3A4-mediated drug interactions. The purpose of the present study was to assess the influence of DSN on the metabolism and pharmacokinetics of CBZ in healthy volunteers. 2. An open-label, sequential, two-period study was conducted in 12 healthy male volunteers. A single dose of DSN 500 mg was administered once daily for 10 days during treatment phase. A single dose of CBZ 200 mg was administered during control and after treatment phases under fasting conditions. The blood samples were collected after CBZ dosing at predetermined time intervals and analyzed by LC-MS/MS. 3. Treatment with DSN significantly enhanced the maximum plasma concentration (Cmax),area under the curve (AUC), half-life (t1/2) and significantly decreased the apparent oral clearance (CL/F) and elimination rate constant (Kel) of CBZ. On the other hand, treatment with DSN significantly decreased the Cmaxand AUC of carbamazepine 10, 11-epoxide (CBZE). Furthermore, treatment with DSN significantly decreased the metabolite to parent ratios of Cmaxand AUC, indicating the reduced metabolism of CBZ to CBZE. 4. The results suggest that the altered CYP3A4 enzyme activity and pharmacokinetics of CBZ might be attributed to DSN-mediated inhibition of CYP3A4 enzyme, which indicates pharmacokinetic interaction present between DSN and CBZ. Therefore, we conclude that DSN has an inhibiting effect on the metabolism and disposition of CBZ.",
"labelCategories": [
{
"id": 0,
"text": "Herb/herbal component",
"color": "#eac0a2",
"borderColor": "#8c7361"
},
{
"id": 1,
"text": "Western Drug",
"color": "#7ed321",
"borderColor": "#f8e71c"
}],
"labels": [
{
"id": 0,
"categoryId": 1,
"startIndex": "3",
"endIndex": "16"
},
{
"id": 1,
"categoryId": 1,
"startIndex": "1076",
"endIndex": "1104"
}],
"connections": [
{
"id": 0,
"categoryId": 12,
"fromId": 1,
"toId": 0
}],
"connectionCategories": [
{
"id": 12,
"text": "Metabolite of"
}]
}

上面的json载入后,就会报错:
TypeError: this.svgElement is null ConnectionView.ts:141:6

请帮忙看下,谢谢。

@kinginsun
Copy link
Author

update() {
if(this.svgElement){
this.svgElement.style.transform =
translate(${this.textLeft}px,${this.globalY}px);
this.updateLine();
}
}
先做个判断,好似就可以了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant