Skip to content

s910324/ShapeAlignTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShapeAlignTool

Screen shot

Installation and setup

installation

setup

This app can be installed through KLayout package manager

After installation the app can be accessed through [Menu] --> [Tool] --> [Align Tool]

The app can be bined to hot key through setup dialog

Functions

  • Shape alignment
  • Shape snap
  • Shape rotate
  • Shape distribution
  • Translate shape by ruler
  • Utilities - Shape shadow
  • Auto switch to dark/light theme based on Klayout UI color

Shape alignment

alignment

  • align shape to top, mid, bottom, left center and right
  • align shape to four corners
  • align shape to four border center.
  • align shape to ruler/annotation1 (KLayout/klayout#1375)
  • translate shape by ruler 1 if allow align to Ruler is enabled, selected ruler object(s) will be dim as major shape, which overrides the piority of selection order. this is due to the klayout currently does not provide selection seq order attribute to rulers. a feature resuest function: KLayout/klayout#1375

Shape snap

snap

  • snap to shape four corners
  • snap to shape four sides

Shape rotate

rotate

  • rotate CW, CCW, Moirror by X and Y axis
  • rotate by selection center
  • rotate by each shape center

Shape distribution

  • distribute shapes horizontally and vertically by center pitch

Translate shape by ruler

tran by ruler

  • (a) Prepare shape
  • (b) Apply two point ruler from target shape to destination, translation direction will be the same as the ruler.
  • (c) Select target shape(s) and ruler for translation, selection order will not affect results.
  • (d) If a valid ruler is selected, the ruler will turn into a direction arrow while cursor hovers over the translate shape by ruler buttom
  • (e) Click the translate shape by ruler button to perform the alignment. Arc, ellipse or cross type rulers are not supported.

Utilities

shadow

  • Shadow, trace the border of selected objects using annotation, shadow can be cleared by clear ruler function.