Skip to content

Commit

Permalink
SVG updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber committed Jan 14, 2025
1 parent a79e867 commit 62eaa52
Show file tree
Hide file tree
Showing 73 changed files with 2,493 additions and 2,725 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile.math-api
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# syntax=docker/dockerfile:1
FROM node:20-alpine AS deps
FROM node:22-alpine AS deps

WORKDIR /usr/src/app
ADD https://github.com/bryanwweber/math-api.git .
RUN yarn install --frozen-lockfile

FROM node:20-alpine AS builder
FROM node:22-alpine AS builder
WORKDIR /usr/src/app
COPY --from=deps /usr/src/app/server.ts .
COPY --from=deps /usr/src/app/index.ts .
Expand All @@ -15,7 +15,7 @@ COPY --from=deps /usr/src/app/package.json .
COPY --from=deps /usr/src/app/node_modules ./node_modules
RUN npm run build

FROM node:20-alpine as runner
FROM node:22-alpine AS runner

WORKDIR /usr/src/app
ENV NODE_ENV=production
Expand Down
58 changes: 29 additions & 29 deletions drawing-scripts/apse-line.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"250\" height=\"300\" viewBox=\"0 0 250 300\">\n",
"<defs>\n",
"<g>\n",
"<g id=\"glyph-180971-0-0\">\n",
"<path d=\"M 6.84375 -12.640625 L 4.15625 -5.375 L 9.515625 -5.375 Z M 5.71875 -14.578125 L 7.953125 -14.578125 L 13.515625 0 L 11.46875 0 L 10.140625 -3.734375 L 3.5625 -3.734375 L 2.234375 0 L 0.15625 0 Z M 5.71875 -14.578125 \"/>\n",
"<g id=\"glyph-694724-0-0\">\n",
"<path d=\"M 10.796875 0 L 9.28125 -4.125 L 3.765625 -4.125 L 2.234375 0 L 0 0 L 5.421875 -14.34375 L 7.65625 -14.34375 L 13.0625 0 Z M 7.234375 -10.015625 C 7.203125 -10.160156 7.132812 -10.378906 7.03125 -10.671875 C 6.925781 -10.972656 6.828125 -11.28125 6.734375 -11.59375 C 6.640625 -11.914062 6.566406 -12.175781 6.515625 -12.375 C 6.410156 -11.96875 6.289062 -11.53125 6.15625 -11.0625 C 6.019531 -10.59375 5.914062 -10.242188 5.84375 -10.015625 L 4.40625 -6 L 8.6875 -6 Z M 7.234375 -10.015625 \"/>\n",
"</g>\n",
"<g id=\"glyph-180971-0-1\">\n",
"<path d=\"M 3.625 -1.640625 L 3.625 4.15625 L 1.8125 4.15625 L 1.8125 -10.9375 L 3.625 -10.9375 L 3.625 -9.28125 C 4 -9.925781 4.472656 -10.40625 5.046875 -10.71875 C 5.628906 -11.039062 6.320312 -11.203125 7.125 -11.203125 C 8.445312 -11.203125 9.523438 -10.671875 10.359375 -9.609375 C 11.191406 -8.554688 11.609375 -7.171875 11.609375 -5.453125 C 11.609375 -3.734375 11.191406 -2.347656 10.359375 -1.296875 C 9.523438 -0.242188 8.445312 0.28125 7.125 0.28125 C 6.320312 0.28125 5.628906 0.125 5.046875 -0.1875 C 4.472656 -0.507812 4 -0.992188 3.625 -1.640625 Z M 9.734375 -5.453125 C 9.734375 -6.773438 9.460938 -7.8125 8.921875 -8.5625 C 8.378906 -9.320312 7.632812 -9.703125 6.6875 -9.703125 C 5.726562 -9.703125 4.976562 -9.320312 4.4375 -8.5625 C 3.894531 -7.8125 3.625 -6.773438 3.625 -5.453125 C 3.625 -4.140625 3.894531 -3.101562 4.4375 -2.34375 C 4.976562 -1.59375 5.726562 -1.21875 6.6875 -1.21875 C 7.632812 -1.21875 8.378906 -1.59375 8.921875 -2.34375 C 9.460938 -3.101562 9.734375 -4.140625 9.734375 -5.453125 Z M 9.734375 -5.453125 \"/>\n",
"<g id=\"glyph-694724-0-1\">\n",
"<path d=\"M 7.046875 -10.984375 C 8.335938 -10.984375 9.378906 -10.515625 10.171875 -9.578125 C 10.960938 -8.648438 11.359375 -7.257812 11.359375 -5.40625 C 11.359375 -3.570312 10.957031 -2.175781 10.15625 -1.21875 C 9.351562 -0.269531 8.304688 0.203125 7.015625 0.203125 C 6.191406 0.203125 5.519531 0.0507812 5 -0.25 C 4.488281 -0.550781 4.082031 -0.90625 3.78125 -1.3125 L 3.640625 -1.3125 C 3.679688 -1.070312 3.710938 -0.789062 3.734375 -0.46875 C 3.765625 -0.144531 3.78125 0.144531 3.78125 0.40625 L 3.78125 4.796875 L 1.65625 4.796875 L 1.65625 -10.78125 L 3.375 -10.78125 L 3.6875 -9.34375 L 3.78125 -9.34375 C 4.082031 -9.789062 4.488281 -10.175781 5 -10.5 C 5.519531 -10.820312 6.203125 -10.984375 7.046875 -10.984375 Z M 6.546875 -9.234375 C 5.546875 -9.234375 4.835938 -8.941406 4.421875 -8.359375 C 4.003906 -7.785156 3.789062 -6.910156 3.78125 -5.734375 L 3.78125 -5.421875 C 3.78125 -4.179688 3.976562 -3.222656 4.375 -2.546875 C 4.78125 -1.878906 5.515625 -1.546875 6.578125 -1.546875 C 7.460938 -1.546875 8.117188 -1.90625 8.546875 -2.625 C 8.972656 -3.34375 9.1875 -4.28125 9.1875 -5.4375 C 9.1875 -6.613281 8.972656 -7.539062 8.546875 -8.21875 C 8.117188 -8.894531 7.453125 -9.234375 6.546875 -9.234375 Z M 6.546875 -9.234375 \"/>\n",
"</g>\n",
"<g id=\"glyph-180971-0-2\">\n",
"<path d=\"M 8.859375 -10.609375 L 8.859375 -8.921875 C 8.347656 -9.179688 7.816406 -9.375 7.265625 -9.5 C 6.722656 -9.632812 6.160156 -9.703125 5.578125 -9.703125 C 4.679688 -9.703125 4.007812 -9.5625 3.5625 -9.28125 C 3.125 -9.007812 2.90625 -8.601562 2.90625 -8.0625 C 2.90625 -7.644531 3.0625 -7.316406 3.375 -7.078125 C 3.695312 -6.835938 4.335938 -6.609375 5.296875 -6.390625 L 5.921875 -6.265625 C 7.191406 -5.984375 8.09375 -5.59375 8.625 -5.09375 C 9.164062 -4.601562 9.4375 -3.910156 9.4375 -3.015625 C 9.4375 -2.003906 9.035156 -1.203125 8.234375 -0.609375 C 7.429688 -0.015625 6.328125 0.28125 4.921875 0.28125 C 4.335938 0.28125 3.726562 0.222656 3.09375 0.109375 C 2.457031 -0.00390625 1.785156 -0.175781 1.078125 -0.40625 L 1.078125 -2.25 C 1.742188 -1.90625 2.398438 -1.644531 3.046875 -1.46875 C 3.691406 -1.300781 4.332031 -1.21875 4.96875 -1.21875 C 5.8125 -1.21875 6.457031 -1.363281 6.90625 -1.65625 C 7.363281 -1.945312 7.59375 -2.351562 7.59375 -2.875 C 7.59375 -3.363281 7.425781 -3.738281 7.09375 -4 C 6.769531 -4.257812 6.050781 -4.507812 4.9375 -4.75 L 4.3125 -4.90625 C 3.195312 -5.132812 2.390625 -5.488281 1.890625 -5.96875 C 1.398438 -6.457031 1.15625 -7.128906 1.15625 -7.984375 C 1.15625 -9.003906 1.519531 -9.796875 2.25 -10.359375 C 2.976562 -10.921875 4.015625 -11.203125 5.359375 -11.203125 C 6.023438 -11.203125 6.648438 -11.148438 7.234375 -11.046875 C 7.816406 -10.953125 8.359375 -10.804688 8.859375 -10.609375 Z M 8.859375 -10.609375 \"/>\n",
"<g id=\"glyph-694724-0-2\">\n",
"<path d=\"M 8.8125 -3.046875 C 8.8125 -1.984375 8.425781 -1.175781 7.65625 -0.625 C 6.882812 -0.0703125 5.8125 0.203125 4.4375 0.203125 C 3.675781 0.203125 3.023438 0.144531 2.484375 0.03125 C 1.953125 -0.0820312 1.457031 -0.242188 1 -0.453125 L 1 -2.3125 C 1.46875 -2.09375 2.015625 -1.890625 2.640625 -1.703125 C 3.273438 -1.523438 3.894531 -1.4375 4.5 -1.4375 C 5.300781 -1.4375 5.878906 -1.5625 6.234375 -1.8125 C 6.585938 -2.070312 6.765625 -2.414062 6.765625 -2.84375 C 6.765625 -3.082031 6.695312 -3.296875 6.5625 -3.484375 C 6.425781 -3.679688 6.175781 -3.882812 5.8125 -4.09375 C 5.445312 -4.300781 4.910156 -4.535156 4.203125 -4.796875 C 3.503906 -5.078125 2.914062 -5.351562 2.4375 -5.625 C 1.96875 -5.90625 1.609375 -6.234375 1.359375 -6.609375 C 1.109375 -6.992188 0.984375 -7.484375 0.984375 -8.078125 C 0.984375 -9.015625 1.359375 -9.734375 2.109375 -10.234375 C 2.859375 -10.734375 3.851562 -10.984375 5.09375 -10.984375 C 5.75 -10.984375 6.363281 -10.914062 6.9375 -10.78125 C 7.519531 -10.644531 8.085938 -10.457031 8.640625 -10.21875 L 7.9375 -8.59375 C 7.46875 -8.800781 6.988281 -8.972656 6.5 -9.109375 C 6.007812 -9.242188 5.507812 -9.3125 5 -9.3125 C 4.363281 -9.3125 3.878906 -9.210938 3.546875 -9.015625 C 3.210938 -8.816406 3.046875 -8.539062 3.046875 -8.1875 C 3.046875 -7.925781 3.125 -7.703125 3.28125 -7.515625 C 3.4375 -7.328125 3.703125 -7.140625 4.078125 -6.953125 C 4.460938 -6.773438 4.988281 -6.550781 5.65625 -6.28125 C 6.320312 -6.03125 6.890625 -5.769531 7.359375 -5.5 C 7.835938 -5.226562 8.195312 -4.898438 8.4375 -4.515625 C 8.6875 -4.128906 8.8125 -3.640625 8.8125 -3.046875 Z M 8.8125 -3.046875 \"/>\n",
"</g>\n",
"<g id=\"glyph-180971-0-3\">\n",
"<path d=\"M 11.234375 -5.921875 L 11.234375 -5.046875 L 2.984375 -5.046875 C 3.054688 -3.804688 3.425781 -2.859375 4.09375 -2.203125 C 4.757812 -1.554688 5.691406 -1.234375 6.890625 -1.234375 C 7.578125 -1.234375 8.242188 -1.316406 8.890625 -1.484375 C 9.535156 -1.660156 10.179688 -1.914062 10.828125 -2.25 L 10.828125 -0.5625 C 10.179688 -0.28125 9.519531 -0.0703125 8.84375 0.0625 C 8.164062 0.207031 7.476562 0.28125 6.78125 0.28125 C 5.03125 0.28125 3.644531 -0.222656 2.625 -1.234375 C 1.613281 -2.253906 1.109375 -3.628906 1.109375 -5.359375 C 1.109375 -7.148438 1.585938 -8.570312 2.546875 -9.625 C 3.515625 -10.675781 4.820312 -11.203125 6.46875 -11.203125 C 7.9375 -11.203125 9.097656 -10.726562 9.953125 -9.78125 C 10.804688 -8.832031 11.234375 -7.546875 11.234375 -5.921875 Z M 9.4375 -6.453125 C 9.425781 -7.429688 9.148438 -8.210938 8.609375 -8.796875 C 8.078125 -9.378906 7.367188 -9.671875 6.484375 -9.671875 C 5.484375 -9.671875 4.679688 -9.390625 4.078125 -8.828125 C 3.472656 -8.265625 3.125 -7.46875 3.03125 -6.4375 Z M 9.4375 -6.453125 \"/>\n",
"<g id=\"glyph-694724-0-3\">\n",
"<path d=\"M 5.90625 -10.984375 C 7.3125 -10.984375 8.421875 -10.546875 9.234375 -9.671875 C 10.046875 -8.796875 10.453125 -7.601562 10.453125 -6.09375 L 10.453125 -4.9375 L 3.21875 -4.9375 C 3.25 -3.832031 3.539062 -2.984375 4.09375 -2.390625 C 4.644531 -1.804688 5.421875 -1.515625 6.421875 -1.515625 C 7.109375 -1.515625 7.722656 -1.578125 8.265625 -1.703125 C 8.804688 -1.835938 9.363281 -2.03125 9.9375 -2.28125 L 9.9375 -0.515625 C 9.394531 -0.273438 8.847656 -0.0976562 8.296875 0.015625 C 7.753906 0.140625 7.101562 0.203125 6.34375 0.203125 C 5.289062 0.203125 4.363281 -0.00390625 3.5625 -0.421875 C 2.769531 -0.835938 2.148438 -1.453125 1.703125 -2.265625 C 1.265625 -3.085938 1.046875 -4.097656 1.046875 -5.296875 C 1.046875 -6.515625 1.25 -7.539062 1.65625 -8.375 C 2.0625 -9.21875 2.625 -9.863281 3.34375 -10.3125 C 4.070312 -10.757812 4.925781 -10.984375 5.90625 -10.984375 Z M 5.90625 -9.34375 C 5.144531 -9.34375 4.53125 -9.09375 4.0625 -8.59375 C 3.601562 -8.101562 3.335938 -7.40625 3.265625 -6.5 L 8.34375 -6.5 C 8.320312 -7.34375 8.113281 -8.023438 7.71875 -8.546875 C 7.332031 -9.078125 6.726562 -9.34375 5.90625 -9.34375 Z M 5.90625 -9.34375 \"/>\n",
"</g>\n",
"<g id=\"glyph-180971-0-4\">\n",
"<path d=\"M 1.96875 -14.578125 L 3.9375 -14.578125 L 3.9375 -1.65625 L 11.03125 -1.65625 L 11.03125 0 L 1.96875 0 Z M 1.96875 -14.578125 \"/>\n",
"<g id=\"glyph-694724-0-4\">\n",
"<path d=\"M 1.90625 0 L 1.90625 -14.28125 L 4.0625 -14.28125 L 4.0625 -1.859375 L 10.15625 -1.859375 L 10.15625 0 Z M 1.90625 0 \"/>\n",
"</g>\n",
"<g id=\"glyph-180971-0-5\">\n",
"<path d=\"M 1.890625 -10.9375 L 3.6875 -10.9375 L 3.6875 0 L 1.890625 0 Z M 1.890625 -15.203125 L 3.6875 -15.203125 L 3.6875 -12.921875 L 1.890625 -12.921875 Z M 1.890625 -15.203125 \"/>\n",
"<g id=\"glyph-694724-0-5\">\n",
"<path d=\"M 2.734375 -14.875 C 3.054688 -14.875 3.335938 -14.78125 3.578125 -14.59375 C 3.816406 -14.40625 3.9375 -14.09375 3.9375 -13.65625 C 3.9375 -13.226562 3.816406 -12.914062 3.578125 -12.71875 C 3.335938 -12.53125 3.054688 -12.4375 2.734375 -12.4375 C 2.390625 -12.4375 2.097656 -12.53125 1.859375 -12.71875 C 1.628906 -12.914062 1.515625 -13.226562 1.515625 -13.65625 C 1.515625 -14.09375 1.628906 -14.40625 1.859375 -14.59375 C 2.097656 -14.78125 2.390625 -14.875 2.734375 -14.875 Z M 3.78125 -10.78125 L 3.78125 0 L 1.65625 0 L 1.65625 -10.78125 Z M 3.78125 -10.78125 \"/>\n",
"</g>\n",
"<g id=\"glyph-180971-0-6\">\n",
"<path d=\"M 10.984375 -6.609375 L 10.984375 0 L 9.1875 0 L 9.1875 -6.546875 C 9.1875 -7.578125 8.984375 -8.347656 8.578125 -8.859375 C 8.171875 -9.378906 7.566406 -9.640625 6.765625 -9.640625 C 5.785156 -9.640625 5.015625 -9.328125 4.453125 -8.703125 C 3.898438 -8.085938 3.625 -7.25 3.625 -6.1875 L 3.625 0 L 1.8125 0 L 1.8125 -10.9375 L 3.625 -10.9375 L 3.625 -9.234375 C 4.050781 -9.890625 4.554688 -10.378906 5.140625 -10.703125 C 5.722656 -11.035156 6.394531 -11.203125 7.15625 -11.203125 C 8.414062 -11.203125 9.367188 -10.8125 10.015625 -10.03125 C 10.660156 -9.257812 10.984375 -8.117188 10.984375 -6.609375 Z M 10.984375 -6.609375 \"/>\n",
"<g id=\"glyph-694724-0-6\">\n",
"<path d=\"M 7.125 -10.984375 C 8.375 -10.984375 9.332031 -10.664062 10 -10.03125 C 10.664062 -9.40625 11 -8.398438 11 -7.015625 L 11 0 L 8.90625 0 L 8.90625 -6.71875 C 8.90625 -8.394531 8.164062 -9.234375 6.6875 -9.234375 C 5.570312 -9.234375 4.804688 -8.90625 4.390625 -8.25 C 3.984375 -7.601562 3.78125 -6.664062 3.78125 -5.4375 L 3.78125 0 L 1.65625 0 L 1.65625 -10.78125 L 3.34375 -10.78125 L 3.640625 -9.34375 L 3.765625 -9.34375 C 4.109375 -9.90625 4.582031 -10.316406 5.1875 -10.578125 C 5.789062 -10.847656 6.4375 -10.984375 7.125 -10.984375 Z M 7.125 -10.984375 \"/>\n",
"</g>\n",
"</g>\n",
"</defs>\n",
Expand All @@ -68,16 +68,16 @@
"<path fill=\"none\" stroke-width=\"2\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\" stroke=\"rgb(0%, 0%, 0%)\" stroke-opacity=\"1\" stroke-miterlimit=\"10\" d=\"M 75 150 L 115.761719 150 \"/>\n",
"<path fill-rule=\"nonzero\" fill=\"rgb(0%, 0%, 0%)\" fill-opacity=\"1\" d=\"M 115.761719 146.171875 L 125 150 L 115.761719 153.828125 \"/>\n",
"<g fill=\"rgb(0%, 0%, 0%)\" fill-opacity=\"1\">\n",
"<use xlink:href=\"#glyph-180971-0-0\" x=\"190\" y=\"168.740234\"/>\n",
"<use xlink:href=\"#glyph-180971-0-1\" x=\"203.681641\" y=\"168.740234\"/>\n",
"<use xlink:href=\"#glyph-180971-0-2\" x=\"216.376953\" y=\"168.740234\"/>\n",
"<use xlink:href=\"#glyph-180971-0-3\" x=\"226.796875\" y=\"168.740234\"/>\n",
"<use xlink:href=\"#glyph-694724-0-0\" x=\"190\" y=\"169.14\"/>\n",
"<use xlink:href=\"#glyph-694724-0-1\" x=\"203.08\" y=\"169.14\"/>\n",
"<use xlink:href=\"#glyph-694724-0-2\" x=\"215.48\" y=\"169.14\"/>\n",
"<use xlink:href=\"#glyph-694724-0-3\" x=\"225.16\" y=\"169.14\"/>\n",
"</g>\n",
"<g fill=\"rgb(0%, 0%, 0%)\" fill-opacity=\"1\">\n",
"<use xlink:href=\"#glyph-180971-0-4\" x=\"190\" y=\"187.480469\"/>\n",
"<use xlink:href=\"#glyph-180971-0-5\" x=\"201.142578\" y=\"187.480469\"/>\n",
"<use xlink:href=\"#glyph-180971-0-6\" x=\"206.699219\" y=\"187.480469\"/>\n",
"<use xlink:href=\"#glyph-180971-0-3\" x=\"219.375\" y=\"187.480469\"/>\n",
"<use xlink:href=\"#glyph-694724-0-4\" x=\"190\" y=\"188.28\"/>\n",
"<use xlink:href=\"#glyph-694724-0-5\" x=\"200.72\" y=\"188.28\"/>\n",
"<use xlink:href=\"#glyph-694724-0-6\" x=\"206.16\" y=\"188.28\"/>\n",
"<use xlink:href=\"#glyph-694724-0-3\" x=\"218.76\" y=\"188.28\"/>\n",
"</g>\n",
"</svg>\n"
],
Expand Down Expand Up @@ -131,7 +131,7 @@
},
{
"cell_type": "code",
"execution_count": 116,
"execution_count": 4,
"id": "2a3d89a2-fdfc-4288-b9dd-9c894b5af4f5",
"metadata": {},
"outputs": [],
Expand All @@ -148,7 +148,7 @@
},
{
"cell_type": "code",
"execution_count": 117,
"execution_count": 5,
"id": "772435ae-0ccd-4359-8dde-6af2ecf04e60",
"metadata": {},
"outputs": [],
Expand All @@ -160,7 +160,7 @@
},
{
"cell_type": "code",
"execution_count": 118,
"execution_count": 6,
"id": "1b2bf74a-a95f-4bc1-9203-fedfb22923dd",
"metadata": {},
"outputs": [],
Expand All @@ -175,7 +175,7 @@
},
{
"cell_type": "code",
"execution_count": 119,
"execution_count": 7,
"id": "6908034d-6c92-4aee-b89c-7b732fa894cb",
"metadata": {},
"outputs": [],
Expand All @@ -194,15 +194,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.10.2",
"display_name": "Julia 1.11.2",
"language": "julia",
"name": "julia-1.10"
"name": "julia-1.11"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.10.2"
"version": "1.11.2"
}
},
"nbformat": 4,
Expand Down
8 changes: 4 additions & 4 deletions drawing-scripts/common-apse-line-transfer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 3,
"id": "fe9804ad-dc32-4936-b44e-2594d332a113",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -125,15 +125,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.6.3",
"display_name": "Julia 1.11.2",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.11"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6.3"
"version": "1.11.2"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 62eaa52

Please sign in to comment.