dev
    Preparing search index...

    Class Metrics

    Index

    Constructors

    Properties

    cacheFont: Map<string, Required<FontInfo>> = ...
    cacheStyle: Map<string, ElementStyle> = ...

    Methods

    • Use the provided key to look up a FontInfo in CommonMetrics. *

      Parameters

      • Optionalkey: string

      Returns void

    • Use the provided key to look up a value in CommonMetrics.

      Parameters

      • key: string

        is a string separated by periods (e.g., Stroke.text.fontFamily).

      • OptionaldefaultValue: any

        is returned if the lookup fails.

      Returns any

      the retrieved value (or defaultValue if the lookup fails).

      For the key Stroke.text.fontFamily, check all of the following in order:

      1. CommonMetrics.fontFamily
      2. CommonMetrics.Stroke.fontFamily
      3. CommonMetrics.Stroke.text.fontFamily Retrieve the value from the most specific key (i.e., prefer #3 over #2 over #1 in the above example).