Liking cljdoc? Tell your friends :D

web.canvas.TextMetrics

The TextMetrics interface represents the dimensions of a piece text in the canvas, as created by the CanvasRenderingContext2D.measureText()

The TextMetrics interface represents the dimensions of a piece
text in the canvas, as created by the `CanvasRenderingContext2D.measureText()`
raw docstring

actual-bounding-box-ascentcljs

(actual-bounding-box-ascent this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline attribute to the top the bounding rectangle used to render the text, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline attribute to the top
the bounding rectangle used to render the text, in CSS pixels.
sourceraw docstring

actual-bounding-box-descentcljs

(actual-bounding-box-descent this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline attribute to the bottom the bounding rectangle used to render the text, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline attribute to the bottom
the bounding rectangle used to render the text, in CSS pixels.
sourceraw docstring

actual-bounding-box-leftcljs

(actual-bounding-box-left this)

Property.

Is a double giving the distance parallel to the baseline from alignment point given by the CanvasRenderingContext2D.textAlign to the left side of the bounding rectangle of the given text, CSS pixels.

Property.

Is a double giving the distance parallel to the baseline from
alignment point given by the CanvasRenderingContext2D.textAlign
to the left side of the bounding rectangle of the given text,
CSS pixels.
sourceraw docstring

actual-bounding-box-rightcljs

(actual-bounding-box-right this)

Property.

Is a double giving the distance parallel to the baseline from alignment point given by the CanvasRenderingContext2D.textAlign to the right side of the bounding rectangle of the given text, CSS pixels.

Property.

Is a double giving the distance parallel to the baseline from
alignment point given by the CanvasRenderingContext2D.textAlign
to the right side of the bounding rectangle of the given text,
CSS pixels.
sourceraw docstring

alphabetic-baselinecljs

(alphabetic-baseline this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the alphabetic of the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the alphabetic
of the line box, in CSS pixels.
sourceraw docstring

em-height-ascentcljs

(em-height-ascent this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the top the em square in the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the top
the em square in the line box, in CSS pixels.
sourceraw docstring

em-height-descentcljs

(em-height-descent this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the bottom the em square in the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the bottom
the em square in the line box, in CSS pixels.
sourceraw docstring

font-bounding-box-ascentcljs

(font-bounding-box-ascent this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline attribute to the top the highest bounding rectangle of all the fonts used to render text, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline attribute to the top
the highest bounding rectangle of all the fonts used to render
text, in CSS pixels.
sourceraw docstring

font-bounding-box-descentcljs

(font-bounding-box-descent this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline attribute to the bottom the bounding rectangle of all the fonts used to render the text, CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline attribute to the bottom
the bounding rectangle of all the fonts used to render the text,
CSS pixels.
sourceraw docstring

hanging-baselinecljs

(hanging-baseline this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the hanging of the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the hanging
of the line box, in CSS pixels.
sourceraw docstring

ideographic-baselinecljs

(ideographic-baseline this)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the ideographic of the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the ideographic
of the line box, in CSS pixels.
sourceraw docstring

set-actual-bounding-box-ascent!cljs

(set-actual-bounding-box-ascent! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline attribute to the top the bounding rectangle used to render the text, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline attribute to the top
the bounding rectangle used to render the text, in CSS pixels.
sourceraw docstring

set-actual-bounding-box-descent!cljs

(set-actual-bounding-box-descent! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline attribute to the bottom the bounding rectangle used to render the text, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline attribute to the bottom
the bounding rectangle used to render the text, in CSS pixels.
sourceraw docstring

set-actual-bounding-box-left!cljs

(set-actual-bounding-box-left! this val)

Property.

Is a double giving the distance parallel to the baseline from alignment point given by the CanvasRenderingContext2D.textAlign to the left side of the bounding rectangle of the given text, CSS pixels.

Property.

Is a double giving the distance parallel to the baseline from
alignment point given by the CanvasRenderingContext2D.textAlign
to the left side of the bounding rectangle of the given text,
CSS pixels.
sourceraw docstring

set-actual-bounding-box-right!cljs

(set-actual-bounding-box-right! this val)

Property.

Is a double giving the distance parallel to the baseline from alignment point given by the CanvasRenderingContext2D.textAlign to the right side of the bounding rectangle of the given text, CSS pixels.

Property.

Is a double giving the distance parallel to the baseline from
alignment point given by the CanvasRenderingContext2D.textAlign
to the right side of the bounding rectangle of the given text,
CSS pixels.
sourceraw docstring

set-alphabetic-baseline!cljs

(set-alphabetic-baseline! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the alphabetic of the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the alphabetic
of the line box, in CSS pixels.
sourceraw docstring

set-em-height-ascent!cljs

(set-em-height-ascent! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the top the em square in the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the top
the em square in the line box, in CSS pixels.
sourceraw docstring

set-em-height-descent!cljs

(set-em-height-descent! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the bottom the em square in the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the bottom
the em square in the line box, in CSS pixels.
sourceraw docstring

set-font-bounding-box-ascent!cljs

(set-font-bounding-box-ascent! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline attribute to the top the highest bounding rectangle of all the fonts used to render text, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline attribute to the top
the highest bounding rectangle of all the fonts used to render
text, in CSS pixels.
sourceraw docstring

set-font-bounding-box-descent!cljs

(set-font-bounding-box-descent! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline attribute to the bottom the bounding rectangle of all the fonts used to render the text, CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline attribute to the bottom
the bounding rectangle of all the fonts used to render the text,
CSS pixels.
sourceraw docstring

set-hanging-baseline!cljs

(set-hanging-baseline! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the hanging of the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the hanging
of the line box, in CSS pixels.
sourceraw docstring

set-ideographic-baseline!cljs

(set-ideographic-baseline! this val)

Property.

Is a double giving the distance from the horizontal line indicated the CanvasRenderingContext2D.textBaseline property to the ideographic of the line box, in CSS pixels.

Property.

Is a double giving the distance from the horizontal line indicated
the CanvasRenderingContext2D.textBaseline property to the ideographic
of the line box, in CSS pixels.
sourceraw docstring

widthcljs

(width this)

Property.

[Read Only]

The read-only width property of the web.canvas.TextMetrics contains the text's advance width (the width of that inline box) CSS pixels.

var width = metrics.width;

See also: https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/width

Property.

[Read Only]

The read-only width property of the `web.canvas.TextMetrics`
contains the text's advance width (the width of that inline box)
CSS pixels.

`var width = metrics.width;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/width`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close