UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

55 lines (51 loc) 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BooleanKeyframeTrack = void 0; var _constants = require("../../constants.js"); var _KeyframeTrack = require("../KeyframeTrack.js"); /** * A track for boolean keyframe values. * * @augments KeyframeTrack */ class BooleanKeyframeTrack extends _KeyframeTrack.KeyframeTrack { /** * Constructs a new boolean keyframe track. * * This keyframe track type has no `interpolation` parameter because the * interpolation is always discrete. * * @param {string} name - The keyframe track's name. * @param {Array<number>} times - A list of keyframe times. * @param {Array<number>} values - A list of keyframe values. */ constructor(name, times, values) { super(name, times, values); } } /** * The value type name. * * @type {String} * @default 'bool' */ exports.BooleanKeyframeTrack = BooleanKeyframeTrack; BooleanKeyframeTrack.prototype.ValueTypeName = 'bool'; /** * The value buffer type of this keyframe track. * * @type {TypedArray|Array} * @default Array.constructor */ BooleanKeyframeTrack.prototype.ValueBufferType = Array; /** * The default interpolation type of this keyframe track. * * @type {(InterpolateLinear|InterpolateDiscrete|InterpolateSmooth)} * @default InterpolateDiscrete */ BooleanKeyframeTrack.prototype.DefaultInterpolation = _constants.InterpolateDiscrete; BooleanKeyframeTrack.prototype.InterpolantFactoryMethodLinear = undefined; BooleanKeyframeTrack.prototype.InterpolantFactoryMethodSmooth = undefined;