Giter Club home page Giter Club logo

Comments (6)

pshihn avatar pshihn commented on May 10, 2024 1

I'll give it a try later today. I think there may be a bug in the library as well where it's not dealing with zero sized paths.

from rough.

pshihn avatar pshihn commented on May 10, 2024

My initial guess is that one of the paths being generated has zero size, causing the hachure fill to fail.
Which is probably something I should deal with in the code.

Can you try setting the fill style to be 'solid' rather than random, and see if it works?

await rc.path(path(feature), {
  fill: randomColor(),
  fillStyle: 'solid'
});

from rough.

died avatar died commented on May 10, 2024

After setting the style to solid and remove angle fix the error message, thank you.

Now I need to figure out why this thing can't show normally as us-map.
https://died.github.io/tw-map.html
I know it's topojson content make it different, but no idea how to do, any tip ?

from rough.

died avatar died commented on May 10, 2024

Thank you for the kindly help.

from rough.

died avatar died commented on May 10, 2024

Hi @pshihn , I figured out that, the map need set the projection right or it can't display as expected.
Sorry I am new on D3.js so it take time to find it out. Thank you for answer my stupid question.

https://died.github.io/tw-map.html
The result with RoughJS was good.

from rough.

pshihn avatar pshihn commented on May 10, 2024

This is great. Sorry I wasn't much help.

from rough.

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.