Code Monkey home page Code Monkey logo

Comments (5)

harjot-oberai avatar harjot-oberai commented on May 23, 2024

Can you share the Vector you are using, I screwed up one transformation inside ClipPathModel, so if your vector contains clippath then it should work now. Just share the vector file with me, so I can test my changes and push the latest version

from vectormaster.

rubenspischedda avatar rubenspischedda commented on May 23, 2024

This is my vector:

<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="36dp"
    android:height="72dp"
    android:viewportWidth="36.0"
    android:viewportHeight="72.0">

    <path
        android:name="background"
        android:pathData="  M6,2 A4,4 0 0 0 2,6
                            L2,66 A4,4 0 0 0 6,70
                            L30,70 A4,4 0 0 0 34,66
                            L34,6 A4,4 0 0 0 30,2"
        android:strokeLineCap="round"
        android:fillColor="#222222"
        android:strokeWidth="0.6"
        android:strokeLineJoin="round"/>

    <clip-path
        android:name="mask"
        android:pathData="  M6,2 A4,4 0 0 0 2,6
                            L2,66 A4,4 0 0 0 6,70
                            L30,70 A4,4 0 0 0 34,66
                            L34,6 A4,4 0 0 0 30,2"
        android:strokeLineCap="round"
        android:fillColor="#fff"
        android:strokeLineJoin="round"/>

    <path
        android:name="foreground"
        android:pathData="M18,2 L2,2 L2,70 L34,70 L34,2 Z"
        android:strokeLineCap="round"
        android:fillColor="#14a"
        android:strokeLineJoin="round" />
</vector>

from vectormaster.

harjot-oberai avatar harjot-oberai commented on May 23, 2024

I have updated to the library to version 1.1.3. Please test with the updated code.

from vectormaster.

harjot-oberai avatar harjot-oberai commented on May 23, 2024

Well, did it solve your problem ?

from vectormaster.

rubenspischedda avatar rubenspischedda commented on May 23, 2024

Yes, it works now.
Sorry for the delay, but I was using this library at work, and I had to find a different solution. I had the opportunity to try 1.1.3 just now.

Thank you

from vectormaster.

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.