From b30457d9b94484e852f83f23e16dccef9718711c Mon Sep 17 00:00:00 2001
From: mrstev3n <60428738+mrstev3n@users.noreply.github.com>
Date: Sun, 8 May 2022 18:24:57 +0100
Subject: [PATCH 01/10] Update README.md
---
README.md | 80 +++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 63 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index dafa310..308e84c 100644
--- a/README.md
+++ b/README.md
@@ -6,13 +6,22 @@
A simple figma plugin to flip any layers size.
+
+
+
+
+
+
+
## Installation
-Install the plugin and show some love, directly from the Figma Community
+Click bellow to directly install from figma community
-## Usage
+# Usage
+
+## Transpose > Each one
Select One (1) or more layers and run the plugin.
@@ -20,31 +29,68 @@ Select One (1) or more layers and run the plugin.
Lil typo in the GIF 😅 : Read "Width" instead of "Weight" and "Transposition Done" instead of "Transpisition Done"
-#### ProTip : Use a custom keyboard to lauch the plugin
+## Transpose > Grouped
+
+Text Text Text Text Text Text
+- Text Text Text Text Text Text
+
+
+# Object handled
+
+- RECTANGLE
+- ELLIPSE
+- POLYGON
+- TEXT
+- SHAPE_WITH_TEXT
+- GROUP
+- FRAME
+- COMPONENT/ INSTANCE
+
+## Support
-## Contributing
+Click bellow to directly install from figma community
+If you find this plugin useful, please consider to make a donation to support 🙏🏼
+
+[](https://www.buymeacoffee.com/mrstev3n)
+
+## Code
+
+### Quick Setup
+
+- Clone the repository.
+- `npm install` installs all the dependencies.
+- `npm build` builds and bundles the plugin.
+- Import manifest into Figma and test.
+
+### Contribution
Contributions are welcomed, feel free to make a pull request or create an issue
[](https://GitHub.com/mrstev3n/Transpose-plugin/pull/)
[](https://GitHub.com/mrstev3n/Transpose-plugin/issues/)
-## Development
+## Credits and Thanks
+
+V1 - Maker : [@mrstev3n](https://github.com/mrstev3n)
+
+ - Run-once plugin with simple flip action
+
+V2 - Maker : [@mrstev3n](https://github.com/mrstev3n),
+V2 - Tester : [@rickfaf](https://github.com/rickfaf)
+
+- Plugin with parameters : Transpose, each one | grouped
+
+Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for their support, testing and code snippets useful for the proper functioning of the plugin.
+
+## More Links
-Install the packages
-```
-npm i
-```
+- [figma comunity profil - @steven](https://figma.com/@steven)
-Run the plugin in dev mode
-```
-npx webpack --mode=development --watch
-```
+
+
+
+
-Build for production
-```
-npx webpack --mode=production
-```
## License
From 5f164f6dbd984b3dcf3c0142d76e62cd06556a13 Mon Sep 17 00:00:00 2001
From: mrstev3n <60428738+mrstev3n@users.noreply.github.com>
Date: Mon, 9 May 2022 12:06:02 +0100
Subject: [PATCH 02/10] Update README.md
---
README.md | 77 ++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 51 insertions(+), 26 deletions(-)
diff --git a/README.md b/README.md
index 308e84c..f9349fa 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-

+
@@ -8,33 +8,50 @@
+
+

-
+
-## Installation
+
+
+# Installation
+
+Click bellow to direct install from figma community
-Click bellow to directly install from figma community
+

-

+
# Usage
-## Transpose > Each one
+### 1. Transpose > Each one
Select One (1) or more layers and run the plugin.
-
+
+
+
+
+### 2. Transpose > Grouped
-Lil typo in the GIF 😅 : Read "Width" instead of "Weight" and "Transposition Done" instead of "Transpisition Done"
+Text Text Text Text Text Text
+Text Text Text Text Text Text
-## Transpose > Grouped
+
-Text Text Text Text Text Text
-- Text Text Text Text Text Text
+> ### Tips : Launch plugins actions with custom keyboard
+> For **Mac users** it is possible to associate natively a
+> keyboard shortcut to your figma plugin from settings
+> -learn more in this [youtube videos]() or use
+> [this method]() for **Windows users**.
+
+
+
# Object handled
- RECTANGLE
@@ -46,14 +63,17 @@ Text Text Text Text Text Text
- FRAME
- COMPONENT/ INSTANCE
-## Support
+
-Click bellow to directly install from figma community
-If you find this plugin useful, please consider to make a donation to support 🙏🏼
+# Support
+
+Do you find this plugin useful ? please consider to make a donation to support 🙏🏼
[](https://www.buymeacoffee.com/mrstev3n)
-## Code
+
+
+# Code
### Quick Setup
@@ -62,6 +82,8 @@ If you find this plugin useful, please consider to make a donation to support
- `npm build` builds and bundles the plugin.
- Import manifest into Figma and test.
+
+
### Contribution
Contributions are welcomed, feel free to make a pull request or create an issue
@@ -69,28 +91,31 @@ Contributions are welcomed, feel free to make a pull request or create an issue
[](https://GitHub.com/mrstev3n/Transpose-plugin/pull/)
[](https://GitHub.com/mrstev3n/Transpose-plugin/issues/)
-## Credits and Thanks
+
-V1 - Maker : [@mrstev3n](https://github.com/mrstev3n)
+# Credits and Thanks
- - Run-once plugin with simple flip action
-
V2 - Maker : [@mrstev3n](https://github.com/mrstev3n),
V2 - Tester : [@rickfaf](https://github.com/rickfaf)
- Plugin with parameters : Transpose, each one | grouped
-Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for their support, testing and code snippets useful for the proper functioning of the plugin.
+V1 - Maker : [@mrstev3n](https://github.com/mrstev3n)
-## More Links
+ - Run-once plugin with simple flip action
-- [figma comunity profil - @steven](https://figma.com/@steven)
-
-
-
-
+Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for support, testing and code snippets useful for the proper functioning of the plugin.
+
+
+# Useful Links
+
+
+
+
+
+
## License
From 84a22877f22c016abe41edba459b75b829ce1a0a Mon Sep 17 00:00:00 2001
From: mrstev3n <60428738+mrstev3n@users.noreply.github.com>
Date: Mon, 9 May 2022 12:10:13 +0100
Subject: [PATCH 03/10] Update README.md
---
README.md | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/README.md b/README.md
index f9349fa..3762dc2 100644
--- a/README.md
+++ b/README.md
@@ -15,16 +15,12 @@
-
-
# Installation
Click bellow to direct install from figma community
-
-
# Usage
### 1. Transpose > Each one
@@ -49,9 +45,6 @@ Text Text Text Text Text Text
> [this method]() for **Windows users**.
-
-
-
# Object handled
- RECTANGLE
@@ -63,16 +56,12 @@ Text Text Text Text Text Text
- FRAME
- COMPONENT/ INSTANCE
-
-
# Support
Do you find this plugin useful ? please consider to make a donation to support 🙏🏼
[](https://www.buymeacoffee.com/mrstev3n)
-
-
# Code
### Quick Setup
@@ -91,7 +80,6 @@ Contributions are welcomed, feel free to make a pull request or create an issue
[](https://GitHub.com/mrstev3n/Transpose-plugin/pull/)
[](https://GitHub.com/mrstev3n/Transpose-plugin/issues/)
-
# Credits and Thanks
@@ -107,15 +95,12 @@ V1 - Maker : [@mrstev3n](https://github.com/mrstev3n)
Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for support, testing and code snippets useful for the proper functioning of the plugin.
-
-
# Useful Links
-
## License
From 1130f9c5529fdefda5515b4a9470829cb138be55 Mon Sep 17 00:00:00 2001
From: mrstev3n <60428738+mrstev3n@users.noreply.github.com>
Date: Mon, 9 May 2022 12:12:23 +0100
Subject: [PATCH 04/10] Update README.md
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 3762dc2..618ea3d 100644
--- a/README.md
+++ b/README.md
@@ -71,8 +71,6 @@ Do you find this plugin useful ? please consider to make a donation to sup
- `npm build` builds and bundles the plugin.
- Import manifest into Figma and test.
-
-
### Contribution
Contributions are welcomed, feel free to make a pull request or create an issue
@@ -95,7 +93,9 @@ V1 - Maker : [@mrstev3n](https://github.com/mrstev3n)
Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for support, testing and code snippets useful for the proper functioning of the plugin.
-# Useful Links
+
+
+# Other Links
From 5c5eef08a20888031dba57c15ac6558c1cf1aee4 Mon Sep 17 00:00:00 2001
From: mrstev3n <60428738+mrstev3n@users.noreply.github.com>
Date: Mon, 9 May 2022 12:19:52 +0100
Subject: [PATCH 05/10] Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 618ea3d..c1de980 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,7 @@ Text Text Text Text Text Text
> ### Tips : Launch plugins actions with custom keyboard
> For **Mac users** it is possible to associate natively a
> keyboard shortcut to your figma plugin from settings
-> -learn more in this [youtube videos]() or use
+> -learn more in this [youtube videos](https://www.youtube.com/watch?v=r-6q1AJNeTQ) or use
> [this method]() for **Windows users**.
@@ -91,7 +91,7 @@ V1 - Maker : [@mrstev3n](https://github.com/mrstev3n)
- Run-once plugin with simple flip action
-Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for support, testing and code snippets useful for the proper functioning of the plugin.
+Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for support, testing and code snippets useful for the proper functioning of the plugin.
From b47a93bfbd82aba616424643ff6221695e2cac32 Mon Sep 17 00:00:00 2001
From: mrstev3n <60428738+mrstev3n@users.noreply.github.com>
Date: Sun, 15 May 2022 16:02:36 +0100
Subject: [PATCH 06/10] Update code.ts
---
code.ts | 3 ---
1 file changed, 3 deletions(-)
diff --git a/code.ts b/code.ts
index 35877e4..011676c 100644
--- a/code.ts
+++ b/code.ts
@@ -72,8 +72,6 @@ function startPluginWithParameters(parameters: ParameterValues): string {
// Group & Flip selected layers W & H
-
-
break;
default:
return;
@@ -99,7 +97,6 @@ function startPluginWithParameters(parameters: ParameterValues): string {
node.type === "POLYGON" ||
node.type === "TEXT" ||
node.type === "SHAPE_WITH_TEXT" ||
- node.type === "COMPONENT" ||
node.type === "GROUP")
)
}
\ No newline at end of file
From e57de75cc286fc2ff8e96b27604909ace5541cb9 Mon Sep 17 00:00:00 2001
From: mrstev3n <60428738+mrstev3n@users.noreply.github.com>
Date: Sun, 15 May 2022 20:18:48 +0100
Subject: [PATCH 07/10] Add donation links
---
.markdownlint.json | 4 ++++
README.md | 30 ++++++++++++++----------------
2 files changed, 18 insertions(+), 16 deletions(-)
create mode 100644 .markdownlint.json
diff --git a/.markdownlint.json b/.markdownlint.json
new file mode 100644
index 0000000..cb84254
--- /dev/null
+++ b/.markdownlint.json
@@ -0,0 +1,4 @@
+{
+ "MD013": false,
+ "MD033": false
+}
\ No newline at end of file
diff --git a/README.md b/README.md
index c1de980..84886e0 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,4 @@
-
-

-
+
A simple figma plugin to flip any layers size.
@@ -23,28 +21,28 @@ Click bellow to direct install from figma community
# Usage
-### 1. Transpose > Each one
+## 1. Transpose > Each one
Select One (1) or more layers and run the plugin.
-
+
-### 2. Transpose > Grouped
+## 2. Transpose > Grouped
-Text Text Text Text Text Text
+Text Text Text Text Text Text
Text Text Text Text Text Text
-> ### Tips : Launch plugins actions with custom keyboard
+> ## Tips : Launch plugins actions with custom keyboard
+>
> For **Mac users** it is possible to associate natively a
> keyboard shortcut to your figma plugin from settings
> -learn more in this [youtube videos](https://www.youtube.com/watch?v=r-6q1AJNeTQ) or use
> [this method]() for **Windows users**.
-
# Object handled
- RECTANGLE
@@ -60,11 +58,14 @@ Text Text Text Text Text Text
Do you find this plugin useful ? please consider to make a donation to support 🙏🏼
-[](https://www.buymeacoffee.com/mrstev3n)
+
+
+
+
# Code
-### Quick Setup
+## Quick Setup
- Clone the repository.
- `npm install` installs all the dependencies.
@@ -78,7 +79,6 @@ Contributions are welcomed, feel free to make a pull request or create an issue
[](https://GitHub.com/mrstev3n/Transpose-plugin/pull/)
[](https://GitHub.com/mrstev3n/Transpose-plugin/issues/)
-
# Credits and Thanks
V2 - Maker : [@mrstev3n](https://github.com/mrstev3n),
@@ -88,8 +88,7 @@ V2 - Tester : [@rickfaf](https://github.com/rickfaf)
V1 - Maker : [@mrstev3n](https://github.com/mrstev3n)
- - Run-once plugin with simple flip action
-
+- Run-once plugin with simple flip action
Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for support, testing and code snippets useful for the proper functioning of the plugin.
@@ -99,7 +98,7 @@ Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](ht
-
+
## License
@@ -107,4 +106,3 @@ Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](ht
© 2021 Steven Houessou-adin
[](https://github.com/mrstev3n/Transpose-plugin/blob/master/LICENSE)
-
From c701a7833d672fd02ee0aa932ced1a64e4b8ff1e Mon Sep 17 00:00:00 2001
From: mrstev3n <60428738+mrstev3n@users.noreply.github.com>
Date: Tue, 5 Jul 2022 18:51:32 +0100
Subject: [PATCH 08/10] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 84886e0..7d02f8c 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,7 @@ Text Text Text Text Text Text
> For **Mac users** it is possible to associate natively a
> keyboard shortcut to your figma plugin from settings
> -learn more in this [youtube videos](https://www.youtube.com/watch?v=r-6q1AJNeTQ) or use
-> [this method]() for **Windows users**.
+> [this method](https://www.youtube.com/watch?v=hkbTDbXc5Ng) for **Windows users**.
# Object handled
From 40402e396ed48d8d77d07924ab22e6d8edb18c4c Mon Sep 17 00:00:00 2001
From: mrstev3n
Date: Sat, 20 Aug 2022 00:52:45 +0100
Subject: [PATCH 09/10] Update README.md
---
README.md | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
index 7d02f8c..33104b9 100644
--- a/README.md
+++ b/README.md
@@ -13,15 +13,15 @@
-# Installation
+## Installation
Click bellow to direct install from figma community
-# Usage
+## Usage
-## 1. Transpose > Each one
+### 1. Transpose > Each one
Select One (1) or more layers and run the plugin.
@@ -29,21 +29,20 @@ Select One (1) or more layers and run the plugin.
-## 2. Transpose > Grouped
+### 2. Transpose > Grouped
-Text Text Text Text Text Text
-Text Text Text Text Text Text
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultricies ut nisl vitae molestie. Sed sit amet mauris ac orci faucibus semper. Duis ultrices vitae ligula eget consectetur.
-> ## Tips : Launch plugins actions with custom keyboard
+> #### Tips : Launch plugins actions with custom keyboard
>
> For **Mac users** it is possible to associate natively a
> keyboard shortcut to your figma plugin from settings
> -learn more in this [youtube videos](https://www.youtube.com/watch?v=r-6q1AJNeTQ) or use
> [this method](https://www.youtube.com/watch?v=hkbTDbXc5Ng) for **Windows users**.
-# Object handled
+## Object handled
- RECTANGLE
- ELLIPSE
@@ -54,7 +53,7 @@ Text Text Text Text Text Text
- FRAME
- COMPONENT/ INSTANCE
-# Support
+## Support
Do you find this plugin useful ? please consider to make a donation to support 🙏🏼
@@ -63,9 +62,9 @@ Do you find this plugin useful ? please consider to make a donation to sup
-# Code
+## Code
-## Quick Setup
+### Quick Setup
- Clone the repository.
- `npm install` installs all the dependencies.
@@ -79,7 +78,7 @@ Contributions are welcomed, feel free to make a pull request or create an issue
[](https://GitHub.com/mrstev3n/Transpose-plugin/pull/)
[](https://GitHub.com/mrstev3n/Transpose-plugin/issues/)
-# Credits and Thanks
+## Credits and Thanks
V2 - Maker : [@mrstev3n](https://github.com/mrstev3n),
V2 - Tester : [@rickfaf](https://github.com/rickfaf)
@@ -94,7 +93,7 @@ Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](ht
-# Other Links
+## Other Links
From 9093caf089da1aa8e000199623ddd7b34116535c Mon Sep 17 00:00:00 2001
From: Steven H-A
Date: Mon, 2 Sep 2024 14:50:06 +0100
Subject: [PATCH 10/10] Update manifest & Code
- Update manifest for document access and domains infos
- Update readme to reflect code new update (group params)
---
README.md | 34 +++++++++++++++++-----------------
manifest.json | 13 +++++++++----
2 files changed, 26 insertions(+), 21 deletions(-)
diff --git a/README.md b/README.md
index 33104b9..886d14e 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@

- A simple figma plugin to flip any layers size.
+ A simple Figma plugin to flip any layer's size.
@@ -15,7 +15,7 @@
## Installation
-Click bellow to direct install from figma community
+Click below to install directly from the Figma community

@@ -23,7 +23,7 @@ Click bellow to direct install from figma community
### 1. Transpose > Each one
-Select One (1) or more layers and run the plugin.
+Select one or more layers and run the plugin. Each layer will be resized individually.

@@ -31,15 +31,14 @@ Select One (1) or more layers and run the plugin.
### 2. Transpose > Grouped
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultricies ut nisl vitae molestie. Sed sit amet mauris ac orci faucibus semper. Duis ultrices vitae ligula eget consectetur.
+Select multiple layers and choose this option to resize them as a group. (Feature coming soon)
-> #### Tips : Launch plugins actions with custom keyboard
+> #### Tips: Launch plugin actions with custom keyboard shortcuts
>
-> For **Mac users** it is possible to associate natively a
-> keyboard shortcut to your figma plugin from settings
-> -learn more in this [youtube videos](https://www.youtube.com/watch?v=r-6q1AJNeTQ) or use
+> For **Mac users**, it is possible to natively associate a keyboard shortcut to your Figma plugin from settings.
+> - Learn more in this [YouTube video](https://www.youtube.com/watch?v=r-6q1AJNeTQ) or use
> [this method](https://www.youtube.com/watch?v=hkbTDbXc5Ng) for **Windows users**.
## Object handled
@@ -52,10 +51,11 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultricies ut nisl v
- GROUP
- FRAME
- COMPONENT/ INSTANCE
+- LINE (New: special handling to preserve the central position)
## Support
-Do you find this plugin useful ? please consider to make a donation to support 🙏🏼
+Do you find this plugin useful? Please consider making a donation to support 🙏🏼
@@ -68,28 +68,28 @@ Do you find this plugin useful ? please consider to make a donation to sup
- Clone the repository.
- `npm install` installs all the dependencies.
-- `npm build` builds and bundles the plugin.
-- Import manifest into Figma and test.
+- `npm run build` builds and bundles the plugin.
+- Import the manifest into Figma and test.
### Contribution
-Contributions are welcomed, feel free to make a pull request or create an issue
+Contributions are welcome. Feel free to make a pull request or create an issue.
[](https://GitHub.com/mrstev3n/Transpose-plugin/pull/)
[](https://GitHub.com/mrstev3n/Transpose-plugin/issues/)
## Credits and Thanks
-V2 - Maker : [@mrstev3n](https://github.com/mrstev3n),
-V2 - Tester : [@rickfaf](https://github.com/rickfaf)
+V2 - Maker: [@mrstev3n](https://github.com/mrstev3n),
+V2 - Tester: [@rickfaf](https://github.com/rickfaf)
-- Plugin with parameters : Transpose, each one | grouped
+- Plugin with parameters: Transpose, each one | grouped
-V1 - Maker : [@mrstev3n](https://github.com/mrstev3n)
+V1 - Maker: [@mrstev3n](https://github.com/mrstev3n)
- Run-once plugin with simple flip action
-Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for support, testing and code snippets useful for the proper functioning of the plugin.
+Big thanks to [@boussarilatif](https://github.com/boussarilatif) & [@rickfaf](https://github.com/rickfaf) for support, testing, and code snippets useful for the proper functioning of the plugin.
diff --git a/manifest.json b/manifest.json
index 23d5cdb..526287b 100644
--- a/manifest.json
+++ b/manifest.json
@@ -5,14 +5,19 @@
"main": "code.js",
"editorType": [
"figma",
- "figjam" ],
- "parameterOnly": true,
+ "figjam"
+ ],
+ "documentAccess": "dynamic-page",
+ "networkAccess": {
+ "allowedDomains": ["none"]
+ },
"parameters": [
{
"name": "Type",
"key": "type",
- "description": "Chose a type of transpose",
+ "description": "Choose a type of transpose",
"allowFreeform": false
}
- ]
+ ],
+ "parameterOnly": true
}
\ No newline at end of file