package.src.symbol.opacity_state.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mapbox-gl Show documentation
Show all versions of mapbox-gl Show documentation
A WebGL interactive maps library
The newest version!
// @flow
import {register} from '../util/web_worker_transfer';
class OpacityState {
opacity: number;
targetOpacity: number;
time: number
constructor() {
this.opacity = 0;
this.targetOpacity = 0;
this.time = 0;
}
clone() {
const clone = new OpacityState();
clone.opacity = this.opacity;
clone.targetOpacity = this.targetOpacity;
clone.time = this.time;
return clone;
}
}
register('OpacityState', OpacityState);
export default OpacityState;