Skip to content

Commit d5a6e70

Browse files
feat(RDKit): add Size parameter (#5064)
* doc: 增加 Smarts 示例 * doc: 增加 Smarts 示例 * chore: 更新依赖包到最新 * doc(RDKit): add Size parameter document --------- Co-authored-by: Alex chow <[email protected]>
1 parent e4c37db commit d5a6e70

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="9.0.1" />
5454
<PackageReference Include="BootstrapBlazor.PdfReader" Version="9.0.0" />
5555
<PackageReference Include="BootstrapBlazor.Player" Version="9.0.0" />
56-
<PackageReference Include="BootstrapBlazor.RDKit" Version="9.0.0-beta03" />
56+
<PackageReference Include="BootstrapBlazor.RDKit" Version="9.0.1" />
5757
<PackageReference Include="BootstrapBlazor.SignaturePad" Version="9.0.0" />
5858
<PackageReference Include="BootstrapBlazor.Sortable" Version="9.0.1" />
5959
<PackageReference Include="BootstrapBlazor.Splitting" Version="9.0.1" />

src/BootstrapBlazor.Server/Components/Samples/RDKits.razor

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
<RDKit Value="CC(=O)Oc1ccccc1C(=O)O"></RDKit>
1414
</DemoBlock>
1515

16+
<DemoBlock Title="@Localizer["RDKitSizeTitle"]"
17+
Introduction="@Localizer["RDKitSizeIntro"]"
18+
Name="Size">
19+
<RDKit Value="CC(=O)Oc1ccccc1C(=O)O" Width="200" Height="100"></RDKit>
20+
</DemoBlock>
21+
1622
<DemoBlock Title="@Localizer["RDKitSmartsTitle"]"
1723
Introduction="@Localizer["RDKitSmartsIntro"]"
1824
Name="Smarts">

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6846,6 +6846,8 @@
68466846
"RDKitNormalIntro": "Set the molecular formula through <code>Value</code> and draw the component",
68476847
"RDKitSmartsTitle": "Smarts",
68486848
"RDKitSmartsIntro": "By setting the <code>Smarts</code> value, parts of the molecular formula can be highlighted",
6849-
"RDKitSmartsLabel": "Show Smarts"
6849+
"RDKitSmartsLabel": "Show Smarts",
6850+
"RDKitSizeTitle": "Size",
6851+
"RDKitSizeIntro": "Set the width and height of the molecular formula by setting the <code>Width</code> and <code>Height</code> values"
68506852
}
68516853
}

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6846,6 +6846,8 @@
68466846
"RDKitNormalIntro": "通过 <code>Value</code> 设置分子式,组件画图",
68476847
"RDKitSmartsTitle": "Smarts",
68486848
"RDKitSmartsIntro": "通过设置 <code>Smarts</code> 值,高亮显示部分分子式",
6849-
"RDKitSmartsLabel": "显示 Smarts"
6849+
"RDKitSmartsLabel": "显示 Smarts",
6850+
"RDKitSizeTitle": "尺寸",
6851+
"RDKitSizeIntro": "通过设置 <code>Width</code> <code>Height</code> 值设置分子式宽高"
68506852
}
68516853
}

0 commit comments

Comments
 (0)