@openglobus/og 1.0.0-rc14 → 1.0.0-rc15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,6 +110,24 @@ declare class Geometry {
110
110
  setLineColor(r: number, g: number, b: number, a?: number): Geometry;
111
111
  setStrokeColor4v(rgba: Vec4): Geometry;
112
112
  setLineColor4v(rgba: Vec4): Geometry;
113
+ /**
114
+ * Gets geometry fill color.
115
+ * @public
116
+ * @returns {Vec4} Copy of the normalized RGBA fill color.
117
+ */
118
+ getFillColor4v(): Vec4;
119
+ /**
120
+ * Gets geometry line color.
121
+ * @public
122
+ * @returns {Vec4} Copy of the normalized RGBA line color.
123
+ */
124
+ getLineColor4v(): Vec4;
125
+ /**
126
+ * Gets geometry stroke color.
127
+ * @public
128
+ * @returns {Vec4} Copy of the normalized RGBA stroke color.
129
+ */
130
+ getStrokeColor4v(): Vec4;
113
131
  setStrokeOpacity(opacity: number): Geometry;
114
132
  setLineOpacity(opacity: number): Geometry;
115
133
  setStrokeWidth(width: number): Geometry;
@@ -3,6 +3,7 @@ import { LonLat } from "../../LonLat";
3
3
  import { Vec3 } from "../../math/Vec3";
4
4
  import type { NumberArray3 } from "../../math/Vec3";
5
5
  import type { NumberArray2 } from "../../math/Vec2";
6
+ import { Vec4 } from "../../math/Vec4";
6
7
  import type { NumberArray4 } from "../../math/Vec4";
7
8
  import type { HTMLImageElementExt } from "../../utils/ImagesCacheManager";
8
9
  import { PolylineHandler } from "./PolylineHandler";
@@ -228,6 +229,20 @@ declare class Polyline {
228
229
  * @param {string} htmlColor - HTML color.
229
230
  */
230
231
  setColorHTML(htmlColor: string): void;
232
+ /**
233
+ * Gets polyline HTML color.
234
+ * @public
235
+ * @param {number} [index=0] - Segment index.
236
+ * @returns {string | undefined} HTML color, or undefined when no color is set.
237
+ */
238
+ getColorHTML(index?: number): string | undefined;
239
+ /**
240
+ * Gets polyline color as a normalized RGBA vector.
241
+ * @public
242
+ * @param {number} [index=0] - Segment index.
243
+ * @returns {Vec4 | undefined} Normalized RGBA color, or undefined when no color is set.
244
+ */
245
+ getColor4v(index?: number): Vec4 | undefined;
231
246
  /**
232
247
  * Clear polyline data.
233
248
  * @public