Code Monkey home page Code Monkey logo

Comments (15)

AriaMinaei avatar AriaMinaei commented on July 25, 2024

That's a great idea!

We could have Divide act like Griddify when supplied with multiple numbers. For example:

2 10:
image
2 10 10:
image
2 20 10 20:
image

So basically, the first number determines the number of divisions, and if a second number isn't present, it'll just add a guide at each division position. But if there are one or more additional numbers present, it'll turn those into "gutters" and then makes sure their center matches the division's center.

What do you think?

from griddify.

xdividr avatar xdividr commented on July 25, 2024

My thought exactly. I actually at first tried typing 5 20 into Divisions fully expecting this to happen.

I'm now thinking it might be a good idea (and more intuitive) to create the actual guide inside the gutter, not just the gutter lines themselves.

For your examples, shouldn't that be 2 10, 2 10 10, etc?

from griddify.

AriaMinaei avatar AriaMinaei commented on July 25, 2024

create the actual guide inside the gutter, not just the gutter lines themselves.

You lost me :) Can you explain a bit more?

from griddify.

xdividr avatar xdividr commented on July 25, 2024

OK, sorry :)

5 20:

screenshot 2014-06-04 11 53 09

(Division guides centered inside the gutters.)

from griddify.

AriaMinaei avatar AriaMinaei commented on July 25, 2024

Great! I'll come back to this :)

from griddify.

justo avatar justo commented on July 25, 2024

I'd just like to also request this feature. I really like the plugin but without an easy way to create gutters on a divided grid (eg 12 20) I don't have too much use for it.

Thanks!

from griddify.

AriaMinaei avatar AriaMinaei commented on July 25, 2024

@justo Yeah this is pretty important. I'm working on it :)

@xdividr I was just writing the code for this feature, and I wanted to ask your opinion again about where to put these guides. Your idea about putting division guides inside the gutters looks simple enough, but it can't achieve the system you show in the first comment:
image

So, wouldn't writing 50 10 10 instead of 5 20 make it more flexible?

from griddify.

xdividr avatar xdividr commented on July 25, 2024

Agreed, for max flexibility, it probably makes the most sense to do as you're suggesting: 5 10 10

Referring to the grid in my first comment, I now realize there are actually 3 things going on:

  1. 20px wrap on all sides
  2. 5 grid divisions
  3. 20px gutters at each division (or, as you suggest, 10px margins on either side of each division guide)

With the current version, you can easily do both 1. and 2. So to accomplish my example, I'm thinking you could:

  1. Wrap 20
  2. Select the area inside the wrap
  3. Divide 5 10 10

Does this make sense? Happy to clarify.

from griddify.

AriaMinaei avatar AriaMinaei commented on July 25, 2024

I just realized I wrote the wrong example.

Anyway, I just packaged a new temporary release for this feature. Can you give it a try and see if it fits the needs you described?

from griddify.

xdividr avatar xdividr commented on July 25, 2024

This works perfectly. Thank you!

from griddify.

xdividr avatar xdividr commented on July 25, 2024

For reference, here are the exact steps to recreate my example:

  1. Wrap 10 10
  2. Select the area 10px inside outer margins
  3. Divide 5 10 10

screenshot 2014-06-11 10 47 14

from griddify.

AriaMinaei avatar AriaMinaei commented on July 25, 2024

Awesome! Thank you very much for helping me with your time and ideas :)

from griddify.

xdividr avatar xdividr commented on July 25, 2024

Shucks. Thank you for saving me hours of dragging / setting guides!

from griddify.

AriaMinaei avatar AriaMinaei commented on July 25, 2024

@xdividr It's my pleasure.

Pinging @justo: Take a look at the new version :)

from griddify.

justo avatar justo commented on July 25, 2024

@AriaMinaei The new version works perfectly, thank you!

from griddify.

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.