From d2d03313bf9c1c8033ede15cbbe33d7abf66586b Mon Sep 17 00:00:00 2001 From: Anne Gropler Date: Tue, 20 Aug 2024 15:29:04 +0200 Subject: [PATCH] Fix documentation about default values for Label horizontal and vertical origin --- CHANGES.md | 1 + packages/engine/Source/Scene/Label.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 2b75aea7ac6d..d0934c93860b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ - Added multiscattering terms to diffuse BRDF in image-based lighting. [#12118](https://github.com/CesiumGS/cesium/pull/12118) - Fixed CallbackProperty type not being present on entity position. [#12120](https://github.com/CesiumGS/cesium/pull/12120) - Additional TypeScript types export in package.json to assist some project configurations using Cesium. [#12122](https://github.com/CesiumGS/cesium/pull/12122) +- Fixed documentation about default values for Label origins [#12139](https://github.com/CesiumGS/cesium/pull/12139) ##### Breaking Changes :mega: diff --git a/packages/engine/Source/Scene/Label.js b/packages/engine/Source/Scene/Label.js index bc10b50510ff..4c43e93824a4 100644 --- a/packages/engine/Source/Scene/Label.js +++ b/packages/engine/Source/Scene/Label.js @@ -102,8 +102,8 @@ function parseFont(label) { * @property {Cartesian2} [backgroundPadding=new Cartesian2(7, 5)] A {@link Cartesian2} Specifying the horizontal and vertical background padding in pixels. * @property {Cartesian2} [pixelOffset=Cartesian2.ZERO] A {@link Cartesian2} specifying the pixel offset in screen space from the origin of this label. * @property {Cartesian3} [eyeOffset=Cartesian3.ZERO] A {@link Cartesian3} specifying the 3D Cartesian offset applied to this label in eye coordinates. - * @property {HorizontalOrigin} [horizontalOrigin=HorizontalOrigin.CENTER] A {@link HorizontalOrigin} specifying the horizontal origin of this label. - * @property {VerticalOrigin} [verticalOrigin=VerticalOrigin.CENTER] A {@link VerticalOrigin} specifying the vertical origin of this label. + * @property {HorizontalOrigin} [horizontalOrigin=HorizontalOrigin.LEFT] A {@link HorizontalOrigin} specifying the horizontal origin of this label. + * @property {VerticalOrigin} [verticalOrigin=VerticalOrigin.BASELINE] A {@link VerticalOrigin} specifying the vertical origin of this label. * @property {HeightReference} [heightReference=HeightReference.NONE] A {@link HeightReference} specifying the height reference of this label. * @property {Color} [fillColor=Color.WHITE] A {@link Color} specifying the fill color of the label. * @property {Color} [outlineColor=Color.BLACK] A {@link Color} specifying the outline color of the label.