docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
/**
* Creates a triangle at the extremity.
*/
| <mask> */
<mask> static get RoundCap() { return Lines2D._roundCap; }
<mask> static get TriangleCap() { return Lines2D._triangleCap; }
<mask>
<mask> /**
<mask> * Creates a Square anchor at the extremity, the square size is twice the thickness of the line
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Creates a Square anchor at the extremity, the square size is twice the thickness of the line
*/
| <mask> /**
<mask> * Creates a triangle at the extremity.
<mask> */
<mask> static get TriangleCap() { return Lines2D._triangleCap; }
<mask> static get SquareAnchorCap() { return Lines2D._squareAnchorCap; }
<mask>
<mask> /**
<mask> * Creates a round anch... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Creates a round anchor at the extremity, the diameter is twice the thickness of the line
*/
| <mask> * Creates a Square anchor at the extremity, the square size is twice the thickness of the line
<mask> */
<mask> static get SquareAnchorCap() { return Lines2D._squareAnchorCap; }
<mask> static get RoundAnchorCap() { return Lines2D._roundAnchorCap; }
<mask>
<mask> /... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Creates a diamond anchor at the extremity.
*/
| <mask> */
<mask> static get RoundAnchorCap() { return Lines2D._roundAnchorCap; }
<mask> static get DiamondAnchorCap() { return Lines2D._diamondAnchorCap; }
<mask>
<mask> /**
<mask> * Creates an arrow anchor at the extremity. the arrow base size is twice the thickness of ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Creates an arrow anchor at the extremity. the arrow base size is twice the thickness of the line
*/
| <mask> * Creates a diamond anchor at the extremity.
<mask> */
<mask> static get DiamondAnchorCap() { return Lines2D._diamondAnchorCap; }
<mask> static get ArrowCap() { return Lines2D._arrowCap; }
<mask>
<mask> public static pointsProperty: Prim2DPropInfo;
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Get the list of points that define the Lines2D primitive. You shouldn't try to change the list or its content. it's not supported right now.
*/
| <mask>
<mask> @modelLevelProperty(Shape2D.SHAPE2D_PROPCOUNT + 1, pi => Lines2D.pointsProperty = pi)
<mask> public get points(): Vector2[] {
<mask> return this._points;
<mask> }
<mask>
<mask> public set points(value: Vector2[]) {
<mask> this._points = val... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Get the thickness of the line. You shouldn't try to change this value, it's not supported right now.
*/
| <mask>
<mask> @modelLevelProperty(Shape2D.SHAPE2D_PROPCOUNT + 2, pi => Lines2D.fillThicknessProperty = pi)
<mask> public get fillThickness(): number {
<mask> return this._fillThickness;
<mask> }
<mask>
<mask> public set fillThickness(value: number) {
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Get if the Lines2D is a closed shape (true) or an opened one (false).
* Don't change this property, setter is for internal purpose only.
*/
| <mask>
<mask> @modelLevelProperty(Shape2D.SHAPE2D_PROPCOUNT + 3, pi => Lines2D.closedProperty = pi)
<mask> public get closed(): boolean {
<mask> return this._closed;
<mask> }
<mask>
<mask> public set closed(value: boolean) {
<mask> this._closed = value;
... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Get the start cap of the line. You shouldn't try to change this value, it's not supported right now.
*/
| <mask> }
<mask>
<mask> @modelLevelProperty(Shape2D.SHAPE2D_PROPCOUNT + 4, pi => Lines2D.startCapProperty = pi)
<mask> public get startCap(): number {
<mask> return this._startCap;
<mask> }
<mask>
<mask> public set startCap(value: number) {
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
/**
* Get the end cap of the line. You shouldn't try to change this value, it's not supported right now.
*/
| <mask> }
<mask>
<mask> @modelLevelProperty(Shape2D.SHAPE2D_PROPCOUNT + 5, pi => Lines2D.endCapProperty = pi)
<mask> public get endCap(): number {
<mask> return this._endCap;
<mask> }
<mask>
<mask> public set endCap(value: number) {
<mask> this._... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
<mask> }
<mask>
<mask> /**
<mask> * Create an 2D Lines Shape primitive. The defined lines may be opened or closed (see below)
<mask> * @param parent the parent primitive, must be a valid primitive (or the Canvas)
<mask> * @param points an array that describe the points ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts | |
* @param settings a combination of settings, possible ones are
* - parent: the parent primitive/canvas, must be specified if the primitive is not constructed as a child of another one (i.e. as part of the children array setting)
* - children: an array of direct children
| <mask> /**
<mask> * Create an 2D Lines Shape primitive. The defined lines may be opened or closed (see below)
<mask> * @param parent the parent primitive, must be a valid primitive (or the Canvas)
<mask> * @param points an array that describe the points to use to draw the line, mu... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
* - rotation: the initial rotation (in radian) of the primitive. default is 0
* - scale: the initial scale of the primitive. default is 1
| <mask> * - children: an array of direct children
<mask> * - id a text identifier, for information purpose
<mask> * - position: the X & Y positions relative to its parent. Alternatively the x and y properties can be set. Default is [0;0]
<mask> * - origin: define the normalize... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
* - startCap: Draw a cap of the given type at the start of the first line, you can't define a Cap if the Lines2D is closed. Default is Lines2D.NoCap.
* - endCap: Draw a cap of the given type at the end of the last line, you can't define a Cap if the Lines2D is closed. Default is Lines2D.NoCap.
... | <mask> * - position: the X & Y positions relative to its parent. Alternatively the x and y properties can be set. Default is [0;0]
<mask> * - origin: define the normalized origin point location, default [0.5;0.5]
<mask> * - fillThickness: the thickness of the fill part of the line, can ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
* - marginTop: top margin, can be a number (will be pixels) or a string (see PrimitiveThickness.fromString)
* - marginLeft: left margin, can be a number (will be pixels) or a string (see PrimitiveThickness.fromString)
* - marginRight: right margin, can be a number (will be pixels) or a s... | <mask> * - fill: the brush used to draw the fill content of the lines, you can set null to draw nothing (but you will have to set a border brush), default is a SolidColorBrush of plain white.
<mask> * - border: the brush used to draw the border of the lines, you can set null to draw nothing (but y... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
rotation ?: number,
scale ?: number,
| <mask> id ?: string,
<mask> position ?: Vector2,
<mask> x ?: number,
<mask> y ?: number,
<mask> origin ?: Vector2,
<mask> fillThickness ?: number,
<mask> closed ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts |
<mask> paddingLeft ?: number | string,
<mask> paddingRight ?: number | string,
<mask> paddingBottom ?: number | string,
<mask> padding ?: string,
<mask> paddingHAlignment?: number,
<mask> paddingVAlignment?: number,
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.lines2d.ts | |
/**
* Defines the horizontal and vertical alignment information for a Primitive.
*/
| <mask> }
<mask>
<mask> export class PrimitiveAlignment {
<mask> constructor(changeCallback: () => void) {
<mask> this._changedCallback = changeCallback;
<mask> this._horizontal = PrimitiveAlignment.AlignLeft;
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawin... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Alignment is made relative to the left edge of the Primitive. Valid for horizontal alignment only.
*/
public static get AlignLeft(): number { return PrimitiveAlignment._AlignLeft; }
/**
* Alignment is made relative to the top edge of the Primitive. Valid f... | <mask> this._horizontal = PrimitiveAlignment.AlignLeft;
<mask> this._vertical = PrimitiveAlignment.AlignBottom;
<mask> }
<mask>
<mask> public static get AlignLeft(): number { return PrimitiveAlignment._AlignLeft; }
<mask> public static get AlignTop(): numb... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the horizontal alignment. Use one of the AlignXXX static properties of this class
*/
| <mask> private static _AlignCenter = 3;
<mask> private static _AlignStretch = 4;
<mask>
<mask> public get horizontal(): number {
<mask> return this._horizontal;
<mask> }
<mask>
<mask> public set horizontal(value: number) {
<mask> if (this._hori... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the vertical alignment. Use one of the AlignXXX static properties of this class
*/
| <mask> }
<mask>
<mask> public get vertical(): number {
<mask> return this._vertical;
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the right place in case of multi-line
* Fix textSize null case
* Canvas2D: enhance... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Set the horizontal alignment from a string value.
* @param text can be either: 'left','right','center','stretch'
*/
| <mask> private _vertical: number;
<mask>
<mask> setHorizontal(text: string) {
<mask> let v = text.trim().toLocaleLowerCase();
<mask> switch (v) {
<mask> case "left":
<mask> this.horizontal = PrimitiveAlignment.AlignLeft;
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Set the vertical alignment from a string value.
* @param text can be either: 'top','bottom','center','stretch'
*/
| <mask> }
<mask>
<mask> setVertical(text: string) {
<mask> let v = text.trim().toLocaleLowerCase();
<mask> switch (v) {
<mask> case "top":
<mask> this.vertical = PrimitiveAlignment.AlignTop;
</s> Canvas2D: Inline doc updated (#1201)
* ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Set the horizontal and or vertical alignments from a string value.
* @param text can be: [<h:|horizontal:><left|right|center|stretch>], [<v:|vertical:><top|bottom|center|stretch>]
*/
| <mask> }
<mask>
<mask> fromString(value: string) {
<mask> let m = value.trim().split(",");
<mask> for (let v of m) {
<mask> v = v.toLocaleLowerCase().trim();
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Define a thickness toward every edges of a Primitive to allow margin and padding.
* The thickness can be expressed as pixels, percentages, inherit the value of the parent primitive or be auto.
*/
| <mask> }
<mask> }
<mask>
<mask> export class PrimitiveThickness {
<mask> constructor(parentAccess: () => PrimitiveThickness, changedCallback: () => void) {
<mask> this._parentAccess = parentAccess;
<mask> this._changedCallback = changedCallback;
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Set the thickness from a string value
* @param thickness format is "top: <value>, left:<value>, right:<value>, bottom:<value>" each are optional, auto will be set if it's omitted.
* Values are: 'auto', 'inherit', 'XX%' for percentage, 'XXpx' or 'XX' for pixels.
*/
... | <mask> this._pixels[2] = 0;
<mask> this._pixels[3] = 0;
<mask> }
<mask>
<mask> public fromString(margin: string) {
<mask> this._clear();
<mask>
<mask> let m = margin.trim().split(",");
<mask>
<mask> let res = false;
</s> Canvas2D:... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
let m = thickness.trim().split(",");
| <mask>
<mask> public fromString(margin: string) {
<mask> this._clear();
<mask>
<mask> let m = margin.trim().split(",");
<mask>
<mask> let res = false;
<mask> for (let cm of m) {
<mask> res = this._extractString(cm, false) || res;
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Set the thickness from multiple string
* Possible values are: 'auto', 'inherit', 'XX%' for percentage, 'XXpx' or 'XX' for pixels.
* @param top the top thickness to set
* @param left the left thickness to set
* @param right the right thickness to set
... | <mask> this._changedCallback();
<mask>
<mask> }
<mask>
<mask> public fromStrings(top: string, left: string, right: string, bottom: string): PrimitiveThickness {
<mask> this._clear();
<mask>
<mask> this._setStringValue(top, 0, false);
<mask> thi... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Set the thickness from pixel values
* @param top the top thickness in pixels to set
* @param left the left thickness in pixels to set
* @param right the right thickness in pixels to set
* @param bottom the bottom thickness in pixels to set
*/
| <mask> }
<mask>
<mask> public fromPixels(top: number, left: number, right: number, bottom: number): PrimitiveThickness {
<mask> this._clear();
<mask>
<mask> this._pixels[0] = top;
<mask> this._pixels[1] = left;
<mask> this._pixels[2] = right;
</... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Apply the same pixel value to all edges
* @param margin the value to set, in pixels.
*/
| <mask> this._changedCallback();
<mask> return this;
<mask> }
<mask>
<mask> public fromUniformPixels(margin: number): PrimitiveThickness {
<mask> this._clear();
<mask>
<mask> this._pixels[0] = margin;
</s> Canvas2D: Inline doc updated (#1201)
* ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Set all edges in auto
*/
| <mask> }
<mask>
<mask> public auto(): PrimitiveThickness {
<mask> this._clear();
<mask>
<mask> this._flags = (PrimitiveThickness.Auto << 0) | (PrimitiveThickness.Auto << 4) | (PrimitiveThickness.Auto << 8) | (PrimitiveThickness.Auto << 12);
<mask> this._pixel... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the top thickness. Possible values are: 'auto', 'inherit', 'XX%' for percentage, 'XXpx' or 'XX' for pixels.
*/
| <mask> }
<mask>
<mask> public get top(): string {
<mask> return this._getStringValue(0);
<mask> }
<mask>
<mask> public set top(value: string) {
<mask> this._setStringValue(value, 0, true);
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the left thickness. Possible values are: 'auto', 'inherit', 'XX%' for percentage, 'XXpx' or 'XX' for pixels.
*/
| <mask> this._setStringValue(value, 0, true);
<mask> }
<mask>
<mask> public get left(): string {
<mask> return this._getStringValue(1);
<mask> }
<mask>
<mask> public set left(value: string) {
<mask> this._setStringValue(value, 1, true);
</s>... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the right thickness. Possible values are: 'auto', 'inherit', 'XX%' for percentage, 'XXpx' or 'XX' for pixels.
*/
| <mask> public set left(value: string) {
<mask> this._setStringValue(value, 1, true);
<mask> }
<mask>
<mask> public get right(): string {
<mask> return this._getStringValue(2);
<mask> }
<mask>
<mask> public set right(value: string) {
</s> Canvas... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the bottom thickness. Possible values are: 'auto', 'inherit', 'XX%' for percentage, 'XXpx' or 'XX' for pixels.
*/
| <mask> public set right(value: string) {
<mask> this._setStringValue(value, 2, true);
<mask> }
<mask>
<mask> public get bottom(): string {
<mask> return this._getStringValue(3);
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text dr... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the top thickness in pixel.
*/
| <mask> public set bottom(value: string) {
<mask> this._setStringValue(value, 3, true);
<mask> }
<mask>
<mask> public get topPixels(): number {
<mask> return this._pixels[0];
<mask> }
<mask>
<mask> public set topPixels(value: number) {
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the left thickness in pixel.
*/
| <mask> public set topPixels(value: number) {
<mask> this._setPixels(value, 0, true);
<mask>
<mask> }
<mask> public get leftPixels(): number {
<mask> return this._pixels[1];
<mask> }
<mask>
<mask> public set leftPixels(value: number) {
</s> Canv... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the right thickness in pixel.
*/
| <mask> this._setPixels(value, 1, true);
<mask>
<mask> }
<mask> public get rightPixels(): number {
<mask> return this._pixels[2];
<mask> }
<mask>
<mask> public set rightPixels(value: number) {
</s> Canvas2D: Inline doc updated (#1201)
* Change text draw... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the bottom thickness in pixel.
*/
| <mask> this._setPixels(value, 2, true);
<mask>
<mask> }
<mask> public get bottomPixels(): number {
<mask> return this._pixels[3];
<mask> }
<mask>
<mask> public set bottomPixels(value: number) {
</s> Canvas2D: Inline doc updated (#1201)
* Change text dr... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the top thickness in percentage.
* The get will return a valid value only if the edge type is percentage.
* The Set will change the edge mode if needed
*/
| <mask>
<mask> }
<mask>
<mask> public get topPercentage(): number {
<mask> return this._percentages[0];
<mask> }
<mask>
<mask> public set topPercentage(value: number) {
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the right ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the left thickness in percentage.
* The get will return a valid value only if the edge mode is percentage.
* The Set will change the edge mode if needed
*/
| <mask>
<mask> }
<mask> public get leftPercentage(): number {
<mask> return this._percentages[1];
<mask> }
<mask>
<mask> public set leftPercentage(value: number) {
<mask> this._setPercentage(value, 1, true);
</s> Canvas2D: Inline doc updated (#1201)
* C... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the right thickness in percentage.
* The get will return a valid value only if the edge mode is percentage.
* The Set will change the edge mode if needed
*/
| <mask> this._setPercentage(value, 1, true);
<mask>
<mask> }
<mask> public get rightPercentage(): number {
<mask> return this._percentages[2];
<mask> }
<mask>
<mask> public set rightPercentage(value: number) {
</s> Canvas2D: Inline doc updated (#1201)
*... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the bottom thickness in percentage.
* The get will return a valid value only if the edge mode is percentage.
* The Set will change the edge mode if needed
*/
| <mask> this._setPercentage(value, 2, true);
<mask>
<mask> }
<mask> public get bottomPercentage(): number {
<mask> return this._percentages[3];
<mask> }
<mask>
<mask> public set bottomPercentage(value: number) {
<mask> this._setPercentage(val... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the top mode. The setter shouldn't be used, other setters with value should be preferred
*/
| <mask> this._setPercentage(value, 3, true);
<mask>
<mask> }
<mask> public get topMode(): number {
<mask> return this._getType(0, false);
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the right place in case... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
<mask> public get topMode(): number {
<mask> return this._getType(0, false);
<mask> }
<mask>
<mask> public get leftMode(): number {
<mask> return this._getType(1, false);
<mask> }
<mask>
<mask> public get rightMode(): number {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts | |
/**
* Get/set the left mode. The setter shouldn't be used, other setters with value should be preferred
*/
public get leftMode(): number {
return this._getType(1, false);
}
| <mask> public set topMode(mode: number) {
<mask> this._setType(0, mode);
<mask> }
<mask>
<mask> public set leftMode(mode: number) {
<mask> this._setType(1, mode);
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the right mode. The setter shouldn't be used, other setters with value should be preferred
*/
public get rightMode(): number {
return this._getType(2, false);
}
| <mask> public set leftMode(mode: number) {
<mask> this._setType(1, mode);
<mask> }
<mask>
<mask> public set rightMode(mode: number) {
<mask> this._setType(2, mode);
<mask> }
<mask>
<mask> /**
<mask> * Get/set the bottom mode. The sette... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the bottom mode. The setter shouldn't be used, other setters with value should be preferred
*/
public get bottomMode(): number {
return this._getType(3, false);
}
| <mask> this._setType(2, mode);
<mask> }
<mask>
<mask> public set bottomMode(mode: number) {
<mask> this._setType(3, mode);
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the right place in case of multi-line... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Compute the positioning/size of an area considering the thickness of this object and a given alignment
* @param sourceArea the source area
* @param contentSize the content size to position/resize
* @param alignment the alignment setting
* @param dstOffset ... | <mask> }
<mask> }
<mask>
<mask> public computeWithAlignment(sourceArea: Size, contentSize: Size, alignment: PrimitiveAlignment, dstOffset: Vector2, dstArea: Size) {
<mask> // Fetch some data
<mask> let topType = this._getType(0, true);
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Compute an area and its position considering this thickness properties based on a given source area
* @param sourceArea the source area
* @param dstOffset the position of the resulting area
* @param dstArea the size of the resulting area
*/
| <mask> }
<mask>
<mask> public compute(sourceArea: Size, dstOffset: Vector2, dstArea: Size) {
<mask> this._computePixels(0, sourceArea, true);
<mask> this._computePixels(1, sourceArea, true);
<mask> this._computePixels(2, sourceArea, true);
<mask> t... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Compute an area considering this thickness properties based on a given source area
* @param sourceArea the source area
* @param result the resulting area
*/
| <mask> dstArea.height = sourceArea.height - (dstOffset.y + this.topPixels);
<mask> }
<mask>
<mask> computeArea(sourceArea: Size, result: Size) {
<mask> this._computePixels(0, sourceArea, true);
<mask> this._computePixels(1, sourceArea, true);
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
* Setting this property may have no effect is specific alignment are in effect.
| <mask> * BEWARE: if you change only position.x or y it won't trigger a property change and you won't have the expected behavior.
<mask> * Use this property to set a new Vector2 object, otherwise to change only the x/y use Prim2DBase.x or y properties.
<mask> */
<mask> @dynamicLeve... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
<mask> public get actualZOffset(): number {
<mask> return this._zOrder || (1 - this._hierarchyDepthOffset);
<mask> }
<mask>
<mask> @dynamicLevelProperty(5, pi => Prim2DBase.originProperty = pi, false, true)
<mask> public set origin(value: Vector2) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts | |
* The origin defines the normalized coordinate of the center of the primitive, from the bottom/left corner.
| <mask> this._parentLayoutDirty();
<mask> }
<mask>
<mask> /**
<mask> * The origin defines the normalized coordinate of the center of the primitive, from the top/left corner.
<mask> * The origin is used only to compute transformation of the primitive, it has no meaning... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
@dynamicLevelProperty(5, pi => Prim2DBase.originProperty = pi, false, true)
public set origin(value: Vector2) {
this._origin = value;
}
| <mask> public get origin(): Vector2 {
<mask> return this._origin;
<mask> }
<mask>
<mask> @dynamicLevelProperty(6, pi => Prim2DBase.levelVisibleProperty = pi)
<mask> /**
<mask> * Let the user defines if the Primitive is hidden or not at its level. As Primitive... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the layout engine to use for this primitive.
* The default layout engine is the CanvasLayoutEngine.
*/
| <mask> }
<mask> return this._marginAlignment;
<mask> }
<mask>
<mask> public get layoutEngine(): LayoutEngineBase {
<mask> if (!this._layoutEngine) {
<mask> this._layoutEngine = CanvasLayoutEngine.Singleton;
<mask> }
</s> Canvas2D:... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the layout are of this primitive.
* The Layout area is the zone allocated by the Layout Engine for this particular primitive. Margins/Alignment will be computed based on this area.
* The setter should only be called by a Layout Engine class.
*/
| <mask> }
<mask>
<mask> public get layoutArea(): Size {
<mask> return this._layoutArea;
<mask> }
<mask>
<mask> public set layoutArea(val: Size) {
<mask> if (this._layoutArea.equals(val)) {
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get/set the layout area position (relative to the parent primitive).
* The setter should only be called by a Layout Engine class.
*/
| <mask> this._layoutArea = val;
<mask> }
<mask>
<mask> public get layoutAreaPos(): Vector2 {
<mask> return this._layoutAreaPos;
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the right place in case of multi-... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Dispose the primitive, remove it from its parent.
*/
| <mask> }
<mask>
<mask> public dispose(): boolean {
<mask> if (!super.dispose()) {
<mask> return false;
<mask> }
<mask>
<mask> if (this._actionManager) {
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to th... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* Get the content are of this primitive, this area is computed using the padding property and also possibly the primitive type itself.
* Children of this primitive will be positioned relative to the bottom/left corner of this area.
*/
| <mask> }
<mask>
<mask> public get contentArea(): Size {
<mask> // Check for positioning update
<mask> if (this._isFlagSet(SmartPropertyPrim.flagPositioningDirty)) {
<mask> this._updatePositioning();
<mask>
<mask> this._clearFlags(SmartPro... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.prim2dBase.ts |
/**
* The Rectangle Primitive type
*/
| <mask> }
<mask>
<mask> @className("Rectangle2D")
<mask> export class Rectangle2D extends Shape2D {
<mask>
<mask> public static actualSizeProperty: Prim2DPropInfo;
<mask> public static notRoundedProperty: Prim2DPropInfo;
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawi... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts |
/**
* Get/set the rectangle size (width/height)
*/
| <mask> public static roundRadiusProperty: Prim2DPropInfo;
<mask>
<mask> @instanceLevelProperty(Shape2D.SHAPE2D_PROPCOUNT + 1, pi => Rectangle2D.actualSizeProperty = pi, false, true)
<mask> public get actualSize(): Size {
<mask> if (this._actualSize) {
<mask> re... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts |
/**
* Get if the rectangle is notRound (returns true) or rounded (returns false).
* Don't use the setter, it's for internal purpose only
*/
| <mask> }
<mask>
<mask> @modelLevelProperty(Shape2D.SHAPE2D_PROPCOUNT + 2, pi => Rectangle2D.notRoundedProperty = pi)
<mask> public get notRounded(): boolean {
<mask> return this._notRounded;
<mask> }
<mask>
<mask> public set notRounded(value: boolean) {
<ma... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts |
/**
* Get/set the round Radius, a value of 0 for a sharp edges rectangle, otherwise the value will be used as the diameter of the round to apply on corder. The Rectangle2D.notRounded property will be updated accordingly.
*/
| <mask>
<mask> @instanceLevelProperty(Shape2D.SHAPE2D_PROPCOUNT + 3, pi => Rectangle2D.roundRadiusProperty = pi)
<mask> public get roundRadius(): number {
<mask> return this._roundRadius;
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing startin... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts |
* @param settings a combination of settings, possible ones are
* - parent: the parent primitive/canvas, must be specified if the primitive is not constructed as a child of another one (i.e. as part of the children array setting)
* - children: an array of direct children
| <mask> }
<mask>
<mask> /**
<mask> * Create an Rectangle 2D Shape primitive. May be a sharp rectangle (with sharp corners), or a rounded one.
<mask> * @param parent the parent primitive, must be a valid primitive (or the Canvas)
<mask> * options:
<mask> * - id... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts |
* - position: the X & Y positions relative to its parent. Alternatively the x and y settings can be set. Default is [0;0]
* - rotation: the initial rotation (in radian) of the primitive. default is 0
* - scale: the initial scale of the primitive. default is 1
| <mask> * Create an Rectangle 2D Shape primitive. May be a sharp rectangle (with sharp corners), or a rounded one.
<mask> * @param parent the parent primitive, must be a valid primitive (or the Canvas)
<mask> * options:
<mask> * - id a text identifier, for information purpose
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts |
* - size: the size of the group. Alternatively the width and height settings can be set. Default will be [10;10].
* - roundRadius: if the rectangle has rounded corner, set their radius, default is 0 (to get a sharp edges rectangle).
* - fill: the brush used to draw the fill content of th... | <mask> * options:
<mask> * - id a text identifier, for information purpose
<mask> * - position: the X & Y positions relative to its parent. Alternatively the x and y properties can be set. Default is [0;0]
<mask> * - origin: define the normalized origin point location, default... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts |
* - marginTop: top margin, can be a number (will be pixels) or a string (see PrimitiveThickness.fromString)
* - marginLeft: left margin, can be a number (will be pixels) or a string (see PrimitiveThickness.fromString)
* - marginRight: right margin, can be a number (will be pixels) or a s... | <mask> * - fill: the brush used to draw the fill content of the ellipse, you can set null to draw nothing (but you will have to set a border brush), default is a SolidColorBrush of plain white.
<mask> * - border: the brush used to draw the border of the ellipse, you can set null to draw nothing (b... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts |
<mask> paddingLeft ?: number | string,
<mask> paddingRight ?: number | string,
<mask> paddingBottom ?: number | string,
<mask> padding ?: string,
<mask> paddingHAlignment?: number,
<mask> paddingVAlignment?: number,
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.rectangle2d.ts | |
/**
* The abstract class for primitive that render into the Canvas2D
*/
export abstract class RenderablePrim2D extends Prim2DBase {
| <mask>
<mask> }
<mask>
<mask> @className("RenderablePrim2D")
<mask> export class RenderablePrim2D extends Prim2DBase {
<mask> static RENDERABLEPRIM2D_PROPCOUNT: number = Prim2DBase.PRIM2DBASE_PROPCOUNT + 5;
<mask>
<mask> public static isAlphaTestProperty: Prim2DPropInfo;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.renderablePrim2d.ts |
/**
* Get/set if the Primitive is from the AlphaTest rendering category.
* The AlphaTest category is the rendering pass with alpha blend, depth compare and write activated.
* Primitives that render with an alpha mask should be from this category.
* The setter should be us... | <mask>
<mask> @dynamicLevelProperty(Prim2DBase.PRIM2DBASE_PROPCOUNT + 0, pi => RenderablePrim2D.isAlphaTestProperty = pi)
<mask> public get isAlphaTest(): boolean {
<mask> return this._isAlphaTest;
<mask> }
<mask>
<mask> public set isAlphaTest(value: boolean) {
</s>... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.renderablePrim2d.ts |
/**
* Get/set if the Primitive is from the Transparent rendering category.
* The setter should be used only by implementers of new primitive type.
*/
| <mask> }
<mask>
<mask> @dynamicLevelProperty(Prim2DBase.PRIM2DBASE_PROPCOUNT + 1, pi => RenderablePrim2D.isTransparentProperty = pi)
<mask> public get isTransparent(): boolean {
<mask> return this._isTransparent;
<mask> }
<mask>
<mask> public set isTranspare... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.renderablePrim2d.ts |
/**
* Dispose the primitive and its resources, remove it from its parent
*/
| <mask> this._transparentPrimitiveInfo = null;
<mask> }
<mask>
<mask> public dispose(): boolean {
<mask> if (!super.dispose()) {
<mask> return false;
<mask> }
<mask>
<mask> if (this._transparentPrimitiveInfo) {
</s> Canvas2D: Inl... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.renderablePrim2d.ts |
/**
* Get/set the brush to render the Border part of the Primitive
*/
| <mask> public static borderThicknessProperty: Prim2DPropInfo;
<mask>
<mask> @modelLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 1, pi => Shape2D.borderProperty = pi, true)
<mask> public get border(): IBrush2D {
<mask> return this._border;
<mask> }
<mask>... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.shape2d.ts |
/**
* Get/set the brush to render the Fill part of the Primitive
*/
| <mask> }
<mask>
<mask> @modelLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 2, pi => Shape2D.fillProperty = pi, true)
<mask> public get fill(): IBrush2D {
<mask> return this._fill;
<mask> }
<mask>
<mask> public set fill(value: IBrush2D) {
</s> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.shape2d.ts |
/**
* Get/set the thickness of the border part.
*/
| <mask>
<mask> @instanceLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 3, pi => Shape2D.borderThicknessProperty = pi)
<mask> public get borderThickness(): number {
<mask> return this._borderThickness;
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* C... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.shape2d.ts |
/**
* Custom type of the propertyChanged observable
*/
| <mask> }
<mask>
<mask> export class PropertyChangedInfo {
<mask> /**
<mask> * Previous value of the property
<mask> */
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the right place in case of multi-line
* Fix textSize null case
* Ca... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Previous value of the property
*/
| <mask> /**
<mask> * Custom type of the propertyChanged observable
<mask> */
<mask> export class PropertyChangedInfo {
<mask> oldValue: any;
<mask> /**
<mask> * New value of the property
<mask> */
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawin... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* New value of the property
*/
| <mask> /**
<mask> * Previous value of the property
<mask> */
<mask> oldValue: any;
<mask> newValue: any;
<mask>
<mask> /**
<mask> * Name of the property that changed its value
<mask> */
<mask> propertyName: string;
</s> Canvas2D: In... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Name of the property that changed its value
*/
| <mask> */
<mask> newValue: any;
<mask> propertyName: string;
<mask> }
<mask>
<mask> /**
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the right place in case of multi-line
* Fix textSize null case
* Canvas2D: enhance text rendering q... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Property Changed interface
*/
| <mask> }
<mask>
<mask> export interface IPropertyChanged {
<mask> /**
<mask> * PropertyChanged observable
<mask> */
<mask> propertyChanged: Observable<PropertyChangedInfo>;
<mask> }
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* PropertyChanged observable
*/
| <mask> /**
<mask> * Property Changed interface
<mask> */
<mask> export interface IPropertyChanged {
<mask> propertyChanged: Observable<PropertyChangedInfo>;
<mask> }
<mask>
<mask> export class ClassTreeInfo<TClass, TProp>{
</s> Canvas2D: Inline doc updated (#1201)
* Change t... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Base class of the primitives, implementing core crosscutting features
*/
export abstract class SmartPropertyPrim implements IPropertyChanged {
| <mask> private _classContentFactory: (base: TClass) => TClass;
<mask> }
<mask>
<mask> @className("SmartPropertyPrim")
<mask> export class SmartPropertyPrim implements IPropertyChanged {
<mask>
<mask> constructor() {
<mask> this._flags = 0;
<mask> this._mode... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Check if a given flag is set
* @param flag the flag value
* @return true if set, false otherwise
*/
| <mask> return this._externalData.remove(key);
<mask> }
<mask>
<mask> public _isFlagSet(flag: number): boolean {
<mask> return (this._flags & flag) !== 0;
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the ri... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Check if all given flags are set
* @param flags the flags ORed
* @return true if all the flags are set, false otherwise
*/
| <mask> return (this._flags & flag) !== 0;
<mask> }
<mask>
<mask> public _areAllFlagsSet(flags: number): boolean {
<mask> return (this._flags & flags) === flags;
<mask> }
<mask>
<mask> /**
<mask> * Check if at least one flag of the given flags i... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Check if at least one flag of the given flags is set
* @param flags the flags ORed
* @return true if at least one flag is set, false otherwise
*/
| <mask> return (this._flags & flags) === flags;
<mask> }
<mask>
<mask> public _areSomeFlagsSet(flags: number): boolean {
<mask> return (this._flags & flags) !== 0;
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Clear the given flags
* @param flags the flags to clear
*/
| <mask> return (this._flags & flags) !== 0;
<mask> }
<mask>
<mask> public _clearFlags(flags: number) {
<mask> this._flags &= ~flags;
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starting location to the right place in case of m... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Set the given flags to true state
* @param flags the flags ORed to set
* @return the flags state before this call
*/
| <mask> public _clearFlags(flags: number) {
<mask> this._flags &= ~flags;
<mask> }
<mask>
<mask> public _setFlags(flags: number): number {
<mask> let cur = this._flags;
<mask> this._flags |= flags;
<mask> return cur;
<mask> }
<mas... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Change the state of the given flags
* @param flags the flags ORed to change
* @param state true to set them, false to clear them
*/
| <mask> }
<mask>
<mask> public _changeFlags(flags: number, state: boolean) {
<mask> if (state) {
<mask> this._flags |= flags;
<mask> } else {
<mask> this._flags &= ~flags;
<mask> }
</s> Canvas2D: Inline doc updated (#1201)
* C... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.smartPropertyPrim.ts |
/**
* Primitive that displays a Sprite/Picture
*/
| <mask>
<mask> @className("Sprite2D")
<mask> export class Sprite2D extends RenderablePrim2D {
<mask> static SPRITE2D_MAINPARTID = 1;
<mask>
<mask> public static textureProperty: Prim2DPropInfo;
<mask> public static actualSizeProperty: Prim2DPropInfo;
</s> Canvas2D: Inline doc up... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
/**
* Get/set the texture that contains the sprite to display
*/
| <mask>
<mask> @modelLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 1, pi => Sprite2D.textureProperty = pi)
<mask> public get texture(): Texture {
<mask> return this._texture;
<mask> }
<mask>
</s> Canvas2D: Inline doc updated (#1201)
* Change text drawing starti... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
/**
* Get/set the actual size of the sprite to display
*/
| <mask> this._texture = value;
<mask> }
<mask>
<mask> @instanceLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 2, pi => Sprite2D.actualSizeProperty = pi, false, true)
<mask> public get actualSize(): Size {
<mask> if (this._actualSize) {
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
/**
* Get/set the sprite location (in pixels) in the texture
*/
| <mask>
<mask> @instanceLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 3, pi => Sprite2D.spriteLocationProperty = pi)
<mask> public get spriteLocation(): Vector2 {
<mask> return this._location;
<mask> }
<mask>
<mask> public set spriteLocation(value: Vecto... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
/**
* Get/set the sprite frame to display.
* The frame number is just an offset applied horizontally, based on the sprite's width. it does not wrap, all the frames must be on the same line.
*/
| <mask> this._location = value;
<mask> }
<mask>
<mask> @instanceLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 4, pi => Sprite2D.spriteFrameProperty = pi)
<mask> public get spriteFrame(): number {
<mask> return this._spriteFrame;
<mask> }
<mas... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
/**
* Get/set if the sprite texture coordinates should be inverted on the Y axis
*/
| <mask> this._spriteFrame = value;
<mask> }
<mask>
<mask> @instanceLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 5, pi => Sprite2D.invertYProperty = pi)
<mask> public get invertY(): boolean {
<mask> return this._invertY;
<mask> }
<mask>
<ma... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
/**
* Get/set if the sprite rendering should be aligned to the target rendering device pixel or not
*/
| <mask> public set invertY(value: boolean) {
<mask> this._invertY = value;
<mask> }
<mask>
<mask> public get alignToPixel(): boolean {
<mask> return this._alignToPixel;
<mask> }
<mask>
<mask> public set alignToPixel(value: boolean) {
</s> Canvas... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
/**
* Get the animatable array (see http://doc.babylonjs.com/tutorials/Animations)
*/
| <mask> BoundingInfo2D.CreateFromSizeToRef(this.size, this._levelBoundingInfo);
<mask> }
<mask>
<mask> public getAnimatables(): IAnimatable[] {
<mask> let res = new Array<IAnimatable>();
<mask>
<mask> if (this.texture && this.texture.animations && this.texture... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
<mask> }
<mask>
<mask> /**
<mask> * Create an 2D Sprite primitive
<mask> * @param parent the parent primitive, must be a valid primitive (or the Canvas)
<mask> * @param texture the texture that stores the sprite to render
<mask> * options:
<mask> * ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts | |
* @param settings a combination of settings, possible ones are
* - parent: the parent primitive/canvas, must be specified if the primitive is not constructed as a child of another one (i.e. as part of the children array setting)
* - children: an array of direct children
| <mask> /**
<mask> * Create an 2D Sprite primitive
<mask> * @param parent the parent primitive, must be a valid primitive (or the Canvas)
<mask> * @param texture the texture that stores the sprite to render
<mask> * options:
<mask> * - id a text identifier, for... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
* - rotation: the initial rotation (in radian) of the primitive. default is 0
* - scale: the initial scale of the primitive. default is 1
| <mask> * - parent: the parent primitive/canvas, must be specified if the primitive is not constructed as a child of another one (i.e. as part of the children array setting)
<mask> * - children: an array of direct children
<mask> * - id a text identifier, for information purpose
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/60adf942fa9dc01ad9217c05cbe179d57aaaa5f4 | src/Canvas2d/babylon.sprite2d.ts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.