File tree Expand file tree Collapse file tree
addons/addon-webgl/src/customGlyphs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -820,19 +820,26 @@ export const customGlyphDefinitions: { [index: string]: CustomGlyphCharacterDefi
820820 // #endregion
821821} ;
822822
823- export const blockPatternCodepoints = new Set < number > ( ) ;
824- for ( const [ char , definition ] of Object . entries ( customGlyphDefinitions ) ) {
825- if ( ! definition ) {
826- continue ;
827- }
828- const parts = Array . isArray ( definition ) ? definition : [ definition ] ;
829- if ( parts . some ( part => part . type === CustomGlyphDefinitionType . BLOCK_PATTERN ) ) {
830- const codepoint = char . codePointAt ( 0 ) ;
831- if ( codepoint !== undefined ) {
832- blockPatternCodepoints . add ( codepoint ) ;
833- }
834- }
835- }
823+ export const blockPatternCodepoints = new Set < number > ( [
824+ // Shade characters (2591-2593)
825+ 0x2591 ,
826+ 0x2592 ,
827+ 0x2593 ,
828+ // Rectangular shade characters (1FB8C-1FB94)
829+ 0x1FB8C ,
830+ 0x1FB8D ,
831+ 0x1FB8E ,
832+ 0x1FB8F ,
833+ 0x1FB90 ,
834+ 0x1FB91 ,
835+ 0x1FB92 ,
836+ 0x1FB94 ,
837+ // Triangular shade characters (1FB9C-1FB9F)
838+ 0x1FB9C ,
839+ 0x1FB9D ,
840+ 0x1FB9E ,
841+ 0x1FB9F
842+ ] ) ;
836843
837844/**
838845 * Generates a drawing function for sextant characters. Sextants are a 2x3 grid where each cell
You can’t perform that action at this time.
0 commit comments