@edubeam/plot 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/LICENSE +674 -0
- package/README.md +386 -2
- package/dist/components/DiagramStack.vue.d.ts +18 -0
- package/dist/components/StructurePlot.vue.d.ts +19 -0
- package/dist/components/theme.d.ts +16 -0
- package/dist/components/types.d.ts +107 -0
- package/dist/core/fromSolver.d.ts +12 -0
- package/dist/core/model.d.ts +135 -0
- package/dist/core/polynomial.d.ts +72 -0
- package/dist/core/readout.d.ts +31 -0
- package/dist/core/scene.d.ts +225 -0
- package/dist/core/stack.d.ts +56 -0
- package/dist/core/structure.d.ts +67 -0
- package/dist/core/supports.d.ts +50 -0
- package/dist/core/units.d.ts +30 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +2883 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin.d.ts +6 -0
- package/package.json +90 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@edubeam/plot` are listed here. The project follows [Semantic Versioning](https://semver.org).
|
|
4
|
+
|
|
5
|
+
## 0.1.0 (2026-11-18)
|
|
6
|
+
|
|
7
|
+
The first release.
|
|
8
|
+
|
|
9
|
+
- **`StructurePlot`** draws a plane frame, beam or truss solved by @edubeam/fem.
|
|
10
|
+
- It draws members, hinges, supports for every DOF combination (rotated supports included), loads, reactions, the
|
|
11
|
+
N, V and M diagrams, and the deformed shape.
|
|
12
|
+
- It fits itself to the width of its box at real pixel size, and makes room for every label it keeps.
|
|
13
|
+
- Independent layers (`nodes`, `nodeLabels`, `dimensions`, `members`, `supports`, `loads`, `reactions`, `N`, `V`,
|
|
14
|
+
`M`, `w`), with `reserve`, let a figure build up in stages without moving.
|
|
15
|
+
- A compact mode is for thumbnails.
|
|
16
|
+
- Values sit at the tips of their ordinates, upright or along the ordinate (`resultLabelMode`), with collision
|
|
17
|
+
handling.
|
|
18
|
+
- Truss bar forces show along their bars, by sign.
|
|
19
|
+
- Optional hover readout.
|
|
20
|
+
- **`DiagramStack`** draws the stacked textbook figure: a beam with its loads above its V(x), M(x) and w(x) on one x
|
|
21
|
+
axis.
|
|
22
|
+
- A reading cursor snaps to steps and shows both values.
|
|
23
|
+
- `v-model:load-at` adds a point load the reader can drag, with the pointer or the keyboard.
|
|
24
|
+
- Rows keep a fixed scale with `ranges`, and shrink to fit `maxHeight`.
|
|
25
|
+
- **Exact results.** `modelFromSolver` stores each member's results as piecewise polynomials, split at point loads,
|
|
26
|
+
in a plain, JSON-serialisable `PlotModel`. Extremes are found exactly, and curves are drawn as exact Béziers.
|
|
27
|
+
- **Types and plugin.** `StructurePlotProps`, `DiagramStackProps` and their emit types are exported for typed
|
|
28
|
+
wrappers. `app.use(EduBeamPlot)` registers both components globally. Declarations resolve under bundler, node16 and
|
|
29
|
+
nodenext module resolution.
|
|
30
|
+
- **Theming** through CSS custom properties, with system-colour fallbacks, so a page's light and dark themes apply.
|
|
31
|
+
- **Server rendering, accessibility and scrolling.** It renders on the server, has accessible names and a keyboard
|
|
32
|
+
slider for the draggable load, and respects `prefers-reduced-motion`. A static plot never captures scrolling or
|
|
33
|
+
taps.
|