npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@myrmidon/gve-core

v5.0.4

Published

Cadmus - GVE Angular frontend core components.

Downloads

205

Readme

Gve Core

  • 🚀 npm i @myrmidon/gve-core.

This library was generated with Angular CLI version 17.0.0. All the components in this library are standalone, and since version 3 their properties and events are signal-based.

This is the core UI library for GVE.

@startuml
[animation timeline]
[animation timeline set]
[animation tween]
[base text char]
[base text editor]
[base text view]
[chain op editor]
[chain result view]
[feature editor]
[feature set editor]
[feature set view]
[ln heights editor]
[batch ops editor]
[snapshot text editor]
[op source editor]
[snapshot editor]
[steps map]

[feature set editor] --> [feature editor]
[animation timeline] --> [animation tween]
[animation timeline set] --> [animation timeline]
[animation timeline set] --> [dialog service]
[base text view] --> [base text char]
[base text editor] --> [base text view]
[base text editor] --> [feature set editor]
[base text editor] --> [dialog service]
[chain op editor] --> [feature set editor]
[chain op editor] --> [op source editor]
[chain op editor] --> [settings service]
[chain op editor] --> [dialog service]
[chain result view] --> [base text view]
[chain result view] --> [feature set view]
[chain result view] --> [steps map]
[snapshot editor] --> [snapshot text editor]
[snapshot editor] --> [batch ops editor]
[snapshot editor] --> [animation timeline set]
[snapshot editor] --> [base text editor]
[snapshot editor] --> [chain op editor]
[snapshot editor] --> [chain result view]
[snapshot editor] --> [ln heights editor]
[snapshot editor] --> [snapshot view]
[snapshot editor] --> [dialog service]
[snapshot editor] --> [api service]
@enduml

Snapshot Editor

The snapshot editor is the top-level component in the library and orchestrates the behavior of all the components included in it. Its API is very simple, as it just deals with a full snapshot:

  • ▶️ snapshot (Snapshot): the snapshot to edit.
  • ▶️ batchOps (string): the batch operations text to set for the editor.
  • ▶️ noSave (boolean): true to disable saving.
  • ▶️ featureDefs (FeatureDefinitions): preset feature definitions, if any.
  • ▶️ elementFeatureDefs (FeatureDefinitions): preset feature definitions for graphical elements, if any.
  • ▶️ diplomaticFeatureDefs (FeatureDefinitions): preset diplomatic feature definitions, if any.
  • 🔥 snapshotChange (Snapshot): emitted when the user saves the edited snapshot.
  • 🔥 snapshotCancel (void): emitted when the user cancels the snapshot editing.

As for feature definitions, the FeatureDefinitions interface can be provided with this model:

  • names (LabeledId[]): list of features, each having an ID and a label:
    • id (string)
    • label (string)
  • values (FeatureMap, a dictionary of LabeledId[] keyed by feature name): used for features from closed sets, it lists the possible values for each feature name. In this dictionary, the key is the feature name, and the value is an array of labeled IDs representing the allowed values for that feature.

💡 Example: in this example we have 2 features, color (ID=clr) and size (ID=sz). The size feature has unconstrained values, while the color feature is limited to red (ID=r), green (ID=g), and blue (ID=b):

{
  names: [
    {
      id: 'clr',
      label: 'color',
    },
    {
      id: 'sz',
      label: 'size',
    },
  ],
  values: {
    clr: [
      {
        id: 'r',
        label: 'red',
      },
      {
        id: 'g',
        label: 'green',
      },
      {
        id: 'b',
        label: 'blue',
      },
    ],
  }
}

The only data directly handled by the component are:

  • size and style;
  • base text and related data;
  • background image.

Operations and timelines are handled by other children components. The snapshot model is built dynamically when required (via getSnapshot), and it is displayed by a snapshot view.

Dependencies