From 69e72bd144abcc5dc305934b1f719ad21fc64a90 Mon Sep 17 00:00:00 2001 From: zzossig Date: Thu, 3 Dec 2020 01:04:27 +0900 Subject: [PATCH] d3-cloud added --- data/lib.toml | 6 +++++- layouts/partials/script/single-script.html | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/data/lib.toml b/data/lib.toml index 5dca25b..e1a7651 100644 --- a/data/lib.toml +++ b/data/lib.toml @@ -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" \ No newline at end of file + 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" \ No newline at end of file diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html index daf5a89..26c905f 100644 --- a/layouts/partials/script/single-script.html +++ b/layouts/partials/script/single-script.html @@ -109,6 +109,9 @@ {{ if in .Params.Libraries "d3_contour" }} {{ end }} +{{ if in .Params.Libraries "d3_cloud" }} + +{{ end }} {{ if in .Params.Libraries "mermaid" }}