GithubHelp home page GithubHelp logo

Comments (4)

Doktorchen avatar Doktorchen commented on August 16, 2024

Hmmm, both the SVG 1.1 recommendation and the 2.0 draft define for relative and absolute only two letters for the same command to destinguish between relative and absolute.
And it is mentioned explicitely, which (absolute) points is meant, if relative coordinates are used.
Therefore obviously one has always to interpolate between the given points, not the given numbers, without taking into account, what they mean.

But I agree, that it is better to note this explicitely to avoid confusion between different implementations.

from svgwg.

emilio avatar emilio commented on August 16, 2024

And it is mentioned explicitely, which (absolute) points is meant, if relative coordinates are used.

Therefore obviously one has always to interpolate between the given points, not the given numbers, without taking into account, what they mean.

Sure, but the point is that there are two ways to represent the same point, so you can interpolate the same points and give two different answers which are both correct, right? So it's not so much about confusion but undefinedness in the spec...

from svgwg.

Doktorchen avatar Doktorchen commented on August 16, 2024

It is a simple addition of coordinates as operation, affine, therefore no problem, same result.
This is because ab = a(b+c-c) = a(b+c) -ac = ab + ac -ac = ab, with a scalar and b, c vectors. Effectively a(t), t time represents some animate animation interpolations, acting always on the complete path in a d attribute.

Just to have some pastime, I created a simple example using two paths with M,C and m,c and the same graphical result - interpolates in the same way.
Even the third path with MC in the path d attribute and m,c in the animate values does not result in a different animation, as expected (in firefox and vivaldi).

This would be different, if one tries to interpolate between absolute and relative coordinates, all points just need the same coordinate system (origin) to get it right.

from svgwg.

emilio avatar emilio commented on August 16, 2024

It is a simple addition of coordinates as operation, affine, therefore no problem, same result.

Same result, but since the difference is observable via DOM APIs it should be defined to avoid gratuitous behaviour differences between browsers.

from svgwg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.