(presenter, config, cubeData, highlightColor, lightSettings /*LightSettings*/ , lightingMix, interpolator)
| 7433 | ]; |
| 7434 | } |
| 7435 | function newCubeLayer(presenter, config, cubeData, highlightColor, lightSettings /*LightSettings*/ , lightingMix, interpolator) { |
| 7436 | const getPosition = getTiming(config.transitionDurations.position, (0, _easing.easing)); |
| 7437 | const getSize = getTiming(config.transitionDurations.size, (0, _easing.easing)); |
| 7438 | const getColor = getTiming(config.transitionDurations.color); |
| 7439 | const cubeLayerProps = { |
| 7440 | interpolator, |
| 7441 | lightingMix, |
| 7442 | id: (0, _constants.layerNames).cubes, |
| 7443 | data: cubeData, |
| 7444 | coordinateSystem: (0, _base.base).deck.COORDINATE_SYSTEM.CARTESIAN, |
| 7445 | pickable: true, |
| 7446 | autoHighlight: true, |
| 7447 | highlightColor, |
| 7448 | onClick: (o, e)=>{ |
| 7449 | config.onCubeClick(e && e.srcEvent, o.object); |
| 7450 | }, |
| 7451 | onHover: (o, e)=>{ |
| 7452 | if (o.index === -1) { |
| 7453 | presenter.deckgl.interactiveState.onCube = false; |
| 7454 | config.onCubeHover(e && e.srcEvent, null); |
| 7455 | } else { |
| 7456 | presenter.deckgl.interactiveState.onCube = true; |
| 7457 | config.onCubeHover(e && e.srcEvent, o.object); |
| 7458 | } |
| 7459 | }, |
| 7460 | //lightSettings, |
| 7461 | transitions: { |
| 7462 | getPosition, |
| 7463 | getColor, |
| 7464 | getSize |
| 7465 | } |
| 7466 | }; |
| 7467 | return new (0, _cubeLayer.CubeLayer)(cubeLayerProps); |
| 7468 | } |
| 7469 | function newLineLayer(id, data) { |
| 7470 | return new (0, _base.base).layers.LineLayer({ |
| 7471 | id, |
no test coverage detected