Skip to content

Commit 4bd63e1

Browse files
author
pedro
committed
initial commit
1 parent d17cfee commit 4bd63e1

Some content is hidden

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

64 files changed

+15880
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# model-viewer
2+
vis.js viewer for models with XHR loading from a models repo

css/cobalt.css

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
.ace-cobalt .ace_gutter {
2+
background: #011e3a;
3+
color: rgb(128,145,160)
4+
}
5+
6+
.ace-cobalt .ace_print-margin {
7+
width: 1px;
8+
background: #555555
9+
}
10+
11+
.ace-cobalt {
12+
background-color: #002240;
13+
color: #FFFFFF
14+
}
15+
16+
.ace-cobalt .ace_cursor {
17+
color: #FFFFFF
18+
}
19+
20+
.ace-cobalt .ace_marker-layer .ace_selection {
21+
background: rgba(179, 101, 57, 0.75)
22+
}
23+
24+
.ace-cobalt.ace_multiselect .ace_selection.ace_start {
25+
box-shadow: 0 0 3px 0px #002240;
26+
}
27+
28+
.ace-cobalt .ace_marker-layer .ace_step {
29+
background: rgb(127, 111, 19)
30+
}
31+
32+
.ace-cobalt .ace_marker-layer .ace_bracket {
33+
margin: -1px 0 0 -1px;
34+
border: 1px solid rgba(255, 255, 255, 0.15)
35+
}
36+
37+
.ace-cobalt .ace_marker-layer .ace_active-line {
38+
background: rgba(0, 0, 0, 0.35)
39+
}
40+
41+
.ace-cobalt .ace_gutter-active-line {
42+
background-color: rgba(0, 0, 0, 0.35)
43+
}
44+
45+
.ace-cobalt .ace_marker-layer .ace_selected-word {
46+
border: 1px solid rgba(179, 101, 57, 0.75)
47+
}
48+
49+
.ace-cobalt .ace_invisible {
50+
color: rgba(255, 255, 255, 0.15)
51+
}
52+
53+
.ace-cobalt .ace_keyword,
54+
.ace-cobalt .ace_meta {
55+
color: #FF9D00
56+
}
57+
58+
.ace-cobalt .ace_constant,
59+
.ace-cobalt .ace_constant.ace_character,
60+
.ace-cobalt .ace_constant.ace_character.ace_escape,
61+
.ace-cobalt .ace_constant.ace_other {
62+
color: #FF628C
63+
}
64+
65+
.ace-cobalt .ace_invalid {
66+
color: #F8F8F8;
67+
background-color: #800F00
68+
}
69+
70+
.ace-cobalt .ace_support {
71+
color: #80FFBB
72+
}
73+
74+
.ace-cobalt .ace_support.ace_constant {
75+
color: #EB939A
76+
}
77+
78+
.ace-cobalt .ace_fold {
79+
background-color: #FF9D00;
80+
border-color: #FFFFFF
81+
}
82+
83+
.ace-cobalt .ace_support.ace_function {
84+
color: #FFB054
85+
}
86+
87+
.ace-cobalt .ace_storage {
88+
color: #FFEE80
89+
}
90+
91+
.ace-cobalt .ace_entity {
92+
color: #FFDD00
93+
}
94+
95+
.ace-cobalt .ace_string {
96+
color: #3AD900
97+
}
98+
99+
.ace-cobalt .ace_string.ace_regexp {
100+
color: #80FFC2
101+
}
102+
103+
.ace-cobalt .ace_comment {
104+
font-style: italic;
105+
color: #0088FF
106+
}
107+
108+
.ace-cobalt .ace_heading,
109+
.ace-cobalt .ace_markup.ace_heading {
110+
color: #C8E4FD;
111+
background-color: #001221
112+
}
113+
114+
.ace-cobalt .ace_list,
115+
.ace-cobalt .ace_markup.ace_list {
116+
background-color: #130D26
117+
}
118+
119+
.ace-cobalt .ace_variable {
120+
color: #CCCCCC
121+
}
122+
123+
.ace-cobalt .ace_variable.ace_language {
124+
color: #FF80E1
125+
}
126+
127+
.ace-cobalt .ace_meta.ace_tag {
128+
color: #9EFFFF
129+
}
130+
131+
.ace-cobalt .ace_indent-guide {
132+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHCLSvkPAAP3AgSDTRd4AAAAAElFTkSuQmCC) right repeat-y
133+
}

