Code Monkey home page Code Monkey logo

debug-grid's Introduction

Debug Grid

Just include it in your project, and you can overlay a debug grid with the g Key.

Protips:

  • press Shift - g to toggle between 6 and 12 columns.
  • press l to display lines as well
  • press Shift - l to toggle the visibility of columns only

Example

Dependency

Add this to your pubspec.yaml:

dependencies:
  debug_grid: any

Use

In your html, just include the grid like this:

<link rel="import" href="packages/debug_grid/debug_grid.html">

and put this at the end of your body tag:

<debug-grid></debug-grid>

That's it, you're good to go!

I'm assuming you have already a project setup with polymer! If not, please refer to the polymer dart documentation on how to do that, because this grid will not work otherwise.

Configuration

Here is a fully configured debug grid:

<debug-grid totalWidth="1128"
            gutterWidth="24"
            lineHeight="24"
            columns="3"
            showColumns="false"
            showLines="true"
            visible="true"
            toggleKey="83"
            linesToggleKey="86"></debug-grid>

This would display a 1128px wide grid with 24px wide gutters, 24px line height and 3 columns. By default it is visible and would not show columns, but only lines (which can be toggled with the appropriate keys).

The visibility toggle key has been remapped to 83 (s) and the lines toggle key has been remapped to 86 (v).

License

MIT License

debug-grid's People

Contributors

enyo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.