Re: ctor

38 views
Skip to first unread message

Jürg Lehni

unread,
May 22, 2013, 8:16:55 AM5/22/13
to pap...@googlegroups.com
What's the value of your xPos / yPos? It could be NaN, which would explain why it's not showing up. _x / _y in the Point object is NaN after all. The rest you can probably ignore, as it's just your browser trying (and failing) to make sense out of the object's constructor.

On May 22, 2013, at 04:32 , Ben Gannaway <ben....@gmail.com> wrote:

> I've made a charting library using paper.js. It's pretty simple, just using lines and annotating with rasters. I'm using javascript because it seemed easier to integrate with Require/Backbone etc.
>
> I've just noticed that in most implementations of the library, everything works fine, while in one, none of the rasters are being positioned. Inspecting their position, I can see the following:
>
> •
> • _owner: inject.extend.ctor
> • _setter: "setPosition"
> • _x: NaN
> • _y: NaN
> •
> •
> • In working implementations I see:
> •
> •
> • _owner: ctor
> • _setter: "setPosition"
> • _x: 693.4392
> • _y: 26.84082813103464
> • __proto__: Object
> •
> • I assume that _owner is a reference to the raster object, so what has happened in the first instance to make it inject.extend.ctor and what does it mean?
> •
> • I am setting the position like this:
> •
> • var arrPos = new paper.Point(xPos,yPos);
>
> arrow.position = arrPos;
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Paper.js" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages