-
Notifications
You must be signed in to change notification settings - Fork 34
/
changeLog.txt
305 lines (254 loc) · 13.6 KB
/
changeLog.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
/**
* Copyright (c) 2013 Capgemini Technology Services (hereinafter “Capgemini”)
*
* License/Terms of Use
*
* Permission is hereby granted, free of charge and for the term of intellectual property rights on the Software, to any
* person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify
* and propagate free of charge, anywhere in the world, all or part of the Software subject to the following mandatory conditions:
*
* • The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* Any failure to comply with the above shall automatically terminate the license and be construed as a breach of these
* Terms of Use causing significant harm to Capgemini.
*
* 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 NON INFRINGEMENT. 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.
*
* Except as contained in this notice, the name of Capgemini shall not be used in advertising or otherwise to promote
* the use or other dealings in this Software without prior written authorization from Capgemini.
*
* These Terms of Use are subject to French law.
* */
cgSceneGraph Framework.
=====================================================================
TODO LIST:
=====================================================================
- Evolution. Gradient as colors on basic nodes (square, circle, ellipse, ...)
- Evolution. Image as color on basic nodes (square, circle, ellipse, ...)
- Evolution. Multi layers
- Evolution. Grid system for drawing (http://mainroach.blogspot.in/2013/02/fast-html5-canvas-cached-canvas-tiles.html)
- Evolution. New caching system :
* new Cache manager: (1 big tmp canvas for several objects and only few big canvases in memory)
* context.clip() to redraw only specific region
* use of PNG instead of in memory canvas
* use of double buffering
- Evolution. Matrix integration
- Fix. Handle manipulation under another node
- Evolution. Filter class base on imageData of dblBuffer
function increaseTransparency(imagedata, steps) {
var alpha,
currentAlpha,
step,
length = imagedata.data.length;
for (var i=3; i < length; i+=4) { // For every alpha component
alpha = imagedataOffscreen.data[i];
if (alpha > 0) {
currentAlpha = imagedata.data[i];
step = Math.ceil(alpha/steps);
if (currentAlpha + step <= alpha) { // Not at original alpha yet
imagedata.data[i] += step; // Increase transparency
}
else {
imagedata.data[i] = alpha; // End: original transparency
}
}
}
}
- Evolution. New TCB curve node
- Evolution. Split into core and official nodes
- Evolution. New website for v2 :)
- Example. Box2DWeb integration
- Evolution. Image masking (loop on imageData of the Masking image to check if there is a pixel on dblBuffer)
- Evolution. Image as a mask
- Evolution. New animation engine
- Evolution. Particle system : add attractor and repulsor (already exists, but no coded :))
- Evolution. Particle system : add a getter to the rotation of a particle
- Example. FallDown
- Evolution. CGSGNodeText : Add In-live text edition
- Evolution. CGSGNodeText : width can be edited (so, maxwidth = dimension.width). By default, width = metrics.width
=====================================================================
HISTORY
=====================================================================
v2.2.0
CHANGES:
- Evolution. Array : new first() method
- Evolution. Array : new last() method
- Evolution. Build process : use of Grunt instead of Maven
- Fix. Set of several code optimizations
v2.1.0
CHANGES:
- Evolution. CGSGNodeText : improvement of behaviour
- Fix. CGSGNodeText : fix some behaviours
v2.0.0
CHANGES:
- Evolution. CGSGNode : new events : onBeforeRender and onAfterRender
- Evolution. CGSGNode : new invalidate method
- Evolution. CGSGNode : new caching system with new "setPreComputed" method
- Evolution. Custom CGSGNode : ease of overriding render and renderGhost method
- Evolution. new Clipping item
- Evolution. new EventManager system
- Evolution. CGSGNode : new "getLocalZIndex", "setLocalZIndexToLast", "setLocalZIndex", "moveLocalZIndex"
- Evolution. Rename "CGSGScene" to "CGSGView"
- Evolution. globalAlpha of a custom node is defined directly on the framework. No need to re-define it on the render method
- Evolution. shadow of a custom node is defined directly on the framework. No need to re-define it on the render method.
New properties : shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor.
- Evolution. Delete CGSGScene.selectedNodes and CGSGSceneGraph.selectedNodes. New global CGSG.selectedNodes property.
- Evolution. Extenalization of the sceneGraph instance into the CGSG object.
- Evolution. CGSGNode has now 2 parameters only : x, y
- Evolution. Added CGSG.isBoundingBoxOnTop property
- Evolution. New CGSG.animationManager property to manage animation.
- Evolution. CGSG.animationManager.removeAnimationKey
- Fix. CGSG.animationManager.animate first remove previous keys in the frame range
- Evolution. animationManager : new CGSGAnimationMethod
- Evolution. animationManager : new CGSGInterpolatorLinear and CGSGInterpolatorTCB classes
- Evolution. timeline : possibility to add several interpolation keys to a timeline
- Evolution. new Array.prototype.pop() function
- Evolution. Rename CGSGHashMap to CGSGMap
---------------------------------------------------------------------
v1.4.2
CHANGES:
- Fix. Compute absolute matrix for children nodes while moving.
- Fix. Apply scale on rotation center too.
- Evolution. Add of cgsgMaxFramerate property to limit the speed of the rendering loop
---------------------------------------------------------------------
v1.4.1
CHANGES:
- Optimization. CGSGScene : remove "isDragSelectEnabled" property to use only "allowMultiSelect".
- Fix. CGSGNodeColorPicker : fix when floating point.
- Optimization. Added a Collision Manager to evaluate collision between nodes.
- Evolution. Take care of the MSPointer events on IE10.
---------------------------------------------------------------------
v1.4.0
CHANGES:
- Evolution. Added the ability to do drag multi-selection.
- Fix. CGSGHashmap : Fix on "remove" that removed all values that are indentical (not only bound to the key).
- Fix. Fixed bug on collision ghost (node with children).
- Optimization. cleaned node.isColliding.
- Fix. Fixed isColliding bug.
- Evolution. Added collision detection in Ghost mode (custom shape, images..).
- Fix. node selection in region mod (1px excess).
- Optimization. Give option to prevent text measuring on construct *optimization*
- Evolution. Changed resize handles to include stroke + fill
- Fix. Correct a bug in animationEnd.
- Evolution. Add of cgsgPerformanceKeys object to fine tune the performances
---------------------------------------------------------------------
v1.3.1
CHANGES:
- Optimization. CGSGNode: Add of "needToKeepAbsoluteMatrix" property.
- Optimization. CGSGNode: not eval common properties on evalset.
---------------------------------------------------------------------
v1.3.0
CHANGES:
- Fix. CGSGNodeText : it didn't render text if only one letter
- Fix. CGSGNodeText : allow picknode with REGION mode
- Evolution. New CGSGHashmap class
- Evolution. New CGSGNodeTabMenu node
- Evolution. New cgsgFree method
- Evolution. CGSGNode.removeChild and CGSGNode.removeAll now free the node(s)
- Evolution. Allow dimension to be equal 0
- Evolution. Add "onAnimate" event on timelines
- Evolution. Add CGSGColor "rgb2hsl", "hsl2rgb", "multiplyComponent", "darkenHex" and "darkenRGB" method
- Evolution. Add CGSGNode "onMouseEnter" event
- Evolution. Add of CGSGNodeColorPicker and associated example
- Evolution. Add of CGSGNodeTabMenu and associated example
- Fix. Touch event triggered sometimes 2 touch events.
- Evolution. "onDbClick" method also manage double touch :)
- Evolution. The onDblClick method doesn't generate 2 clicks anymore
---------------------------------------------------------------------
v1.2.3
CHANGES:
- Evolution. CGSGNodeImage : reduce parameters in the initializer
- Evolution. CGSGNodeImage : add "setSlice" method
- Evolution. CGSGNodeButton : add picto
- Optimization. Better touch events handler
- Evolution. "cgsgGetCursorPosition" renamed to "cgsgGetCursorPositions" and now returns all touches
- Evolution. CGSGScene : add of "multitouch" property (NOT EFFECTIVE YET)
- Evolution. Array : add of Array.prototype.copy()
---------------------------------------------------------------------
v1.2.2
CHANGES:
- Evolution. Class creation : Use "CGSGObject.extend" instead of "Object.extend"
- Evolution. CGSGNodeWebview : preview mode
- Evolution. CGSGNodeImage : add "setURL" method
---------------------------------------------------------------------
v1.2.1
CHANGES:
- Optimization. "use strict" mode
- Fix. Better FPS computation
- Evolution. FPS : new cgsgFramerateDelay property to update the FPS average
- Evolution. Array : Add of Array.prototype.sum function
- Evolution. Array : Add of Array.prototype.average function
- Evolution. Array : Add of cgsgIsArray global method
---------------------------------------------------------------------
v1.2.0
CHANGES:
- Evolution. Particle : Change initTTL to initCTL.
- Optimization. CGSGParticle : performance improvement.
- Evolution. Traverser : Condition is now a Function.
- Optimization. Traverser is slightly faster.
- Optimization. pickNode is slightly faster.
- Evolution. CGSGNode.rotationCenter is available.
- Evolution. CGSGNodeButton.
- Optimization. cgsgClearContext is now global.
---------------------------------------------------------------------
v1.1.0
CHANGES:
- Evolution. Add CGSGNode::getAbsoluteWidth() and getAbsoluteHeight().
- Fix. Force fixed point on delay and time for animation timeline.
- Evolution. Add information on onClick and onDblClick events on Node and Scene.
- Fix. Timeline : at the end of an animation, delete all keys before calling event onAnimationEnd.
- Evolution. CGSGNode : Add getAbsoluteRegion method
- Evolution. CGSGNode : add recursive parameter to the computeAbsoluteMatrix method.
- Evolution. CGSGColor : add lerp method
- Evolution. CGSGMath : add lerp method
- Evolution. Add a "exlusionList" parameter to the CGSGScene::DeselectAll method.
- Evolution. Add 'node', 'position' and 'events' on events : onDrag, onDragEnd, onResize, onResizeEnd
- Evolution. Add a "free" method to the CGSGNode to free the memory taken by the node and its children
- Evolution. Add a first version of the Webview Node
- Evolution. Add of the cgsgCanvas global property, that is a handler to the canvas.
- Evolution. Add of the "onMouseUp" event for a node
- Evolution. Add of the "cgsgLoadExternalDoc" global method to load external web content in AJAX.
- Evolution. Add of JSDoc, based on YUIDoc (http://yui.github.com/yuidoc)
- Evolution. CGSGNodeCircle : re-design
- Evolution. Add of YUIDoc Documentation format
---------------------------------------------------------------------
v1.0.0
CHANGES:
- Evolution. Add pivotPoint to rotation of a node.
- Evolution. Add of 2 new nodes : CGSGNodeCircle and CGSGNodeEllipse
- Optimization. Particle system : more accurate.
- Evolution. Particle system : add outflow parameter
- Optimization. Images are pre-rendered, to be displayed faster each frame
---------------------------------------------------------------------
v0.9.7.3
CHANGES:
- Fix. Correct pick node on mouse over
- Evolution. Refactorization of some examples
- Fix. AnimatedSprite : don't try to render if the name of the animation passed in "play" method does not exists.
- Fix. Timeline in animation : allow to use the same animation values list for several nodes (less memory consumed)
---------------------------------------------------------------------
v0.9.7.2
CHANGES:
- Optimizization. Don't traverse the particles on the event handlers (mouse over, ...)
- Optimizization. In the particle system, the emitters and the particles' nodes are children of the particle system.
- Optimizization. CGSGParticleSystem, CGSGParticleEmitter and nodes of CGSGParticle get 'isClickable', 'isDraggable' and 'isResizable' to false by default.
- Evolution. Update the particle example.
- Optimization. OnMouseOver: check first the current _nodeMouseOver node.
- Evolution. Add Events/Events_03_StressTest example
- Evolution. Add of the attribute CGSGNode.isTraversable (true by default). If isTraversable===true, the node will be recursively check by the Traverser class and the pickNode method.
- Optimization. Optimization of the CGSGTraverser class.
- Evolution. Add of the License in header of all files in the framework
---------------------------------------------------------------------
v0.9.7.1
CHANGES:
- Evolution. New ParticlesSystem Node (first version).
- Evolution. New particle example.
- Evolution. Add of a "copy()" method on each node class.
- Evolution. Add of this changeLog.txt file.
- Evolution. New methods on the CGSGVector2D class : rotate(angle), getLength(), getSquaredLength(), normalize()
- Evolution. Detection of the explorer version.
- Evolution. Add of 2 new globals functions : cgsgDetectCurrentExplorer(), cgsgExist(object).
- Evolution. Add of new functions on the cgsgColors utility : rgb2hex(r, g, b), hex2rgb(hex), hex2R(hex), hex2G(hex), hex2B(hex)