Skip to content

Commit

Permalink
v3
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Aug 19, 2024
2 parents c975532 + 9cbc584 commit f59bb27
Show file tree
Hide file tree
Showing 65 changed files with 3,795 additions and 1,719 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A collection of Framer Plugins.

Plugins in [Framer](https://www.framer.com/) are small apps that can interact with the Framer editor, enabling you to perform various actions such as inserting images, layers, and components or modifying anything on the canvas. This repository contains a selection of Plugins, capturing a wide range of use cases. The code for which can be found in the [/plugins](https://github.com/framer/plugins/tree/main/plugins) folder. Feel free to clone and build off the existing Plugins, or open a pull reqest with a contribution of your own.

Check out [our documentation](https://developers.framer.wiki/docs/beta) to learn more.
Check out [our documentation](https://developers.framer.wiki/plugins/docs/beta) to learn more.

<br>

Expand Down
3,751 changes: 2,102 additions & 1,649 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/color-extract/framer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"id": "CbX9_9",
"name": "Color Extract",
"icon": "/icon.png",
"modes": ["default"]
"modes": ["canvas"]
}
2 changes: 1 addition & 1 deletion plugins/color-extract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"extract-colors": "^4.0.2",
"framer-motion": "^11.0.18",
"framer-plugin": "^0.2.0",
"framer-plugin": "^0.3.1",
"react": "^18",
"react-dom": "^18",
"vite-plugin-framer": "^0.0.10",
Expand Down
2 changes: 1 addition & 1 deletion plugins/concentric/framer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"id": "pEvFy0",
"name": "Concentric",
"icon": "/icon.png",
"modes": ["default"]
"modes": ["canvas"]
}
2 changes: 1 addition & 1 deletion plugins/concentric/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@radix-ui/react-slider": "^1.1.2",
"framer-motion": "^11.0.8",
"framer-plugin": "^0.2.0",
"framer-plugin": "^0.3.1",
"react": "^18",
"react-dom": "^18",
"react-slider": "^2.0.6",
Expand Down
2 changes: 1 addition & 1 deletion plugins/dither/framer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "TQeWOY",
"name": "Dither",
"modes": ["default", "editImage", "image"],
"modes": ["canvas", "editImage", "image"],
"icon": "/dither.png"
}
2 changes: 1 addition & 1 deletion plugins/dither/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"comlink": "^4.4.1",
"framer-plugin": "^0.2.0",
"framer-plugin": "^0.3.1",
"ogl": "^1.0.8",
"react": "^18",
"react-dom": "^18",
Expand Down
2 changes: 1 addition & 1 deletion plugins/dither/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function DitherImage({ image }: { image: ImageAsset }) {
console.log("total duration", performance.now() - start)
}, [render])

const [pixelSize, setPixelSize] = useState(1)
const [pixelSize, setPixelSize] = useState(2)

useEffect(() => {
program.pixelSize = pixelSize
Expand Down
9 changes: 9 additions & 0 deletions plugins/doodles/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default {
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
},
rules: {
"@typescript-eslint/no-explicit-any": "warn",
},
}
33 changes: 33 additions & 0 deletions plugins/doodles/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# IMPORTANT: this .gitignore file is needed because this package is synced with
# an external repository at this moment: https://github.com/framer/plugin

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
6 changes: 6 additions & 0 deletions plugins/doodles/framer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "rypq3O",
"name": "Doodles",
"modes": ["canvas"],
"icon": "/icon.png"
}
13 changes: 13 additions & 0 deletions plugins/doodles/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/framer.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Doodles</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
40 changes: 40 additions & 0 deletions plugins/doodles/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "doodles",
"private": true,
"version": "1.0.0",
"type": "module",
"main": "src/api/index.ts",
"scripts": {
"dev": "vite",
"build": "vite build --base=${PREFIX_BASE_PATH:+/$npm_package_name}/",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@radix-ui/react-slider": "^1.1.2",
"@uiw/react-color": "^2.1.1",
"@uiw/react-color-shade-slider": "^2.1.1",
"extract-colors": "^4.0.2",
"framer-motion": "^11.0.18",
"framer-plugin": "^0.3.1",
"react": "^18",
"react-color": "^2.19.3",
"react-dom": "^18",
"react-sketch-canvas": "^6.2.0",
"svgo": "^3.2.0",
"vite-plugin-framer": "^0.0.10",
"vite-plugin-mkcert": "^1"
},
"devDependencies": {
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"@vitejs/plugin-react-swc": "^3",
"eslint": "^8",
"eslint-plugin-react-hooks": "^4",
"eslint-plugin-react-refresh": "^0",
"typescript": "^5.3.3",
"vite": "^5.2.10"
}
}
1 change: 1 addition & 0 deletions plugins/doodles/public/framer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plugins/doodles/public/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions plugins/doodles/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Doodles

Draw anything, just like a Pencil tool.

**By**: @benjamindenboer
Loading

0 comments on commit f59bb27

Please sign in to comment.