easyeda-quick-align-extension
easyeda-quick-align-extension copied to clipboard
Objects alignment in EasyEDA without a hassle! 🚀
EasyEDA Quick Align is a productivity extension for EasyEDA and LCEDA: Standard Edition. The extension introduces an optimized workflow for footprints, symbols, shapes and prefixes alignment via help of a specially crafted contextual panel that provides the better user experience comparing to the standard toolbar actions and keyboard shortcuts.
Installation
- Download easyeda-quick-align-v1.0.20.zip
- Un-zip the downloaded archive on your hard drive.
- Go to
Extension Settingsdialog by using main menuAdvanced -> Extensions -> Extensions Settings.... - Click
Load Extension...button and add all the files in from the extracted folder usingSelect Files...button. - Click
Load Extensionand close theExtension Settingsdialog.

Caution: This extension is considered to be in
alpha/betastage. So far it was tested onmacOSandChromebrowser only, thus it can contain potential issues on other platforms.
Usage
Right after the installation, be sure to refresh the page of the editor in order to get the extension a change to properly initialize itself.
Using alignment inline panel
- Select two or more components or other objects in 'PCB' editor.
- Hit a single
Ashortcut and click on the desired button in the shown up panel to align the objects.

The panel always shows up centered at the current cursor position in the active editor's area. All the buttons in the panel are located intuitively taking in account the directions and functionality, thus it is very easy to remember what and where to click in the future.
Hint: In order to dismiss the panel without doing any alignment actions, just click outside of the panel or hit
Esckey.
The extension also supports alignment of objects using the same A shortcut in Schematic based editors:

Performing multiple actions at once
It is possible to perform several alignment actions by opening the panel only once.
For example, in case you need to align a bunch of comoponents by the left edge and distribute them vertically:
- Hit
Ashortcut - Press and hold
shiftmodifer key - Click on
Align items to leftbutton by holding theshift - Release the
shiftkey and click onDistribute Verticallybutton.

Note: You can perform as many alignment actions as you wish as long as the
shiftkey is kept pressed.
Prefixes positioning
The Quick Align extension has a special mode for setting position for prefixes of selected components located on a PCB board:
- Select one or several components and hit
SHIFT + Ashortcut - Click on a desired location to set the postion for prefixes

Note: This mode is not available for
schematic,simulationandsymboleditors. OnlyPCBbased editors are supported.
A note on shortcut conflicts
Unfortunatelly EasyEDA doesn't provide any capabilities to use custom shortcuts for extensions, thus in order to get access to the precious shortcuts, this extension uses a hackish approach by overriding and sometimes blocking the default shortcuts provided by the editor.
Both single key A and the combo SHIFT + A shortcuts are hardcoded and cannot be customized at the moment. Sadly, the single key A shortcut is by default occupied with Zoom In action and Quick Align extension overrides it.
To fix the issue:
- Re-assign
Zoom Inaction to another shortcut using built-inSettings -> Shortcut Key Settings...settings menu command. - In case you still want to use the default behaviour and want to assign
Quick Alignto something else -> open an issue and I'll try to figure out something in order to make those hardcoded shortcuts customizable.
Note: I personally use
Cmd +/-shortcuts instead ofA / ZforZoom InandZoom Outactions. Also, the good oldmouse wheelthing is perfect for the job! :)
Version history
** EasyEDA: Quick Align v1.0.20: 3/9/2021**
- First version
Feedback
If you discover any issue or have any suggestions for improvement of the plugin, please open an issue or find me on twitter @turbobabr.
License
The MIT License (MIT)
Copyright (c) 2021 Andrey Shakhmin
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
