Giter VIP home page Giter VIP logo

comical-js's People

Contributors

andrew-polk avatar dependabot[bot] avatar eomerdws avatar gmartin7 avatar hatton avatar johnthomson avatar jsubloom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

comical-js's Issues

Simple Puckered Exclamation Bubble

I haven't found a good name for this; it has to be distinguished from "shout".

It would be good to have a name that isn't hard to translate (e.g. "puckered" would be hard).

For now, let's call it "Exclamation2".

This one is another simple SVG.

Should have 12 points:

image

See #9 for an arithmetically drawn version we'd like to have eventually.

Add bubble `level` or ordering

When bubbles overlap (but are not part of the same "family"), we need a way to say "Move to Top". Internally, we need some way to model this ordering/level.

Thought bubble with bubble tail

image

Not a requirement, but notice that hand-drawn though bubbles are often drawn with ellipses instead of circles, and sometimes the initial ellipses overlap:

image

Multiple (or zero) tails.

We can get a long way with just 0 or 1. So that's all the code needs to implement; but the model should be an array of them, so that some day we can support crowds saying something.

Standalone comical-js samples

I would like to try out comical-js for a prototype I am trying to create to incorporate speech bubbles in my web content. Seems like comical-js can do what I am looking for based on the description. I am looking for a way to run some standalone samples along with it's source code to get an idea how to use the library. I looked at the github readme.md but couldn't quite follow. I see this step in the Developing section:

"Do this to launch a browser window in which you can see various examples of ComicalJS running, or add your own yarn storybook"

Which I thought will enable me to checkout some samples. But I get the following:

$ yarn storybook
yarn run v1.22.10
warning package.json: No license field
error Command "storybook" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This is the first time I have used yarn, so don't know if I am missing some step or missing something in the package.json. I haven't really started developing anything with comical-js so don't know if I am supposed to configure yarn or my project before being able to run those samples. Any pointers would be greatly appreciated.

(low) Add borderStyle property

  • Add borderStyleName property
  • Add getBorderStyleNameChoices() method that returns the set of supported style names.

All we need is a set of strings like : "solid", "dashed", "dotted".

These can map to hard-coded paperjs strokes. In the future we can add a different property that allows you to have access to the details of the stroke, but this property will still allow for a cheap UI.

Advanced Puckered Exclamation Bubble

See http://clintflickerlettering.blogspot.com/2010/11/lettering-in-adobe-illustrator-five.html for how this is done in Illustrator, which may give some hints to doing it in paperjs.

This one would seem to require a method other than using an SVG template, because the number of points really should vary:

image

Not that there is randomness in there; it's not as though every point is the same distance from the center. But that's just a "nice to have".

  1. In the default "auto" mode, it should add points as the bubble gets larger.
  2. And also take a value that controls how many points it has.

Support child bubbles

  • a bubble may have one child bubble

  • a bubble and its children cannot have a different level

  • bubbles in this kind of "family grouping" share a border when they overlap

  • when a child should have a tail that ends in the center of the parent so that when they are apart, you see that tail.

image

fillColor

The value should be whatever paperjs supports, which I assume is anything that canvas supports which I assume is anything that css supports. E.g. "red" and "#FECBA1".

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.