Label
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index fcdbcd22..bddfcd3e 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -505,6 +505,9 @@ var Layer = exports.Layer = Montage.create(Component, {
// Add mousedown listener to set isActive
this.element.addEventListener("mousedown", this, false);
this.element.addEventListener("click", this, false);
+
+ // Drag and drop event hanlders
+ this.element.addEventListener("dropped", this, false);
}
},
@@ -783,6 +786,11 @@ var Layer = exports.Layer = Montage.create(Component, {
this.triggerOutgoingBinding();
}
},
+ handleDropped : {
+ value: function(event) {
+ console.log('wheeee! WWEWWEWWWWEEEEEEEEE')
+ }
+ },
/* End: Event handlers */
/* Begin: Logging routines */
--
cgit v1.2.3
From 8ef667315ca6a81bb1369943eaf3643ae2db5037 Mon Sep 17 00:00:00 2001
From: Jon Reid
Date: Mon, 26 Mar 2012 17:04:28 -0700
Subject: Timeline: Drag and Drop of layers.
---
js/panels/Timeline/Layer.reel/Layer.html | 32 ++----------
js/panels/Timeline/Layer.reel/Layer.js | 83 +++++++++++++++++++++++++-------
2 files changed, 68 insertions(+), 47 deletions(-)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.html b/js/panels/Timeline/Layer.reel/Layer.html
index ef98bdd5..454c2742 100644
--- a/js/panels/Timeline/Layer.reel/Layer.html
+++ b/js/panels/Timeline/Layer.reel/Layer.html
@@ -23,7 +23,8 @@
"transformCollapser" : {"@" : "transformCollapser"},
"styleCollapser" : {"@" : "styleCollapser"},
"clickerMain" : {"#" : "clicker-main"},
- "myLabel" : {"#" : "myLabel"}
+ "myLabel" : {"#" : "myLabel"},
+ "dragDrop" : {"@" : "DragDrop"}
}
},
"dtext1" : {
@@ -315,34 +316,7 @@
"oneway" : false
}
}
- },
-
- "DragDrop": {
- "module": "js/panels/Timeline/DragDrop.js",
- "name": "DragDropComposer",
- "properties": {
- "element": {"#": "myLabel"},
- "component": {"@": "owner"}
- },
- "listeners": [
- {
- "type": "dragStart",
- "listener": {"@": "owner"}
- },
- {
- "type": "dropHover",
- "listener": {"@": "owner"}
- },
- {
- "type": "dropped",
- "listener": {"@": "owner"}
- },
- {
- "type": "dropEnd",
- "listener": {"@": "owner"}
- }
- ]
- }
+ }
}
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index bddfcd3e..9cf321b1 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -102,6 +102,7 @@ var Layer = exports.Layer = Montage.create(Component, {
},
set:function(value){
this._layerID = value;
+ this.layerData.layerID = value;
}
},
@@ -119,7 +120,7 @@ var Layer = exports.Layer = Montage.create(Component, {
set:function(value){
if (this._dtextPositionX !== value) {
this._dtextPositionX = value;
- //this.needsDraw = true;
+ this.layerData.dtextPositionX = value;
}
}
@@ -138,7 +139,7 @@ var Layer = exports.Layer = Montage.create(Component, {
set:function(value){
if (this._dtextPositionY !== value) {
this._dtextPositionY = value;
- //this.needsDraw = true;
+ this.layerData.dtextPositionY = value;
}
}
@@ -157,7 +158,7 @@ var Layer = exports.Layer = Montage.create(Component, {
set:function(value){
if (this._dtextScaleX !== value) {
this._dtextScaleX = value;
- //this.needsDraw = true;
+ this.layerData.dtextScaleX = value;
}
}
@@ -176,7 +177,7 @@ var Layer = exports.Layer = Montage.create(Component, {
set:function(value){
if (this._dtextScaleY !== value) {
this._dtextScaleY = value;
- //this.needsDraw = true;
+ this.layerData.dtextScaleY = value;
}
}
@@ -195,7 +196,7 @@ var Layer = exports.Layer = Montage.create(Component, {
set:function(value){
if (this._dtextSkewX !== value) {
this._dtextSkewX = value;
- //this.needsDraw = true;
+ this.layerData.dtextSkewX = value;
}
}
@@ -214,7 +215,7 @@ var Layer = exports.Layer = Montage.create(Component, {
set:function(value){
if (this._dtextSkewY !== value) {
this._dtextSkewY = value;
- //this.needsDraw = true;
+ this.layerData.dtextSkewY = value;
}
}
@@ -233,7 +234,7 @@ var Layer = exports.Layer = Montage.create(Component, {
set:function(value){
if (this._dtextRotate !== value) {
this._dtextRotate = value;
- //this.needsDraw = true;
+ this.layerData.dtextRotate = value;
}
}
@@ -278,6 +279,7 @@ var Layer = exports.Layer = Montage.create(Component, {
},
set: function(newVal) {
this._isActive = newVal;
+ this.layerData.isActive = newVal;
}
},
@@ -294,6 +296,7 @@ var Layer = exports.Layer = Montage.create(Component, {
},
set:function(value){
this._isAnimated = value;
+ this.layerData.isAnimated = newVal;
}
},
_justAdded: {
@@ -384,11 +387,15 @@ var Layer = exports.Layer = Montage.create(Component, {
set: function(newVal) {
if (newVal !== this._bypassAnimation) {
this._bypassAnimation = newVal;
- this.layerData.bypassAnimation = newVal;
- //this.triggerOutgoingBinding();
+ this.layerData.bypassAnimation = newVal;
}
}
},
+
+ // Is this the first draw?
+ _isFirstDraw : {
+ value: true
+ },
_layerData:{
serializable:true,
@@ -459,12 +466,6 @@ var Layer = exports.Layer = Montage.create(Component, {
}
}
},
-
- // Is this the first draw?
- _isFirstDraw : {
- value: true
- },
-
/* END: Models */
/* Begin: Draw cycle */
@@ -507,7 +508,12 @@ var Layer = exports.Layer = Montage.create(Component, {
this.element.addEventListener("click", this, false);
// Drag and drop event hanlders
- this.element.addEventListener("dropped", this, false);
+ this.element.addEventListener("mouseover", this.handleMouseover.bind(this), false);
+ this.element.addEventListener("mouseout", this.handleMouseout.bind(this), false);
+ this.element.addEventListener("dragover", this.handleDragover.bind(this), false);
+ this.element.addEventListener("dragleave", this.handleDragleave.bind(this), false);
+ this.element.addEventListener("dragstart", this.handleDragstart.bind(this), false);
+ this.element.addEventListener("drop", this.handleDrop.bind(this), false);
}
},
@@ -545,6 +551,8 @@ var Layer = exports.Layer = Montage.create(Component, {
this.titleSelector = this.label.querySelector(".collapsible-label");
this.buttonAddStyle = this.element.querySelector(".button-add");
this.buttonDeleteStyle = this.element.querySelector(".button-delete");
+
+
}
},
@@ -786,9 +794,48 @@ var Layer = exports.Layer = Montage.create(Component, {
this.triggerOutgoingBinding();
}
},
- handleDropped : {
+ handleMouseover: {
value: function(event) {
- console.log('wheeee! WWEWWEWWWWEEEEEEEEE')
+ this.element.draggable = true;
+ }
+ },
+ handleMouseout: {
+ value: function(event) {
+ this.element.draggable = false;
+ }
+ },
+ handleDragenter: {
+ value: function(event) {
+ }
+ },
+ handleDragleave: {
+ value: function(event) {
+ this.element.classList.remove("dragOver");
+ }
+ },
+ handleDragstart: {
+ value: function(event) {
+ this.parentComponent.parentComponent.dragLayerID = this.layerID;
+ event.dataTransfer.setData('Text', 'Layer');
+ }
+ },
+ handleDragover: {
+ value: function(event) {
+ event.preventDefault();
+ this.element.classList.add("dragOver");
+ event.dataTransfer.dropEffect = "move";
+ return false;
+ }
+ },
+
+ handleDrop : {
+ value: function(event) {
+ event.stopPropagation();
+ this.element.classList.remove("dragOver");
+ if (this.parentComponent.parentComponent.dragLayerID !== this.layerID) {
+ this.parentComponent.parentComponent.dropLayerID = this.layerID;
+ }
+ return false;
}
},
/* End: Event handlers */
--
cgit v1.2.3
From 7845d312396e3329ac9246d4c13e99cb623216d5 Mon Sep 17 00:00:00 2001
From: Jon Reid
Date: Tue, 27 Mar 2012 18:22:10 -0700
Subject: Timeline: Stability fixes for drag-and-drop and page switching.
---
js/panels/Timeline/Layer.reel/Layer.js | 3 +++
1 file changed, 3 insertions(+)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index 9cf321b1..c69f28b0 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -417,6 +417,9 @@ var Layer = exports.Layer = Montage.create(Component, {
setData:{
value:function(){
+ if (typeof(this.layerData) === "undefined") {
+ return;
+ }
this.layerName = this.layerData.layerName;
this.layerID = this.layerData.layerID;
this.arrLayerStyles = this.layerData.arrLayerStyles;
--
cgit v1.2.3
From 18143071c9e1308d6cb9289477563aea22856c5e Mon Sep 17 00:00:00 2001
From: Jon Reid
Date: Fri, 30 Mar 2012 12:16:40 -0700
Subject: Timeline: Bug fixes.
---
js/panels/Timeline/Layer.reel/Layer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index c69f28b0..f1882985 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -385,7 +385,7 @@ var Layer = exports.Layer = Montage.create(Component, {
return this._bypassAnimation;
},
set: function(newVal) {
- if (newVal !== this._bypassAnimation) {
+ if ((newVal !== this._bypassAnimation) && (typeof(this.layerData) !== "undefined")) {
this._bypassAnimation = newVal;
this.layerData.bypassAnimation = newVal;
}
--
cgit v1.2.3
From 6e9c9fd4d715567394038705e7a6ef7935e451d3 Mon Sep 17 00:00:00 2001
From: Jon Reid
Date: Mon, 2 Apr 2012 17:11:30 -0700
Subject: Timeline: Bug fix: IKNINJA-1431, "Adding a new element to the stage
with one layer in focus whose name is empty, Ninja creates an empty name
layer for the element."
---
js/panels/Timeline/Layer.reel/Layer.js | 69 ++++++++++++++-------------
js/panels/Timeline/Layer.reel/css/Layer.css | 50 +++++++++++--------
js/panels/Timeline/Layer.reel/scss/Layer.scss | 9 ++++
3 files changed, 74 insertions(+), 54 deletions(-)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index f1882985..bba113c0 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -67,10 +67,7 @@ var Layer = exports.Layer = Montage.create(Component, {
/* Layer models: the name, ID, and selected and animation booleans for the layer */
_layerName:{
- serializable: true,
- value:null,
- writable:true,
- enumerable:true
+ value: "Default Layer Name"
},
layerName:{
@@ -79,20 +76,22 @@ var Layer = exports.Layer = Montage.create(Component, {
return this._layerName;
},
set:function(newVal){
- if (newVal !== this._layerName) {
+ console.log('Layer.layerName.set ', newVal);
+
this._layerEditable.value = newVal;
this._layerName = newVal;
this.layerData.layerName = newVal;
- this.log('layerName setter: ' + newVal)
- }
+ if (typeof(this.dynamicLayerName) !== "undefined") {
+ this.dynamicLayerName.value = newVal;
+ }
+
+ console.log('layerName setter: ' + newVal)
+
}
},
_layerID:{
- value:null,
- writable:true,
- serializable: true,
- enumerable:true
+ value: "Default Layer ID"
},
layerID:{
@@ -410,16 +409,25 @@ var Layer = exports.Layer = Montage.create(Component, {
set:function(val){
this._layerData = val;
if(this._layerData){
- this.setData();
+ this.setData(true);
}
}
},
setData:{
- value:function(){
- if (typeof(this.layerData) === "undefined") {
+ value:function(boolNeedsDraw){
+ if (typeof(this._layerData) === "undefined") {
+ return;
+ }
+
+ if (typeof(this._layerData.layerName) === "undefined") {
return;
}
+
+ if (typeof(boolNeedsDraw) === "undefined") {
+ boolNeedsDraw = false;
+ }
+
this.layerName = this.layerData.layerName;
this.layerID = this.layerData.layerID;
this.arrLayerStyles = this.layerData.arrLayerStyles;
@@ -438,7 +446,7 @@ var Layer = exports.Layer = Montage.create(Component, {
this.dtextScaleY = this.layerData.dtextScaleY;
this.dtextRotate = this.layerData.dtextRotate;
this._isFirstDraw = this.layerData._isFirstDraw;
- this.needsDraw = true;
+ this.needsDraw = boolNeedsDraw;
}
},
@@ -455,7 +463,7 @@ var Layer = exports.Layer = Montage.create(Component, {
set: function(newVal) {
if (newVal !== this._bindingPoint) {
this._bindingPoint = newVal;
- this.setData();
+ this.setData(true);
}
}
},
@@ -478,23 +486,15 @@ var Layer = exports.Layer = Montage.create(Component, {
// Initialize myself
this.init();
- var that = this;
-
// Make it editable!
this._layerEditable = Hintable.create();
this._layerEditable.element = this.titleSelector;
- this.titleSelector.identifier = "selectorEditable";
- this.titleSelector.addEventListener("click", this, false);
- this._layerEditable.addEventListener("blur", function(event) {
- that.handleSelectorEditableBlur(event);
- }, false);
- this._layerEditable.addEventListener("change", function(event) {
- that.dynamicLayerName.value = that._layerEditable.value;
- that.needsDraw = true;
- }, false);
+ this._layerEditable.addEventListener("blur", this.handleSelectorEditableBlur.bind(this), false);
+ this._layerEditable.addEventListener("change", this.handleSelectorEditableChange.bind(this), false);
+
this._layerEditable.editingClass = "editable2";
this._layerEditable.value = this.layerName;
- this._layerEditable.needsDraw = true;
+ //this._layerEditable.needsDraw = true;
this.mainCollapser.clicker.addEventListener("click", this.handleMainCollapserClick.bind(this), false);
this.positionCollapser.clicker.addEventListener("click", this.handlePositionCollapserClick.bind(this), false);
@@ -510,7 +510,7 @@ var Layer = exports.Layer = Montage.create(Component, {
this.element.addEventListener("mousedown", this, false);
this.element.addEventListener("click", this, false);
- // Drag and drop event hanlders
+ // Drag and drop event handlers
this.element.addEventListener("mouseover", this.handleMouseover.bind(this), false);
this.element.addEventListener("mouseout", this.handleMouseout.bind(this), false);
this.element.addEventListener("dragover", this.handleDragover.bind(this), false);
@@ -712,10 +712,6 @@ var Layer = exports.Layer = Montage.create(Component, {
this.deleteStyle();
}
},
- handleSelectorEditableClick: {
- value: function(event) {
- }
- },
handleSelectorEditableBlur : {
value: function(event) {
this.titleSelector.scrollLeft = 0;
@@ -723,7 +719,12 @@ var Layer = exports.Layer = Montage.create(Component, {
},
handleSelectorEditableChange: {
value: function(event) {
- this.layerName = this.dynamicLayerName.value;
+ var newVal = "ONTD";
+ if (this._layerEditable.value !== "") {
+ newVal = this._layerEditable.value;
+ }
+ this.dynamicLayerName.value = newVal;
+ this.layerName = newVal;
this.needsDraw = true;
}
},
diff --git a/js/panels/Timeline/Layer.reel/css/Layer.css b/js/panels/Timeline/Layer.reel/css/Layer.css
index 8e36c2db..1aae8d67 100644
--- a/js/panels/Timeline/Layer.reel/css/Layer.css
+++ b/js/panels/Timeline/Layer.reel/css/Layer.css
@@ -139,7 +139,12 @@
font-size: 11px;
}
-/* line 130, ../scss/Layer.scss */
+/* line 132, ../scss/Layer.scss */
+.label-layer .collapsible-label br {
+ display: none;
+}
+
+/* line 136, ../scss/Layer.scss */
.collapsible-clicker {
position: absolute;
width: 10px;
@@ -152,23 +157,23 @@
background-repeat: no-repeat;
}
-/* line 141, ../scss/Layer.scss */
+/* line 147, ../scss/Layer.scss */
.collapsible-clicker.collapsible-collapsed {
background-image: url(../images/icon-collapsed.png);
}
-/* line 144, ../scss/Layer.scss */
+/* line 150, ../scss/Layer.scss */
.collapsible-content .collapsible-clicker {
left: 12px;
}
-/* line 147, ../scss/Layer.scss */
+/* line 153, ../scss/Layer.scss */
.container-layer .collapsible-content.collapsible-collapsed {
height: 0px;
overflow: hidden;
}
-/* line 153, ../scss/Layer.scss */
+/* line 159, ../scss/Layer.scss */
.label-layer .cssbutton,
.label-style .cssbutton {
width: 14px;
@@ -178,21 +183,21 @@
background-repeat: no-repeat;
}
-/* line 160, ../scss/Layer.scss */
+/* line 166, ../scss/Layer.scss */
.label-layer .button-lock {
background-image: url(../images/icon-lock.png);
top: 3px;
right: 27px;
}
-/* line 165, ../scss/Layer.scss */
+/* line 171, ../scss/Layer.scss */
.label-layer .button-visible {
background-image: url(../images/icon-eye.png);
top: 3px;
right: 7px;
}
-/* line 170, ../scss/Layer.scss */
+/* line 176, ../scss/Layer.scss */
.label-style .button-add {
background-image: url(../images/icon-plus.png);
width: 15px;
@@ -201,7 +206,7 @@
right: 11px;
}
-/* line 177, ../scss/Layer.scss */
+/* line 183, ../scss/Layer.scss */
.label-style .button-delete {
background-image: url(../images/icon-minus.png);
width: 15px;
@@ -210,17 +215,17 @@
right: 31px;
}
-/* line 184, ../scss/Layer.scss */
+/* line 190, ../scss/Layer.scss */
.collapsible-content .layout-table {
width: 99.9%;
}
-/* line 187, ../scss/Layer.scss */
+/* line 193, ../scss/Layer.scss */
.content-layer .collapsible-content {
padding-left: 30px;
}
-/* line 190, ../scss/Layer.scss */
+/* line 196, ../scss/Layer.scss */
.collapsible-content .collapsible-content .layout-table .layout-row .layout-cell {
width: 40%;
height: 20px;
@@ -229,24 +234,24 @@
text-align: left;
}
-/* line 197, ../scss/Layer.scss */
+/* line 203, ../scss/Layer.scss */
.collapsible-content .layout-table:first-child {
border-top: 1px solid #505050;
}
-/* line 201, ../scss/Layer.scss */
+/* line 207, ../scss/Layer.scss */
.collapsible-content .hottextunit {
width: auto;
}
-/* line 204, ../scss/Layer.scss */
+/* line 210, ../scss/Layer.scss */
.collapsible-transition {
-webkit-transition-property: height;
-webkit-transition-duration: 200ms;
-webkit-transition-timing-function: ease-in;
}
-/* line 212, ../scss/Layer.scss */
+/* line 218, ../scss/Layer.scss */
.editable2 {
height: 20px;
background-color: #242424 !important;
@@ -258,24 +263,29 @@
text-overflow: clip;
}
-/* line 223, ../scss/Layer.scss */
+/* line 228, ../scss/Layer.scss */
+.editable2 br {
+ display: inline;
+}
+
+/* line 232, ../scss/Layer.scss */
.label-style .disabled {
cursor: default;
}
/* styles elements */
-/* line 228, ../scss/Layer.scss */
+/* line 237, ../scss/Layer.scss */
.content-style .item-template {
display: none;
}
-/* line 231, ../scss/Layer.scss */
+/* line 240, ../scss/Layer.scss */
.content-style .layout-row.selected .layout-cell {
background-color: #b2b2b2;
color: #242424;
}
-/* line 235, ../scss/Layer.scss */
+/* line 244, ../scss/Layer.scss */
.style-row {
height: 20px;
}
diff --git a/js/panels/Timeline/Layer.reel/scss/Layer.scss b/js/panels/Timeline/Layer.reel/scss/Layer.scss
index 12b6e599..80b88d4f 100644
--- a/js/panels/Timeline/Layer.reel/scss/Layer.scss
+++ b/js/panels/Timeline/Layer.reel/scss/Layer.scss
@@ -127,6 +127,12 @@
font-size: 11px;
}
+
+
+.label-layer .collapsible-label br {
+ display: none;
+}
+
.collapsible-clicker {
position: absolute;
width: 10px;
@@ -219,6 +225,9 @@
-webkit-user-select: text;
text-overflow: clip;
}
+.editable2 br {
+ display: inline;
+}
.label-style .disabled {
cursor: default;
--
cgit v1.2.3
From 45ecc6b07562d195e452d0831daffdaf43973d0f Mon Sep 17 00:00:00 2001
From: Jon Reid
Date: Tue, 3 Apr 2012 08:15:36 -0700
Subject: Timeline: disable console logs in layer component.
---
js/panels/Timeline/Layer.reel/Layer.js | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index bba113c0..4b7fe24c 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -76,18 +76,13 @@ var Layer = exports.Layer = Montage.create(Component, {
return this._layerName;
},
set:function(newVal){
- console.log('Layer.layerName.set ', newVal);
- this._layerEditable.value = newVal;
- this._layerName = newVal;
- this.layerData.layerName = newVal;
- if (typeof(this.dynamicLayerName) !== "undefined") {
- this.dynamicLayerName.value = newVal;
- }
-
- console.log('layerName setter: ' + newVal)
-
-
+ this._layerEditable.value = newVal;
+ this._layerName = newVal;
+ this.layerData.layerName = newVal;
+ if (typeof(this.dynamicLayerName) !== "undefined") {
+ this.dynamicLayerName.value = newVal;
+ }
}
},
_layerID:{
--
cgit v1.2.3
From 59de13ed9f88497b07b4fdcf4d2c9d5c2bf05365 Mon Sep 17 00:00:00 2001
From: Kruti Shah
Date: Wed, 4 Apr 2012 10:54:29 -0700
Subject: Timeline: Saving layername
Signed-off-by: Kruti Shah
---
js/panels/Timeline/Layer.reel/Layer.js | 1 +
1 file changed, 1 insertion(+)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index c69f28b0..300462ee 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -490,6 +490,7 @@ var Layer = exports.Layer = Montage.create(Component, {
}, false);
this._layerEditable.addEventListener("change", function(event) {
that.dynamicLayerName.value = that._layerEditable.value;
+ this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value
that.needsDraw = true;
}, false);
this._layerEditable.editingClass = "editable2";
--
cgit v1.2.3
From 7e6db5a574e63c5c21b15381c04736b6177cf0dc Mon Sep 17 00:00:00 2001
From: Jonathan Duran
Date: Wed, 4 Apr 2012 11:02:00 -0700
Subject: define "that" var correctly
Signed-off-by: Jonathan Duran
---
js/panels/Timeline/Layer.reel/Layer.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index 679b88f3..5a393039 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -480,7 +480,7 @@ var Layer = exports.Layer = Montage.create(Component, {
// Initialize myself
this.init();
-
+ var that = this;
// Make it editable!
this._layerEditable = Hintable.create();
this._layerEditable.element = this.titleSelector;
@@ -491,7 +491,7 @@ var Layer = exports.Layer = Montage.create(Component, {
}, false);
this._layerEditable.addEventListener("change", function(event) {
that.dynamicLayerName.value = that._layerEditable.value;
- this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value
+ this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value;
that.needsDraw = true;
}, false);
this._layerEditable.editingClass = "editable2";
--
cgit v1.2.3
From 61404b1965ffe7011ec86953f853f0954ccc308d Mon Sep 17 00:00:00 2001
From: Jonathan Duran
Date: Wed, 4 Apr 2012 11:11:09 -0700
Subject: Changing layer name should put dirty flag on doc
Signed-off-by: Jonathan Duran
---
js/panels/Timeline/Layer.reel/Layer.js | 1 +
1 file changed, 1 insertion(+)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index 5a393039..2f0310a9 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -493,6 +493,7 @@ var Layer = exports.Layer = Montage.create(Component, {
that.dynamicLayerName.value = that._layerEditable.value;
this.application.ninja.timeline.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = that.dynamicLayerName.value;
that.needsDraw = true;
+ this.application.ninja.documentController.activeDocument.needsSave = true;
}, false);
this._layerEditable.editingClass = "editable2";
this._layerEditable.value = this.layerName;
--
cgit v1.2.3
From 969137ba4520103348a496ac9b99063dc4ec8f96 Mon Sep 17 00:00:00 2001
From: Jon Reid
Date: Thu, 5 Apr 2012 10:38:57 -0700
Subject: Timeline: Bug fix for IKNINJA-1086, "CSS Style Suggestion stops
working"
---
js/panels/Timeline/Layer.reel/css/Layer.css | 47 ++++++++++++++-------------
js/panels/Timeline/Layer.reel/scss/Layer.scss | 3 +-
2 files changed, 26 insertions(+), 24 deletions(-)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/css/Layer.css b/js/panels/Timeline/Layer.reel/css/Layer.css
index 1aae8d67..2ea1e0f6 100644
--- a/js/panels/Timeline/Layer.reel/css/Layer.css
+++ b/js/panels/Timeline/Layer.reel/css/Layer.css
@@ -139,12 +139,13 @@
font-size: 11px;
}
-/* line 132, ../scss/Layer.scss */
-.label-layer .collapsible-label br {
+/* line 133, ../scss/Layer.scss */
+.label-layer .collapsible-label br,
+.content-style .editable br {
display: none;
}
-/* line 136, ../scss/Layer.scss */
+/* line 137, ../scss/Layer.scss */
.collapsible-clicker {
position: absolute;
width: 10px;
@@ -157,23 +158,23 @@
background-repeat: no-repeat;
}
-/* line 147, ../scss/Layer.scss */
+/* line 148, ../scss/Layer.scss */
.collapsible-clicker.collapsible-collapsed {
background-image: url(../images/icon-collapsed.png);
}
-/* line 150, ../scss/Layer.scss */
+/* line 151, ../scss/Layer.scss */
.collapsible-content .collapsible-clicker {
left: 12px;
}
-/* line 153, ../scss/Layer.scss */
+/* line 154, ../scss/Layer.scss */
.container-layer .collapsible-content.collapsible-collapsed {
height: 0px;
overflow: hidden;
}
-/* line 159, ../scss/Layer.scss */
+/* line 160, ../scss/Layer.scss */
.label-layer .cssbutton,
.label-style .cssbutton {
width: 14px;
@@ -183,21 +184,21 @@
background-repeat: no-repeat;
}
-/* line 166, ../scss/Layer.scss */
+/* line 167, ../scss/Layer.scss */
.label-layer .button-lock {
background-image: url(../images/icon-lock.png);
top: 3px;
right: 27px;
}
-/* line 171, ../scss/Layer.scss */
+/* line 172, ../scss/Layer.scss */
.label-layer .button-visible {
background-image: url(../images/icon-eye.png);
top: 3px;
right: 7px;
}
-/* line 176, ../scss/Layer.scss */
+/* line 177, ../scss/Layer.scss */
.label-style .button-add {
background-image: url(../images/icon-plus.png);
width: 15px;
@@ -206,7 +207,7 @@
right: 11px;
}
-/* line 183, ../scss/Layer.scss */
+/* line 184, ../scss/Layer.scss */
.label-style .button-delete {
background-image: url(../images/icon-minus.png);
width: 15px;
@@ -215,17 +216,17 @@
right: 31px;
}
-/* line 190, ../scss/Layer.scss */
+/* line 191, ../scss/Layer.scss */
.collapsible-content .layout-table {
width: 99.9%;
}
-/* line 193, ../scss/Layer.scss */
+/* line 194, ../scss/Layer.scss */
.content-layer .collapsible-content {
padding-left: 30px;
}
-/* line 196, ../scss/Layer.scss */
+/* line 197, ../scss/Layer.scss */
.collapsible-content .collapsible-content .layout-table .layout-row .layout-cell {
width: 40%;
height: 20px;
@@ -234,24 +235,24 @@
text-align: left;
}
-/* line 203, ../scss/Layer.scss */
+/* line 204, ../scss/Layer.scss */
.collapsible-content .layout-table:first-child {
border-top: 1px solid #505050;
}
-/* line 207, ../scss/Layer.scss */
+/* line 208, ../scss/Layer.scss */
.collapsible-content .hottextunit {
width: auto;
}
-/* line 210, ../scss/Layer.scss */
+/* line 211, ../scss/Layer.scss */
.collapsible-transition {
-webkit-transition-property: height;
-webkit-transition-duration: 200ms;
-webkit-transition-timing-function: ease-in;
}
-/* line 218, ../scss/Layer.scss */
+/* line 219, ../scss/Layer.scss */
.editable2 {
height: 20px;
background-color: #242424 !important;
@@ -263,29 +264,29 @@
text-overflow: clip;
}
-/* line 228, ../scss/Layer.scss */
+/* line 229, ../scss/Layer.scss */
.editable2 br {
display: inline;
}
-/* line 232, ../scss/Layer.scss */
+/* line 233, ../scss/Layer.scss */
.label-style .disabled {
cursor: default;
}
/* styles elements */
-/* line 237, ../scss/Layer.scss */
+/* line 238, ../scss/Layer.scss */
.content-style .item-template {
display: none;
}
-/* line 240, ../scss/Layer.scss */
+/* line 241, ../scss/Layer.scss */
.content-style .layout-row.selected .layout-cell {
background-color: #b2b2b2;
color: #242424;
}
-/* line 244, ../scss/Layer.scss */
+/* line 245, ../scss/Layer.scss */
.style-row {
height: 20px;
}
diff --git a/js/panels/Timeline/Layer.reel/scss/Layer.scss b/js/panels/Timeline/Layer.reel/scss/Layer.scss
index 80b88d4f..df3f93d5 100644
--- a/js/panels/Timeline/Layer.reel/scss/Layer.scss
+++ b/js/panels/Timeline/Layer.reel/scss/Layer.scss
@@ -129,7 +129,8 @@
-.label-layer .collapsible-label br {
+.label-layer .collapsible-label br,
+.content-style .editable br {
display: none;
}
--
cgit v1.2.3
From d07b97043b69335136a5946ef161d721c95d1ce9 Mon Sep 17 00:00:00 2001
From: Jon Reid
Date: Thu, 5 Apr 2012 11:22:42 -0700
Subject: Timeline: Bug fix: IKNINJA-1435
---
js/panels/Timeline/Layer.reel/Layer.html | 46 +++++++++++++--------------
js/panels/Timeline/Layer.reel/Layer.js | 4 +--
js/panels/Timeline/Layer.reel/css/Layer.css | 43 +++++++++++++++++++------
js/panels/Timeline/Layer.reel/scss/Layer.scss | 24 ++++++++++++++
4 files changed, 83 insertions(+), 34 deletions(-)
(limited to 'js/panels/Timeline/Layer.reel')
diff --git a/js/panels/Timeline/Layer.reel/Layer.html b/js/panels/Timeline/Layer.reel/Layer.html
index 454c2742..eb9ff3a9 100644
--- a/js/panels/Timeline/Layer.reel/Layer.html
+++ b/js/panels/Timeline/Layer.reel/Layer.html
@@ -337,14 +337,14 @@