@orbat-mapper/control-measures 0.15.0 → 0.15.1

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.
@@ -90,7 +90,8 @@ function fallbackControlPoints(m) {
90
90
  function representativeSample(id) {
91
91
  const definition = DEFINITIONS[id];
92
92
  const sample = definition.previewSample;
93
- const controlPoints = (sample ? sample.controlPoints : fallbackControlPoints(definition.metadata)).map(([x, y]) => [x * D, y * D]);
93
+ const scaled = (sample ? sample.controlPoints : fallbackControlPoints(definition.metadata)).map(([x, y]) => [x * D, y * D]);
94
+ const controlPoints = definition.rule ? definition.rule.derive(scaled) : scaled;
94
95
  const options = sample?.options;
95
96
  const textAmplifiers = sample?.textAmplifiers;
96
97
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbat-mapper/control-measures",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Library for drawing tactical graphics and control measures according to MIL-STD-2525 and APP-6 standards.",
5
5
  "license": "MIT",
6
6
  "author": "Orbat Mapper",