* make sure the first baseline is offset by the `lineHeight` value if it is greater than `fontSize`. * A value of `false` will use the legacy behavior and not change the baseline of the first line. */ public static nextLineHeightBehavior = false * In the next major release, we'll enable this by default. ** The canvas element that everything is drawn to. ** The canvas 2d context that everything is drawn with. * The resolution / device pixel ratio of the canvas. * This is set to automatically match the renderer resolution by default, but can be overridden by setting manually. * Keep track if this Text object created it's own canvas * Private listener to track style changes. * element (`true`) or uses the constructor argument (`false`). * Used to workaround a GC issues with Safari |TextStyle, canvas?: HTMLCanvasElement)Ĭanvas = document.createElement( 'canvas') I created a menu to link to my different portfolio categories. But, in Chrome and Firefox, there is a huge space showing below the menu bar. * By default this is used internally to ensure the texture is correct before rendering, * Renders text to its canvas, and updates its texture. * but it can be used called externally, for example from this class to 'pre-generate' the texture from a piece of text, * and then shared across multiple Sprites. * respectDirty - Whether to abort updating the text if the Text isn't dirty and the function is called. When you tap on a URL link in a text, email, or wherever, your iPhones default reaction will be to open it up in Safari, and theres no way to change this in the settings. */ public updateText(respectDirty: boolean): void The main difference is that the onblur event does not bubble. However, there is a way you can work around this to open up links in Chrome instead. Even if you accidentally open a link in Safari, theres a quick way to jump the tab right into Chrome. If ( this.localStyleID != style.styleID)Ĭonst measured = asureText( this._text || ' ', this._style, this._style.wordWrap, this.canvas) Ĭonst maxLineWidth = measured.maxLineWidth Ĭonst fontProperties = measured.fontProperties Note: The onfocusout event may not work as expected in Chrome, Safari and Opera 15+ using.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |