Re: [Madbutterfly-users] Changeset [76fe4afce6]: The inkscape:bbox is defined as the global coordina
Posted by Thinker Li on 2010-09-20 08:10
I will fix it and work on supporting absolute and relative space at
the same time. We need both coordination systems to do case study.
From: Yu-Chung Wang <wycc@homescenario.com>
Subject: Re: [Madbutterfly-users] [Madbutterfly] Changeset [76fe4afce6]: The inkscape:bbox is defined as the global coordinate system. However, the center.x and center.y must be the coordian...
Date: Mon, 20 Sep 2010 11:22:44 +0800
> BTW, I will change the code tonight to make the phone.js work.
>
> 2010/9/20 Yu-Chung Wang <wycc@homescenario.com>
>
>> We should separate the center.x center.y with the x and y. The center.x and
>> center.y is what we use to implement the correct size, location and rotate.
>> It should be internal and be hidden from the users. Since I change the
>> default origin from the center of the group to the left top corner of the
>> group, your demo program broken. We can change it back to the center of the
>> object instead.
>>
>>
>>
>> 2010/9/20 Thinker K.F. Li <thinker@codemud.net>
>>
>>> From: Yu-Chung Wang <wycc@homescenario.com>
>>> Subject: Re: [Madbutterfly-users] [Madbutterfly] Changeset [76fe4afce6]:
>>> The inkscape:bbox is defined as the global coordinate system. However, the
>>> center.x and center.y must be the coordian...
>>> Date: Mon, 20 Sep 2010 08:50:29 +0800
>>>
>>> > The testdesktop.js use the position of the text to align and it does
>>> > not use any absolute position. It use absoluite position only when
>>> > we press Enter. If we want to eliminate this, we can define an virtual
>>> > invisible object in the (500,200). Or we can use the size of the screen
>>> > to calculate the center of the screen as well.
>>>
>>> This solution is heavily relying on correct thinking of programmers,
>>> it is error prune. In my past exprience, most people are hard to work
>>> on transformation of spaces. So, we had better find out an easy
>>> way for common people.
>>>
>>>
>> This is easier in my point of view. Programmer can always work on their own
>> coordinate system without knowing that where their work will be used.
>>
>> For example, if we design an animated button component, we can think that
>> the button is drawn at the (0,0) and the size is (100,100). When the button
>> is put on the screen, it may be at (300,400) and the size is (50,50). The
>> component will be scaled and relocated to any position in the screen. If we
>> use the absolute position, programmer need to knwo the matrix and do the
>> transformation in their program.
>>
>>
>>> >
>>> > YC
>>> >
>>> > 2010/9/20 Thinker K.F. Li <thinker@codemud.net>
>>> >
>>> >> Again,
>>> >>
>>> >> for example, testdesktop.js should align lightbar and text with center
>>> >> point. You had better to set center point of text box at correct
>>> >> position. And move lightbar to correct position by aligning center
>>> >> point. Your current work is largely relying on programmers to write
>>> >> correct function to return correct position. It is error prune. I
>>> >> don't think it is a health way.
>>> >>
>>> >> From: Thinker K.F. Li <thinker@eeebox.branda.to>
>>> >> Subject: Re: [Madbutterfly-users] [Madbutterfly] Changeset
>>> [76fe4afce6]:
>>> >> The inkscape:bbox is defined as the global coordinate system. However,
>>> the
>>> >> center.x and center.y must be the coordian...
>>> >> Date: Mon, 20 Sep 2010 00:21:24 +0800 (CST)
>>> >>
>>> >> > Hi Wycc,
>>> >> >
>>> >> > center.x and center.y are hinted by Inkscape. They comes from
>>> >> > inkscape. It should be absoluted position to make user easy to algin
>>> >> > objects. For example, if you want move a rectangle to decorate
>>> >> > another object. The best and most easy way is to algin center point
>>> >> > of two objects. They should be absoluted, or you should do a lot of
>>> >> > work. It just likes bounding box. So, I suggest to revert this
>>> >> > change to make programmer easy to align two objects.
>>> >> >
>>> >> > From: wycc <MadButterfly@alerts.assembla.com>
>>> >> > Subject: [Madbutterfly-users] [Madbutterfly] Changeset [76fe4afce6]:
>>> The
>>> >> inkscape:bbox is defined as the global coordinate system. However, the
>>> >> center.x and center.y must be the coordian...
>>> >> > Date: Sat, 18 Sep 2010 13:23:58 +0000
>>> >> >
>>> >> >> Changeset alert by wycc in space MadButterfly
>>> >> >>
>>> >> >>
>>> >>
>>> .............................................................................
>>> >> >>
>>> >> >> The inkscape:bbox is defined as the global coordinate system.
>>> However,
>>> >> the center.x and center.y must be the coordiante system of the parent
>>> group
>>> >> of the SVG entity. Therefore, we need to do coordinate transformation
>>> from
>>> >> the global coordination system to the local coordination system.
>>> >> >> Commit from user: wycc
>>> >> >>
>>> >> >>
>>> >>
>>> .............................................................................
>>> >> >>
>>> >> >> More details at:
>>> >> >>
>>> >>
>>> http://trac-hg.assembla.com/MadButterfly/changeset/76fe4afce640f68d384c6b4ad2047744c8a5c339
>>> >> >>
>>> >> >>
>>> >> >> ********************
>>> >> >> Please follow this URL to set your alert preferences for this space:
>>> >> >> http://www.assembla.com/spaces/new_items/MadButterfly?settings ow
>>> >> >> You can change or reduce the number of email alerts that you
>>> receive.
>>> >> >> ********************
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> Assembla | Knowledge and Tools for agile teams
>>> >> >>
>>> >>
>>> >>
>>> >>
>>> ------------------------------------------------------------------------------
>>> >> Start uncovering the many advantages of virtual appliances
>>> >> and start using them to simplify application deployment and
>>> >> accelerate your shift to cloud computing.
>>> >> http://p.sf.net/sfu/novell-sfdev2dev
>>> >> _______________________________________________
>>> >> Madbutterfly-users mailing list
>>> >> Madbutterfly-users@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/madbutterfly-users
>>> >>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Start uncovering the many advantages of virtual appliances
>>> and start using them to simplify application deployment and
>>> accelerate your shift to cloud computing.
>>> http://p.sf.net/sfu/novell-sfdev2dev
>>> _______________________________________________
>>> Madbutterfly-users mailing list
>>> Madbutterfly-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/madbutterfly-users
>>>
>>
>>
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Madbutterfly is powered by Assembla.
0 Comments