🎥 Make videos programmatically with React
fix getPointAtLength function
Jonny Burger70fc39cb39ab
diff --git a/packages/paths/src/helpers/bezier-functions.ts b/packages/paths/src/helpers/bezier-functions.tsindex ad0f554ae2..c724e424f7 100644--- a/packages/paths/src/helpers/bezier-functions.ts+++ b/packages/paths/src/helpers/bezier-functions.ts@@ -1,5 +1,6 @@import {binomialCoefficients, cValues, tValues} from './bezier-values';import type {Point} from './types';+export const cubicPoint = (xs: number[], ys: number[], t: number): Point => {const x =(1 - t) * (1 - t) * (1 - t) * xs[0] +@@ -54,7 +55,15 @@ function bFunc(xs: number[], ys: number[], t: number) {return Math.sqrt(combined);}-export const getCubicArcLength = (xs: number[], ys: number[], t: number) => {+export const getCubicArcLength = ({+ sx,+ sy,+ t,+}: {+ sx: number[];+ sy: number[];+ t: number;+}) => {let correctedT: number;const n = 20;@@ -63,7 +72,7 @@ export const getCubicArcLength = (xs: number[], ys: number[], t: number) => {let sum = 0;for (let i = 0; i < n; i++) {correctedT = z * tValues[n][i] + z;- sum += cValues[n][i] * bFunc(xs, ys, correctedT);+ sum += cValues[n][i] * bFunc(sx, sy, correctedT);}return z * sum;@@ -131,11 +140,15 @@ export const quadraticDerivative = (xs: number[], ys: number[], t: number) => {};};-export const t2length = (- length: number,- totalLength: number,- func: (t: number) => number,-): number => {+export const t2length = ({+ length,+ totalLength,+ func,+}: {+ length: number;+ totalLength: number;+ func: (t: number) => number;+}): number => {let error = 1;let t = length / totalLength;let step = (length - func(t)) / totalLength;diff --git a/packages/paths/src/helpers/bezier.ts b/packages/paths/src/helpers/bezier.tsindex 9da755e20b..9d619e0e3b 100644--- a/packages/paths/src/helpers/bezier.ts+++ b/packages/paths/src/helpers/bezier.ts@@ -12,69 +12,149 @@ import {t2length,} from './bezier-functions';-export const makeBezier = ({- ax,- ay,- bx,- by,- cx,- cy,- dx,- dy,+export const makeQuadratic = ({+ startX,+ startY,+ cpx,+ cpy,+ x,+ y,}: {- ax: number;- ay: number;- bx: number;- by: number;- cx: number;- cy: number;- dx: number | null;- dy: number | null;+ startX: number;+ startY: number;+ cpx: number;+ cpy: number;+ x: number;+ y: number;}): Properties & {getC: () => Point;getD: () => Point;} => {- let d: Point;- let getArcLength: (xs: number[], ys: number[], t: number) => number;- let getPoint: (xs: number[], ys: number[], t: number) => Point;- let getDerivative: (xs: number[], ys: number[], t: number) => Point;-- const a = {x: ax, y: ay};- const b = {x: bx, y: by};- const c = {x: cx, y: cy};-- if (dx !== null && dy !== null) {- getArcLength = getCubicArcLength;- getPoint = cubicPoint;- getDerivative = cubicDerivative;- d = {x: dx, y: dy};- } else {- getArcLength = getQuadraticArcLength;- getPoint = quadraticPoint;- getDerivative = quadraticDerivative;- d = {x: 0, y: 0};- }-- const length = getArcLength([a.x, b.x, c.x, d.x], [a.y, b.y, c.y, d.y], 1);+ const a = {x: startX, y: startY};+ const b = {x: cpx, y: cpy};+ const c = {x, y};++ const length = getQuadraticArcLength(+ [a.x, b.x, c.x, 0],+ [a.y, b.y, c.y, 0],+ 1,+ );const getTotalLength = () => {return length;};const getPointAtLength = (len: number) => {- const xs = [a.x, b.x, c.x, d.x];- const xy = [a.y, b.y, c.y, d.y];- const t = t2length(len, len, (i) => getArcLength(xs, xy, i));+ const xs = [a.x, b.x, c.x, 0];+ const xy = [a.y, b.y, c.y, 0];+ const t = t2length({+ length: len,+ totalLength: length,+ func: (i) => getQuadraticArcLength(xs, xy, i),+ });++ return quadraticPoint(xs, xy, t);+ };++ const getTangentAtLength = (len: number) => {+ const xs = [a.x, b.x, c.x, 0];+ const xy = [a.y, b.y, c.y, 0];+ const t = t2length({+ length: len,+ totalLength: length,+ func: (i) => getQuadraticArcLength(xs, xy, i),+ });++ const derivative = quadraticDerivative(xs, xy, t);+ const mdl = Math.sqrt(+ derivative.x * derivative.x + derivative.y * derivative.y,+ );+ let tangent: Point;+ if (mdl > 0) {+ tangent = {x: derivative.x / mdl, y: derivative.y / mdl};+ } else {+ tangent = {x: 0, y: 0};+ }++ return tangent;+ };++ const getC = () => {+ return c;+ };++ return {+ getPointAtLength,+ getTangentAtLength,+ getTotalLength,+ getC,+ type: 'quadratic-bezier',+ getD: () => ({x: 0, y: 0}),+ };+};++export const makeCubic = ({+ startX,+ startY,+ cp1x,+ cp1y,+ cp2x,+ cp2y,+ x,+ y,+}: {+ startX: number;+ startY: number;+ cp1x: number;+ cp1y: number;+ cp2x: number;+ cp2y: number;+ x: number;+ y: number;+}): Properties & {+ getC: () => Point;+ getD: () => Point;+} => {+ const a = {x: startX, y: startY};+ const b = {x: cp1x, y: cp1y};+ const c = {x: cp2x, y: cp2y};++ const d: Point = {x, y};++ const length = getCubicArcLength({+ sx: [a.x, b.x, c.x, d.x],+ sy: [a.y, b.y, c.y, d.y],+ t: 1,+ });++ const getTotalLength = () => {+ return length;+ };++ const getPointAtLength = (len: number) => {+ const sx = [a.x, b.x, c.x, d.x];+ const sy = [a.y, b.y, c.y, d.y];+ const t = t2length({+ length: len,+ totalLength: length,+ func: (i) => {+ return getCubicArcLength({sx, sy, t: i});+ },+ });- return getPoint(xs, xy, t);+ return cubicPoint(sx, sy, t);};const getTangentAtLength = (len: number) => {const xs = [a.x, b.x, c.x, d.x];const xy = [a.y, b.y, c.y, d.y];- const t = t2length(len, len, (i) => getArcLength(xs, xy, i));+ const t = t2length({+ length: len,+ totalLength: length,+ func: (i) => getCubicArcLength({sx: xs, sy: xy, t: i}),+ });- const derivative = getDerivative(xs, xy, t);+ const derivative = cubicDerivative(xs, xy, t);const mdl = Math.sqrt(derivative.x * derivative.x + derivative.y * derivative.y,);@@ -102,6 +182,6 @@ export const makeBezier = ({getTotalLength,getC,getD,- type: 'bezier',+ type: 'cubic-bezier',};};diff --git a/packages/paths/src/helpers/construct.ts b/packages/paths/src/helpers/construct.tsindex 00bd76603f..ba851229ea 100644--- a/packages/paths/src/helpers/construct.ts+++ b/packages/paths/src/helpers/construct.ts@@ -2,7 +2,7 @@import {parsePath} from '../parse-path';import {makeArc} from './arc';-import {makeBezier} from './bezier';+import {makeCubic, makeQuadratic} from './bezier';import {makeLinearPosition} from './linear';import type {Instruction, Point, PointArray, Properties} from './types';@@ -14,7 +14,10 @@ export const constructFromInstructions = (instructions: Instruction[]) => {let cur: PointArray = [0, 0];let prev_point: PointArray = [0, 0];- let curve: ReturnType<typeof makeBezier> | undefined;+ let curve:+ | ReturnType<typeof makeCubic>+ | ReturnType<typeof makeQuadratic>+ | undefined;let ringStart: PointArray = [0, 0];const segments: Instruction[][] = [];@@ -129,29 +132,29 @@ export const constructFromInstructions = (instructions: Instruction[]) => {cur = [ringStart[0], ringStart[1]];// Cubic Bezier curves} else if (instruction.type === 'C') {- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: instruction.cp1x,- by: instruction.cp1y,- cx: instruction.cp2x,- cy: instruction.cp2y,- dx: instruction.x,- dy: instruction.y,+ curve = makeCubic({+ startX: cur[0],+ startY: cur[1],+ cp1x: instruction.cp1x,+ cp1y: instruction.cp1y,+ cp2x: instruction.cp2x,+ cp2y: instruction.cp2y,+ x: instruction.x,+ y: instruction.y,});length += curve.getTotalLength();cur = [instruction.x, instruction.y];functions.push(curve);} else if (instruction.type === 'c') {- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: cur[0] + instruction.cp1dx,- by: cur[1] + instruction.cp1dy,- cx: cur[0] + instruction.cp2dx,- cy: cur[1] + instruction.cp2dy,- dx: cur[0] + instruction.dx,- dy: cur[1] + instruction.dy,+ curve = makeCubic({+ startX: cur[0],+ startY: cur[1],+ cp1x: cur[0] + instruction.cp1dx,+ cp1y: cur[1] + instruction.cp1dy,+ cp2x: cur[0] + instruction.cp2dx,+ cp2y: cur[1] + instruction.cp2dy,+ x: cur[0] + instruction.dx,+ y: cur[1] + instruction.dy,});if (curve.getTotalLength() > 0) {length += curve.getTotalLength();@@ -172,27 +175,27 @@ export const constructFromInstructions = (instructions: Instruction[]) => {if (i > 0 && prevWasCurve) {if (curve) {const c = curve.getC();- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: 2 * cur[0] - c.x,- by: 2 * cur[1] - c.y,- cx: instruction.cpx,- cy: instruction.cpy,- dx: instruction.x,- dy: instruction.y,+ curve = makeCubic({+ startX: cur[0],+ startY: cur[1],+ cp1x: 2 * cur[0] - c.x,+ cp1y: 2 * cur[1] - c.y,+ cp2x: instruction.cpx,+ cp2y: instruction.cpy,+ x: instruction.x,+ y: instruction.y,});}} else {- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: cur[0],- by: cur[1],- cx: instruction.cpx,- cy: instruction.cpy,- dx: instruction.x,- dy: instruction.y,+ curve = makeCubic({+ startX: cur[0],+ startY: cur[1],+ cp1x: cur[0],+ cp1y: cur[1],+ cp2x: instruction.cpx,+ cp2y: instruction.cpy,+ x: instruction.x,+ y: instruction.y,});}@@ -213,27 +216,27 @@ export const constructFromInstructions = (instructions: Instruction[]) => {if (curve) {const c = curve.getC();const d = curve.getD();- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: cur[0] + d.x - c.x,- by: cur[1] + d.y - c.y,- cx: cur[0] + instruction.cpdx,- cy: cur[1] + instruction.cpdy,- dx: cur[0] + instruction.dx,- dy: cur[1] + instruction.dy,+ curve = makeCubic({+ startX: cur[0],+ startY: cur[1],+ cp1x: cur[0] + d.x - c.x,+ cp1y: cur[1] + d.y - c.y,+ cp2x: cur[0] + instruction.cpdx,+ cp2y: cur[1] + instruction.cpdy,+ x: cur[0] + instruction.dx,+ y: cur[1] + instruction.dy,});}} else {- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: cur[0],- by: cur[1],- cx: cur[0] + instruction.cpdx,- cy: cur[1] + instruction.cpdy,- dx: cur[0] + instruction.dx,- dy: cur[1] + instruction.dy,+ curve = makeCubic({+ startX: cur[0],+ startY: cur[1],+ cp1x: cur[0],+ cp1y: cur[1],+ cp2x: cur[0] + instruction.cpdx,+ cp2y: cur[1] + instruction.cpdy,+ x: cur[0] + instruction.dx,+ y: cur[1] + instruction.dy,});}@@ -255,15 +258,13 @@ export const constructFromInstructions = (instructions: Instruction[]) => {length += linearCurve.getTotalLength();functions.push(linearCurve);} else {- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: instruction.cpx,- by: instruction.cpy,- cx: instruction.x,- cy: instruction.y,- dx: null,- dy: null,+ curve = makeQuadratic({+ startX: cur[0],+ startY: cur[1],+ cpx: instruction.cpx,+ cpy: instruction.cpy,+ x: instruction.x,+ y: instruction.y,});length += curve.getTotalLength();functions.push(curve);@@ -282,15 +283,13 @@ export const constructFromInstructions = (instructions: Instruction[]) => {length += linearCurve.getTotalLength();functions.push(linearCurve);} else {- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: cur[0] + instruction.cpdx,- by: cur[1] + instruction.cpdy,- cx: cur[0] + instruction.dx,- cy: cur[1] + instruction.dy,- dx: null,- dy: null,+ curve = makeQuadratic({+ startX: cur[0],+ startY: cur[1],+ cpx: cur[0] + instruction.cpdx,+ cpy: cur[1] + instruction.cpdy,+ x: cur[0] + instruction.dx,+ y: cur[1] + instruction.dy,});length += curve.getTotalLength();functions.push(curve);@@ -306,15 +305,13 @@ export const constructFromInstructions = (instructions: Instruction[]) => {prev.type === 'T' ||prev.type === 't';if (i > 0 && prevWasQ) {- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: 2 * cur[0] - prev_point[0],- by: 2 * cur[1] - prev_point[1],- cx: instruction.x,- cy: instruction.y,- dx: null,- dy: null,+ curve = makeQuadratic({+ startX: cur[0],+ startY: cur[1],+ cpx: 2 * cur[0] - prev_point[0],+ cpy: 2 * cur[1] - prev_point[1],+ x: instruction.x,+ y: instruction.y,});functions.push(curve);length += curve.getTotalLength();@@ -339,15 +336,13 @@ export const constructFromInstructions = (instructions: Instruction[]) => {prev.type === 'T' ||prev.type === 't';if (i > 0 && prevWasQ) {- curve = makeBezier({- ax: cur[0],- ay: cur[1],- bx: 2 * cur[0] - prev_point[0],- by: 2 * cur[1] - prev_point[1],- cx: cur[0] + instruction.dx,- cy: cur[1] + instruction.dy,- dx: null,- dy: null,+ curve = makeQuadratic({+ startX: cur[0],+ startY: cur[1],+ cpx: 2 * cur[0] - prev_point[0],+ cpy: 2 * cur[1] - prev_point[1],+ x: cur[0] + instruction.dx,+ y: cur[1] + instruction.dy,});length += curve.getTotalLength();functions.push(curve);diff --git a/packages/paths/src/test/get-point-at-length.test.ts b/packages/paths/src/test/get-point-at-length.test.tsindex 0e4c7043f6..b32c153803 100644--- a/packages/paths/src/test/get-point-at-length.test.ts+++ b/packages/paths/src/test/get-point-at-length.test.ts@@ -1,4 +1,5 @@import {expect, test} from 'vitest';+import {getLength} from '../get-length';import {getPointAtLength} from '../get-point-at-length';test('Should be able to get parts of a path', () => {@@ -7,15 +8,37 @@ test('Should be able to get parts of a path', () => {expect(parts).toEqual({x: 50, y: 0});});-test.only('Another more complex point', () => {+test('Another more complex point', () => {const path = `M2 129C48.6667 84.6666 186 2324 1.99997C476.135 1.99994 61689.9999 663 129`;- const point = getPointAtLength(path, 721.1239854719418 * 0.51);- expect(point.x).not.toBe(663);- expect(point.y).not.toBe(129);- console.log(point);+ const length = getLength(path);++ expect(getPointAtLength(path, 0.5 * length)).toEqual({+ x: 331.8581614474634,+ y: 2.0777534617004165,+ });+ expect(getPointAtLength(path, length)).toEqual({+ x: 663.0000000000001,+ y: 129.00000000000006,+ });+});++test('Anotehr getPointAtLength()', () => {+ const path =+ 'M25 205C3.66665 160.667 -22.4 73.2 44 78C110.4 82.8 120.333 220.667 117 289C108 316 81.8 362.6 49 333C8 296 55 248 75 233C91 221 197.667 158 249 128C281 115 337.6 81.2 308 50C271 11 248 -5 201 4C154 13 124 77 160 106C188.8 129.2 308.667 196.333 365 227C410.667 241.667 501.2 253.6 498 184C494.8 114.4 432 84.3333 401 78C369.333 79.3333 291.4 106.6 233 205C174.6 303.4 248.667 340.667 293 347C341.667 352 441.6 353 452 317C462.4 281 546.333 271.333 587 271';++ const length = getLength(path);++ expect(getPointAtLength(path, 0.5 * length)).toEqual({+ x: 199.67232200916263,+ y: 132.4918282805198,+ });+ expect(getPointAtLength(path, length)).toEqual({+ x: 587.0000000000001,+ y: 271,+ });});diff --git a/packages/paths/src/test/warp-path.test.ts b/packages/paths/src/test/warp-path.test.tsindex 17b8d4cc04..ab7d587f4a 100644--- a/packages/paths/src/test/warp-path.test.ts+++ b/packages/paths/src/test/warp-path.test.ts@@ -8,6 +8,6 @@ test('Should be able to warp path', () => {y,})),).toBe(- 'M 0 0 L 0.970365514464549 0.78125 L 1.9038320449619508 1.5625 L 2.7649037231526368 2.34375 L 3.5208375572726687 3.125 L 4.142888512580358 3.90625 L 4.607402566045721 4.6875 L 4.896716170937308 5.46875 L 4.999827928391245 6.25 L 4.912816925072913 7.03125 L 4.6389918292815775 7.8125 L 4.1887650759902435 8.59375 L 3.5792569250428965 9.375 L 2.8336444485370142 10.15625 L 1.9802802027065005 10.9375 L 1.0516140975653265 11.71875 L 0.08295946114673952 12.5 L -0.8888497801925157 13.28125 L -1.826859743528138 14.0625 L -2.6954017925759493 14.84375 L -3.461448868289758 15.625 L -4.095871371210911 16.40625 L -4.574544839562133 17.1875 L -4.879267302672675 17.96875 L -4.998451426581117 18.75 L -4.927565132383498 19.53125 L -4.669303932434802 20.3125 L -4.23348843117139 21.09375 L -3.6366908881738444 21.875 L -2.901605043731207 22.65625 L -2.0561831698319675 23.4375 L -1.132573160960709 24.21875 L -0.16589608273778408 25 L 0.8070893368327121 25.78125 L 1.7493844896367943 26.5625 L 2.625157791372104 27.34375 L 3.4011072083844276 28.125 L 4.047726596163411 28.90625 L 4.540427695886122 29.6875 L 4.860475124124084 30.46875 L 4.99569880192535 31.25 L 4.940956732542519 32.03125 L 4.698330530285226 32.8125 L 4.277046265344189 33.59375 L 3.693123634530507 34.375 L 2.968766798514854 35.15625 L 2.131520049504873 35.9375 L 1.2132204158241793 36.71875 L 0.24878703150539308 37.5 L -0.7251066938394417 38.28125 L -1.671427612987411 39.0625 L -2.5541910584055962 39.84375 L -3.3398291902092057 40.625 L -3.998467442168012 41.40625 L -4.505060527802941 42.1875 L -4.840344808963141 42.96875 L -4.991570812248588 43.75 L -4.952988038710723 44.53125 L -4.726063631524939 45.3125 L -4.31942658660843 46.09375 L -3.748539627622706 46.875 L -3.0351112225962185 47.65625 L -2.206270100741183 48.4375 L -1.293533659173177 49.21875 L -0.33160948675600344 50 L 0.6429244218407533 50.78125 L 1.5930105758749626 51.5625 L 2.4825211315160853 52.34375 L 3.277631684205266 53.125 L 3.9481074707543513 53.90625 L 4.468453072241857 54.6875 L 4.8188818992636255 55.46875 L 4.986068594026995 56.25 L 4.963655738551176 57.03125 L 4.752495600958368 57.8125 L 4.360617727244791 58.59375 L 3.8029236108824334 59.375 L 3.100620050702746 60.15625 L 2.280412744116503 60.9375 L 1.3734907799817961 61.71875 L 0.41434064665299114 62.5 L -0.5605651464245245 63.28125 L -1.5141549672811254 64.0625 L -2.410167742139434 64.84375 L -3.2145318139578256 65.625 L -3.896660546517933 66.40625 L -4.430615407595479 67.1875 L -4.7960923039756995 67.96875 L -4.97919366207537 68.75 L -4.972956895141175 69.53125 L -4.777619161604328 70.3125 L -4.400608346927072 71.09375 L -3.8562606118641445 71.875 L -3.165275247609673 72.65625 L -2.3539275674317985 73.4375 L -1.45306976526817 74.21875 L -0.49695773449424085 75 L 0.47805154190941496 75.78125 L 1.4348824969306184 76.5625 L 2.337150809875451 77.34375 L 3.150546951481852 78.125 L 3.8441408333030616 78.90625 L 4.391557950945079 79.6875 L 4.771982297299119 80.46875 L 4.970947909130105 81.25 L 4.980888947780822 82.03125 L 4.801427396699442 82.8125 L 4.439387435844302 83.59375 L 3.9085359463668135 84.375 L 3.229059013105301 85.15625 L 2.426794331333073 85.9375 L 1.5322487061548606 86.71875 L 0.5794380049827966 87.5 L -0.3954063251024031 88.28125 L -1.3552149893143026 89.0625 L -2.2634904370038287 89.84375 L -3.0856947124393805 90.625 L -3.7905627903034036 91.40625 L -4.351291455192668 92.1875 L -4.746558516955883 92.96875 L -4.9613336053280985 93.75 L -4.987449712697998 94.53125 L -4.823913751602394 95.3125 L -4.476944317731847 96.09375 L -3.9597352224766382 96.875 L -3.2919537868915727 97.65625 L -2.4989929748834614 98.4375 L -1.6110058039005881 99.21875 L -0.6617587504888651 100',+ 'M 0 0 L 0.970365514464549 0.78125 L 1.9038320449619508 1.5625 L 2.7649037231526368 2.34375 L 3.5208375572726687 3.125 L 4.142888512580358 3.90625 L 4.607402566045721 4.6875 L 4.896716170937308 5.46875 L 4.999827928391245 6.25 L 4.912816925072913 7.03125 L 4.6389918292815775 7.8125 L 4.1887650759902435 8.59375 L 3.5792569250428965 9.375 L 2.8336444485370142 10.15625 L 1.9802802027065005 10.9375 L 1.0516140975653265 11.71875 L 0.08295946114673952 12.5 L -0.8888497801925157 13.28125 L -1.826859743528138 14.0625 L -2.6954017925759493 14.84375 L -3.461448868289758 15.625 L -4.095871371210911 16.40625 L -4.574544839562133 17.1875 L -4.879267302672675 17.96875 L -4.998451426581117 18.75 L -4.927565132383498 19.53125 L -4.669303932434802 20.3125 L -4.23348843117139 21.09375 L -3.6366908881738444 21.875 L -2.901605043731207 22.65625 L -2.0561831698319675 23.4375 L -1.132573160960709 24.21875 L -0.16589608273778408 25 L 0.8070893368327121 25.78125 L 1.7493844896367943 26.5625 L 2.625157791372104 27.34375 L 3.4011072083844276 28.125 L 4.047726596163411 28.90625 L 4.540427695886122 29.6875 L 4.860475124124084 30.46875 L 4.99569880192535 31.25 L 4.940956732542519 32.03125 L 4.698330530285226 32.8125 L 4.277046265344189 33.59375 L 3.693123634530507 34.375 L 2.968766798514854 35.15625 L 2.131520049504873 35.9375 L 1.2132204158241793 36.71875 L 0.24878703150539308 37.5 L -0.7251066938394417 38.28125 L -1.671427612987411 39.0625 L -2.5541910584055962 39.84375 L -3.3398291902092057 40.625 L -3.998467442168012 41.40625 L -4.505060527802941 42.1875 L -4.840344808963141 42.96875 L -4.991570812248588 43.75 L -4.952988038710723 44.53125 L -4.726063631524939 45.3125 L -4.31942658660843 46.09375 L -3.748539627622706 46.875 L -3.0351112225962185 47.65625 L -2.206270100741183 48.4375 L -1.293533659173177 49.21875 L -0.33160948675600344 50 L 0.6429244218407533 50.78125 L 1.5930105758749626 51.5625 L 2.4825211315160853 52.34375 L 3.2776316842052666 53.125 L 3.9481074707543513 53.90625 L 4.468453072241857 54.6875 L 4.8188818992636255 55.46875 L 4.986068594026995 56.25 L 4.963655738551176 57.03125 L 4.752495600958368 57.8125 L 4.360617727244791 58.59375 L 3.8029236108824334 59.375 L 3.100620050702746 60.15625 L 2.280412744116503 60.9375 L 1.3734907799817961 61.71875 L 0.41434064665299114 62.5 L -0.5605651464245245 63.28125 L -1.5141549672811254 64.0625 L -2.410167742139434 64.84375 L -3.2145318139578256 65.625 L -3.896660546517933 66.40625 L -4.430615407595479 67.1875 L -4.7960923039756995 67.96875 L -4.97919366207537 68.75 L -4.972956895141175 69.53125 L -4.777619161604328 70.3125 L -4.400608346927072 71.09375 L -3.8562606118641445 71.875 L -3.1652752476096726 72.65625 L -2.3539275674317985 73.4375 L -1.45306976526817 74.21875 L -0.49695773449424085 75 L 0.47805154190941496 75.78125 L 1.4348824969306184 76.5625 L 2.337150809875451 77.34375 L 3.150546951481852 78.125 L 3.8441408333030616 78.90625 L 4.391557950945079 79.6875 L 4.771982297299119 80.46875 L 4.970947909130105 81.25 L 4.980888947780822 82.03125 L 4.801427396699442 82.8125 L 4.439387435844302 83.59375 L 3.9085359463668135 84.375 L 3.229059013105301 85.15625 L 2.426794331333073 85.9375 L 1.5322487061548606 86.71875 L 0.5794380049827966 87.5 L -0.3954063251024031 88.28125 L -1.3552149893143026 89.0625 L -2.2634904370038287 89.84375 L -3.0856947124393805 90.625 L -3.7905627903034036 91.40625 L -4.351291455192668 92.1875 L -4.746558516955883 92.96875 L -4.9613336053280985 93.75 L -4.987449712697998 94.53125 L -4.823913751602394 95.3125 L -4.476944317731847 96.09375 L -3.9597352224766382 96.875 L -3.2919537868915727 97.65625 L -2.4989929748834614 98.4375 L -1.6110058039005881 99.21875 L -0.6617587504888651 100',);});