From 60c2c398a03144f45e78f9813e69fcba4c75479f Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Tue, 30 Aug 2022 18:09:23 -0600 Subject: [PATCH] Grunt update. Adding linebreak dependency for unicode-correct line break detection. Adding back directional marks into load-unbuilt-strings. Proper RichText line break handling. See https://github.com/phetsims/joist/issues/843 --- phet-types.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/phet-types.d.ts b/phet-types.d.ts index 9f07c65e..e6f113b4 100644 --- a/phet-types.d.ts +++ b/phet-types.d.ts @@ -101,6 +101,21 @@ declare var TWEEN: { update: ( dt: number ) => void }; declare var phetSplashScreen: { dispose: () => void }; declare var phetio: Record; +// Typing for linebreaker-1.1.0.js preload +declare type LineBreakerBreak = { + position: number; + required: boolean; +}; +declare type LineBreakerType = { + nextBreak(): LineBreakerBreak | null; + + // We make it iterable + [ Symbol.iterator ](): Iterator; +}; +declare var LineBreaker: { + new ( str: string ): LineBreakerType; +}; + declare var assertions: { enableAssert: () => void; };