css/viz.js.css

+156
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
#app {
2+
display: flex;
3+
display: -webkit-flex;
4+
flex-direction: column;
5+
-webkit-flex-direction: column;
6+
position: absolute;
7+
top: 0;
8+
left: 0;
9+
width: 100%;
10+
height: 100%;
11+
}
12+
13+
#header {
14+
flex: 0 0 auto;
15+
-webkit-flex: 0 0 auto;
16+
line-height: 1.3;
17+
}
18+
19+
#panes {
20+
display: flex;
21+
display: -webkit-flex;
22+
flex: 1 1 auto;
23+
-webkit-flex: 1 1 auto;
24+
}
25+
26+
#graph {
27+
display: flex;
28+
display: -webkit-flex;
29+
flex-direction: column;
30+
-webkit-flex-direction: column;
31+
}
32+
33+
#options {
34+
flex: 0 0 auto;
35+
-webkit-flex: 0 0 auto;
36+
}
37+
38+
#options1 {
39+
flex: 0 0 auto;
40+
-webkit-flex: 0 0 auto;
41+
}
42+
43+
#output {
44+
flex: 1 1 auto;
45+
-webkit-flex: 1 1 auto;
46+
position: relative;
47+
overflow: auto;
48+
}
49+
50+
51+
#editor {
52+
border-right: 1px solid #ccc;
53+
}
54+
55+
#header {
56+
background: #eee;
57+
border-bottom: 1px solid #ccc;
58+
padding: 8px;
59+
text-align: center;
60+
}
61+
62+
#header b {
63+
font-size: 18px;
64+
}
65+
66+
#options {
67+
background: #eee;
68+
border-bottom: 1px solid #ccc;
69+
padding: 8px;
70+
}
71+
72+
#options label {
73+
margin-right: 8px;
74+
}
75+
76+
#options #raw.disabled {
77+
opacity: 0.5;
78+
}
79+
80+
#output svg {
81+
position: absolute;
82+
top: 0;
83+
left: 0;
84+
width: 100%;
85+
height: 100%;
86+
}
87+
88+
#output #text {
89+
font-size: 12px;
90+
font-family: monaco, courier, monospace;
91+
white-space: pre;
92+
position: absolute;
93+
top: 0;
94+
left: 0;
95+
width: 100%;
96+
height: 100%;
97+
overflow: auto;
98+
}
99+
100+
#output img {
101+
display: block;
102+
margin: 0 auto;
103+
}
104+
105+
#output.working svg, #output.error svg,
106+
#output.working #text, #output.error #text,
107+
#output.working img, #output.error img {
108+
opacity: 0.4;
109+
}
110+
111+
#output.error #error {
112+
display: inherit;
113+
}
114+
115+
#output #error {
116+
display: none;
117+
position: absolute;
118+
top: 20px;
119+
left: 20px;
120+
margin-right: 20px;
121+
background: red;
122+
color: white;
123+
z-index: 1;
124+
}
125+
126+
.gutter {
127+
background-color: #444eee;
128+
background-repeat: no-repeat;
129+
background-position: 50%;
130+
}
131+
132+
.gutter.gutter-horizontal {
133+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
134+
cursor: ew-resize;
135+
}
136+
137+
.split {
138+
-webkit-box-sizing: border-box;
139+
-moz-box-sizing: border-box;
140+
box-sizing: border-box;
141+
142+
overflow-y: auto;
143+
overflow-x: hidden;
144+
}
145+
146+
.split.split-horizontal, .gutter.gutter-horizontal {
147+
height: 100%;
148+
float: left;
149+
}
150+
151+
152+
#subs {
153+
width: 5%;
154+
resize: both;
155+
overflow: auto;
156+
}

dot_files/simple1.dot

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
digraph DCAT_v2_summary{
2+
ratio = "auto"
3+
a -> b;
4+
}

0 commit comments

Comments
 (0)