@realsee/dnalogel 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +4 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +10 -8
- package/dist/index.umd.js +3 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +56 -56
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +4 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ import ul from "animejs";
|
|
|
39
39
|
import { GLTFLoader as nm } from "@realsee/five/gltf-loader";
|
|
40
40
|
function sm() {
|
|
41
41
|
console.debug(
|
|
42
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
42
|
+
"%c %c@realsee/dnalogel %cv3.8.0",
|
|
43
43
|
[
|
|
44
44
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
45
45
|
"background-repeat: no-repeat",
|
|
@@ -7085,7 +7085,7 @@ let Fi = class {
|
|
|
7085
7085
|
/**
|
|
7086
7086
|
* @realsee/dnalogel 版本号
|
|
7087
7087
|
*/
|
|
7088
|
-
u(this, "VERSION", "3.
|
|
7088
|
+
u(this, "VERSION", "3.8.0");
|
|
7089
7089
|
u(this, "five");
|
|
7090
7090
|
/**
|
|
7091
7091
|
* 插件事件钩子
|
|
@@ -27667,10 +27667,10 @@ function n2(n, t, e) {
|
|
|
27667
27667
|
"withAnimation" in I && e(0, f = I.withAnimation), "tag" in I && e(1, m = I.tag), "mediaStore" in I && e(2, A = I.mediaStore), "rendererMap" in I && e(3, p = I.rendererMap), "contentTypeMap" in I && e(4, g = I.contentTypeMap), "state" in I && e(5, b = I.state), "temporaryState" in I && e(6, y = I.temporaryState);
|
|
27668
27668
|
}, n.$$.update = () => {
|
|
27669
27669
|
var I, x, C;
|
|
27670
|
-
n.$$.dirty & /*tag*/
|
|
27671
|
-
|
|
27672
|
-
var B, Q;
|
|
27673
|
-
return !(((Q = (B = m.style) == null ? void 0 : B.point) == null ? void 0 : Q.enabled) === !1 || m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Panorama" || m.contentType === "Audio" && m.data.appearance === "plane");
|
|
27670
|
+
n.$$.dirty & /*tag, rendererMap*/
|
|
27671
|
+
10 && e(15, i = (() => {
|
|
27672
|
+
var B, Q, G;
|
|
27673
|
+
return !(((Q = (B = m.style) == null ? void 0 : B.point) == null ? void 0 : Q.enabled) === !1 || ((G = p.get(m.contentType)) == null ? void 0 : G.usePoint) !== !0 || m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Panorama" || m.contentType === "Audio" && m.data.appearance === "plane");
|
|
27674
27674
|
})()), n.$$.dirty & /*tag*/
|
|
27675
27675
|
2 && e(14, s = (() => m.stickType === "2DPoint")()), n.$$.dirty & /*tag*/
|
|
27676
27676
|
2 && e(13, o = m.id), n.$$.dirty & /*tag*/
|
|
@@ -28006,10 +28006,12 @@ class f2 extends ly {
|
|
|
28006
28006
|
* 如果是 `TagContentType` 中的类型,将会覆盖掉插件内部默认的渲染器,
|
|
28007
28007
|
* 如果是其他任意 str
|
|
28008
28008
|
* ing 如:'Foo',则可以将类似 `{id: 1, contentType: 'Foo', position: [0,0,0]}` 的 tag 交给插件渲染
|
|
28009
|
+
* @param config.usePoint 是否需要标签点, 默认为 false
|
|
28009
28010
|
* @note 优先级低于 tag.element
|
|
28010
28011
|
*/
|
|
28011
|
-
registerRenderer(e, i) {
|
|
28012
|
-
|
|
28012
|
+
registerRenderer(e, i, s) {
|
|
28013
|
+
var o;
|
|
28014
|
+
this.rendererMap.set(e, { renderer: i, usePoint: (o = s == null ? void 0 : s.usePoint) != null ? o : !1 });
|
|
28013
28015
|
}
|
|
28014
28016
|
bindRenderer(e, i) {
|
|
28015
28017
|
this.contentTypeMap.set(e, i);
|