master
Tancre 4 years ago
parent 712a31b571
commit 9c347c4809

Before

Width:  |  Height:  |  Size: 815 KiB

After

Width:  |  Height:  |  Size: 815 KiB

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Before

Width:  |  Height:  |  Size: 962 KiB

After

Width:  |  Height:  |  Size: 962 KiB

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Before

Width:  |  Height:  |  Size: 800 KiB

After

Width:  |  Height:  |  Size: 800 KiB

Before

Width:  |  Height:  |  Size: 1013 KiB

After

Width:  |  Height:  |  Size: 1013 KiB

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Before

Width:  |  Height:  |  Size: 682 KiB

After

Width:  |  Height:  |  Size: 682 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 949 B

After

Width:  |  Height:  |  Size: 949 B

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File diff suppressed because one or more lines are too long

@ -1,226 +0,0 @@
body{ font-family: "Lucida Console", Monaco, monospace;
overflow: hidden;}
p { font-size: 20px; }
a{ text-decoration: none; }
#space-time{
z-index: 101;
position: relative;
width: 600px;
height: 500px;
top: 1158px;
left: 853px;
}
#ilinx{
position: absolute;
width: 106px;
left: 250px;
top: 420px;
}
.ilinx {
font-size: 35px;
margin-top: -2px;
float:left;
cursor: grab;
}
#spiral {
width: 300px;
position: absolute;
margin-top: -150px;
margin-left: -150px;
top: 250px;
left: 300px;
}
.rotating {
-webkit-animation: rotating 3s linear infinite;
-moz-animation: rotating 3s linear infinite;
-ms-animation: rotating 3s linear infinite;
-o-animation: rotating 3s linear infinite;
animation: rotating 3s linear infinite;
}
#islands{
}
a.island:link{color:blue;}
a.island:hover{color: red;
-webkit-animation: breathe 3s linear infinite;
-moz-animation: breathe 3s linear infinite;
-ms-animation: breathe 3s linear infinite;
-o-animation: breathe 3s linear infinite;
animation: breathe 3s linear infinite;
}
a.island:visited{color: black;}
#lemuria {
position: absolute;
left: 68px;
top:269px;
}
#mu {
position: absolute;
left: 189px;
top:76px;
}
#hyperborea {
position: absolute;
left: 444px;
top: 151px;
}
#thule{
position: absolute;
left: 421px;
top:322px;
}
#sea {
position: relative;
width: 2500px;
height: 2500px;
/* border-style: dotted;
border-width: 2px;*/
top: -990px;
left: -145px;
/* background-image: url('./img/grid3.png');
background-repeat: repeat;*/
}
#iper{
position: relative;
left: -27px;
top: -47px;
}
#m {
position: relative;
left: -632px;
top: -48px;
}
#thl{
position: relative;
left: -30px;
top: -38px;
}
#lmr{
position: relative;
left: -532px;
top: -28px;
}
/* SVG */
text {
font-family: "Lucida Console", Monaco, monospace;
color: black;
stroke: white;
stroke-width: 6;
stroke-linejoin: round;
paint-order: stroke;
}
text.region {
stroke-width:6;
font-variant: small-caps;
}
svg {
float: right;
}
path, line {
fill: none;
stroke: black;
stroke-linecap: round;
}
.field {
stroke: none;
fill-opacity: 1.0;
}
.slope {
stroke-width: 1;
}
.river {
stroke-width: 2;
}
.coast {
stroke-width: 4;
}
.border {
stroke-width: 5;
stroke-dasharray: 4,4;
stroke-linecap: butt;
}
/* Rotate loop */
@-webkit-keyframes rotating /* Safari and Chrome */ {
from {
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes rotating {
from {
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
/* Breathing text */
@-webkit-keyframes breathe /* Safari and Chrome */ {
0% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
50% {font-size:21px; color: red; letter-spacing: 1px; margin-left: -6px;}
100% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
}
@keyframes breathe {
0% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
50% {font-size:21px; color: red; letter-spacing: 1px; margin-left: -6px;}
100% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
}

File diff suppressed because one or more lines are too long

@ -1,256 +1,128 @@
/* ----------------------------- GLOBAL ----------------------------- */
body{ font-family: "Lucida Console", Monaco, monospace;
overflow: hidden;
background-color: black;
color: white;}
overflow: hidden;}
p { font-size: 20px; }
a{ text-decoration: none; }
/* ----------------------------- SPACE ----------------------------- */
#chaos {
#space-time{
z-index: 101;
position: relative;
width: 2500px;
height: 2000px;
width: 600px;
height: 500px;
top: 1158px;
left: 853px;
}
#space {
position: absolute;
width: 2500px;
height: 2000px;
transform:translate(-12%,-28%);
top: 0px;
left: 0px;
/* border-style: dotted;
border-width: 2px;*/
/* background-image: url('../img/grid3.png');
background-repeat: repeat;*/
}
/* --------------------- TIME ------------------------ */
#time{
position: absolute;
width: 600px;
height: 500px;
z-index: 101;
transform:translate(-50%,-50%);
top: 50%;
left: 50%;
}
#ilinx{
position: absolute;
width: 220px;
left: 190px;
top: 420px;
}
.ilinx {
font-size: 35px;
margin-top: -2px;
float:left;
text-align: right;
width: 40px;
/*cursor: grab;*/
}
#i {cursor: url('./arrow.png'), auto;}
#l {cursor: url('./lemur.png'), auto;}
#ii {cursor: url('./laby.png'), auto;}
#n {cursor: url('./mu.png'), auto;}
#x {cursor: url('./fish3.png'), auto;}
#spiral {
width: 300px;
position: absolute;
margin-top: -150px;
margin-left: -150px;
top: 250px;
left: 300px;
}
.rotating {
-webkit-animation: rotating 3s linear infinite;
-moz-animation: rotating 3s linear infinite;
-ms-animation: rotating 3s linear infinite;
-o-animation: rotating 3s linear infinite;
animation: rotating 3s linear infinite;
}
a.island:link{color:white;}
a.island:hover{color: red;
-webkit-animation: breathe 3s linear infinite;
-moz-animation: breathe 3s linear infinite;
-ms-animation: breathe 3s linear infinite;
-o-animation: breathe 3s linear infinite;
animation: breathe 3s linear infinite;
}
a.island:visited{color: white;}
#lemuria {
position: absolute;
left: 68px;
top:269px;
}
#mu {
position: absolute;
left: 189px;
top:76px;
}
#hyperborea {
position: absolute;
left: 444px;
top: 151px;
}
#thule{
position: absolute;
left: 421px;
top:322px;
}
/* ----------------------------- FORM ----------------------------- */
#form{
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
#ilinx{
position: absolute;
width: 106px;
left: 250px;
top: 420px;
}
#iper{
position: absolute;
right: 0px;
top: 0px;
.ilinx {
font-size: 35px;
margin-top: -2px;
float:left;
cursor: grab;
}
#m {
position: absolute;
left: 0px;
top: 0px;
}
#thl{
position: absolute;
right: 0px;
bottom: 0px;
}
#lmr{
#spiral {
width: 300px;
position: absolute;
left: 0px;
bottom: 0px;
}
/* --------------------- PLACES ------------------------ */
.places{
position: absolute;
text-align: center;
background-color: white;
margin-top: -150px;
margin-left: -150px;
top: 250px;
left: 300px;
}
/* -------------- LEMURIA ---------------- */
#MVU { left: 278px; top: 321px; }
/* ---------------- MU ------------------ */
#Katak_temple { left: 379px; top: 504px; }
/* ------------ HYPERBOREA -------------- */
#Lab_1 { left: 423px; top: 876px; }
/* -------------- THULE ----------------- */
#Castalia { left: 500px; top: 704px; }
.rotating {
-webkit-animation: rotating 3s linear infinite;
-moz-animation: rotating 3s linear infinite;
-ms-animation: rotating 3s linear infinite;
-o-animation: rotating 3s linear infinite;
animation: rotating 3s linear infinite;
}
/* ------------------ PLACES STYLE -------------------- */
.inner{
font-size: 15px;
background-color: yellow;
#islands{
}
a.place:hover{letter-spacing: -4px;
color: green;
-webkit-animation: breathe 1s linear infinite;
-moz-animation: breathe 1s linear infinite;
-ms-animation: breathe 1s linear infinite;
-o-animation: breathe 1s linear infinite;
animation: breathe 1s linear infinite;}
a.island:link{color:blue;}
a.island:hover{color: red;
-webkit-animation: breathe 3s linear infinite;
-moz-animation: breathe 3s linear infinite;
-ms-animation: breathe 3s linear infinite;
-o-animation: breathe 3s linear infinite;
animation: breathe 3s linear infinite;
}
a.island:visited{color: black;}
#lemuria {
position: absolute;
left: 68px;
top:269px;
#black_hole{ left: 275.5px;
top: 559.5px; transform: scale(1.5,1.5)}
.black_hole {
border-color: #00fc33 !important;
background-color: black;
}
#bh1{animation-delay: 0.33s;}
#bh2{animation-delay: 0.66s;}
#mu {
position: absolute;
left: 189px;
top:76px;
}
#hyperborea {
position: absolute;
left: 444px;
top: 151px;
.pulse{ width: 30px;
height: 30px;
position: absolute;
left: 678px;
top: 717px;}
}
.pulsate {
position: absolute;
animation: pulsate 2s ease-out;
animation-iteration-count: infinite;
opacity: 0.0;
#thule{
position: absolute;
left: 421px;
top:322px;
}
/* you dont need the stuff below, but its what I used to create the loading circle */
border: 3px solid red;
border-radius: 30px;
height: 18px;
width: 18px;
display: inline-block;
margin-top: 20px;
text-align: center;
#sea {
position: relative;
width: 2500px;
height: 2500px;
/* border-style: dotted;
border-width: 2px;*/
top: -990px;
left: -145px;
/* background-image: url('./img/grid3.png');
background-repeat: repeat;*/
}
#pulse1{animation-delay: 0.0s;}
#pulse2{animation-delay: 0.66s;}
#pulse3{animation-delay: 1.33s;}
/* Make the element pulse (grow large and small slowly) */
/* Usage
.myElement {
animation: pulsate 1s ease-out;
animation-iteration-count: infinite;
opacity: 1;
}
*/
@-webkit-keyframes pulsate {
0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
50% {opacity: 1.0;}
100% {-webkit-transform: scale(3, 3); opacity: 0.0;}
#iper{
position: relative;
left: -27px;
top: -47px;
}
#m {
position: relative;
left: -632px;
top: -48px;
}
#thl{
position: relative;
left: -30px;
top: -38px;
}
/* ----------------------------- SVG ----------------------------- */
#lmr{
position: relative;
left: -532px;
top: -28px;
}
/* SVG */
text {
font-family: "Lucida Console", Monaco, monospace;
color: black;
@ -269,22 +141,12 @@ svg {
float: right;
}
path {
path, line {
fill: none;
stroke: white;
stroke: black;
stroke-linecap: round;
}
line {
fill: none;
stroke: white;
stroke-linecap: round;
}
circle{
stroke: blue !important;
}
.field {
stroke: none;
fill-opacity: 1.0;
@ -310,7 +172,13 @@ circle{
/* ----------------------------- ANIMATIONS ----------------------------- */
/* Rotate loop */
@ -343,6 +211,7 @@ circle{
}
}
/* Breathing text */
@-webkit-keyframes breathe /* Safari and Chrome */ {
@ -354,104 +223,4 @@ circle{
0% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
50% {font-size:21px; color: red; letter-spacing: 1px; margin-left: -6px;}
100% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
}
.lds-hourglass {
display: inline-block;
position: absolute;
width: 80px;
height: 80px;
}
.lds-hourglass:after {
content: " ";
display: block;
border-radius: 50%;
width: 0;
height: 0;
margin: 8px;
box-sizing: border-box;
border: 32px solid #fff;
border-color: #fff transparent #fff transparent;
animation: lds-hourglass 1.2s infinite;
}
@keyframes lds-hourglass {
0% {
transform: rotate(0);
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
50% {
transform: rotate(900deg);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
100% {
transform: rotate(1800deg);
}
}
html, body {
height: 100%;
}
html {
font-size: 10px;
}
body {
background-color: black !important;
background: radial-gradient(15px 5px at 25% 0, transparent 0%, transparent 80%, rgba(255, 255, 255, 0.04) 80%, rgba(255, 255, 255, 0.04) 99%, transparent 99%, transparent 100%),
radial-gradient(15px 5px at 75% 100%, transparent 0%, transparent 80%, rgba(255, 255, 255, 0.04) 80%, rgba(255, 255, 255, 0.04) 99%, transparent 99%, transparent 100%),
radial-gradient(10px 3px at 25% 0, transparent 0%, transparent 70%, rgba(255, 255, 255, 0.03) 70%, rgba(255, 255, 255, 0.03) 99%, transparent 99%, transparent 100%),
radial-gradient(10px 3px at 75% 100%, transparent 0%, transparent 70%, rgba(255, 255, 255, 0.03) 70%, rgba(255, 255, 255, 0.03) 99%, transparent 99%, transparent 100%),
radial-gradient(30px 8px at 25% 0, transparent 0%, transparent 55%, rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.02) 99%, transparent 99%, transparent 100%),
radial-gradient(30px 8px at 75% 100%, transparent 0%, transparent 55%, rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.02) 99%, transparent 99%, transparent 100%), #c4cbc3;
background-size: 60px 40px, 60px 40px, 40px 24px, 40px 24px, 120px 64px, 120px 64px;
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
-webkit-animation: wave 15s linear infinite;
animation: wave 15s linear infinite;
}
@-webkit-keyframes wave {
0% {
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
}
20% {
background-position: 51% 48%, 51% 48%, 53% 52%, 53% 52%, 48% 47%, 48% 47%;
}
40% {
background-position: 49% 51%, 49% 51%, 48% 51%, 48% 51%, 54% 50%, 54% 50%;
}
60% {
background-position: 53% 54%, 53% 54%, 46% 54%, 46% 54%, 53% 46%, 53% 46%;
}
80% {
background-position: 51% 52%, 51% 52%, 49% 49%, 49% 49%, 49% 48%, 49% 48%;
}
0% {
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
}
}
@keyframes wave {
0% {
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
}
20% {
background-position: 51% 48%, 51% 48%, 53% 52%, 53% 52%, 48% 47%, 48% 47%;
}
40% {
background-position: 49% 51%, 49% 51%, 48% 51%, 48% 51%, 54% 50%, 54% 50%;
}
60% {
background-position: 53% 54%, 53% 54%, 46% 54%, 46% 54%, 53% 46%, 53% 46%;
}
80% {
background-position: 51% 52%, 51% 52%, 49% 49%, 49% 49%, 49% 48%, 49% 48%;
}
0% {
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
}
}
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,482 @@
/* ----------------------------- GLOBAL ----------------------------- */
body{ font-family: "Lucida Console", Monaco, monospace;
overflow: hidden;
background-color: black;
color: white;}
p { font-size: 20px; }
a{ text-decoration: none; }
/* ----------------------------- SPACE ----------------------------- */
#chaos {
position: relative;
width: 2500px;
height: 2000px;
}
#space {
position: absolute;
width: 2500px;
height: 2000px;
transform:translate(-12%,-28%);
top: 0px;
left: 0px;
/* border-style: dotted;
border-width: 2px;*/
/* background-image: url('../img/grid3.png');
background-repeat: repeat;*/
}
/* --------------------- TIME ------------------------ */
#time{
position: absolute;
width: 600px;
height: 500px;
z-index: 101;
transform:translate(-50%,-50%);
top: 50%;
left: 50%;
}
#ilinx{
position: absolute;
width: 220px;
left: 190px;
top: 420px;
}
.ilinx {
font-size: 35px;
margin-top: -2px;
float:left;
text-align: right;
width: 40px;
/*cursor: grab;*/
}
#i {cursor: url('../img/arrow.png'), auto;}
#l {cursor: url('../img/lemur.png'), auto;}
#ii {cursor: url('../img/laby.png'), auto;}
#n {cursor: url('../img/mu.png'), auto;}
#x {cursor: url('../img/fish3.png'), auto;}
#spiral {
width: 300px;
position: absolute;
margin-top: -150px;
margin-left: -150px;
top: 250px;
left: 300px;
}
.rotating {
-webkit-animation: rotating 3s linear infinite;
-moz-animation: rotating 3s linear infinite;
-ms-animation: rotating 3s linear infinite;
-o-animation: rotating 3s linear infinite;
animation: rotating 3s linear infinite;
}
a.island:link{color:white;}
a.island:hover{color: red;
-webkit-animation: breathe 3s linear infinite;
-moz-animation: breathe 3s linear infinite;
-ms-animation: breathe 3s linear infinite;
-o-animation: breathe 3s linear infinite;
animation: breathe 3s linear infinite;
}
a.island:visited{color: white;}
#lemuria {
position: absolute;
left: 68px;
top:269px;
}
#mu {
position: absolute;
left: 189px;
top:76px;
}
#hyperborea {
position: absolute;
left: 444px;
top: 151px;
}
#thule{
position: absolute;
left: 421px;
top:322px;
}
/* ----------------------------- FORM ----------------------------- */
#form{
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#iper{
position: absolute;
right: 0px;
top: 0px;
}
#m {
position: absolute;
left: 0px;
top: 0px;
}
#thl{
position: absolute;
right: 0px;
bottom: 0px;
}
#lmr{
position: absolute;
left: 0px;
bottom: 0px;
}
/* --------------------- PLACES ------------------------ */
.places{
position: absolute;
text-align: center;
}
/* -------------- LEMURIA ---------------- */
#MVU { left: 278px; top: 321px; }
/* ---------------- MU ------------------ */
#Katak_temple { left: 379px; top: 504px; }
#vbush { left: 695px; top: 557px; }
#flatline { left: 442px; top: 332px; }
#cradle { left: 824px; top: 447px; }
#butwin { left: 350px; top: 673px; }
#nonsp { left: 135px; top: 463px; }
#nowhere { left: 310px; top: 94px; }
#nowHere { left: 425px; top: 897px; }
#fusserl { left: 720px; top: 306px; }
#godollo { left: 127px; top: 821px; }
/* ------------ HYPERBOREA -------------- */
#Lab_1 { left: 423px; top: 876px; }
#clippy { left: 229px; top: 327px; }
#almere { left: 33px; top: 449px; }
#some_else { left: 699px; top: 585px; }
#homeo { left: 360px; top: 545px; }
#taostat { left: 597px; top: 649px; }
#multiskop { left: 544px; top: 427px; }
#hyperv { left: 105px; top: 657px; }
#infi { left: 423px; top: 93px; }
#entp { left: 657px; top: 497px; }
#thfl { left: 381px; top: 265px; }
/* -------------- THULE ----------------- */
#Castalia { left: 570px; top: 706px; }
#cremolino { left: 274px; top: 475px; }
#grams { left: 568px; top: 185px; }
#divine { left: 233px; top: 178px; }
#xx { left: 371px; top: 820px; }
#apot { left: 630px; top: 559px; }
#pheno { left: 777px; top: 404px; }
/* ------------------ PLACES STYLE -------------------- */
.inner{
font-size: 15px;
background-color: yellow;
}
a.place:hover{letter-spacing: -4px;
color: green;
-webkit-animation: breathe 1s linear infinite;
-moz-animation: breathe 1s linear infinite;
-ms-animation: breathe 1s linear infinite;
-o-animation: breathe 1s linear infinite;
animation: breathe 1s linear infinite;}
#black_hole{ left: 275.5px;
top: 559.5px; transform: scale(1.5,1.5)}
.black_hole {
border-color: #00fc33 !important;
background-color: black;
}
#bh1{animation-delay: 0.33s;}
#bh2{animation-delay: 0.66s;}
.pulse{ width: 30px;
height: 30px;
position: absolute;
left: 678px;
top: 717px;}
.pulsate {
position: absolute;
animation: pulsate 2s ease-out;
animation-iteration-count: infinite;
opacity: 0.0;
/* you dont need the stuff below, but its what I used to create the loading circle */
border: 3px solid red;
border-radius: 30px;
height: 18px;
width: 18px;
display: inline-block;
margin-top: 20px;
text-align: center;
}
#pulse1{animation-delay: 0.0s;}
#pulse2{animation-delay: 0.66s;}
#pulse3{animation-delay: 1.33s;}
/* Make the element pulse (grow large and small slowly) */
/* Usage
.myElement {
animation: pulsate 1s ease-out;
animation-iteration-count: infinite;
opacity: 1;
}
*/
@-webkit-keyframes pulsate {
0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
50% {opacity: 1.0;}
100% {-webkit-transform: scale(3, 3); opacity: 0.0;}
}
/* ----------------------------- SVG ----------------------------- */
text {
font-family: "Lucida Console", Monaco, monospace;
color: black;
stroke: white;
stroke-width: 6;
stroke-linejoin: round;
paint-order: stroke;
}
text.region {
stroke-width:6;
font-variant: small-caps;
}
svg {
float: right;
}
path {
fill: none;
stroke: white;
stroke-linecap: round;
}
line {
fill: none;
stroke: white;
stroke-linecap: round;
}
circle{
stroke: blue !important;
}
.field {
stroke: none;
fill-opacity: 1.0;
}
.slope {
stroke-width: 1;
}
.river {
stroke-width: 2;
}
.coast {
stroke-width: 4;
}
.border {
stroke-width: 5;
stroke-dasharray: 4,4;
stroke-linecap: butt;
}
/* ----------------------------- ANIMATIONS ----------------------------- */
/* Rotate loop */
@-webkit-keyframes rotating /* Safari and Chrome */ {
from {
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes rotating {
from {
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
/* Breathing text */
@-webkit-keyframes breathe /* Safari and Chrome */ {
0% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
50% {font-size:21px; color: red; letter-spacing: 1px; margin-left: -6px;}
100% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
}
@keyframes breathe {
0% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
50% {font-size:21px; color: red; letter-spacing: 1px; margin-left: -6px;}
100% {font-size:20px; color: white; letter-spacing: 0px; margin-left: 0px;}
}
.lds-hourglass {
display: inline-block;
position: absolute;
width: 80px;
height: 80px;
}
.lds-hourglass:after {
content: " ";
display: block;
border-radius: 50%;
width: 0;
height: 0;
margin: 8px;
box-sizing: border-box;
border: 32px solid #fff;
border-color: #fff transparent #fff transparent;
animation: lds-hourglass 1.2s infinite;
}
@keyframes lds-hourglass {
0% {
transform: rotate(0);
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
50% {
transform: rotate(900deg);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
100% {
transform: rotate(1800deg);
}
}
html, body {
height: 100%;
}
html {
font-size: 10px;
}
body {
background-color: black !important;
background: radial-gradient(15px 5px at 25% 0, transparent 0%, transparent 80%, rgba(255, 255, 255, 0.04) 80%, rgba(255, 255, 255, 0.04) 99%, transparent 99%, transparent 100%),
radial-gradient(15px 5px at 75% 100%, transparent 0%, transparent 80%, rgba(255, 255, 255, 0.04) 80%, rgba(255, 255, 255, 0.04) 99%, transparent 99%, transparent 100%),
radial-gradient(10px 3px at 25% 0, transparent 0%, transparent 70%, rgba(255, 255, 255, 0.03) 70%, rgba(255, 255, 255, 0.03) 99%, transparent 99%, transparent 100%),
radial-gradient(10px 3px at 75% 100%, transparent 0%, transparent 70%, rgba(255, 255, 255, 0.03) 70%, rgba(255, 255, 255, 0.03) 99%, transparent 99%, transparent 100%),
radial-gradient(30px 8px at 25% 0, transparent 0%, transparent 55%, rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.02) 99%, transparent 99%, transparent 100%),
radial-gradient(30px 8px at 75% 100%, transparent 0%, transparent 55%, rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.02) 99%, transparent 99%, transparent 100%), #c4cbc3;
background-size: 60px 40px, 60px 40px, 40px 24px, 40px 24px, 120px 64px, 120px 64px;
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
-webkit-animation: wave 15s linear infinite;
animation: wave 15s linear infinite;
}
@-webkit-keyframes wave {
0% {
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
}
20% {
background-position: 51% 48%, 51% 48%, 53% 52%, 53% 52%, 48% 47%, 48% 47%;
}
40% {
background-position: 49% 51%, 49% 51%, 48% 51%, 48% 51%, 54% 50%, 54% 50%;
}
60% {
background-position: 53% 54%, 53% 54%, 46% 54%, 46% 54%, 53% 46%, 53% 46%;
}
80% {
background-position: 51% 52%, 51% 52%, 49% 49%, 49% 49%, 49% 48%, 49% 48%;
}
0% {
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
}
}
@keyframes wave {
0% {
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
}
20% {
background-position: 51% 48%, 51% 48%, 53% 52%, 53% 52%, 48% 47%, 48% 47%;
}
40% {
background-position: 49% 51%, 49% 51%, 48% 51%, 48% 51%, 54% 50%, 54% 50%;
}
60% {
background-position: 53% 54%, 53% 54%, 46% 54%, 46% 54%, 53% 46%, 53% 46%;
}
80% {
background-position: 51% 52%, 51% 52%, 49% 49%, 49% 49%, 49% 48%, 49% 48%;
}
0% {
background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
}
}

@ -5,7 +5,7 @@
</head>
<body>
<audio controls autoplay loop>
<source src="Bubbles_grandPiano.wav" type="audio/wav">
<source src="../soudns/Bubbles_grandPiano.wav" type="audio/wav">
</audio>
</body>
</html>

@ -0,0 +1 @@
*.sql linguist-language=PLSQL

@ -0,0 +1,12 @@
.DS_Store
.idea
node_modules
api-reference.md
example-query.sql
js/temp.js
d3-force-apex-plugin-demo-app.sql
d3-force-apex-plugin-demo-app.zip
description-apex-plugin.com.html
description-sample-app.html
temp.txt
temp.html

@ -0,0 +1,16 @@
{
"tags": {
"allowUnknownTags": true
},
"plugins": ["plugins/markdown"],
"templates": {
"cleverLinks": false,
"monospaceLinks": false,
"useLongnameInNav": false,
"showInheritedInNav": true
},
"markdown": {
"parser": "gfm",
"hardwrap": true
}
}

@ -0,0 +1,140 @@
/* global module */
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
pkg: grunt.file.readJSON("apexplugin.json"),
currentYear: parseInt(grunt.template.today("yyyy")),
banner: '/**\n' +
' * <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? " * " + pkg.homepage + "\\n" : "" %>' +
' * Copyright (c) 2015<%= currentYear > 2015 ? "-" + currentYear : "" %> <%= pkg.author.name %> - <%= pkg.license %> license\n' +
' */\n',
exampleGraph: '<button onclick="example.useDomParentWidth((example.useDomParentWidth()?false:true))">Toggle option useDomParentWidth</button>\n' +
'<div id="example"></div><!--the graph container-->\n' +
'<link href="./lib/d3-force-<%= pkg.version %>.css" rel="stylesheet" type="text/css">\n' +
'<script src="./lib/ResizeObserver-1.5.0.min.js"></script>\n' +
'<script src="./lib/d3-3.5.6.min.js"></script>\n' +
'<script src="./lib/d3-force-<%= pkg.version %>.min.js"></script>\n' +
'<script>\n' +
' window.onload = function (){\n' +
' window.example = netGobrechtsD3Force("example")\n' +
' .width(600)\n' +
' .height(400)\n' +
' .lassoMode(true)\n' +
' .wrapLabels(true)\n' +
' .debug(true) //also creates the "Customize Me" link\n' +
' .render(); //sample data is provided when called without data\n' +
' }\n' +
'</script>\n',
jshint: {
files: [
"Gruntfile.js",
"apexplugin.json",
"src/d3-force.js"
]
},
clean: ["docs", "dist/*.css", "dist/*.js"],
copy: {
dist1: {
src: "src/d3-force.js",
dest: "dist/d3-force-<%= pkg.version %>.js",
options: {
process: function(content, srcpath) {
return grunt.template.process("<%= banner %>") + "\n" +
content.replace(/x\.x\.x/g, grunt.template.process("<%= pkg.version %>"));
}
}
},
dist2: {
files: [{
src: "src/d3-force.css",
dest: "dist/d3-force-<%= pkg.version %>.css"
},
{
src: "src/example.html",
dest: "dist/example.html"
},
{
src: "src/LICENSE.txt",
dest: "LICENSE.txt"
}
],
options: {
process: function(content) {
return content
.replace(/x\.x\.x/g, grunt.template.process("<%= pkg.version %>"))
.replace(/{{CURRENT-YEAR}}/g, grunt.template.process("<%= currentYear %>"))
.replace(/{{EXAMPLE-GRAPH}}/g, grunt.template.process("<%= exampleGraph %>"));
}
}
},
docs1: {
files: [{
src: "docs/tutorial-1-getting-started.html",
dest: "docs/tutorial-1-getting-started.html"
}],
options: {
process: function(content, srcpath) {
return content.replace(/{{EXAMPLE-GRAPH}}/g, grunt.template.process("<%= exampleGraph %>"))
.replace(/{{EXAMPLE-GRAPH-CODE}}/g, grunt.template.process("<%= exampleGraph %>").replace(/</g, "&lt;"));
}
}
},
docs2: {
files: [{
src: "dist/lib/d3/d3-3.5.6.min.js",
dest: "docs/lib/d3-3.5.6.min.js"
},
{
src: "dist/lib/resize-observer-polyfill/ResizeObserver-1.5.0.min.js",
dest: "docs/lib/ResizeObserver-1.5.0.min.js"
},
{
src: "dist/d3-force-<%= pkg.version %>.css",
dest: "docs/lib/d3-force-<%= pkg.version %>.css"
},
{
src: "dist/d3-force-<%= pkg.version %>.min.js",
dest: "docs/lib/d3-force-<%= pkg.version %>.min.js"
}
]
}
},
uglify: {
options: {
banner: "<%= banner %>"
},
dist: {
src: "dist/d3-force-<%= pkg.version %>.js",
dest: "dist/d3-force-<%= pkg.version %>.min.js"
},
},
jsdoc: {
docs: {
src: ["README.md", "src/*.js"],
options: {
destination: "docs",
tutorials: "src/tutorials",
template: "node_modules/minami",
configure: ".jsdoc.json"
}
}
},
watch: {
files: [
"Gruntfile.js",
"apexplugin.json",
"src/**"
],
tasks: ["default"]
}
});
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-notify");
grunt.loadNpmTasks("grunt-jsdoc");
grunt.registerTask("default", ["jshint", "clean", "copy:dist1", "copy:dist2", "uglify", "jsdoc", "copy:docs1", "copy:docs2"]);
};

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015-2019 Ottmar Gobrecht
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,267 @@
[Latest version][zip] | [Docs & API Reference][docs] | [Online demo][demo] | [APEX Plugin demo][apexdemo]
[zip]: https://github.com/ogobrecht/d3-force-apex-plugin/releases/latest
[docs]: https://ogobrecht.github.io/d3-force-apex-plugin/
[demo]: https://ogobrecht.github.io/d3-force-apex-plugin/tutorial-1-getting-started.html
[apexdemo]: https://apex.oracle.com/pls/apex/f?p=18290
# Oracle APEX Region Type Plugin: D3 Force Network Chart
This is a D3 force implementation, playground and Oracle APEX plugin, which uses the
[D3 visualization library](http://d3js.org/) to render a network layout. It has the following features:
- Works with APEX versions >= 5.1.4 or standalone in every HTML page
- Interactive customization wizard
- Source data can be a XML string, JSON string or JavaScript Object (JSON)
- Link directions are visible and self references are rendered in a nice way - have a look in the online demos
- Node sizes are calculated between given min and max values depending on the SIZEVALUE attribute in your source data
- Node colors are assigned depending on the given COLORVALUE attribute in your source data - if you provide a IMAGE attribute for a node, then the image is used instead of a fill color
- Optional tooltips depending on the given INFOSTRING attribute in your source data
- If you have a node attribute called LINK, you can define on which event the URL should be called - default is dblclick - try it out in the online demos by double clicking the node KING
- Nodes can be pinned and the current positions can be saved and loaded to predefine a layout - optionally you can align the nodes to a grid when they are dragged around
- Labels can be wrapped and placed after force end to prevent overlapping (optional, per default switched off)
- With the lasso mode you can select nodes and implement a graphical multi select
- The graph can be zoomed between the two configured min and max scale factors
- There is a JavaScript API to interact with the graph ([API reference][docs]), also including 12 events (node click, node double click, node contextmenu, node mouse enter, node mouse leave, link click, lasso start, lasso end, force start, force end, render end, resize)
- All 12 events are available in APEX - the plugin region can be AJAX refreshed and triggers then also apexbeforerefresh and apexafterrefresh
## Requirements
- APEX 5.1.4 or higher, if used as a plugin
- A modern browser, which is able to work with SVG and CSS3 - for more informations see the [D3 Wiki](https://github.com/mbostock/d3/wiki#browser--platform-support)
## Installation
### APEX
- Download the [latest version][zip]
- Install the plugin by importing the sql file in the folder `apex-plugin`
### Any HTML page
- Download the [latest version][zip]
- See `dist/example.html` and `docs/tutorial-1-getting-started.html`
## Credits
I would like to say THANK YOU to all the people who share their knowledge. Without this sharing I would not have been able to create this D3 implementation. Special thanks to Mike Bostock for his great library and to Carsten Czarski for mentoring me on Oracle APEX plugin development.
## Roadmap
### 4.0.0 (201x-xx-xx) in planning
- Update to current D3 version (5.x.x): [link 1](https://github.com/d3/d3/blob/master/CHANGES.md#forces-d3-force), [link 2](https://github.com/d3/d3-force/blob/master/README.md)
- Devide code base into modularized graph code and APEX plugin code in different repos to make clear, that the graph function can run in any HTML environment
## Changelog
This D3 force implementation uses [semantic versioning](http://semver.org).
Please refer to the [documentation](https://ogobrecht.github.io/d3-force-apex-plugin/) for more informations on how to get started and an overview of all graph methods. Please use for all comments and discussions the [issues functionality on GitHub](https://github.com/ogobrecht/d3-force-apex-plugin/issues).
### 3.1.0 (2019-06-02)
ATTENTION: You need at least APEX 5.1.4 to be able to import the plugin in your APEX apps. If you need to support older APEX versions (at least 4.2) then download the plugin release 3.0.0.
- New option forceTimeLimit ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.forceTimeLimit))
- Nodes have now also a background color when an background image is defined (useful for images with transparency)
- New Link attribute LABEL ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/tutorial-2-node-and-link-attributes.html)), which is rendered as a text along the link path and fires the link click event when clicked (the label is easier to click then the link itself - so we have here a usability improvement)
- Two new helper methods to get the center of the graph (border box) or the SVG viewport:
- centerPositionGraph ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.centerPositionGraph))
- centerPositionViewport ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.centerPositionViewport))
Thanks are going to github.com/Ignacius68 for the valuable feedback and all the beta testing.
### 3.0.0 (2018-11-26)
Because of breaking API changes we have a new major realease:
- Overall improvements
- Better responsiveness by implementing a resize observer (native in Chrome since v64, polyfill for other browsers)
- Default true for the following options: `zoomToFitOnForceEnd` (was false in the past), `zoomToFitOnResize` (new option), `keepAspectRatioOnResize` (new option)
- When setting the option `useDomParentWidth` to true together with the previous mentioned defaults you can achieve a responsiveness like with images set to width 100% - see the [online demo][demo] and play around with it
- All zoom relevant API methods are no longer depending on the `zoomMode` - they work simply always
- The `zoomMode` sets only the ability for the end user to use zoom and pan
- Fixed
- APEX plug-in - sample data is rendered before live data (#32) - thanks are going to github.com/Ignacius68 for finding this bug
- New events
- Resize ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.onResizeFunction))
- New options
- labelSplitCharacter ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.labelSplitCharacter))
- onResizeFunction ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.onResizeFunction))
- onResizeFunctionTimeout ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.onResizeFunctionTimeout))
- zoomToFitOnResize ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.zoomToFitOnResize))
- keepAspectRatioOnResize ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.keepAspectRatioOnResize))
- Changed methods
- `zoom` has now a parameter `duration` ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.zoom))
- `transform` has now a parameter `duration` ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.transform))
- `useDomParentWidth` ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.useDomParentWidth)) no longer needs a render call to take into effect - it works now immediately; Please remove unneccesary render calls to save CPU and battery time
- Deprecated methods for clean API
- `zoomSmooth` - can be replaced with the `zoom` method ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.zoom)), please provide a appropriate duration parameter (default is 1500 with zoomSmooth)
Thanks are going to github.com/Ignacius68 for the idea for option `labelSplitCharacter` and all the beta testing.
### 2.2.0 (2018-09-29)
- New events
- Render end ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.onRenderEndFunction))
- Force start ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.onForceStartFunction))
- Force end ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.onForceEndFunction))
- New graph methods
- nodes ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.nodes))
- links ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.links))
- selfLinks ([API reference](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.selfLinks))
- All three returning a D3 selection (array) for direct manipulation with D3 methods like `style` or `classed` - also see the [D3 docs](https://github.com/d3/d3-3.x-api-reference/blob/master/Selections.md#operating-on-selections)
Thanks are going to github.com/Ignacius68 for the inspiration.
### 2.1.2 (2018-01-07)
- Fixed again :-(
- APEX plugin - semi colon in region query no longer throws an error
- Was a copy paste bug... no comments please...
### 2.1.1 (2018-01-06)
- Fixed: Nodes stick on the top left corner in APEX 5.x under some circumstances
- Improved docs: getting started section
### 2.1.0 (2017-12-30)
- New option `wrapLabels` with a configurable max width - thanks to Ekaterina & Andrey for the idea
- New option `zoomToFitOnForceEnd` to fit the graph in the available space on force end (like the automatic label placement) - needs the zoomMode switched on to work properly
- New API method `zoomToFit`, which is used by the option zoomToFitOnForceEnd - now you can do things like `example.width(800).height(600).zoomToFit()` :-)
- APEX enhancements: the graph is listen to the event `apexwindowresized` and the click on the navigation control button in the universal theme - together with the option `useDomParentWidth` the graph is then always using the available width
- Changed: Use JSDoc to generate documentation and API reference. Relocate documentation from own Wiki to GitHub pages
- Reorganized repository structure
- Fixed: Standalone version not loading after APEX 5.1 bugfix
- Fixed: APEX plugin - semi colon in region query no longer throws an error
### 2.0.3 (2016-12-13)
- Fixed: #18 - APEX 5.1: jQuery reports syntax error and graph stops loading, if "Page Items to Submit" is not configured - thanks to github.com/KiralyCs to report this issue
### 2.0.2 (2016-07-17)
- Fixed: #12 - tooltips not showing correctly, if showLabels are set to false - thanks to github.com/pocelka to report this issue
### 2.0.1 (2015-11-18)
- Fixed: Fixed positions not working in initial data in v2.0.0 - thanks to github.com/rlashaw to report this issue
- Move online demo and documentation to own wiki for better maintenance
### 2.0.0 (2015-11-07)
- New option `preventLabelOverlappingOnForceEnd`: If set to true the labels are aligned with a simulated annealing function to prevent overlapping when the graph is cooled down (correctly on the force end event and only on labels, who are not circular) - thanks to Philippe Duchateau to ask for such a feature and all the testing
- New option `labelPlacementIterations`: The number of iterations for the preventLabelOverlappingOnForceEnd function - default is 250 - as higher the number, as higher the quality of the result - for details refer to the description of the [simulated annealing function](https://github.com/tinker10/D3-Labeler) from the author Evan Wang
- New behaviour: the font size and weight of a label is aligned when you hovering a node with your mouse - this helps you to find the right label in graphs with many nodes
- New possible value `dotted` for the links `STYLE` attribute: Now you have solid, dashed and dotted available for link styles
- New link attribute `INFOSTRING`: Like for nodes - this is shown as a tooltip, if tooltips are switched on in the configuration and you hover the links; ATTENTION: links are very narrow, so this plays nice together with the zoomMode; thanks again to Philippe Duchateau for the ideas of this and the next feature :-)
- New link attribute `COLOR`: This must be a HTML color code like `green` or `#00ff00` because of SVG standard 1.1 does not support the inheritance of colors to markers and the graph function hast to manage dynamic markers for the colors and therefore the color names are used as identifiers for the markers
- New API method/option `transform`: behaves like a normal getter/setter (the zoom and zoomSmooth methods implements only setters) and can be used in the conf object to initialize the graph with different translate/scale factors than [0,0]/1 - works only, if the zoomMode is set to true - the current transform value(an object) is rendered in the customization wizard conf object text area like all other options when the current value is different then the default value `{"translate":[0,0],"scale":1}`
- Fixed: With the option alignFixedNodesToGrid it was possible to place nodes direct on the graphs left or top border - now the nodes are placed to the gridSize value, if the current position is smaller or equal the half of the gridsize
- Fixed: Provided fixed positions on startup not correctly set
- Fixed: No node shown if there is only one record return (thanks to Kenny Wang for reporting this issue)
- Code integration of the D3 lasso and labeler plugins - no more need to load the files for this plugins
- Code replacement of the XML to JSON converter X2JS with an own one
- Code refactoring against JSHint: This refactoring is also the reason for a new major version (API changed: renamed graph function, integration of libs, new XML parser)
- Update to D3 v3.5.6
### 1.4.1 (2015-08-05)
- Fixed "Tooltip on wrong positions in complex layouts". This was also the case with APEX 5 and universal theme. Thanks to Philippe Duchateau for telling me about this problem.
### 1.4.0 (2015-08-03)
- New possible node attribute `COLORLABEL`: Since there is an option to render a legend, it makes no sense to render the color names as legend labels, if the colorScheme "direct" is used to directly deliver CSS color codes (thanks to Philippe Duchateau for telling me about the problems); With other color schemes it is ok, since the COLORVALUE information can be any string like department names or ids or city names or whatever; To not to break existing graphs, the COLORVALUE is used as the legend label, if the COLORLABEL is not given in the nodes attributes
- New option `onLinkClickFunction`: You can register a function which is called when a link is clicked (thanks to Niels de Bruijn for requesting this feature); It is not so easy to click a link, because the links are so narrow - if this option is needed I recommend to switch on the zoom mode - with zoom and pan it feels more natural to click links
- New option `setDomParentPaddingToZero`: Boolean. If true, the style `padding: 0px;` is added to the graphs DOM parent element; If false, this style is removed from the graphs DOM parent element
- The customization wizard shows now in the configuration object only non-default options; This reduces the size of the configuration object and is more transparent
- New API methods `options` and `optionsCustomizationWizard`: with this API methods you can get and set the whole configuration object with one call; `options` ouput includes all options, which are accessible via the API methods including the registered event functions (no APEX dynamic actions, only the functions under the report attributes); `optionsCustomizationWizard` output includes only the options, which are accessible via the customization wizard; With both methods you can set all options which are accessible via the API in one call
- Restructuring the online API reference method overview
### 1.3.0 (2015-06-07)
- New option `showLoadingIndicatorOnAjaxCall`: if set to true, a loading indicator is shown when used as a APEX plugin during the AJAX calls; If you want to show the loading indicator in a standalone implementation you can show and hide the loading indicator directly with the API method `showLoadingIndicator` (SHOW: `example.showLoadingIndicator(true);` HIDE: `example.showLoadingIndicator(false);`)
- Update to D3 v3.5.5
### 1.2.1 (2015-06-02)
- Fixed "Customize wizard jumps down when dragged on pages with hidden or fixed elements"
### 1.2.0 (2015-05-31)
- Refactor render function, so that the returned graph function is only one line of code and does not spoil the console when debug is set to true
- New option `zoomMode` (thanks to Alexej Schneider to ask for this feature and for testing the new version and his valuable feedback): I tried this before and was not happy with the solution, because the pan were disturbing the nodes drag functionality - now it is working :-) ATTENTION: When zoomMode is set to true then the lassoMode is only working with the pressed alt or shift key KNOWN BUG: In iOS it is after the first zoom event no more possible, to drag a node - instead the whole graph is moved - this is, because iOS Safari provide a wrong event.target.tagName. Also a problem: your are not able to press the alt or shift key - if you want to use lasso and zoom together on a touch device, you have to provide a workaround; One possible way is to provide a button, which turns zoom mode on and off with the API zoomMode method - then the user has the choice between these two modes - not comfortable, but working
- New option `minZoomFactor`: The minimum possible zoom factor
- New option `maxZoomFactor`: The maximum possible zoom factor
- New method `zoom`: Can be used to programatically zoom to a point in the graph with the three parameters centerX, centerY and viewportWidth; [read more...](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.zoom)
- New method `zoomSmooth`: Does the same as the zoom method, but animated in a nice way: [read more...](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.zoomSmooth)
- New method `nodeDataById`: Helper function to get the data of one node. Can be helpful for the two new zoom methods to programatically focus a single node
- New option `showLegend`: renders a legend for all (distinct) COLORVALUE attribute values of the nodes
- New option `showLabels`: Labels are not new - a label is rendered, when a node has a filled attribute LABEL - new is the possibility to switch on and off the labels globally
- Hint in the customize wizard, that the configuration object has to be saved in the region attributes to save the configuration permanently (thanks to Renato Nobre to ask me a question about this topic)
- Reorganize the options in the customize wizard thematically: node/link/graph related options
### 1.1.0 (2015-04-19)
- New option `lassoMode`: boolean - if set to true you can select nodes with a lasso
- New events for lasso mode: `lassostart`, `lassoend` - if You register to this events, you get as data an object with all nodes, number of selected nodes and also a APEX compatible string of selected node IDs in the form of the multi select lists like `1234:567:890` - for details and examples see API reference
- New option `alignFixedNodesToGrid`: boolean - if set to true nodes are aligned to the nearest grid position on the drag end event - works only, if pinMode is set to true (thanks to Carsten Czarski for showing me an use case for this option)
- New option `gridSize`: numeric - default 50 - grid size for the new option `alignFixedNodesToGrid`
- New possible node attribute `IMAGE`: URL to an image - if you provide this attribute in your source data (SQL query with the APEX plugin), the node is rendered with an background image instead of a fill color (idea by Andrew Weir, thank you for your response!) - attention: this is definitly slowing down your visualization - please do not complain about this fact ;-)
- New possible node attributes `fixed`, `x`, `y` (all lower case, because of these are also internal attributes of the D3 force layout): With these attributes you are able to predefine a layout already in your data (SQL query)
- New API method `moveFixedNodes(x,y)`: moves all fixed nodes in the provided direction - `exampleGraphVariable.moveFixedNodes(10,-5).resume();` adds 10 to x position and -5 to y position on all fixed nodes - ATTENTION if alignFixedNodesToGrid is set to true this can have unexpected behavior - you must then provide values greater then grid size halved to see any changes on your graph, otherwise the positions are falling back to the nearest (current) grid position
- New API method `releaseFixedNodes`
- New API method `resume`: with this method you can resume the graph force without a complete render cycle - e.g. you call the new method `releaseFixedNodes` and to take your changes into effect you can call then resume `exampleGraphVariable.releaseFixedNodes().resume();`
- New API method `render`: with this method you can render the graph with a complete render cycle - when used standalone there is no difference between the start and the render method - when used as APEX plugin the start method try to fetch new data with the query provided in your region source and call then the render method - with the render method you are now able to rerender the graph in APEX without fetching new data `exampleGraphVariable.minNodeRadius(4).maxNodeRadius(20).render();`
- API method positions: In the past this method was only used to predefine a layout before rendering the graph - now you can call this method also after rendering is complete and with calling the new method resume you can apply new positions at runtime without rerender the graph `exampleGraphVariable.positions([...]).resume();` (thanks to Mark Russellbrown to show me an unconventional use case for my force implementation and therefore force me to think about modification after rendering ;-)
- New third keyword for the option `nodeLinkTarget` in the customize wizard: "domContainerID" - if you use this keyword, then each event on a node, that opens the link is using the DOM container ID of your graph for the link target - this means, all your links are opened in the same browser window/tab, but a second graph is using a different browser window/tab (thanks to Philippe Duchateau for the question regarding this option) - please have a look in the [API reference for more details](https://ogobrecht.github.io/d3-force-apex-plugin/module-API.html#.nodeLinkTarget)
- Reducing the rendered DOM data by removing unnecessary id attributes on nodes, links and labels
- Input data can now be also an object: you have the choice to deliver graph data in three formats (XML string, JSON string or JavaScript Object) - when used as APEX plugin the data is transferred as text - your query has to select a single clob result and this clob can also be a XML or JSON string - you have the choice depending on your database version and existing libraries
- Fixed "Dragging a node triggers a click event"
### 1.0.5 (2015-02-21)
- Fixed "Links not correctly rendered in IE 9, 10, 11 when showLinkDirection is set to true" (found by Philippe Duchateau, thank you for your response!)
### 1.0.4 (2015-02-15)
- Fixed "APEX - unable to view datasets > 32k" (found by Andrew Weir, thank you for your response!)
- Improved error handling: errors are shown as single nodes with error text as label
- Empty nodes array does no longer break render function
- Positions are rounded on export to save space for APEX parameter item
### 1.0.3 (2015-01-30)
- Fixed "APEX - AJAX refresh not working without setting items to submit in region source"
- Correct links from customize wizard to online API documentation
- Activate also debug mode, when customize wizard is started
- Some small cosmetic changes
### 1.0.2 (2015-01-30)
- Fixed "Configuration - Boolean values are not correct initialized" (found by Carsten Czarski, thank you for your response!)
- Fixed "APEX - Page items to submit not working on AJAX refresh" (found by Carsten Czarski, thank you for your response!)

@ -0,0 +1,34 @@
{
"name": "D3 Force Network Chart",
"version": "3.1.0",
"description": "D3 force directed network visualization with an interactive customization wizard",
"keywords": ["d3.js", "force layout", "network visualization"],
"homepage": "https://github.com/ogobrecht/d3-force-apex-plugin",
"bugs": {
"url": "https://github.com/ogobrecht/d3-force-apex-plugin/issues"
},
"license": "MIT",
"author": {
"name": "Ottmar Gobrecht",
"email": "ottmar.gobrecht@gmail.com",
"url": "https://ogobrecht.github.io",
"twitter": "ogobrecht",
"donationUrl": "https://www.paypal.me/ogobrecht"
},
"repository": {
"type": "git",
"url": "https://github.com/ogobrecht/d3-force-apex-plugin.git"
},
"oracle": {
"versions": ["11.2.0.1", "12.1.0.1"],
"apex": {
"versions": ["5.1.4"],
"plugin": {
"internalName": "NET.GOBRECHTS.D3.FORCE",
"type": "region",
"demo": "https://apex.oracle.com/pls/apex/f?p=18290:1",
"previewImage": "https://raw.githubusercontent.com/ogobrecht/d3-force-apex-plugin/master/preview.png"
}
}
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.6 KiB

@ -0,0 +1,208 @@
.net_gobrechts_d3_force,
.net_gobrechts_d3_force_customize,
.net_gobrechts_d3_force_customize td,
.net_gobrechts_d3_force_tooltip {
box-sizing: content-box;
font-family: Arial, Helvetica, Sans Serif;
font-size: 10px;
line-height: normal;
background-color: #fff
}
.net_gobrechts_d3_force.border {
border: 1px solid silver;
border-radius: 5px;
}
.net_gobrechts_d3_force circle.highlighted {
stroke: #555;
stroke-width: 2px;
stroke-opacity: 1.0;
}
.net_gobrechts_d3_force circle.selected {
stroke: #555;
stroke-width: 4px;
stroke-dasharray: 4 2;
stroke-opacity: 1.0;
}
.net_gobrechts_d3_force text.linkLabel {
fill: #bbb;
font-size: 8px;
letter-spacing: 0;
cursor: default;
}
.net_gobrechts_d3_force text.label,
.net_gobrechts_d3_force text.labelCircular {
fill: black;
font-size: 10px;
letter-spacing: 0;
pointer-events: none;
}
.net_gobrechts_d3_force text.label,
.net_gobrechts_d3_force text.linkLabel {
text-anchor: middle;
}
.net_gobrechts_d3_force text.highlighted {
font-size: 12px;
font-weight: bold;
}
.net_gobrechts_d3_force text.link {
font-size: 12px;
fill: #268bd2;
cursor: pointer;
}
.net_gobrechts_d3_force line.link,
.net_gobrechts_d3_force path.link {
fill: none;
stroke: #bbb;
stroke-width: 1.5px;
stroke-opacity: 0.8;
}
.net_gobrechts_d3_force line.dotted,
.net_gobrechts_d3_force path.dotted {
stroke-dasharray: .01 3;
stroke-linecap: round;
}
.net_gobrechts_d3_force line.dashed,
.net_gobrechts_d3_force path.dashed {
stroke-dasharray: 4 2;
}
.net_gobrechts_d3_force line.highlighted,
.net_gobrechts_d3_force path.highlighted {
stroke: #555 !important;
stroke-opacity: 1.0;
}
.net_gobrechts_d3_force marker.normal {
stroke: none;
fill: #bbb;
}
.net_gobrechts_d3_force marker.highlighted {
stroke: none;
fill: #555;
}
.net_gobrechts_d3_force .graphOverlay,
.net_gobrechts_d3_force .graphOverlaySizeHelper {
fill: none;
pointer-events: all;
}
.net_gobrechts_d3_force .lasso path {
stroke: #505050;
stroke-width: 2px;
}
.net_gobrechts_d3_force .lasso .drawn {
fill-opacity: 0.05 ;
}
.net_gobrechts_d3_force .lasso .loop_close {
fill: none;
stroke-dasharray: 4,4;
}
.net_gobrechts_d3_force .lasso .origin {
fill: #3399FF;
fill-opacity: 0.5;
}
.net_gobrechts_d3_force .loading rect {
fill: black;
fill-opacity: 0.2;
}
.net_gobrechts_d3_force .loading text {
fill: white;
font-size: 36px;
text-anchor: middle;
}
.net_gobrechts_d3_force_tooltip {
position: absolute;
border-radius: 5px;
padding: 5px;
background-color: silver;
opacity: 0.9;
width: 150px;
overflow: auto;
font-size: 12px;
z-index: 100000;
pointer-events: none;
display: none;
}
.net_gobrechts_d3_force_customize {
border: 1px solid silver;
border-radius: 5px;
font-size: 12px;
position: absolute;
padding: 5px;
background-color:white;
box-shadow: 1px 1px 6px #666;
z-index: 200000;
}
.net_gobrechts_d3_force_customize .drag {
border: 1px dashed silver;
border-radius: 3px;
display: block;
cursor: move;
font-weight: bold;
height: 24px;
margin-bottom: 5px;
}
.net_gobrechts_d3_force_customize .title {
position: absolute;
top: 10px;
left: 10px;
}
.net_gobrechts_d3_force_customize .close {
position: absolute;
top: 10px;
right: 10px;
}
.net_gobrechts_d3_force_customize table {
border-collapse: collapse;
border-spacing: 0;
border: none;
margin:0;
padding:0;
}
.net_gobrechts_d3_force_customize tr.hidden {
display: none;
}
.net_gobrechts_d3_force_customize td {
padding: 1px;
font-size: 12px;
vertical-align: middle;
border: none;
}
.net_gobrechts_d3_force_customize .label {
text-align: right;
}
.net_gobrechts_d3_force_customize .warning {
background-color: orange;
}
.net_gobrechts_d3_force_customize input,
.net_gobrechts_d3_force_customize select,
.net_gobrechts_d3_force_customize textarea,
.net_gobrechts_d3_force_customize a {
border: 1px solid silver;
margin: 0;
padding: 0;
height: auto;
}
.net_gobrechts_d3_force_customize a {
border: 1px solid transparent;
color: #268bd2;
text-decoration: none;
cursor: pointer;
}
.net_gobrechts_d3_force_customize a:hover {
text-decoration: underline;
}
.net_gobrechts_d3_force_customize input:focus,
.net_gobrechts_d3_force_customize select:focus,
.net_gobrechts_d3_force_customize textarea:focus,
.net_gobrechts_d3_force_customize a:focus {
outline: none !important;
border: 1px solid #268bd2 !important;
background-color: #ffff99 !important;
box-shadow: none !important;
}
.net_gobrechts_d3_force_customize textarea {
font-size: 10px !important;
padding: 2px;
width: 160px;
height: 85px;
background-color: white;
color: black;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>D3 Force Network Chart</title>
</head>
<body style="font-family:Arial, Helvetica, sans-serif">
<h2>D3 Force Network Chart 3.1.0 Example Page</h2>
<p>To play around with the graph options click the "Customize Me" link.</p>
<p>For more informations also see <a href="https://ogobrecht.github.io/d3-force-apex-plugin/" target="_blank">the
docs</a>. <button onclick="example.useDomParentWidth((example.useDomParentWidth()?false:true))">Toggle option
useDomParentWidth</button></p>
<div id="example"></div>
<p>The customization wizard, which opens by clicking the link "Customize me", is not intended to used by end users
(and also not on small devices) - it is a convenience helper for developers to better understand the implications
of the different graph options.</p>
<p>The link is only shown, when the debug mode is switched on, which is the case here for demonstration purposes. The
debug mode writes many informations to the browser console - it should be switched off in a production environment.</p>
<link href="d3-force-3.1.0.css" rel="stylesheet" type="text/css">
<script src="lib/resize-observer-polyfill/ResizeObserver-1.5.0.min.js"></script>
<script src="lib/d3/d3-3.5.6.min.js"></script>
<script src="d3-force-3.1.0.min.js"></script>
<script>
window.onload = function () {
example = netGobrechtsD3Force('example')
.width(600)
.height(400)
//.useDomParentWidth(true) //for responsive layout
.zoomMode(true)
.lassoMode(true)
.wrapLabels(true)
.debug(true) //to enable the customization wizard
.render(); //sample data is provided when called without data
//see also https://ogobrecht.github.io/d3-force-apex-plugin/tutorial-1-getting-started.html
}
</script>
</body>
</html>

@ -0,0 +1,29 @@
FROM: https://github.com/d3/d3/blob/master/LICENSE
Copyright 2010-2017 Mike Bostock
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the author nor the names of contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -0,0 +1,23 @@
FROM: https://github.com/tinker10/D3-Labeler/blob/master/LICENSE
The MIT License (MIT)
Copyright (c) 2013 Evan Wang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,29 @@
Source Code: https://github.com/d3/d3-plugins/blob/master/lasso/lasso.js
Copyright 2010-2017 Mike Bostock
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the author nor the names of contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

@ -0,0 +1,23 @@
FROM: https://github.com/que-etc/resize-observer-polyfill/blob/master/LICENSE
The MIT License (MIT)
Copyright (c) 2016 Denis Rul
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save