d3-cloud added

This commit is contained in:
zzossig 2020-12-03 01:04:27 +09:00
parent 13e290e9dc
commit 69e72bd144
2 changed files with 8 additions and 1 deletions

View File

@ -236,4 +236,8 @@
[d3.d3_contour]
sri = "sha256-i10ISq4/JP3k0HZE8gqbakhgaOjQKWn0Pm8oBUUwqNQ="
url = "https://cdn.jsdelivr.net/npm/d3-contour@2.0.0/dist/d3-contour.min.js"
url = "https://cdn.jsdelivr.net/npm/d3-contour@2.0.0/dist/d3-contour.min.js"
[d3.d3_cloud]
sri = "" # no sri
url = "https://cdn.jsdelivr.net/npm/d3-cloud@1.2.5/build/d3.layout.cloud.min.js"

View File

@ -109,6 +109,9 @@
{{ if in .Params.Libraries "d3_contour" }}
<script defer src="{{ $d3.d3_contour.url }}" integrity="{{ $d3.d3_contour.sri }}" crossorigin="anonymous"></script>
{{ end }}
{{ if in .Params.Libraries "d3_cloud" }}
<script defer src="{{ $d3.d3_cloud.url }}" integrity="{{ $d3.d3_cloud.sri }}" crossorigin="anonymous"></script>
{{ end }}
{{ if in .Params.Libraries "mermaid" }}
<script defer src="{{ $js.mermaid.url }}" integrity="{{ $js.mermaid.sri }}" crossorigin="anonymous"></script>