All Projects → codelastnight → to-path-figma

codelastnight / to-path-figma

Licence: GPL-3.0 license
object and text to path, a figma plugin

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
HTML
75241 projects

Projects that are alternatives of or similar to to-path-figma

figma-responsify
⚡️A Figma plugin to quickly test your designs across multiple device sizes.
Stars: ✭ 51 (+64.52%)
Mutual labels:  figma
Figma-Plugin-Webpack-React-Template
Base for building Figma plugins with React
Stars: ✭ 16 (-48.39%)
Mutual labels:  figma
levenberg-marquardt
Curve fitting method in JavaScript
Stars: ✭ 63 (+103.23%)
Mutual labels:  curve
designfactory-app
A project that generates pdf documents from design templates from Figma + your own data via the GUI or REST API.
Stars: ✭ 30 (-3.23%)
Mutual labels:  figma
libgoldilocks
An implementation of Mike Hamburg's Ed448 (Goldilocks) curve - derived from libdecaf. This is a mirror of https://bugs.otr.im/otrv4/libgoldilocks
Stars: ✭ 17 (-45.16%)
Mutual labels:  curve
figma-linux-font-helper
Figma Linux Font Helper
Stars: ✭ 110 (+254.84%)
Mutual labels:  figma
figma-preview-swiftui
Figma component preview for your SwiftUI views
Stars: ✭ 51 (+64.52%)
Mutual labels:  figma
ae-ease-to-gsap-customease
Converts the keyframes of the selected property in After Effects to a set of SVG path commands that can be used directly in GreenSock's CustomEase plugin
Stars: ✭ 58 (+87.1%)
Mutual labels:  curve
discrete frechet
Compute the Fréchet distance between two polygonal curves in Euclidean space.
Stars: ✭ 68 (+119.35%)
Mutual labels:  curve
BoxFeed
News App 📱 built to demonstrate the use of SwiftUI 3 features, Async/Await, CoreData and MVVM architecture pattern.
Stars: ✭ 112 (+261.29%)
Mutual labels:  figma
figma-hosted-export
Copy hosted image URLs for any frame inside Figma
Stars: ✭ 39 (+25.81%)
Mutual labels:  figma
smooth-corners
CSS superellipse masks using the Houdini API
Stars: ✭ 133 (+329.03%)
Mutual labels:  curve
figma
Primer, GitHub's design system, available on Figma.
Stars: ✭ 28 (-9.68%)
Mutual labels:  figma
figwrapper
Figwrapper is a script that fully integrates the Figma design tool (web version) into a complete app for Linux with local font support.
Stars: ✭ 13 (-58.06%)
Mutual labels:  figma
Tkinter-Designer
An easy and fast way to create a Python GUI 🐍
Stars: ✭ 4,697 (+15051.61%)
Mutual labels:  figma
Figicons
📦 150+ packaged & ready icons, designed in Figma. Ships with support for custom line icons.
Stars: ✭ 20 (-35.48%)
Mutual labels:  figma
MannvilleGroup Strat Hackathon
stratigraphic machine-learning - active work moved to Predictatops
Stars: ✭ 17 (-45.16%)
Mutual labels:  curve
figcup
Converts Figma designs into Reagent/Hiccup components to render in the browser
Stars: ✭ 38 (+22.58%)
Mutual labels:  figma
vscode
Builder.io for VSCode - turn designs into code!
Stars: ✭ 139 (+348.39%)
Mutual labels:  figma
figma-static-localizer
A Figma plugin for static localization
Stars: ✭ 30 (-3.23%)
Mutual labels:  figma

To-Path: A Figma Plugin

version badge

logo and info image

𝙋𝙪𝙩 𝙖𝙣𝙮 𝙤𝙗𝙟𝙚𝙘𝙩𝙨 𝙤𝙧 𝙩𝙚𝙭𝙩 𝙤𝙣 𝙖 𝙥𝙖𝙩𝙝!

  1. select a curve
  2. select an object, group, or text
  3. hit "link" and watch the magic* happen

*Its janky code and its not actually magic

╭┈─────── ೄྀ࿐ ˊˎ-

╰┈➤ 𝙄𝙈𝙋𝙊𝙍𝙏𝘼𝙉𝙏

Version 1.5.0 and higher's revamped live updates WILL NOT work on previous linked paths made by this plugin! You must create a new linked path group!

☆゜・。。・゜゜・。。・゜★

🌙 𝙄𝙨𝙨𝙪𝙚𝙨 𝙤𝙧 𝙁𝙚𝙖𝙩𝙪𝙧𝙚 𝙍𝙚𝙦𝙪𝙚𝙨𝙩𝙨🌙

Open an issue on the github:

https://github.com/codelastnight/to-path-figma

☆゜・。。・゜゜・。。・゜★

❤️ 𝙇𝙞𝙠𝙚 𝙬𝙝𝙖𝙩 𝙄 𝙙𝙤? ❤️

consider buying me a coffee :)

https://ko-fi.com/lastnight

─────────✧❁✧─────────

˚         ⊹           ·  *    ✧    ⋆    · * . · .     · ·       ..   . .       · +       ·  * ✫    * ⊹ * ˚      . .       ·   ⋆        *        .          * .     . ·  .   ·     .           *  ·       . ·   · +  .        · ** ˚      . . +       ·   ⋆        *        .          * .     . ·  .   ·     .           *

How it Works

  1. the plugin generates an array of points (420 between each point but you can also change this in the "about" menu) using castejau's algorithm that follows the curve, also finding the angle of the tangent of each point. the length from the start of the curve to each point is also generated and stored (find out more here: https://javascript.info/bezier-curve)

  2. the nth's object's x position + object width + spacing is calculated

  3. the plugin compares the x position of the object with the array of points. 2 points with closest length is picked

  4. then the plugin finds the point between those two points and finds the exact point to place the object. the angle used is just the tangent of the nearest point.

  5. the object is placed and the plugin moves onto the next object.

development setup

  1. install packages: npm i

  2. compile : npm run prod

mfw someone else already put out something similar to my plugin but i spent too much time on this to stop now.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].