/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{ManagedTexture as e}from"./ManagedTexture.js";import{getTextHelperCanvas as r}from"./TextHelperCanvas.js";import{TextRenderer as t}from"./TextRenderer.js";import{TextTextureAtlas as n}from"./TextTextureAtlas.js";class i{constructor(e,r,i){this._renderer=new t(e,r,i,n.maxSize)}get key(){return this._renderer.key}get baselineAnchorY(){return 1-this._renderer.firstRenderedBaselinePosition/this._renderer.renderedHeight}get displayWidth(){return this._renderer.displayWidth}get displayHeight(){return this._renderer.displayHeight}create(){const t=r(s,this._renderer.renderedWidth,this._renderer.renderedHeight),n=t.getContext("2d");return n.save(),this._renderer.render(n,0,0),n.restore(),new e(t,{wrap:{s:33071,t:33071},noUnpackFlip:!1,mipmap:!0,preMultiplyAlpha:!0})}}const s={canvas:null};export{i as default};
