@hla4ts/spacefom
v0.1.1
Published
Thin SpaceFOM helper layer with bundled XML modules, coders, and constants
Readme
@hla4ts/spacefom
Thin SpaceFOM asset/helper layer beneath @hla4ts/spacekit.
This package is no longer the main application entry point for SEE users.
Start with @hla4ts/spacekit unless you specifically need one of the raw
SpaceFOM building blocks below:
- bundled base SpaceFOM XML modules
loadSpaceFomModules()for inline/path module loading- SpaceFOM constants such as execution modes and sync point labels
- low-level encode/decode helpers and coders
- optional dashboard launcher via
serveDashboard()
Install
bun add @hla4ts/spacefomLoad Base Modules
import { loadSpaceFomModules } from "@hla4ts/spacefom";
const baseModules = await loadSpaceFomModules({ format: "inline" });Encode/Decode SpaceFOM Values
import {
decodeHLAunicodeString,
encodeHLAunicodeString,
encodeSpaceTimeCoordinateState,
} from "@hla4ts/spacefom";Execution and Sync Constants
import {
SpaceFomExecutionMode,
SpaceFomMtrMode,
SpaceFomSyncPointLabels,
} from "@hla4ts/spacefom";Dashboard Loader
serveDashboard() remains here because it is an optional SpaceFOM-oriented
tooling hook:
import { serveDashboard } from "@hla4ts/spacefom";
const server = await serveDashboard();
await server.close();This requires @hla4ts/spacefomapp-dashboard to be installed separately.
When To Use @hla4ts/spacekit Instead
Use @hla4ts/spacekit if you need any of the following:
SpacekitAppPhysicalEntity,DynamicalEntity,ReferenceFrame,ExecutionConfigurationModeTransitionRequestSpaceFomLateJoinerBootstrapcreateSpaceFomConfig()ordeclareSpaceFom()- runtime adapter generation from decorated classes
- SEE run loop and reference-frame-aware registration
