@antv/g-camera-api
A simple implementation of Camera API.
Last updated 8 months ago by panyuqi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @antv/g-camera-api 
SYNC missed versions from official npm registry.

English | 简体中文

Provides advanced camera features, including full camera movements and animations.

Usage

It's already built-in in @antv/g, with the lite version to use the following way:

import '@antv/g-lite';
import '@antv/g-camera-api';

The camera can then be retrieved from the canvas to perform the camera action.

const camera = canvas.getCamera();
camera.pan(100, 20);

API

Action

The camera's three axes in the camera coordinate system are uvn, and the camera action is actually moving and rotating along these three axes.

https://g-next.antv.vision/en/docs/api/camera#camera-action

Animation

We can record the current position and viewpoint of the camera and save it as a Landmark, and then when the camera parameters change, we can switch to any of the previously saved Landmark at any time, with a smooth switching animation, similar to the camera pendulum on a real set, also called flyTo in some applications.

https://g-next.antv.vision/en/docs/api/camera#camera-animation

Current Tags

  • 2.0.14-alpha.0                                ...           alpha (25 days ago)
  • 1.1.0-beta.1                                ...           beta (a year ago)
  • 2.0.22                                ...           latest (21 hours ago)
  • 2.0.13                                ...           next (2 months ago)

112 Versions

  • 2.0.22                                ...           21 hours ago
  • 2.0.21                                ...           8 days ago
  • 2.0.20                                ...           10 days ago
  • 2.0.19                                ...           11 days ago
  • 2.0.18                                ...           14 days ago
  • 2.0.17                                ...           22 days ago
  • 2.0.16                                ...           23 days ago
  • 2.0.15                                ...           23 days ago
  • 2.0.14                                ...           24 days ago
  • 2.0.14-alpha.0                                ...           25 days ago
  • 2.0.13                                ...           2 months ago
  • 2.0.12                                ...           3 months ago
  • 2.0.11                                ...           3 months ago
  • 2.0.10                                ...           4 months ago
  • 2.0.9                                ...           4 months ago
  • 2.0.8                                ...           4 months ago
  • 2.0.7                                ...           4 months ago
  • 2.0.6                                ...           5 months ago
  • 2.0.5                                ...           6 months ago
  • 2.0.4                                ...           6 months ago
  • 2.0.3                                ...           6 months ago
  • 2.0.2                                ...           7 months ago
  • 2.0.1                                ...           8 months ago
  • 2.0.0                                ...           8 months ago
  • 1.2.25                                ...           8 months ago
  • 1.2.24                                ...           8 months ago
  • 1.2.23-next.20                                ...           8 months ago
  • 1.2.23-next.19                                ...           8 months ago
  • 1.2.23-next.18                                ...           8 months ago
  • 1.2.23-next.17                                ...           8 months ago
  • 1.2.23-next.16                                ...           8 months ago
  • 1.2.23-next.15                                ...           8 months ago
  • 1.2.23-next.14                                ...           8 months ago
  • 1.2.23                                ...           9 months ago
  • 1.2.23-next.13                                ...           9 months ago
  • 1.2.23-next.12                                ...           9 months ago
  • 1.2.23-next.11                                ...           9 months ago
  • 1.2.23-next.10                                ...           9 months ago
  • 1.2.23-next.9                                ...           9 months ago
  • 1.2.23-next.8                                ...           10 months ago
  • 1.2.23-next.7                                ...           10 months ago
  • 1.2.23-next.6                                ...           10 months ago
  • 1.2.23-next.4                                ...           10 months ago
  • 1.2.23-next.3                                ...           10 months ago
  • 1.2.23-next.2                                ...           10 months ago
  • 1.2.23-next.1                                ...           10 months ago
  • 1.2.23-next.0                                ...           10 months ago
  • 1.2.22                                ...           10 months ago
  • 1.2.21                                ...           a year ago
  • 1.2.20                                ...           a year ago
  • 1.2.19                                ...           a year ago
  • 1.2.18                                ...           a year ago
  • 1.2.17                                ...           a year ago
  • 1.2.16                                ...           a year ago
  • 1.2.15                                ...           a year ago
  • 1.2.14                                ...           a year ago
  • 1.2.13                                ...           a year ago
  • 1.2.12                                ...           a year ago
  • 1.2.11                                ...           a year ago
  • 1.2.10                                ...           a year ago
  • 1.2.8                                ...           a year ago
  • 1.2.7                                ...           a year ago
  • 1.2.6                                ...           a year ago
  • 1.2.5                                ...           a year ago
  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.1.0-beta.1                                ...           a year ago
  • 1.1.0-alpha.1                                ...           a year ago
  • 1.0.40                                ...           a year ago
  • 1.0.39                                ...           a year ago
  • 1.0.38                                ...           a year ago
  • 1.0.37                                ...           2 years ago
  • 1.0.36                                ...           2 years ago
  • 1.0.35                                ...           2 years ago
  • 1.0.34                                ...           2 years ago
  • 1.0.33                                ...           2 years ago
  • 1.0.32                                ...           2 years ago
  • 1.0.31                                ...           2 years ago
  • 1.0.30                                ...           2 years ago
  • 1.0.29                                ...           2 years ago
  • 1.0.28                                ...           2 years ago
  • 1.0.27                                ...           2 years ago
  • 1.0.26                                ...           2 years ago
  • 1.0.25                                ...           2 years ago
  • 1.0.24                                ...           2 years ago
  • 1.0.23                                ...           2 years ago
  • 1.0.22                                ...           2 years ago
  • 1.0.21                                ...           2 years ago
  • 1.0.20                                ...           2 years ago
  • 1.0.19                                ...           2 years ago
  • 1.0.18                                ...           2 years ago
  • 1.0.17                                ...           2 years ago
  • 1.0.16                                ...           2 years ago
  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE