I dabbled testing in Opera a bit and these are some notes in case any other
Lively users can also debug in Opera... - Opera does not support console.log but instead supports: opera.postError (http://dev.opera.com/forums/topic/231622) - opera.postError will hopefully help with debugging - first: document.baseURI needs to be changed to document.documentURI - undefined values are occasionally being passed to Base.js:rect() function - so probably need to tweak defaultconfig.js inside localconfig.js to load portions of the examples just a bit@a time Phil On Tue, May 5, 2009@2:02 PM, Dan Ingalls <[hidden email]> wrote: > > Anyone want to earn a silver star by getting Opera to run Lively > Kernel? Partial credit will also be awarded for making enough > progress to be clear about what more is needed. > > - Dan > _______________________________________________ > General mailing list > [hidden email] > http://livelykernel.sunlabs.com/mailman/listinfo/general > An HTML attachment was scrubbed... URL: http://livelykernel.sunlabs.com/pipermail/general/attachments/20090505/0c6ce0cc/attachment.html |
LIvely SVG does load and run in Opera <http://www.opera.com/browser/>. The
morph menu works. :-) These are some starting points if you will continue to test in Opera <http://www.opera.com/browser/>. - document.baseURI needs to be changed to document.documentURI - In localconfig.js or defaultconfig.js you can set the following as a starting point - skipMostExamples: true, - skipAllExamples: true, - the svg canvas loads with a very condensed height. Until there's a proper solution for that you can set a fixed canvas height in index.xhtml while continuing to test: - <svg id="canvas" width="100%" height="800" ...... On Tue, May 5, 2009@4:51 PM, Philip Weaver <[hidden email]> wrote: > I dabbled testing in Opera a bit and these are some notes in case any other > Lively users can also debug in Opera... > > - Opera does not support console.log but instead > supports: opera.postError (http://dev.opera.com/forums/topic/231622) > - opera.postError will hopefully help with debugging > - first: document.baseURI needs to be changed to document.documentURI > - undefined values are occasionally being passed to Base.js:rect() > function > - so probably need to tweak defaultconfig.js inside localconfig.js to > load portions of the examples just a bit@a time > > Phil > > On Tue, May 5, 2009@2:02 PM, Dan Ingalls <[hidden email]> wrote: > >> >> Anyone want to earn a silver star by getting Opera to run Lively >> Kernel? Partial credit will also be awarded for making enough >> progress to be clear about what more is needed. >> >> - Dan >> _______________________________________________ >> General mailing list >> [hidden email] >> http://livelykernel.sunlabs.com/mailman/listinfo/general >> > > An HTML attachment was scrubbed... URL: http://livelykernel.sunlabs.com/pipermail/general/attachments/20090505/b924588c/attachment.html |
Opera has a significant problem with polygons and SVGPointList.
When points is set inside lively.scene.Polygon.setVertices(), numberOfItems always remains@zero. I've tried a couple of things but no luck yet. I've tried calling consolidate on the SVGPointList after points get set. But I don't know what consolidate does actually. ;-) And I've tried instead using points.appendItem(svgPoint). No luck there yet. this.rawNode.points.consolidate(); var svgPoint = new SVGPoint(p.x, p.y); this.rawNode.points.appendItem(svgPoint); (All of this is with document.documentURI fixed, skipMostExamples: true, skipAllExamples: true) Also, this is how to disable caching in Opera. http://blog.rsstab.com/2008/08/how-to-disable-page-caching-in-opera-browser/ Doesn't seem to work - but that's how you do it. On Tue, May 5, 2009@5:25 PM, Philip Weaver <[hidden email]> wrote: > LIvely SVG does load and run in Opera <http://www.opera.com/browser/>. The > morph menu works. :-) These are some starting points if you will continue to > test in Opera <http://www.opera.com/browser/>. > > - document.baseURI needs to be changed to document.documentURI > - In localconfig.js or defaultconfig.js you can set the following as a > starting point > - skipMostExamples: true, > - skipAllExamples: true, > - the svg canvas loads with a very condensed height. Until there's a > proper solution for that you can set a fixed canvas height in index.xhtml > while continuing to test: > - <svg id="canvas" width="100%" height="800" ...... > > > On Tue, May 5, 2009@4:51 PM, Philip Weaver <[hidden email]> wrote: > >> I dabbled testing in Opera a bit and these are some notes in case any >> other Lively users can also debug in Opera... >> >> - Opera does not support console.log but instead >> supports: opera.postError (http://dev.opera.com/forums/topic/231622) >> - opera.postError will hopefully help with debugging >> - first: document.baseURI needs to be changed to document.documentURI >> - undefined values are occasionally being passed to Base.js:rect() >> function >> - so probably need to tweak defaultconfig.js inside localconfig.js to >> load portions of the examples just a bit@a time >> >> Phil >> >> On Tue, May 5, 2009@2:02 PM, Dan Ingalls <[hidden email]> wrote: >> >>> >>> Anyone want to earn a silver star by getting Opera to run Lively >>> Kernel? Partial credit will also be awarded for making enough >>> progress to be clear about what more is needed. >>> >>> - Dan >>> _______________________________________________ >>> General mailing list >>> [hidden email] >>> http://livelykernel.sunlabs.com/mailman/listinfo/general >>> >> >> > An HTML attachment was scrubbed... URL: http://livelykernel.sunlabs.com/pipermail/general/attachments/20090506/fe70adae/attachment.html |
Yea! Progress with the polygons. Clock hands now working, star working,
polygons working. The underlying problem it seems was that SVGPointList had existing points in a namespace of "NS1" (???) In lively.scene.Polygon.setVertices - changed: this.rawNode.setAttributeNS(null, "points", attr); - to: this.rawNode.setAttribute("points", attr); Sample code for lively.scene.Polygon.setVertices setVertices: function(vertlist) { if (this.rawNode.points) { this.rawNode.points.clear(); } if (this.useDOM) { vertlist.forEach(function(p) { this.rawNode.points.appendItem(p) }, this); } else { var attr = vertlist.map(function(p) { return (p.x||0.0) + "," + (p.y||0.0) }).join(' '); this.rawNode.setAttribute("points", attr); if (true) { var result = new XMLSerializer().serializeToString(this.rawNode); console.log('this.rawNode:' + result); } } }, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://livelykernel.sunlabs.com/pipermail/general/attachments/20090506/582cd5ea/attachment.html |
Free forum by Nabble | Edit this page |