Comments (6)
@Falke-Design about the
Move Line 79 to 94:
svg-path-commander/src/convert/pathToRelative.js
That won't be possible
..\svg-path-commander\src\convert\pathToRelative.js
78:9 error Unexpected lexical declaration in case block no-case-declarations
from svg-path-commander.
Thank you, I need to know the FUNCTIONALITY is 100% covered by tests, and 100% valid, does it break your application or not, generally stuff like that.
The code cleanup is coming no problem.
Thanks again.
from svg-path-commander.
@thednp Looks fine for me but I use only a few functions in my program.
I went through the changes and looked into the test. Very nice refactoring. It's mind blowing how you have managed to get the same results as before with removing so much lines and adding so less lines 😄
I personally don't like in the cypress test importing the code from the src
, because it would be more realistic if it runs with the generated source file from dist
. Additionally it is easier to replace it with a source file of a different version by simply changing the url.
Here is how I add the source code for the cypress test html. But it is no problem if you don't change that.
from svg-path-commander.
I wanted to have it create the coverage map of all files, I also prefer a single file import, but anyways. I found during the e2e and unit testing that many many lines/branches never get executed and cannot be tested, so I removed them all redundant branches/lines. But it's not only same results, it's much better and consistent results (I will make some demos to show how getPointAtLength or getTotalLenth is one of the most accurate in all scripts available now).
I'm very happy with the segmentArcFactory
rework :) !!
The only thing left for us to do is to find how to do 3d transformation for Arc segments. Right now we're converting Arc segments to CubicBezier for transformations. We might also feature something like tangent at point/length idk.
Let me know if you're interested.
from svg-path-commander.
The only thing left for us to do is to find how to do 3d transformation for Arc segments. Right now we're converting Arc segments to CubicBezier for transformations. We might also feature something like tangent at point/length idk.
Let me know if you're interested.
Sounds very nice, the problem is that I can't help you. This much over my knowledge and understanding of path transformations. 🙁
from svg-path-commander.
Alright, we can close this now.
Thanks for your feedback.
from svg-path-commander.
Related Issues (20)
- Unsupported implicit `lineTo` when using additional `moveTo` parameters HOT 6
- Transforms on g elements HOT 9
- path2Curve produces wrong result when converting L command HOT 8
- Support custom `document` on `shapeToPath`
- How to apply 4x4 matrix using SVG path commander HOT 2
- Subdividing paths/curves? HOT 2
- Scale transform doesn't take into consideration the origin property HOT 5
- README logo is hard to see in dark mode HOT 3
- About the lineToCubic algorithm. HOT 2
- Unable to import and use default export in vite/sveltekit HOT 6
- shapeToPath can't infer RectAttr type as param HOT 4
- can shapeToPath return a PathArray or SVGPathCommander? HOT 3
- support native DOMMatrix and/or CSSMatrix for transform HOT 2
- default origin documentation HOT 2
- getSVGMatrix not exposed HOT 2
- Apply a matrix transform to a path HOT 8
- Transformation of the path containing the arch HOT 1
- create path from stroked shape/path HOT 2
- toRelative does not convert absolute moveTo commands in additional segments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg-path-commander.