1
0
Fork 0

Merge branch 'develop' into eriese-v3-printing

This commit is contained in:
Enoch Riese 2022-12-08 19:28:54 -06:00
commit 91ece18d2b
13 changed files with 1510 additions and 1520 deletions

View file

@ -84,27 +84,39 @@ export function getDartLocationsAsNumbers(options) {
else return [loc1, loc2] else return [loc1, loc2]
} }
export const getDartPaths = (Path, points) => [ export const getDartPaths = (Path, points) => {
let dart_paths = [
new Path() new Path()
.line(points.primaryBustDart1) .line(points.primaryBustDart1)
.line(points.primaryBustDartTip) .line(points.primaryBustDartTip)
.line(points.primaryBustDart2), .line(points.primaryBustDart2),
]
if ('secondaryBustDart1' in points)
dart_paths.push(
new Path() new Path()
.line(points.secondaryBustDart1) .line(points.secondaryBustDart1)
.line(points.secondaryBustDartTip) .line(points.secondaryBustDartTip)
.line(points.secondaryBustDart2), .line(points.secondaryBustDart2)
] )
return dart_paths
}
export const getSaDartPaths = (Path, points) => [ export const getSaDartPaths = (Path, points) => {
let dart_paths = [
new Path() new Path()
.line(points.primaryBustDart1) .line(points.primaryBustDart1)
.line(points.primaryBustDartEdge) .line(points.primaryBustDartEdge)
.line(points.primaryBustDart2), .line(points.primaryBustDart2),
]
if ('secondaryBustDart1' in points)
dart_paths.push(
new Path() new Path()
.line(points.secondaryBustDart1) .line(points.secondaryBustDart1)
.line(points.secondaryBustDartEdge) .line(points.secondaryBustDartEdge)
.line(points.secondaryBustDart2), .line(points.secondaryBustDart2)
] )
return dart_paths
}
/* /*
* Once the front is constructed with the theorethical bust darts, we * Once the front is constructed with the theorethical bust darts, we

View file

@ -41,7 +41,7 @@ The file consists of key/value pairs where:
The key in the jargon file should always be lowercase. That's because we The key in the jargon file should always be lowercase. That's because we
lowercase the term before matching it. lowercase the term before matching it.
So in your text, you can use `ESM`, `ems`, or even `eSm`, but the key in So in your text, you can use `ESM`, `esm`, or even `eSm`, but the key in
the jargon file should be `esm`. the jargon file should be `esm`.
### Tips for jargon values ### Tips for jargon values

View file

@ -55,7 +55,7 @@ facilitate unit testing and other specific use cases.
| `Store` | The [Store](/reference/api/store) constructor | | `Store` | The [Store](/reference/api/store) constructor |
The following named exports are **uitility methods**: The following named exports are **utility methods**:
| Named export | Description | | Named export | Description |
| ------------ | ------------| | ------------ | ------------|
@ -77,6 +77,7 @@ The following named exports are **uitility methods**:
| `pointOnCurve` | See the [pointOnCurve](/reference/api/utils/pointoncurve) documentation | | `pointOnCurve` | See the [pointOnCurve](/reference/api/utils/pointoncurve) documentation |
| `pointOnLine` | See the [pointOnLine](/reference/api/utils/pointonline) documentation | | `pointOnLine` | See the [pointOnLine](/reference/api/utils/pointonline) documentation |
| `rad2deg` | See the [rad2deg](/reference/api/utils/rad2deg) documentation | | `rad2deg` | See the [rad2deg](/reference/api/utils/rad2deg) documentation |
| `round` | See the [round](/reference/api/utils/round) documentation |
| `splitCurve` | See the [splitCurve](/reference/api/utils/splitcurve) documentation | | `splitCurve` | See the [splitCurve](/reference/api/utils/splitcurve) documentation |
| `stretchToScale` | See the [stretchToScale](/reference/api/utils/stretchtoscale) documentation | | `stretchToScale` | See the [stretchToScale](/reference/api/utils/stretchtoscale) documentation |
| `units` | See the [units](/reference/api/utils/units) documentation | | `units` | See the [units](/reference/api/utils/units) documentation |

View file

@ -2,7 +2,7 @@
title: utils.curveIntersectsY() title: utils.curveIntersectsY()
--- ---
The `utils.curveIntersectsX()` function finds the point(s) where a curve The `utils.curveIntersectsY()` function finds the point(s) where a curve
intersects a given Y-value. intersects a given Y-value.
## Signature ## Signature

View file

@ -75,7 +75,7 @@
"chalk": "^4.1.0", "chalk": "^4.1.0",
"codecov": "^3.8.3", "codecov": "^3.8.3",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
"esbuild": "^0.15.3", "esbuild": "^0.16.0",
"esbuild-plugin-yaml": "^0.0.1", "esbuild-plugin-yaml": "^0.0.1",
"eslint": "^8.23.1", "eslint": "^8.23.1",
"eslint-config-next": "^13.0.6", "eslint-config-next": "^13.0.6",

View file

@ -177,6 +177,7 @@ Path.prototype.bbox = function () {
*/ */
Path.prototype.clean = function () { Path.prototype.clean = function () {
const ops = [] const ops = []
let cur
for (const i in this.ops) { for (const i in this.ops) {
const op = this.ops[i] const op = this.ops[i]
if (['move', 'close', 'noop'].includes(op.type)) ops.push(op) if (['move', 'close', 'noop'].includes(op.type)) ops.push(op)
@ -186,7 +187,7 @@ Path.prototype.clean = function () {
if (!(op.cp1.sitsRoughlyOn(cur) && op.cp2.sitsRoughlyOn(cur) && op.to.sitsRoughlyOn(cur))) if (!(op.cp1.sitsRoughlyOn(cur) && op.cp2.sitsRoughlyOn(cur) && op.to.sitsRoughlyOn(cur)))
ops.push(ops) ops.push(ops)
} }
const cur = op?.to cur = op?.to
} }
if (ops.length < this.ops.length) this.ops = ops if (ops.length < this.ops.length) this.ops = ops

View file

@ -24,7 +24,7 @@
}, },
"dependencies": { "dependencies": {
"@aws-sdk/client-sesv2": "^3.200.0", "@aws-sdk/client-sesv2": "^3.200.0",
"@prisma/client": "4.5.0", "@prisma/client": "4.7.1",
"bcryptjs": "^2.4.3", "bcryptjs": "^2.4.3",
"crypto": "^1.0.1", "crypto": "^1.0.1",
"express": "4.18.2", "express": "4.18.2",
@ -40,7 +40,7 @@
"chai-http": "^4.3.0", "chai-http": "^4.3.0",
"mocha": "^10.1.0", "mocha": "^10.1.0",
"mocha-steps": "^1.3.0", "mocha-steps": "^1.3.0",
"prisma": "4.6.1" "prisma": "4.7.1"
}, },
"prisma": { "prisma": {
"seed": "node prisma/seed.mjs" "seed": "node prisma/seed.mjs"

View file

@ -41,7 +41,7 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-copy-to-clipboard": "^5.0.4", "react-copy-to-clipboard": "^5.0.4",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-hotkeys-hook": "^3.4.4", "react-hotkeys-hook": "^4.0.4",
"react-instantsearch-dom": "^6.18.0", "react-instantsearch-dom": "^6.18.0",
"react-markdown": "^8.0.3", "react-markdown": "^8.0.3",
"react-swipeable": "^7.0.0", "react-swipeable": "^7.0.0",

View file

@ -45,9 +45,9 @@
"lodash.orderby": "^4.6.0", "lodash.orderby": "^4.6.0",
"lodash.set": "^4.3.2", "lodash.set": "^4.3.2",
"next": "latest", "next": "latest",
"next-i18next": "^12.0.0", "next-i18next": "^13.0.0",
"react-copy-to-clipboard": "^5.0.4", "react-copy-to-clipboard": "^5.0.4",
"react-hotkeys-hook": "^3.4.4", "react-hotkeys-hook": "^4.0.4",
"react-instantsearch-dom": "^6.18.0", "react-instantsearch-dom": "^6.18.0",
"react-markdown": "^8.0.0", "react-markdown": "^8.0.0",
"react-swipeable": "^7.0.0", "react-swipeable": "^7.0.0",

3
sites/org/jargon.mjs Normal file
View file

@ -0,0 +1,3 @@
const jargon = {}
export default jargon

View file

@ -41,7 +41,7 @@
"lodash.orderby": "^4.6.0", "lodash.orderby": "^4.6.0",
"lodash.set": "^4.3.2", "lodash.set": "^4.3.2",
"next": "latest", "next": "latest",
"react-hotkeys-hook": "^3.4.4", "react-hotkeys-hook": "^4.0.4",
"react-instantsearch-dom": "^6.18.0", "react-instantsearch-dom": "^6.18.0",
"react-markdown": "^8.0.3", "react-markdown": "^8.0.3",
"react-swipeable": "^7.0.0", "react-swipeable": "^7.0.0",

View file

@ -37,7 +37,7 @@
"prop-types": "^15.7", "prop-types": "^15.7",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"sanity-plugin-markdown": "^2.1.1", "sanity-plugin-markdown": "^3.0.1",
"styled-components": "^5.2.0" "styled-components": "^5.2.0"
}, },
"devDependencies": { "devDependencies": {

2949
yarn.lock

File diff suppressed because it is too large Load diff