MCPcopy Create free account
hub / github.com/microsoft/SandDance / createOrbitControllerClass

Function createOrbitControllerClass

docs/tests/v2/es6/js/sanddance.js:146490–146521  ·  view source on GitHub ↗
(factoryOptions)

Source from the content-addressed store, hash-verified

146488var _base = require("../base");
146489
146490function createOrbitControllerClass(factoryOptions) {
146491 function wrapper(props) {
146492 class OrbitControllerInternal extends _base.base.deck._OrbitController {
146493 constructor(props) {
146494 super(props);
146495 this.invertPan = true;
146496 }
146497
146498 _onDoubleTap(event) {
146499 if (factoryOptions && factoryOptions.doubleClickHandler) {
146500 factoryOptions.doubleClickHandler(event, this);
146501 } else {
146502 super._onDoubleTap(event);
146503 }
146504 }
146505
146506 _onPanRotate(event) {
146507 if (!this.dragRotate) {
146508 return false;
146509 }
146510
146511 return this._onPanRotateStandard(event);
146512 }
146513
146514 }
146515
146516 const instance = new OrbitControllerInternal(props);
146517 return instance;
146518 }
146519
146520 return wrapper;
146521}
146522},{"../base":"zVYr"}],"FacW":[function(require,module,exports) {
146523"use strict";
146524

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected