worldorbit 2.5.9 → 2.5.11

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.
Files changed (40) hide show
  1. package/dist/unpkg/worldorbit-markdown.min.js +21 -16
  2. package/dist/unpkg/worldorbit-viewer.min.js +15 -10
  3. package/dist/unpkg/worldorbit.js +26 -1
  4. package/dist/unpkg/worldorbit.min.js +15 -10
  5. package/package.json +1 -1
  6. package/packages/editor/dist/editor.js +8 -2
  7. package/packages/viewer/dist/render.js +26 -1
  8. package/packages/viewer/dist/viewer.js +16 -1
  9. package/packages/core/dist/atlas-edit.d.ts +0 -11
  10. package/packages/core/dist/atlas-edit.js +0 -210
  11. package/packages/core/dist/diagnostics.d.ts +0 -10
  12. package/packages/core/dist/diagnostics.js +0 -109
  13. package/packages/core/dist/draft-parse.d.ts +0 -3
  14. package/packages/core/dist/draft-parse.js +0 -642
  15. package/packages/core/dist/draft.d.ts +0 -15
  16. package/packages/core/dist/draft.js +0 -343
  17. package/packages/core/dist/errors.d.ts +0 -7
  18. package/packages/core/dist/errors.js +0 -16
  19. package/packages/core/dist/format.d.ts +0 -4
  20. package/packages/core/dist/format.js +0 -364
  21. package/packages/core/dist/index.d.ts +0 -28
  22. package/packages/core/dist/index.js +0 -44
  23. package/packages/core/dist/load.d.ts +0 -4
  24. package/packages/core/dist/load.js +0 -130
  25. package/packages/core/dist/markdown.d.ts +0 -2
  26. package/packages/core/dist/markdown.js +0 -37
  27. package/packages/core/dist/normalize.d.ts +0 -2
  28. package/packages/core/dist/normalize.js +0 -304
  29. package/packages/core/dist/parse.d.ts +0 -2
  30. package/packages/core/dist/parse.js +0 -133
  31. package/packages/core/dist/scene.d.ts +0 -3
  32. package/packages/core/dist/scene.js +0 -1500
  33. package/packages/core/dist/schema.d.ts +0 -8
  34. package/packages/core/dist/schema.js +0 -298
  35. package/packages/core/dist/tokenize.d.ts +0 -4
  36. package/packages/core/dist/tokenize.js +0 -68
  37. package/packages/core/dist/types.d.ts +0 -382
  38. package/packages/core/dist/types.js +0 -1
  39. package/packages/core/dist/validate.d.ts +0 -2
  40. package/packages/core/dist/validate.js +0 -56
@@ -4784,8 +4784,33 @@ var WorldOrbit = (() => {
4784
4784
  <circle cx="${x}" cy="${y}" r="${radius}" fill="${fill}" stroke="${palette.stroke}" stroke-width="1.4" />`;
4785
4785
  case "structure":
4786
4786
  return `<polygon points="${diamondPoints(x, y, radius)}" fill="${fill}" stroke="${palette.stroke}" stroke-width="1.4" />`;
4787
- case "phenomenon":
4787
+ case "phenomenon": {
4788
+ const kind = String(object.properties.kind ?? "").toLowerCase().replace(/_/g, "-");
4789
+ if (options.outlineOnly) {
4790
+ if (kind === "black-hole" || kind === "nebula" || kind === "galaxy" || kind === "dwarf-galaxy") {
4791
+ return `<circle cx="${x}" cy="${y}" r="${radius}" fill="transparent" stroke="${palette.stroke}" stroke-width="1.4" />`;
4792
+ }
4793
+ return `<polygon points="${phenomenonPoints(x, y, radius)}" fill="transparent" stroke="${palette.stroke}" stroke-width="1.4" />`;
4794
+ }
4795
+ if (kind === "black-hole") {
4796
+ return `<ellipse cx="${x}" cy="${y}" rx="${radius * 2.4}" ry="${radius * 0.55}" fill="none" stroke="${palette.accentRing ?? palette.stroke}" stroke-width="3.5" />
4797
+ <circle cx="${x}" cy="${y}" r="${radius}" fill="${fill}" stroke="${palette.stroke}" stroke-width="2" />`;
4798
+ }
4799
+ if (kind === "galaxy") {
4800
+ return `<ellipse cx="${x}" cy="${y}" rx="${radius * 2.6}" ry="${radius}" fill="${palette.halo ?? "none"}" stroke="none" />
4801
+ <ellipse cx="${x}" cy="${y}" rx="${radius * 1.5}" ry="${radius * 0.42}" fill="${fill}" stroke="${palette.stroke}" stroke-width="1.2" />
4802
+ <circle cx="${x}" cy="${y}" r="${radius * 0.28}" fill="${palette.core ?? "#fff"}" stroke="none" />`;
4803
+ }
4804
+ if (kind === "dwarf-galaxy") {
4805
+ return `<ellipse cx="${x}" cy="${y}" rx="${radius * 1.6}" ry="${radius * 0.55}" fill="${fill}" stroke="${palette.stroke}" stroke-width="1" />
4806
+ <circle cx="${x}" cy="${y}" r="${radius * 0.25}" fill="${palette.core ?? "#fff"}" stroke="none" />`;
4807
+ }
4808
+ if (kind === "nebula") {
4809
+ return `<circle cx="${x}" cy="${y}" r="${radius * 2.2}" fill="${palette.halo ?? "none"}" stroke="none" />
4810
+ <circle cx="${x}" cy="${y}" r="${radius}" fill="${fill}" stroke="${palette.stroke}" stroke-width="1" />`;
4811
+ }
4788
4812
  return `<polygon points="${phenomenonPoints(x, y, radius)}" fill="${fill}" stroke="${palette.stroke}" stroke-width="1.4" />`;
4813
+ }
4789
4814
  }
4790
4815
  }
4791
4816
  function renderAtmosphere(sceneObject, palette) {