GPL-3.0 · TypeScript

@edubeam/plot

Vue components that draw plane structures and their results, in the figures’ own style.

By Jan Voříšek

Get started GitHub

Try it

A frame solved by @edubeam/fem on this page. Change what is drawn; the code follows.

Frame.vue
<StructurePlot
  :solver="solver"
  :layers="[
    'members', 'supports', 'loads', 'reactions', 'M',
  ]"
/>

Made for teaching material

A model in code is a figure that can't go out of date: change a number and the drawing, the reactions and the diagrams follow. A seed picks a new exercise; the same seed always gives the same one. This site's practice problems and exam builder are made this way.

Three-hinged frame

H4820

A frame 6 m wide and 4 m high, on pins at A and E, with a hinge at the crown C. The beam carries q = 12 kN/m over its left half, and F = 5 kN pushes B to the right. Find the support reactions and the largest bending moment.

Answer key

Generated in your browser: the seed picks the structure and its numbers, @edubeam/fem solves it, @edubeam/plot draws both sides. Whole test papers come from the exam builder.

What it does

  • In the figures’ style

    Members, supports, loads, reactions and hatched diagrams as on this site, with chain dimensions and named unknown reactions for exercise sheets.

  • Readable at any size

    Text and lines keep their pixel size; values that would collide are moved or dropped, never clipped.

  • Exact

    Diagrams are the solver’s own polynomials: extremes found exactly, steps at point loads drawn as steps.

  • Fits a page

    Colours from your CSS, light and dark. Renders on the server and never captures scrolling.

Every prop