Coder Social home page Coder Social logo

svgchangecolor's Introduction

SVGChangeColor

pod install

svgchangecolor's People

Contributors

008v avatar

Watchers

 avatar

svgchangecolor's Issues

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()的位置不对。也不排除误差累积导致位置没有算准。

缩放问题

缩放过了,再次用pinch手势缩放,你会发现图像瞬间会回到原始大小。scale会重新从1.0开始。

backgroundColor问题

背景色黑色时,path之间的缝隙可以透出来黑色,看上去每一条path是有轮廓的。
但希望背景色是白色,同时希望path还是保持黑色线条的轮廓。

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.