Skip to content

Commit 4684113

Browse files
committed
Built site for gh-pages
1 parent ede060a commit 4684113

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+20116
-0
lines changed

.nojekyll

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9eeaaee9

adding_features.html

+1,247
Large diffs are not rendered by default.
Loading
Loading

cdm_reference.html

+1,083
Large diffs are not rendered by default.

comparing_cohorts.html

+688
Large diffs are not rendered by default.

creating_cohorts.html

+1,030
Large diffs are not rendered by default.

data_analysis.html

+688
Large diffs are not rendered by default.

end_matter.html

+688
Large diffs are not rendered by default.

explore.html

+695
Large diffs are not rendered by default.

exploring_the_cdm.html

+1,299
Large diffs are not rendered by default.
Loading
Loading
Loading
Loading
Loading

getting_started.html

+1,117
Large diffs are not rendered by default.
Loading
Loading
Loading

images/erd.jpg

969 KB
Loading

images/lter_penguins.png

1.2 MB
Loading

index.html

+731
Large diffs are not rendered by default.

omop_clinical_tables.html

+688
Large diffs are not rendered by default.

omop_person_obs_period.html

+701
Large diffs are not rendered by default.

omop_vocabularies.html

+688
Large diffs are not rendered by default.

references.html

+706
Large diffs are not rendered by default.

search.json

+439
Large diffs are not rendered by default.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.DiagrammeR,.grViz pre {
2+
white-space: pre-wrap; /* CSS 3 */
3+
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
4+
white-space: -pre-wrap; /* Opera 4-6 */
5+
white-space: -o-pre-wrap; /* Opera 7 */
6+
word-wrap: break-word; /* Internet Explorer 5.5+ */
7+
}
8+
9+
.DiagrammeR g .label {
10+
font-family: Helvetica;
11+
font-size: 14px;
12+
color: #333333;
13+
}
14+

site_libs/bootstrap/bootstrap-8da5b4427184b79ecddefad3d342027e.min.css

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site_libs/bootstrap/bootstrap-icons.css

+2,078
Large diffs are not rendered by default.
172 KB
Binary file not shown.

site_libs/bootstrap/bootstrap.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site_libs/clipboard/clipboard.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
HTMLWidgets.widget({
2+
3+
name: 'grViz',
4+
5+
type: 'output',
6+
7+
initialize: function(el, width, height) {
8+
9+
return {
10+
// TODO: add instance fields as required
11+
};
12+
},
13+
14+
renderValue: function(el, x, instance) {
15+
// Use this to sort of make our diagram responsive
16+
// or at a minimum fit within the bounds set by htmlwidgets
17+
// for the parent container
18+
function makeResponsive(el){
19+
var svg = el.getElementsByTagName("svg")[0];
20+
if (svg) {
21+
if (svg.width) {svg.removeAttribute("width")}
22+
if (svg.height) {svg.removeAttribute("height")}
23+
svg.style.width = "100%";
24+
svg.style.height = "100%";
25+
}
26+
}
27+
28+
if (x.diagram !== "") {
29+
30+
if (typeof x.config === "undefined"){
31+
x.config = {};
32+
x.config.engine = "dot";
33+
x.config.options = {};
34+
}
35+
36+
try {
37+
38+
el.innerHTML = Viz(x.diagram, format="svg", engine=x.config.engine, options=x.config.options);
39+
40+
makeResponsive(el);
41+
42+
if (HTMLWidgets.shinyMode) {
43+
// Get widget id
44+
var id = el.id;
45+
46+
$("#" + id + " .node").click(function(e) {
47+
// Get node id
48+
var nodeid = e.currentTarget.id;
49+
// Get node text object and make an array
50+
var node_texts = $("#" + id + " #" + nodeid + " text");
51+
//var node_path = $("#" + nodeid + " path")[0];
52+
var text_array = node_texts.map(function() {return $(this).text(); }).toArray();
53+
// Build return object *obj* with node-id, node text values and node fill
54+
var obj = {
55+
id: nodeid,
56+
//fill: node_path.attributes.fill.nodeValue,
57+
//outerHMTL: node_path.outerHTML,
58+
nodeValues: text_array
59+
};
60+
// Send *obj* to Shiny's inputs (input$[id]+_click e.g.: input$vtree_click))
61+
Shiny.setInputValue(id + "_click", obj, {priority: "event"});
62+
});
63+
}
64+
65+
// set up a container for tasks to perform after completion
66+
// one example would be add callbacks for event handling
67+
// styling
68+
if (typeof x.tasks !== "undefined") {
69+
if ((typeof x.tasks.length === "undefined") ||
70+
(typeof x.tasks === "function")) {
71+
// handle a function not enclosed in array
72+
// should be able to remove once using jsonlite
73+
x.tasks = [x.tasks];
74+
}
75+
x.tasks.map(function(t){
76+
// for each tasks add it to the mermaid.tasks with el
77+
t.call(el);
78+
});
79+
}
80+
} catch(e){
81+
var p = document.createElement("pre");
82+
p.innerText = e;
83+
el.appendChild(p);
84+
}
85+
}
86+
87+
},
88+
89+
resize: function(el, width, height, instance) {
90+
}
91+
});

0 commit comments

Comments
 (0)