[General] MathUuidBak.js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[General] MathUuidBak.js

Lincke, Jens
Hi, Dan

Can we put int the MathUuid.js? It solves the duplicated ids problem and
has a BSD like license, so it is compatible with our MIT license.

UUIDs fixes the problem of wrong clipping rects, that you can see if you
open any widget in a saved page.

Greetings,

Jens







Reply | Threaded
Open this post in threaded view
|

[General] MathUuidBak.js

Philip Weaver
In the meantime, I've being using this tweak locally. But I haven't delved
into the underlying reason why a separate clipCounter was being used for
clip ids.

lively.scene.Clip.addMethods({
initialize : function(shape) {
this.rawNode = NodeFactory.create('clipPath');
//this.setId(String(this.constructor.clipCounter ++));
this.setId(this.newId());
this.setClipShape(shape);
}
});

Phil

On Fri, Apr 17, 2009@8:34 AM, Jens Lincke <[hidden email]
> wrote:

> Hi, Dan
>
> Can we put int the MathUuid.js? It solves the duplicated ids problem and
> has a BSD like license, so it is compatible with our MIT license.
>
> UUIDs fixes the problem of wrong clipping rects, that you can see if you
> open any widget in a saved page.
>
> Greetings,
>
> Jens
>
>
>
>
>
> _______________________________________________
> General mailing list
> [hidden email]
> http://livelykernel.sunlabs.com/mailman/listinfo/general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://livelykernel.sunlabs.com/pipermail/general/attachments/20090417/28a525e7/attachment.html 


Reply | Threaded
Open this post in threaded view
|

[General] MathUuidBak.js

Philip Weaver
Oh, and the cause was that the clip counter always started@zero each time
a world is loaded.

On Fri, Apr 17, 2009@7:12 PM, Philip Weaver <[hidden email]> wrote:

> In the meantime, I've being using this tweak locally. But I haven't delved
> into the underlying reason why a separate clipCounter was being used for
> clip ids.
>
> lively.scene.Clip.addMethods({
>  initialize : function(shape) {
> this.rawNode = NodeFactory.create('clipPath');
>  //this.setId(String(this.constructor.clipCounter ++));
> this.setId(this.newId());
>  this.setClipShape(shape);
> }
> });
>
> Phil
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://livelykernel.sunlabs.com/pipermail/general/attachments/20090417/8e71e932/attachment.html 


Reply | Threaded
Open this post in threaded view
|

[General] MathUuidBak.js

Robert Krahn
In reply to this post by Lincke, Jens
The id problem is fixed (with and without MathUuid). The counter for  
the ids is initialized@startup and creates unique ids now.

Robert


On Apr 17, 2009,@3:34 PM, Jens Lincke wrote:

> Hi, Dan
>
> Can we put int the MathUuid.js? It solves the duplicated ids problem  
> and
> has a BSD like license, so it is compatible with our MIT license.
>
> UUIDs fixes the problem of wrong clipping rects, that you can see if  
> you
> open any widget in a saved page.
>
> Greetings,
>
> Jens
>
>
>
>
>
> _______________________________________________
> General mailing list
> [hidden email]
> http://livelykernel.sunlabs.com/mailman/listinfo/general