Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1import oc from "open-color";
2import React from "react";
3import { THEME } from "../../packages/excalidraw/constants";
4import type { Theme } from "../../packages/excalidraw/element/types";
5
6// https://github.com/tholman/github-corners
7export const GitHubCorner = React.memo(
8 ({ theme, dir }: { theme: Theme; dir: string }) => (
9 <svg
10 xmlns="http://www.w3.org/2000/svg"
…lines 11–46 unchanged (36 lines)

After

1import oc from "open-color";
2import React from "react";
3import { THEME } from "@excalidraw/excalidraw/constants";
4import type { Theme } from "@excalidraw/excalidraw/element/types";
5
6// https://github.com/tholman/github-corners
7export const GitHubCorner = React.memo(
8 ({ theme, dir }: { theme: Theme; dir: string }) => (
9 <svg
10 xmlns="http://www.w3.org/2000/svg"
…lines 11–46 unchanged (36 lines)

Before

program
import_statement
import "import"
import_clause
identifier "oc"
from "from"
string
" "\""
string_fragment "open-color"
" "\""
; ";"
import_statement
import "import"
import_clause
identifier "React"
from "from"
string
" "\""
string_fragment "react"
" "\""
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "THEME"
} "}"
from "from"
string
" "\""
string_fragment "../../packages/excalidraw/constants"
" "\""
; ";"
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "Theme"
} "}"
from "from"
string
" "\""
string_fragment "../../packages/excalidraw/element/types"
" "\""
; ";"
comment "// https://github.com/tholman/github-corners"
export_statement (+318 nodes collapsed)

After

program
import_statement
import "import"
import_clause
identifier "oc"
from "from"
string
" "\""
string_fragment "open-color"
" "\""
; ";"
import_statement
import "import"
import_clause
identifier "React"
from "from"
string
" "\""
string_fragment "react"
" "\""
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "THEME"
} "}"
from "from"
string
" "\""
string_fragment "@excalidraw/excalidraw/constants"
" "\""
; ";"
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "Theme"
} "}"
from "from"
string
" "\""
string_fragment "@excalidraw/excalidraw/element/types"
" "\""
; ";"
comment "// https://github.com/tholman/github-corners"
export_statement (+318 nodes collapsed)