Add display model

This commit is contained in:
Guille Gonzalez
2026-01-03 07:45:34 +01:00
parent e9657c186e
commit 8e4db3cf0e
11 changed files with 365 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import CoreGraphics
import Foundation
extension Math {
final class DisplayTextRun: DisplayNode {
var text: String
var font: Math.Font
var atoms: [Math.Atom]
init(text: String, font: Math.Font, position: CGPoint = .zero, range: NSRange, atoms: [Math.Atom]) {
self.text = text
self.font = font
self.atoms = atoms
super.init()
self.position = position
self.range = range
}
}
}