• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / deck.gl / 10502912171

22 Aug 2024 06:20AM UTC coverage: 61.189% (-28.0%) from 89.221%
10502912171

Pull #9096

github

web-flow
Merge 2623861fe into bf7b00267
Pull Request #9096: GPU Aggregation (5/8): GridLayer

1903 of 2546 branches covered (74.74%)

Branch coverage included in aggregate %.

775 of 823 new or added lines in 10 files covered. (94.17%)

17884 existing lines in 262 files now uncovered.

37927 of 62547 relevant lines covered (60.64%)

158.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.55
/modules/core/src/views/orbit-view.ts
1
import View, {CommonViewState, CommonViewProps} from './view';
1✔
2
import OrbitViewport from '../viewports/orbit-viewport';
1✔
3
import OrbitController from '../controllers/orbit-controller';
1✔
4

1✔
5
export type OrbitViewState = {
1✔
6
  /** The world position at the center of the viewport. Default `[0, 0, 0]`. */
1✔
7
  target: [number, number, number];
1✔
8
  /** The zoom level of the viewport. `zoom: 0` maps one unit distance to one pixel on screen, and increasing `zoom` by `1` scales the same object to twice as large. Default `0`. */
1✔
9
  zoom: number;
1✔
10
  /** Rotating angle around orbit axis. Default `0`. */
1✔
11
  rotationOrbit?: number;
1✔
12
  /** Rotating angle around orbit axis. Default `0`. */
1✔
13
  rotationX?: number;
1✔
14
  /** The min zoom level of the viewport. Default `-Infinity`. */
1✔
15
  minZoom?: number;
1✔
16
  /** The max zoom level of the viewport. Default `Infinity`. */
1✔
17
  maxZoom?: number;
1✔
18
  /** The min rotating angle around X axis. Default `-90`. */
1✔
19
  minRotationX?: number;
1✔
20
  /** The max rotating angle around X axis. Default `90`. */
1✔
21
  maxRotationX?: number;
1✔
22
} & CommonViewState;
1✔
23

1✔
24
export type OrbitViewProps = {
1✔
25
  /** Axis with 360 degrees rotating freedom, either `'Y'` or `'Z'`, default to `'Z'`. */
1✔
26
  orbitAxis?: 'Y' | 'Z';
1✔
27
  /** Custom projection matrix */
1✔
28
  projectionMatrix?: number[];
1✔
29
  /** Field of view covered by camera, in the perspective case. In degrees. Default `50`. */
1✔
30
  fovy?: number;
1✔
31
  /** Distance of near clipping plane. Default `0.1`. */
1✔
32
  near?: number;
1✔
33
  /** Distance of far clipping plane. Default `1000`. */
1✔
34
  far?: number;
1✔
35
  /** Whether to create an orthographic or perspective projection matrix. Default is `false` (perspective projection). */
1✔
36
  orthographic?: boolean;
1✔
37
} & CommonViewProps<OrbitViewState>;
1✔
38

1✔
39
export default class OrbitView extends View<OrbitViewState, OrbitViewProps> {
1✔
40
  static displayName = 'OrbitView';
1✔
41

1✔
42
  constructor(props: OrbitViewProps = {}) {
1✔
43
    super(props);
6✔
44
    this.props.orbitAxis = props.orbitAxis || 'Z';
6✔
45
  }
6✔
46

1✔
47
  get ViewportType() {
1✔
48
    return OrbitViewport;
1✔
49
  }
1✔
50

1✔
51
  get ControllerType() {
1✔
UNCOV
52
    return OrbitController;
×
UNCOV
53
  }
×
54
}
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc