bfoz / sketch Goto Github PK
View Code? Open in Web Editor NEWRuby framework for 2D mechanical sketches
Ruby framework for 2D mechanical sketches
square waves, dovetails, etc
Add similar methods for the other quadrants.
move_x and move_y are turning out to be a bit cumbersome. The new methods should be syntactic sugar that wraps move_x and move_y.
A layer is like a group, but doesn't have a transformation or any sort of location at all.
For creating slots
'origin' specifies the lower-left corner of the repetition
Anything specified by the start_at command is added to the origin value
Or, at the very least, don't blow up when minmax is called on an empty Group.
Something strange is going on.
And that default should be PointZero(2)
Nothing fancy
Accepts grid spacing arguments and a block. Duplicates the block with a transformation for each grid point. If the block has arity==1, then pass it the x-coordinate for each grid point and group the resulting geometry by y-value. If the block has arity==2, then pass it x and y for each grid point and put all of the generated geometry in a single group.
Indicates how to handle off-axis positioning. For example, setting a horizontal layout's align property to :botton will cause all elements to be bottom-aligned.
Because that's what it actually does. Adding an origin argument is probably a good idea, but it should be the lower left corner of the repetition, instead of the center.
For generating a hexagon
Insets the layout by the given amount.
If a single value is given, inset both horizontally and vertically by the given value.
translate is an alias for group that sets up a pure translation Transformation (no rotations allowed)
That is, assuming MiniSpec can handle it, which looks doubtful at the moment.
And do some other tidying. Here's an article to help you remember: http://devblog.orgsync.com/maintaining-a-large-test-suite-a-dry-approach-to-rspec/
To be more like the step method arguments that were added in ruby 2.1
Otherwise the default has to be different depending on the :direction attribute. :center is easier and makes more sense. However, this requires :center alignment to be supported, and it currently isn't. Fix that.
square 10.cm, radius:1.cm
would be a 10 cm square with 1 cm radiused corners
Useful for creating a new sketch using existing sketches as components
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.