Ejemplo n.º 1
0
        public override Box CreateBox()
        {
            if (generatedBox != null)
            {
                return(generatedBox);
            }

            generatedBox = AttrTransformationBox.Get(this,
                                                     EndAtom == null ? null : (AttrTransformationBox)EndAtom.CreateBox());
            //ScaleTransformation(ref generatedBox.matrix, Vector3.one * TexContext.Scale);
            return(generatedBox);
        }
Ejemplo n.º 2
0
        public override Box CreateBox(TexStyle style)
        {
            if (generatedBox != null)
            {
                return(generatedBox);
            }

            generatedBox = AttrTransformationBox.Get(this,
                                                     EndAtom == null ? null : (AttrTransformationBox)EndAtom.CreateBox(style));
            //ScaleTransformation(ref generatedBox.matrix, Vector3.one * TexUtility.SizeFactor(style));
            return(generatedBox);
        }