Weitere ähnliche Inhalte
Ähnlich wie dojox.gfx: what's next, after, later (20)
Kürzlich hochgeladen (20)
dojox.gfx: what's next, after, later
- 2. GFX: After, next, later
Agenda
What’s new in 1.7 and 1.8
What’s next (1.9, 2.0)
What’s later (2.+)
Conclusion
2 © 2011 IBM Corporation
- 3. GFX: After, next, later
Reminder: What’s new in 1.7
Input Events
– Canvas support (mostly for Android 2.x devices)
– Targeted shape accessible from event: evt.gfxTarget
Matrix new APIs:
– matrix.multiplyRectangle
– matrix.isIdentity
Shape UID
– Shapes identified via a UID: Shape.getUID()
– Internal registry a la dijit: gfx.shape.byId()
– Note: when a shape is not needed anymore: gfx.shape.dispose(shape) !
(improved in 1.8)
3 © 2011 IBM Corporation
- 4. GFX: After, next, later
What’s planned in 1.8
Clipping API
– New method: Shape.setClip(clipGeometry)
– Possible geometries:
• Rectangular: {x,y,width,height}
• Ellipse: {cx, cy, rx, ry}
• Polyline: {points}
• Path: {d}
Destructor API
– Free resources when shape to be destroyed
– Shape.destroy()
– Group.clear(/*Boolean*/ dispose)
SVG specific extension
– Rendering option:
• shape.addRenderingOption(“shape-rendering”, “optimizeSpeed”);
– Defs
• Shared resources (gradients)
– SVG Filters (?)
4 © 2011 IBM Corporation
- 5. GFX: After, next, later
What’s planned in 1.8
Canvas specific extension
– Pixel access API (CanvasPixelArray and ImageData)
– Surface.getImageData()
– Surface.render(context) + aspect.before/after = pre/post-processing
Shared styles across multiple gfx shapes (?)
5 © 2011 IBM Corporation
- 6. GFX: After, next, later
What’s next: 2.0+
1.8 leftover
Improve serialization
– dojoAttachPoint: : contract between the logic and the graphic
{children:[
{
dojoAttachPoint:‘background’; container.background.connect(…)
shape: { type:’rect’}
}, ...
]}
– Custom properties
gfx layout
– Prerequesite:
• Text.getBoundingBox()
• Bbox caching
• Bbox changed notification
WebGL renderer experimentation (which use cases, if any…)
6 © 2011 IBM Corporation
- 7. GFX: After, next, later
Questions
Q&A
Contact: patrick.ruzand@fr.ibm.com
7 © 2011 IBM Corporation