diff --git a/view/assets/css/articulation.css b/view/assets/css/articulation.css
index 2eab074..ee55179 100644
--- a/view/assets/css/articulation.css
+++ b/view/assets/css/articulation.css
@@ -5,14 +5,14 @@
min-height: 361px
}
-.right-hand-gray-front-avatar {
+.selection-panel-body[mainConfig=right-hand] .gray-front-avatar {
background-image: url(../../img/pa/gray-front-avatar.png), url(../../img/pa/default-base.png);
- background-position: 100px 15px, 0 0;
+ background-position: 105px 15px, 0 0;
}
-.left-hand-gray-front-avatar {
+.selection-panel-body[mainConfig=left-hand] .gray-front-avatar {
background-image: url(../../img/pa/gray-front-avatar.png), url(../../img/pa/default-base.png);
- background-position: 5px 15px, 0 0;
+ background-position: 2px 15px, 0 0;
}
.gray-side-avatar {
@@ -36,12 +36,21 @@
width: 315px;
height: 361px;
margin: 5%;
+ margin-left: 3%;
z-index: 10
}
-.grid .grid-selectors .grid-row {
- height: 20%;
- padding-top: 10%;
+.selection-panel-body[mainConfig=right-hand] .grid .grid-selectors .grid-row {
+ height: 10%;
+ padding-top: 4%;
+ text-align: justify;
+ z-index: 20
+}
+
+.selection-panel-body[mainConfig=left-hand] .grid .grid-selectors .grid-row {
+ height: 10%;
+ padding-top: 4%;
+ margin-left: 13%;
text-align: justify;
z-index: 20
}
@@ -50,16 +59,11 @@
background-color: #A0D0E8;
border-radius: 50%;
z-index: 100;
- width: 13px;
- height: 13px;
+ width: 10px;
+ height: 10px;
display: inline-block;
- margin-right: 6%;
- margin-bottom: 13%;
- float: left
-}
-
-.grid .grid-selectors .grid-row .ball-selector:nth-last-of-type(1) {
- margin-right: 0
+ margin-right: 3.3%;
+ float: left;
}
.grid .grid-selectors .grid-row .ball-selector .point-selector {
@@ -89,9 +93,11 @@
margin-top: 15px
}
-.module-z .grid-selectors .grid-row {
+.selection-panel-body[mainConfig=right-hand] .module-z .grid-selectors .grid-row,
+.selection-panel-body[mainConfig=left-hand] .module-z .grid-selectors .grid-row {
margin-right: 58%;
- padding-top: 3%;
+ padding-top: 0%;
+ height: 8%
}
.module-z .grid-selectors .grid-row .ball-selector {
diff --git a/view/assets/js/articulation.js b/view/assets/js/articulation.js
index bf01a81..57caaa7 100644
--- a/view/assets/js/articulation.js
+++ b/view/assets/js/articulation.js
@@ -1,6 +1,7 @@
(function(articulation, $, undefined) {
var server_host = '';
+ var MAX_COLUMNS = 14;
function _updateASelector(container, ballSelector, step) {
var pointSelector = parseInt(step) == 2 ? "A" : "B";
@@ -83,9 +84,10 @@
var y = yValue;
var z = zValue;
if (hand == 'left-hand') {
- x = 10 - x + 1;
+ x = MAX_COLUMNS - x + 1;
}
- var value = (z - 1) * 10 + x + 30 * (y - 1);
+
+ var value = (z - 1) * MAX_COLUMNS + x + 3 * MAX_COLUMNS * (y - 1);
//console.log(value);
return value;
}
diff --git a/view/assets/js/dynamic-loading-engine.js b/view/assets/js/dynamic-loading-engine.js
index b0e66ed..8120b8e 100644
--- a/view/assets/js/dynamic-loading-engine.js
+++ b/view/assets/js/dynamic-loading-engine.js
@@ -26,6 +26,14 @@
}
}
+ var replaceHandFolderTag = function(data, mainConfig) {
+ if (isRightHand(mainConfig)) {
+ return data.replace(/{{ hand-folder }}/g, 'md');
+ } else {
+ return data.replace(/{{ hand-folder }}/g, 'me');
+ }
+ }
+
if (matchSubConfig) { // case defined
// There is no specific(right or left hand dependent) assets for: articulacao, duracao, expressao, movimento, transicao
// Specific configurations: configuracao, orientacao
@@ -50,7 +58,7 @@
console.log('No subConfig found');
}
}
- // change {{ hand }}
+ goodData = replaceHandFolderTag(goodData, currentMainConfig);
goodData = goodData.replace(/{{ hand }}/g, currentMainConfig);
return goodData.replace(/{{ server }}/g, url);
};
diff --git a/view/assets/js/dynamic-selection-workflow.js b/view/assets/js/dynamic-selection-workflow.js
index 83bce20..8f413ad 100644
--- a/view/assets/js/dynamic-selection-workflow.js
+++ b/view/assets/js/dynamic-selection-workflow.js
@@ -101,10 +101,9 @@
}
function _selectSubConfig(subConfig) {
- /*if (subConfig != 'movimento' &&
- currentSubConfigName == 'movimento') {
- _updateAndGetFirstMovementSubConfig();
- }*/
+ if (subConfig == 'movimento') {
+ _updateAndGetMovementConfig();
+ }
currentSubConfigName = subConfig;
currentSubconfig = currentSubconfigParent[currentSubConfigName];
currentStep = 0;
diff --git a/view/assets/js/tmpJSONParser.js b/view/assets/js/tmpJSONParser.js
index 6af2687..7efde07 100644
--- a/view/assets/js/tmpJSONParser.js
+++ b/view/assets/js/tmpJSONParser.js
@@ -89,15 +89,21 @@
initParameterValue = tmpJSON[hand][attr][0];
endParameterValue = tmpJSON[hand][attr][1];
}
- attr = attr.replace("-retilineo", "");
- var initAttr = attr + "_inicial";
- var endAttr = attr + "_final";
+ attr = attr.replace('-retilineo', '');
+ var initAttr = attr + '_inicial';
+ var endAttr = attr + '_final';
movement_parameter_json[parsedHand][movementName][initAttr] =
_parseParameterValue(initParameterValue);
movement_parameter_json[parsedHand][movementName][endAttr] =
_parseParameterValue(endParameterValue);
}
}
+
+ function _circularMovementParser(tmpJSON, movementName, hand) {
+ var parsedHand = _parseHand(hand);
+ _defaultMovementParser(tmpJSON, movementName, hand);
+ movement_parameter_json[parsedHand][movementName]['lado_oposto'] = false;
+ }
function _parseTempMovementParameterJSON(tmpJSON, hand) {
var movimentConfig = tmpJSON[hand]['movimento'];
@@ -109,6 +115,8 @@
if (movementName == 'retilineo') {
_retilinearMovementParser(tmpJSON, movementName, hand);
+ } else if (movementName == 'circular') {
+ _circularMovementParser(tmpJSON, movementName, hand);
} else {
_defaultMovementParser(tmpJSON, movementName, hand);
}
diff --git a/view/conf/selection-workflow-json b/view/conf/selection-workflow-json
index 9e628d2..9e860dd 100644
--- a/view/conf/selection-workflow-json
+++ b/view/conf/selection-workflow-json
@@ -18,8 +18,7 @@
"plano": ["passo-1"],
"raio" : ["passo-1"],
"velocidade" : ["passo-1"],
- "sentido_inverso" : ["passo-1"],
- "lado_oposto" : ["passo-1"]
+ "sentido_inverso" : ["passo-1"]
},
"retilineo" : {
"articulacao-retilineo": ["passo-1", "passo-2", "passo-3", "passo-4"],
diff --git a/view/hand/articulacao-retilineo/passo-1.html b/view/hand/articulacao-retilineo/passo-1.html
index 7fd337b..1b79a4f 100644
--- a/view/hand/articulacao-retilineo/passo-1.html
+++ b/view/hand/articulacao-retilineo/passo-1.html
@@ -1,74 +1,179 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/view/hand/articulacao/passo-1.html b/view/hand/articulacao/passo-1.html
index 4f5b7d9..5341222 100644
--- a/view/hand/articulacao/passo-1.html
+++ b/view/hand/articulacao/passo-1.html
@@ -1,75 +1,180 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/view/hand/articulacao/passo-2.html b/view/hand/articulacao/passo-2.html
index eaa315b..8c01a66 100644
--- a/view/hand/articulacao/passo-2.html
+++ b/view/hand/articulacao/passo-2.html
@@ -1,37 +1,65 @@
-
-
-
+
diff --git a/view/hand/lado_oposto/passo-1.html b/view/hand/lado_oposto/passo-1.html
deleted file mode 100644
index 877c8b0..0000000
--- a/view/hand/lado_oposto/passo-1.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
diff --git a/view/hand/movimento/passo-1.html b/view/hand/movimento/passo-1.html
index 14a2100..c3107ff 100644
--- a/view/hand/movimento/passo-1.html
+++ b/view/hand/movimento/passo-1.html
@@ -10,7 +10,7 @@
class="box-panel-option selection-panel-option" autoplay loop>
Pontual
-
- -
+
+ Esquerda - Cima
+ -
Frente - Esquerda
- -
- Frente - Cima
-
- -
-
- Esquerda - Cima
+ Frente - Cima
diff --git a/view/hand/raio/passo-1.html b/view/hand/raio/passo-1.html
index b808a39..681b429 100644
--- a/view/hand/raio/passo-1.html
+++ b/view/hand/raio/passo-1.html
@@ -5,17 +5,17 @@
- -
Pequeno
- -
Médio
- -
diff --git a/view/hand/sentido_inverso/passo-1.html b/view/hand/sentido_inverso/passo-1.html
index d8ef9f0..7396146 100644
--- a/view/hand/sentido_inverso/passo-1.html
+++ b/view/hand/sentido_inverso/passo-1.html
@@ -5,12 +5,12 @@
- -
Horário
- -
diff --git a/view/hand/timeline.html b/view/hand/timeline.html
index 7bd164c..9f6cd22 100644
--- a/view/hand/timeline.html
+++ b/view/hand/timeline.html
@@ -55,11 +55,6 @@
json_name="sentido_inverso">
-
-
-

-
diff --git a/view/hand/velocidade/passo-1.html b/view/hand/velocidade/passo-1.html
index f82a995..ba835fa 100644
--- a/view/hand/velocidade/passo-1.html
+++ b/view/hand/velocidade/passo-1.html
@@ -5,17 +5,17 @@
- -
Lento
- -
Normal
- -
diff --git a/view/img/circular/md/plano-esquerda-cima.webm b/view/img/circular/md/plano-esquerda-cima.webm
new file mode 100644
index 0000000..2eb2738
Binary files /dev/null and b/view/img/circular/md/plano-esquerda-cima.webm differ
diff --git a/view/img/circular/md/plano-frente-cima.webm b/view/img/circular/md/plano-frente-cima.webm
new file mode 100644
index 0000000..250c1af
Binary files /dev/null and b/view/img/circular/md/plano-frente-cima.webm differ
diff --git a/view/img/circular/md/plano-frente-esquerda.webm b/view/img/circular/md/plano-frente-esquerda.webm
new file mode 100644
index 0000000..4b457d1
Binary files /dev/null and b/view/img/circular/md/plano-frente-esquerda.webm differ
diff --git a/view/img/circular/md/raio-grande.webm b/view/img/circular/md/raio-grande.webm
new file mode 100644
index 0000000..2eb2738
Binary files /dev/null and b/view/img/circular/md/raio-grande.webm differ
diff --git a/view/img/circular/md/raio-normal.webm b/view/img/circular/md/raio-normal.webm
new file mode 100644
index 0000000..89057c7
Binary files /dev/null and b/view/img/circular/md/raio-normal.webm differ
diff --git a/view/img/circular/md/raio-pequeno.webm b/view/img/circular/md/raio-pequeno.webm
new file mode 100644
index 0000000..4f20bb2
Binary files /dev/null and b/view/img/circular/md/raio-pequeno.webm differ
diff --git a/view/img/circular/md/sentido-anti-horario.webm b/view/img/circular/md/sentido-anti-horario.webm
new file mode 100644
index 0000000..3031d77
Binary files /dev/null and b/view/img/circular/md/sentido-anti-horario.webm differ
diff --git a/view/img/circular/md/sentido-horario.webm b/view/img/circular/md/sentido-horario.webm
new file mode 100644
index 0000000..2eb2738
Binary files /dev/null and b/view/img/circular/md/sentido-horario.webm differ
diff --git a/view/img/circular/md/velocidade-lento.webm b/view/img/circular/md/velocidade-lento.webm
new file mode 100644
index 0000000..b2c84f2
Binary files /dev/null and b/view/img/circular/md/velocidade-lento.webm differ
diff --git a/view/img/circular/md/velocidade-normal.webm b/view/img/circular/md/velocidade-normal.webm
new file mode 100644
index 0000000..2eb2738
Binary files /dev/null and b/view/img/circular/md/velocidade-normal.webm differ
diff --git a/view/img/circular/md/velocidade-rapido.webm b/view/img/circular/md/velocidade-rapido.webm
new file mode 100644
index 0000000..e7968fd
Binary files /dev/null and b/view/img/circular/md/velocidade-rapido.webm differ
diff --git a/view/img/circular/me/plano-esquerda-cima.webm b/view/img/circular/me/plano-esquerda-cima.webm
new file mode 100644
index 0000000..cb23b8c
Binary files /dev/null and b/view/img/circular/me/plano-esquerda-cima.webm differ
diff --git a/view/img/circular/me/plano-frente-cima.webm b/view/img/circular/me/plano-frente-cima.webm
new file mode 100644
index 0000000..f16460e
Binary files /dev/null and b/view/img/circular/me/plano-frente-cima.webm differ
diff --git a/view/img/circular/me/plano-frente-esquerda.webm b/view/img/circular/me/plano-frente-esquerda.webm
new file mode 100644
index 0000000..ead8f0a
Binary files /dev/null and b/view/img/circular/me/plano-frente-esquerda.webm differ
diff --git a/view/img/circular/me/raio-grande.webm b/view/img/circular/me/raio-grande.webm
new file mode 100644
index 0000000..cb23b8c
Binary files /dev/null and b/view/img/circular/me/raio-grande.webm differ
diff --git a/view/img/circular/me/raio-normal.webm b/view/img/circular/me/raio-normal.webm
new file mode 100644
index 0000000..90b1fb1
Binary files /dev/null and b/view/img/circular/me/raio-normal.webm differ
diff --git a/view/img/circular/me/raio-pequeno.webm b/view/img/circular/me/raio-pequeno.webm
new file mode 100644
index 0000000..624d696
Binary files /dev/null and b/view/img/circular/me/raio-pequeno.webm differ
diff --git a/view/img/circular/me/sentido-anti-horario.webm b/view/img/circular/me/sentido-anti-horario.webm
new file mode 100644
index 0000000..2bd5849
Binary files /dev/null and b/view/img/circular/me/sentido-anti-horario.webm differ
diff --git a/view/img/circular/me/sentido-horario.webm b/view/img/circular/me/sentido-horario.webm
new file mode 100644
index 0000000..cb23b8c
Binary files /dev/null and b/view/img/circular/me/sentido-horario.webm differ
diff --git a/view/img/circular/me/velocidade-lento.webm b/view/img/circular/me/velocidade-lento.webm
new file mode 100644
index 0000000..b1867a7
Binary files /dev/null and b/view/img/circular/me/velocidade-lento.webm differ
diff --git a/view/img/circular/me/velocidade-normal.webm b/view/img/circular/me/velocidade-normal.webm
new file mode 100644
index 0000000..cb23b8c
Binary files /dev/null and b/view/img/circular/me/velocidade-normal.webm differ
diff --git a/view/img/circular/me/velocidade-rapido.webm b/view/img/circular/me/velocidade-rapido.webm
new file mode 100644
index 0000000..5cb74fe
Binary files /dev/null and b/view/img/circular/me/velocidade-rapido.webm differ
diff --git a/view/img/mov/PONTUAL.webm b/view/img/mov/PONTUAL.webm
index bccdaf4..b2b981f 100644
Binary files a/view/img/mov/PONTUAL.webm and b/view/img/mov/PONTUAL.webm differ
diff --git a/view/img/mov/RETILINEO.webm b/view/img/mov/RETILINEO.webm
new file mode 100644
index 0000000..1764bfe
Binary files /dev/null and b/view/img/mov/RETILINEO.webm differ
--
libgit2 0.21.2