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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@myrmidon/cadmus-codicology-ui

v13.0.5

Published

Cadmus codicology - general UI components.

Downloads

17

Readme

Cadmus Codicology UI

This project was generated using Angular CLI version 20.0.0.

This library contains generic UI components for codicology libraries.

CodLayoutFormulaComponent

  • 🔑 CodLayoutFormulaComponent
  • 🚩 cadmus-cod-layout-formula
  • ▶️ input:
    • data (CodLayoutFormulaWithDimensions)
    • unitEntries (ThesaurusEntry[] | undefined) for 📚 physical-size-units. Defaults to mm and cm if not specified.
    • tagEntries (ThesaurusEntry[] | undefined) for 📚 physical-size-dim-tags.
  • 🔥 output:
    • dataChange (CodLayoutFormulaWithDimensions)
    • cancelEdit

Data is of type CodLayoutFormulaWithDimensions, coupling a formula with its dimensions:

  • prefix (IT or BO)
  • formula (string)
  • dimensions (PhysicalDimension[])

This component is used to enter a codicological layout formula of any supported type and possibly extract from it a set of dimensions (width, height, left margin, etc.). Thus, it deals with two data:

  • the codicological formula (string).
  • a set of physical dimensions (PhysicalDimension[]).

To enter the formula, just type or paste it in its textbox. Whenever you update the formula (also when editing dimensions), validation occurs. Apart from syntax, which is specific to each formula, validation also checks that the sum of the vertical spans is equal to the sheet height, and that the sum of the horizontal spans is equal to the sheet width.

Once you have entered a formula, you can extract dimensions from it by clicking the import dimensions button. In this case, all the existing dimensions with the same name are overwritten with values from the formula, while new dimensions are added. All the dimensions extracted from a formula also have an ordinal number, which reflects their order of appearance in the formula syntax. Height and width always have ordinal 1 and 2 respectively.

You can edit dimensions as follows:

  • edit any dimension, either extracted or not. You can change the value and also the tag, which implies creating a new dimension (or replacing one which already existed).
  • rearrange extracted dimensions by editing their ordinals via the pen button next to the ordinal number. Using the arrows to move them up or down in the list also implies updating their ordinals.
  • add new dimensions on your own, independently from the formula. These dimensions have no ordinal (or an ordinal equal to 0). Should you want to manually add a formula-related dimension (for instance to update the formula from dimensions later), just add a new dimension, name it accordingly, and then set its ordinal so that it is positioned exactly where the formula expects it.

Note that when editing dimensions you are not allowed to change the dimension's unit (mm), because this is a parameter defined globally for the whole formula.

Whenever you edit a dimension extracted from a formula (whose ordinal is greater than 0), the formula is updated.

The test page in the shell app allows you to use this component in a mock environment, where you edit the formula with its dimensions, and then get the corresponding data displayed in JSON format.