diff options
64 files changed, 1571 insertions, 746 deletions
diff --git a/assets/shaders/Flag.vert.glsl b/assets/shaders/Flag.vert.glsl index 51ec8f8b..6e2854ee 100644 --- a/assets/shaders/Flag.vert.glsl +++ b/assets/shaders/Flag.vert.glsl | |||
@@ -59,7 +59,8 @@ void main() | |||
59 | const float pi = 3.14159; | 59 | const float pi = 3.14159; |
60 | float angle = time; | 60 | float angle = time; |
61 | 61 | ||
62 | v_uv = texcoord; | 62 | v_uv.x = texcoord.x; |
63 | v_uv.y = texcoord.y; | ||
63 | 64 | ||
64 | float x = 2.0*pi*texcoord.x/u_waveWidth; | 65 | float x = 2.0*pi*texcoord.x/u_waveWidth; |
65 | float y = 2.0*pi*texcoord.y; | 66 | float y = 2.0*pi*texcoord.y; |
diff --git a/assets/shaders/Pulse.frag.glsl b/assets/shaders/Pulse.frag.glsl index 9aeb05c9..b717d359 100644 --- a/assets/shaders/Pulse.frag.glsl +++ b/assets/shaders/Pulse.frag.glsl | |||
@@ -22,6 +22,7 @@ void main(void) | |||
22 | float cLength = length(cPos); | 22 | float cLength = length(cPos); |
23 | 23 | ||
24 | vec2 uv = gl_FragCoord.xy/u_resolution.xy+(cPos/cLength)*sin(cLength/30.0-time*10.0)/25.0; | 24 | vec2 uv = gl_FragCoord.xy/u_resolution.xy+(cPos/cLength)*sin(cLength/30.0-time*10.0)/25.0; |
25 | uv.y = 1.0 - uv.y; | ||
25 | vec3 col = texture2D(u_tex0,uv).xyz*50.0/cLength; | 26 | vec3 col = texture2D(u_tex0,uv).xyz*50.0/cLength; |
26 | 27 | ||
27 | gl_FragColor = vec4(col,1.0); | 28 | gl_FragColor = vec4(col,1.0); |
diff --git a/assets/shaders/test_fshader_full.glsl b/assets/shaders/test_fshader_full.glsl index c381c6bf..b2fc60e9 100755 --- a/assets/shaders/test_fshader_full.glsl +++ b/assets/shaders/test_fshader_full.glsl | |||
@@ -62,7 +62,7 @@ varying vec3 vEyePos; | |||
62 | 62 | ||
63 | void main() | 63 | void main() |
64 | { | 64 | { |
65 | vec4 colMapTexel = vec4(texture2D(colMap, vec2(vNormal.w, vECPos.w)).rgb, 1.0); | 65 | vec4 colMapTexel = vec4(texture2D(colMap, vec2(vNormal.w, 1.0 - vECPos.w)).rgb, 1.0); |
66 | 66 | ||
67 | // normal mapping | 67 | // normal mapping |
68 | vec3 normal = normalize(vNormal.xyz); | 68 | vec3 normal = normalize(vNormal.xyz); |
diff --git a/images/optionsbar/text/IndentLess.png b/images/optionsbar/text/IndentLess.png new file mode 100644 index 00000000..e37ba644 --- /dev/null +++ b/images/optionsbar/text/IndentLess.png | |||
Binary files differ | |||
diff --git a/images/optionsbar/text/IndentMore.png b/images/optionsbar/text/IndentMore.png new file mode 100644 index 00000000..0bce64b3 --- /dev/null +++ b/images/optionsbar/text/IndentMore.png | |||
Binary files differ | |||
diff --git a/js/clipboard/internal-ops/elements-clipboard-agent.js b/js/clipboard/internal-ops/elements-clipboard-agent.js index 5c4b7d6f..4f6e8195 100644 --- a/js/clipboard/internal-ops/elements-clipboard-agent.js +++ b/js/clipboard/internal-ops/elements-clipboard-agent.js | |||
@@ -267,7 +267,10 @@ var ElementsClipboardAgent = exports.ElementsClipboardAgent = Montage.create(Com | |||
267 | styles = null; | 267 | styles = null; |
268 | } | 268 | } |
269 | 269 | ||
270 | var addDelegate = this.application.ninja.elementMediator.addDelegate; | ||
271 | this.application.ninja.elementMediator.addDelegate = null; | ||
270 | this.application.ninja.elementMediator.addElements(canvas, styles, false); | 272 | this.application.ninja.elementMediator.addElements(canvas, styles, false); |
273 | this.application.ninja.elementMediator.addDelegate = addDelegate; | ||
271 | 274 | ||
272 | worldData = sourceCanvas.elementModel.shapeModel ? sourceCanvas.elementModel.shapeModel.GLWorld.exportJSON(): null; | 275 | worldData = sourceCanvas.elementModel.shapeModel ? sourceCanvas.elementModel.shapeModel.GLWorld.exportJSON(): null; |
273 | if(worldData) | 276 | if(worldData) |
@@ -349,7 +352,7 @@ var ElementsClipboardAgent = exports.ElementsClipboardAgent = Montage.create(Com | |||
349 | 352 | ||
350 | pastePositioned:{ | 353 | pastePositioned:{ |
351 | value: function(element, styles, fromCopy){// for now can wok for both in-place and centered paste | 354 | value: function(element, styles, fromCopy){// for now can wok for both in-place and centered paste |
352 | var modObject = [], x,y, newX, newY, counter; | 355 | var modObject = [], x,y, newX, newY, counter, self = this; |
353 | 356 | ||
354 | if((typeof fromCopy === "undefined") || (fromCopy && fromCopy === true)){ | 357 | if((typeof fromCopy === "undefined") || (fromCopy && fromCopy === true)){ |
355 | counter = this.pasteCounter; | 358 | counter = this.pasteCounter; |
@@ -362,11 +365,22 @@ var ElementsClipboardAgent = exports.ElementsClipboardAgent = Montage.create(Com | |||
362 | newX = styles ? ("" + (styles.left + (25 * counter)) + "px") : "100px"; | 365 | newX = styles ? ("" + (styles.left + (25 * counter)) + "px") : "100px"; |
363 | newY = styles ? ("" + (styles.top + (25 * counter)) + "px") : "100px"; | 366 | newY = styles ? ("" + (styles.top + (25 * counter)) + "px") : "100px"; |
364 | 367 | ||
368 | var addDelegate = this.application.ninja.elementMediator.addDelegate; | ||
369 | this.application.ninja.elementMediator.addDelegate = null; | ||
365 | if(!styles || (styles && !styles.position)){ | 370 | if(!styles || (styles && !styles.position)){ |
366 | this.application.ninja.elementMediator.addElements(element, null, false); | 371 | this.application.ninja.elementMediator.addElements(element, null, false); |
367 | }else if(styles && (styles.position === "absolute")){ | 372 | }else if(styles && (styles.position === "absolute")){ |
373 | if((element.tagName === "IMG") || (element.getAttribute("type") === "image/svg+xml")){ | ||
374 | element.onload = function(){ | ||
375 | element.onload = null; | ||
376 | //refresh selection | ||
377 | self.application.ninja.stage.needsDraw = true; | ||
378 | } | ||
379 | } | ||
380 | |||
368 | this.application.ninja.elementMediator.addElements(element, {"top" : newY, "left" : newX}, false);//displace | 381 | this.application.ninja.elementMediator.addElements(element, {"top" : newY, "left" : newX}, false);//displace |
369 | } | 382 | } |
383 | this.application.ninja.elementMediator.addDelegate = addDelegate; | ||
370 | } | 384 | } |
371 | }, | 385 | }, |
372 | 386 | ||
diff --git a/js/components/gradientpicker.reel/gradientpicker.js b/js/components/gradientpicker.reel/gradientpicker.js index f35a1fff..6e239f7d 100755 --- a/js/components/gradientpicker.reel/gradientpicker.js +++ b/js/components/gradientpicker.reel/gradientpicker.js | |||
@@ -172,6 +172,7 @@ exports.GradientPicker = Montage.create(Component, { | |||
172 | //Storing refereces to buttons and actual stop container | 172 | //Storing refereces to buttons and actual stop container |