gl-draw 0.17.0-beta.2 → 0.17.0-beta.4

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.
@@ -1,12 +1,11 @@
1
1
  import { type GetCoordinatesArrOptions } from './getCoordinatesArr';
2
2
  export interface ConicLineOptions extends GetCoordinatesArrOptions {
3
- lineWidth: number[];
4
- start: number[];
3
+ meta?: number[][];
5
4
  useGroups?: 0 | 1 | 2;
6
5
  projection?: any;
7
6
  splitPolygons?: number;
8
7
  }
9
- declare const getAttributes: ({ coordinates, lengths, lineWidth, start, useGroups, }: ConicLineOptions) => {
8
+ declare const getAttributes: ({ coordinates, lengths, meta, useGroups, }: ConicLineOptions) => {
10
9
  message: Record<string, import("three").GeometryGroup[] | {
11
10
  array: ArrayLike<number>;
12
11
  itemSize: number;
@@ -1,8 +1,7 @@
1
1
  import { type ProjectionOptions } from "../../../utils";
2
2
  import { type GetCoordinatesArrOptions } from './getCoordinatesArr';
3
3
  export interface ConicPolygonOptions extends GetCoordinatesArrOptions {
4
- start?: number[];
5
- depth: number[];
4
+ meta?: number[][];
6
5
  useGroups?: 0 | 1 | 2;
7
6
  hasTop?: boolean;
8
7
  topFirst?: boolean;
@@ -14,7 +13,7 @@ export interface ConicPolygonOptions extends GetCoordinatesArrOptions {
14
13
  bbox?: number[];
15
14
  splitPolygons?: number;
16
15
  }
17
- declare const getAttributes: ({ coordinates, lengths, start, depth, useGroups, hasTop, topFirst, hasBottom, hasSide, cartesian, projection: projectionOptions, curvatureResolution, bbox, }: ConicPolygonOptions) => {
16
+ declare const getAttributes: ({ coordinates, lengths, meta, useGroups, hasTop, topFirst, hasBottom, hasSide, cartesian, projection: projectionOptions, curvatureResolution, bbox, }: ConicPolygonOptions) => {
18
17
  message: Record<string, import("three").GeometryGroup[] | {
19
18
  array: ArrayLike<number>;
20
19
  itemSize: number;
@@ -1,11 +1,9 @@
1
1
  import { type ProjectionOptions } from "../../../utils";
2
2
  import { type GetCoordinatesArrOptions } from './getCoordinatesArr';
3
3
  export interface ExtrudePolygonOptions extends GetCoordinatesArrOptions {
4
+ meta?: number[][];
4
5
  split?: number;
5
- sideRepeat?: number[];
6
6
  bbox?: number[];
7
- depth: number[];
8
- z?: number[];
9
7
  projection?: ProjectionOptions;
10
8
  useGroups?: 0 | 1 | 2;
11
9
  hasTop?: boolean;
@@ -14,7 +12,7 @@ export interface ExtrudePolygonOptions extends GetCoordinatesArrOptions {
14
12
  splitPolygons?: number;
15
13
  topSegments?: number;
16
14
  }
17
- declare const getAttributes: ({ coordinates, lengths, split, sideRepeat, bbox, depth, z, projection: projectionOptions, useGroups, hasTop, hasBottom, hasSide, splitPolygons, topSegments, }: ExtrudePolygonOptions) => {
15
+ declare const getAttributes: ({ coordinates, lengths, meta, split, bbox, projection: projectionOptions, useGroups, hasTop, hasBottom, hasSide, splitPolygons, topSegments, }: ExtrudePolygonOptions) => {
18
16
  message: Record<string, import("three").GeometryGroup[] | {
19
17
  array: ArrayLike<number>;
20
18
  itemSize: number;
@@ -1,4 +1,4 @@
1
- import { BufferGeometry, NormalBufferAttributes } from 'three';
1
+ import type { BufferGeometry, NormalBufferAttributes } from 'three';
2
2
  declare const _default: (geometries: BufferGeometry<NormalBufferAttributes>[], useGroups?: number) => {
3
3
  message: Record<string, import("three").GeometryGroup[] | {
4
4
  array: ArrayLike<number>;
@@ -1,12 +1,12 @@
1
1
  import { type ProjectionOptions } from "../../../utils";
2
2
  import { type GetCoordinatesArrOptions } from './getCoordinatesArr';
3
3
  export interface LineOptions extends GetCoordinatesArrOptions {
4
- lineWidth: number[];
4
+ meta?: number[][];
5
5
  projection?: ProjectionOptions;
6
6
  useGroups?: 0 | 1 | 2;
7
7
  splitPolygons?: number;
8
8
  }
9
- declare const getAttributes: ({ coordinates, lengths, projection: projectionOptions, lineWidth, useGroups, splitPolygons, }: LineOptions) => {
9
+ declare const getAttributes: ({ coordinates, lengths, meta, projection: projectionOptions, useGroups, splitPolygons, }: LineOptions) => {
10
10
  message: Record<string, import("three").GeometryGroup[] | {
11
11
  array: ArrayLike<number>;
12
12
  itemSize: number;
@@ -1,12 +1,12 @@
1
1
  import { type ProjectionOptions } from "../../../utils";
2
2
  import { type GetCoordinatesArrOptions } from './getCoordinatesArr';
3
3
  export interface LineOptions extends GetCoordinatesArrOptions {
4
- lineWidth: number[];
4
+ meta?: number[][];
5
5
  projection?: ProjectionOptions;
6
6
  useGroups?: 0 | 1 | 2;
7
7
  splitPolygons?: number;
8
8
  }
9
- declare const getAttributes: ({ coordinates, lengths, projection: projectionOptions, lineWidth, useGroups, splitPolygons, }: LineOptions) => {
9
+ declare const getAttributes: ({ coordinates, lengths, projection: projectionOptions, useGroups, splitPolygons, }: LineOptions) => {
10
10
  message: Record<string, import("three").GeometryGroup[] | {
11
11
  array: ArrayLike<number>;
12
12
  itemSize: number;
@@ -49,9 +49,10 @@ export default class {
49
49
  }): Promise<BufferGeometry>;
50
50
  getCachedGeometry(options: Pick<GeoGeometryOptions, 'cacheKey' | 'cacheVersion'>): Promise<ReturnType<typeof createGeometry>[]>;
51
51
  saveCache(): void;
52
- flattenCoordinates(coordinatesArr: number[][][], dimension?: number): {
53
- coordinates: Float32Array;
52
+ flattenCoordinates(coordinatesArr: number[][][]): {
53
+ flat: Float32Array;
54
54
  lengths: number[];
55
+ attributes: number[][];
55
56
  };
56
57
  _dispose: boolean;
57
58
  dispose(): void;