@blorkfield/overlay-core 0.5.9 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -741,6 +741,7 @@ declare class OverlayScene {
741
741
  private fireUpdateCallbacks;
742
742
  }
743
743
 
744
+ /** Log level for controlling console output verbosity */
744
745
  type LogLevel = 'debug' | 'info' | 'warn' | 'error';
745
746
  declare function setLogLevel(level: LogLevel): void;
746
747
  declare function getLogLevel(): LogLevel;
@@ -751,6 +752,7 @@ declare const logger: {
751
752
  error(prefix: string, message: string, data?: unknown): void;
752
753
  };
753
754
 
755
+ /** 2D vector representing a point in screen space */
754
756
  interface Vector2D {
755
757
  x: number;
756
758
  y: number;
@@ -793,4 +795,4 @@ declare function measureText(loadedFont: LoadedFont, text: string, fontSize: num
793
795
  */
794
796
  declare function clearFontCache(): void;
795
797
 
796
- export { type BaseEffectConfig, type Bounds, type BurstEffectConfig, type ClickToFallConfig, type ContainerOptions, type DespawnEffectConfig, type DynamicObject, type EffectConfig, type EffectObjectConfig, type EffectType, type FloorConfig, type FontInfo, type FontManifest, type GlyphData, type LoadedFont, type ObjectConfig, OverlayScene, type OverlaySceneConfig, type PressureThresholdConfig, type RainEffectConfig, type ShadowConfig, type ShapeConfig, type ShapePreset, type StreamEffectConfig, type TTFTextObstacleConfig, type TextAlign, type TextBounds, type TextObstacleConfig, type TextObstacleResult, type UpdateCallback, type UpdateCallbackData, type WeightConfig, clearFontCache, getGlyphData, getKerning, getLogLevel, loadFont, logger, measureText, setLogLevel };
798
+ export { type BaseEffectConfig, type Bounds, type BurstEffectConfig, type ClickToFallConfig, type ContainerOptions, type DespawnEffectConfig, type DynamicObject, type EffectConfig, type EffectObjectConfig, type EffectType, type FloorConfig, type FontInfo, type FontManifest, type GlyphData, type LoadedFont, type LogLevel, type ObjectConfig, OverlayScene, type OverlaySceneConfig, type PressureThresholdConfig, type RainEffectConfig, type ShadowConfig, type ShapeConfig, type ShapePreset, type StreamEffectConfig, type TTFTextObstacleConfig, type TextAlign, type TextBounds, type TextObstacleConfig, type TextObstacleResult, type UpdateCallback, type UpdateCallbackData, type WeightConfig, clearFontCache, getGlyphData, getKerning, getLogLevel, loadFont, logger, measureText, setLogLevel };
package/dist/index.d.ts CHANGED
@@ -741,6 +741,7 @@ declare class OverlayScene {
741
741
  private fireUpdateCallbacks;
742
742
  }
743
743
 
744
+ /** Log level for controlling console output verbosity */
744
745
  type LogLevel = 'debug' | 'info' | 'warn' | 'error';
745
746
  declare function setLogLevel(level: LogLevel): void;
746
747
  declare function getLogLevel(): LogLevel;
@@ -751,6 +752,7 @@ declare const logger: {
751
752
  error(prefix: string, message: string, data?: unknown): void;
752
753
  };
753
754
 
755
+ /** 2D vector representing a point in screen space */
754
756
  interface Vector2D {
755
757
  x: number;
756
758
  y: number;
@@ -793,4 +795,4 @@ declare function measureText(loadedFont: LoadedFont, text: string, fontSize: num
793
795
  */
794
796
  declare function clearFontCache(): void;
795
797
 
796
- export { type BaseEffectConfig, type Bounds, type BurstEffectConfig, type ClickToFallConfig, type ContainerOptions, type DespawnEffectConfig, type DynamicObject, type EffectConfig, type EffectObjectConfig, type EffectType, type FloorConfig, type FontInfo, type FontManifest, type GlyphData, type LoadedFont, type ObjectConfig, OverlayScene, type OverlaySceneConfig, type PressureThresholdConfig, type RainEffectConfig, type ShadowConfig, type ShapeConfig, type ShapePreset, type StreamEffectConfig, type TTFTextObstacleConfig, type TextAlign, type TextBounds, type TextObstacleConfig, type TextObstacleResult, type UpdateCallback, type UpdateCallbackData, type WeightConfig, clearFontCache, getGlyphData, getKerning, getLogLevel, loadFont, logger, measureText, setLogLevel };
798
+ export { type BaseEffectConfig, type Bounds, type BurstEffectConfig, type ClickToFallConfig, type ContainerOptions, type DespawnEffectConfig, type DynamicObject, type EffectConfig, type EffectObjectConfig, type EffectType, type FloorConfig, type FontInfo, type FontManifest, type GlyphData, type LoadedFont, type LogLevel, type ObjectConfig, OverlayScene, type OverlaySceneConfig, type PressureThresholdConfig, type RainEffectConfig, type ShadowConfig, type ShapeConfig, type ShapePreset, type StreamEffectConfig, type TTFTextObstacleConfig, type TextAlign, type TextBounds, type TextObstacleConfig, type TextObstacleResult, type UpdateCallback, type UpdateCallbackData, type WeightConfig, clearFontCache, getGlyphData, getKerning, getLogLevel, loadFont, logger, measureText, setLogLevel };
package/dist/index.js CHANGED
@@ -2270,7 +2270,8 @@ var OverlayScene = class {
2270
2270
  for (let i = 0; i < chars.length; i++) {
2271
2271
  const char = chars[i];
2272
2272
  if (char === " ") {
2273
- currentX += 20;
2273
+ const spaceWidth = config.letterSpacing ?? letterSize;
2274
+ currentX += spaceWidth;
2274
2275
  globalCharIndex++;
2275
2276
  if (inWord) {
2276
2277
  currentWordIndex++;