Re: [w3c/editing] Update spec draft, explainer, examples for EditContext (PR #355)

@alexkeng commented on this pull request.



> +        }
+
+        updateTextFormats(textFormats) {
+            this.textFormats = textFormats
+        }
+    }
+
+    class EditingView {
+        render() {
+            // render the text (implementation omitted for brevity)
+
+            // render the selection (implementation omitted for brevity)
+
+            // render the IME decoration
+            this.model.textFormats.forEach( textFormat => {
+                let lineStartX = anchorX + textFormat.rangeStart * charWidth;

sure! comment added

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/pull/355#discussion_r736017263

Received on Monday, 25 October 2021 22:41:21 UTC