Skip to content

Commit

Permalink
chore: Remove UI-related config
Browse files Browse the repository at this point in the history
  • Loading branch information
Undistraction committed Jul 23, 2024
1 parent a59d1ba commit b3891c0
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 1,413 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
'plugin:react/recommended',
],

plugins: ['tailwind', 'import', 'react'],
plugins: ['import'],

ignorePatterns: ['**/coverage/*', `/node_modules/*`, `/dist/`],

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: pnpm install

- name: Build
run: pnpm run build-package
run: pnpm run build

- name: Release
env:
Expand Down
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"singleAttributePerLine": true,
"plugins": ["prettier-plugin-tailwindcss"]
"singleAttributePerLine": true
}
20 changes: 3 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This package only models the coons patch and calculates the position of the curv

Note that calulating the curves that make up the grid (and therefore the grid cell bounds) is not a perfect process, and involves transforming a parametised into a cubic Bezier curve. Because there is no guarantee that the interpolated curve can be represented by a cubic Bezier, the Bezier has to fitted to the parametised curve. In some cases this means the edges will deviate from the bounds. In cases of a 1x1 grid, I cheat and just return the bounds of the grid, however with low numbers of columns and rows, and when curves are tighter at the corners, the curves will sometimes deviate from the bounds. This isn't a problem with higher numbers of rows/columns as each curve is made up of a different curve for each cell which gives more accurate results. Whilst it would certainly be possible to compose each grid-cell's bounds of multiple curves for increased accuracy, this would prevent one of the most useful bits of functionality - recursion, meaning you can use the bounds of any grid cell as the bounds for another nested grid.

It has one dependency: matrix.js for handling complex matrix transforms.

## Install package

```bash
Expand Down Expand Up @@ -152,23 +154,7 @@ pnpm install
```

## Run demo in development

```
pnpm run dev
```

## Build package

```
pnpm run build-package
```

## Build demo
## Build

```
Expand Down
16 changes: 1 addition & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"surface",
"grid"
],
"author": "Pedr Browne ",
"author": "Pedr Browne",
"license": "MIT",
"devDependencies": {
"@commitlint/config-conventional": "^19.2.2",
Expand All @@ -53,35 +53,21 @@
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.1.1",
"@types/node": "^20.14.9",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"commitlint": "^19.3.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-tailwind": "^0.2.1",
"globals": "^15.8.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-extended": "^4.0.2",
"lint-staged": "^15.2.7",
"nodemon": "^3.1.4",
"postcss": "^8.4.39",
"prettier": "3.3.2",
"prettier-plugin-ejs": "^1.0.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-draggable": "^4.4.6",
"semantic-release": "^24.0.0",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.3",
"use-debounce": "^10.0.1",
"uuid": "^10.0.0",
"vite": "^5.3.3"
},
"dependencies": {
Expand Down
Loading

0 comments on commit b3891c0

Please sign in to comment.