Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CaretInfo

import type { CaretInfo } from "https://raw.githubusercontent.com/takker99/scrapbox-userscript-std/0.14.1/browser/dom/mod.ts";

#text-inputを構築しているReact Componentに含まれるカーソルの情報

interface CaretInfo {
position: Position;
selectedText: string;
selectionRange: Range;
}

§Properties

§
position: Position
[src]

カーソルの位置

§
selectedText: string
[src]

選択範囲中の文字列

§
selectionRange: Range
[src]

選択範囲の位置