MCPcopy
hub / github.com/JuliaPluto/Pluto.jl / Tooltip

Interface Tooltip

frontend/imports/CodemirrorPlutoSetup.d.ts:3430–3469  ·  view source on GitHub ↗

Describes a tooltip. Values of this type, when provided through the [`showTooltip`](https://codemirror.net/6/docs/ref/#view.showTooltip) facet, control the individual tooltips on the editor.

Source from the content-addressed store, hash-verified

3428individual tooltips on the editor.
3429*/
3430interface Tooltip {
3431 /**
3432 The document position at which to show the tooltip.
3433 */
3434 pos: number;
3435 /**
3436 The end of the range annotated by this tooltip, if different
3437 from `pos`.
3438 */
3439 end?: number;
3440 /**
3441 A constructor function that creates the tooltip's [DOM
3442 representation](https://codemirror.net/6/docs/ref/#view.TooltipView).
3443 */
3444 create(view: EditorView): TooltipView;
3445 /**
3446 Whether the tooltip should be shown above or below the target
3447 position. Not guaranteed to be respected for hover tooltips
3448 since all hover tooltips for the same range are always
3449 positioned together. Defaults to false.
3450 */
3451 above?: boolean;
3452 /**
3453 Whether the `above` option should be honored when there isn't
3454 enough space on that side to show the tooltip inside the
3455 viewport. Defaults to false.
3456 */
3457 strictSide?: boolean;
3458 /**
3459 When set to true, show a triangle connecting the tooltip element
3460 to position `pos`.
3461 */
3462 arrow?: boolean;
3463 /**
3464 By default, tooltips are hidden when their position is outside
3465 of the visible editor content. Set this to false to turn that
3466 off.
3467 */
3468 clip?: boolean;
3469}
3470/**
3471Describes the way a tooltip is displayed.
3472*/

Callers 8

tFunction · 0.65
rFunction · 0.65
fFunction · 0.65
yFunction · 0.65
HFunction · 0.65
hFunction · 0.65
dFunction · 0.65

Implementers 15

ifrontend-dist/tex-svg-full.b78c0ac1.js
efrontend-dist/editor.9f609029.js
Efrontend-dist/firebase-app.b603aaa4.js
Kfrontend-dist/frontend.44dc92ac.js
Gfrontend-dist/frontend.44dc92ac.js
Jfrontend-dist/frontend.44dc92ac.js
erfrontend-dist/frontend.44dc92ac.js
eufrontend-dist/frontend.44dc92ac.js
eQfrontend-dist/frontend.44dc92ac.js
eTfrontend-dist/frontend.44dc92ac.js
eqfrontend-dist/frontend.44dc92ac.js
twfrontend-dist/frontend.44dc92ac.js

Calls

no outgoing calls

Tested by

no test coverage detected