pod install
svgchangecolor's Introduction
svgchangecolor's People
svgchangecolor's Issues
SVG放大后有锯齿
Pinch多次放大,图片抖动和偏移
if let t = trans {
node.place = t.move(dx: anchor.x * (1.0 - pinchScale), dy: anchor.y * (1.0 - pinchScale)).scale(sx: pinchScale, sy: pinchScale)
}else {
node.place = Transform.move(dx: anchor.x * (1.0 - pinchScale), dy: anchor.y * (1.0 - pinchScale)).scale(sx: pinchScale, sy: pinchScale)
}
图像放大后再放大,会发现明显的图片抖动和偏移。
比例对了,但move()的位置不对。也不排除误差累积导致位置没有算准。
长按取色问题
希望长按能取出当前node的Fill,并格式化成字符串。
缩放问题
缩放过了,再次用pinch手势缩放,你会发现图像瞬间会回到原始大小。scale会重新从1.0开始。
缩放最大最小倍数,以及弹性和移动范围限制。
tap时获取当前node所对应path的id
backgroundColor问题
背景色黑色时,path之间的缝隙可以透出来黑色,看上去每一条path是有轮廓的。
但希望背景色是白色,同时希望path还是保持黑色线条的轮廓。
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.