Skip to content

framefactory/ff-core

Repository files navigation

FF Core Typescript Foundation Library

Copyright 2024 Frame Factory GmbH, Ralph Wiedemeier

Overview

This library is part of the Frame Factory Typescript foundation libraries. It provides core functions and types for building rich web and service applications.

Features

  • Collection types such as sorted arrays
  • Utilities for handling objects (cloning, inheritance, mixin, type checking, etc.)
  • Publisher base class for event broadcasting
  • Dynamic type registration
  • Rich color type with support for RGB and HSV with alpha channel. Converts to/from web color strings and float arrays (WebGL/WebGPU).
  • Core math utilities
  • Generators for unique ids
  • Linear algebra types for graphics (vectors and matrices)
  • Geometric primitives (paths, rectangles, boxes, etc.)
  • Animation support (tweening, keyframe tracks with cubic spline support, etc.)
  • Support for state machines and properties

Structure

  • src contains the TypeScript source code
  • build contains transpiled ECMAScript module files
# clean build directory
pnpm run clean

# build the library
pnpm run build

# build and run the tests
pnpm run test

License

MIT

About

FF Typescript Foundation Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published