UNPKG

@realsee/dnalogel

Version:
42 lines (41 loc) 1.32 kB
var s = Object.defineProperty; var o = (e, t, r) => t in e ? s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; var i = (e, t, r) => (o(e, typeof t != "symbol" ? t + "" : t, r), r); import { Subscribe as a } from "../shared-utils/Subscribe.js"; import "hammerjs"; import "three"; import "@realsee/five"; import "../vendor/@tweenjs/tween/dist/tween.esm.js.js"; import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js"; import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js"; import { absoluteUrl as l } from "../shared-utils/url/absoluteUrl.js"; let b = class { constructor(t, r) { /** * @realsee/dnalogel 版本号 */ i(this, "VERSION", "3.12.7"); i(this, "five"); /** * @description: 插件事件钩子 */ i(this, "hooks", new a()); i(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn"); this.five = t, r != null && r.staticPrefix && (this.staticPrefix = r.staticPrefix); } /** * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态 */ getCurrentState() { return this.state; } /** * @description: 获取静态资源的url */ absoluteUrl(t) { return l(this.staticPrefix, t); } }; export { b as Controller };