@shapediver/viewer.data-engine.html-element-anchor-engine 3.16.7 → 3.16.9
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/HTMLElementAnchorEngine.d.ts +16 -16
- package/dist/HTMLElementAnchorEngine.js +143 -143
- package/dist/HTMLElementAnchorEngine.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/package.json +8 -8
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ResOutputContent } from "@shapediver/sdk.geometry-api-sdk-v2";
|
|
2
|
-
import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
3
|
-
export declare class HTMLElementAnchorEngine {
|
|
4
|
-
private readonly _converter;
|
|
5
|
-
private readonly _inputValidator;
|
|
6
|
-
private readonly _logger;
|
|
7
|
-
private static _instance;
|
|
8
|
-
static get instance(): HTMLElementAnchorEngine;
|
|
9
|
-
/**
|
|
10
|
-
* Load the material content into a scene graph node.
|
|
11
|
-
*
|
|
12
|
-
* @param content the material content
|
|
13
|
-
* @returns the scene graph node
|
|
14
|
-
*/
|
|
15
|
-
loadContent(content: ResOutputContent): Promise<ITreeNode>;
|
|
16
|
-
}
|
|
1
|
+
import { ResOutputContent } from "@shapediver/sdk.geometry-api-sdk-v2";
|
|
2
|
+
import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
3
|
+
export declare class HTMLElementAnchorEngine {
|
|
4
|
+
private readonly _converter;
|
|
5
|
+
private readonly _inputValidator;
|
|
6
|
+
private readonly _logger;
|
|
7
|
+
private static _instance;
|
|
8
|
+
static get instance(): HTMLElementAnchorEngine;
|
|
9
|
+
/**
|
|
10
|
+
* Load the material content into a scene graph node.
|
|
11
|
+
*
|
|
12
|
+
* @param content the material content
|
|
13
|
+
* @returns the scene graph node
|
|
14
|
+
*/
|
|
15
|
+
loadContent(content: ResOutputContent): Promise<ITreeNode>;
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=HTMLElementAnchorEngine.d.ts.map
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.HTMLElementAnchorEngine = void 0;
|
|
13
|
-
const viewer_shared_math_1 = require("@shapediver/viewer.shared.math");
|
|
14
|
-
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
|
|
15
|
-
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
16
|
-
class HTMLElementAnchorEngine {
|
|
17
|
-
constructor() {
|
|
18
|
-
// #region Properties (4)
|
|
19
|
-
this._converter = viewer_shared_services_1.Converter.instance;
|
|
20
|
-
this._inputValidator = viewer_shared_services_1.InputValidator.instance;
|
|
21
|
-
this._logger = viewer_shared_services_1.Logger.instance;
|
|
22
|
-
// #endregion Public Methods (1)
|
|
23
|
-
}
|
|
24
|
-
// #endregion Properties (4)
|
|
25
|
-
// #region Public Static Accessors (1)
|
|
26
|
-
static get instance() {
|
|
27
|
-
return this._instance || (this._instance = new this());
|
|
28
|
-
}
|
|
29
|
-
// #endregion Public Static Accessors (1)
|
|
30
|
-
// #region Public Methods (1)
|
|
31
|
-
/**
|
|
32
|
-
* Load the material content into a scene graph node.
|
|
33
|
-
*
|
|
34
|
-
* @param content the material content
|
|
35
|
-
* @returns the scene graph node
|
|
36
|
-
*/
|
|
37
|
-
loadContent(content) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
try {
|
|
40
|
-
const node = new viewer_shared_node_tree_1.TreeNode("htmlElementAnchors");
|
|
41
|
-
if (content.format === "tag2d") {
|
|
42
|
-
const data = content.data;
|
|
43
|
-
data.forEach((element) => {
|
|
44
|
-
// we need a location and a text, otherwise this doesn't make sense
|
|
45
|
-
if (!element.location || !element.text) {
|
|
46
|
-
this._logger.warn("HTMLElementAnchorEngine.load: One of the specified Tag2D elements did not have all necessary properties.");
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
const cleanedText = this._inputValidator.sanitize(element.text);
|
|
50
|
-
node.data.push(new viewer_shared_node_tree_1.HTMLElementAnchorTextData({
|
|
51
|
-
location: this._converter.toVec3(element.location),
|
|
52
|
-
data: {
|
|
53
|
-
color: element.color || "#000000",
|
|
54
|
-
text: cleanedText,
|
|
55
|
-
},
|
|
56
|
-
}));
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
else if (content.format === "anchor") {
|
|
60
|
-
const data = content.data;
|
|
61
|
-
data.forEach((element) => {
|
|
62
|
-
if (!element.location || !element.data) {
|
|
63
|
-
this._logger.warn("HTMLElementAnchorEngine.load: One of the specified Anchor elements did not have all necessary properties.");
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
let position;
|
|
67
|
-
if (element.data.position)
|
|
68
|
-
position = {
|
|
69
|
-
vertical: element.data.position.vertical,
|
|
70
|
-
horizontal: element.data.position.horizontal,
|
|
71
|
-
};
|
|
72
|
-
let intersectionTarget;
|
|
73
|
-
if (element.intersectionTarget) {
|
|
74
|
-
if (typeof element.intersectionTarget === "string" ||
|
|
75
|
-
Array.isArray(element.intersectionTarget)) {
|
|
76
|
-
intersectionTarget = element.intersectionTarget;
|
|
77
|
-
}
|
|
78
|
-
else if (element.intersectionTarget.min &&
|
|
79
|
-
element.intersectionTarget.max) {
|
|
80
|
-
intersectionTarget = new viewer_shared_math_1.Box(this._converter.toVec3(element.intersectionTarget.min), this._converter.toVec3(element.intersectionTarget.max));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (!element.format || element.format === "text") {
|
|
84
|
-
if (!element.data.text) {
|
|
85
|
-
this._logger.warn("HTMLElementAnchorEngine.load: The text property for an Anchor element is missing.");
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const textData = element.data;
|
|
89
|
-
const cleanedText = this._inputValidator.sanitize(textData.text);
|
|
90
|
-
node.data.push(new viewer_shared_node_tree_1.HTMLElementAnchorTextData({
|
|
91
|
-
location: this._converter.toVec3(element.location),
|
|
92
|
-
data: {
|
|
93
|
-
color: textData.color || "#000000",
|
|
94
|
-
text: cleanedText,
|
|
95
|
-
hidden: textData.hidden,
|
|
96
|
-
textAlign: textData.textAlign,
|
|
97
|
-
position,
|
|
98
|
-
},
|
|
99
|
-
hideable: element.hideable,
|
|
100
|
-
viewports: element.viewports,
|
|
101
|
-
intersectionTarget,
|
|
102
|
-
}));
|
|
103
|
-
}
|
|
104
|
-
else if (element.format === "image") {
|
|
105
|
-
if (!element.data.src ||
|
|
106
|
-
!element.data.width ||
|
|
107
|
-
!element.data.height ||
|
|
108
|
-
!element.data.alt) {
|
|
109
|
-
this._logger.warn("HTMLElementAnchorEngine.load: One of the specified Anchor elements did not have all necessary properties.");
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
const imageData = element.data;
|
|
113
|
-
node.data.push(new viewer_shared_node_tree_1.HTMLElementAnchorImageData({
|
|
114
|
-
location: this._converter.toVec3(element.location),
|
|
115
|
-
data: {
|
|
116
|
-
alt: imageData.alt,
|
|
117
|
-
height: typeof imageData.height === "string"
|
|
118
|
-
? +imageData.height
|
|
119
|
-
: imageData.height,
|
|
120
|
-
width: typeof imageData.width === "string"
|
|
121
|
-
? +imageData.width
|
|
122
|
-
: imageData.width,
|
|
123
|
-
src: imageData.src,
|
|
124
|
-
hidden: imageData.hidden,
|
|
125
|
-
position,
|
|
126
|
-
},
|
|
127
|
-
hideable: element.hideable,
|
|
128
|
-
viewports: element.viewports,
|
|
129
|
-
intersectionTarget,
|
|
130
|
-
}));
|
|
131
|
-
}
|
|
132
|
-
this._logger.warn(`HTMLElementAnchorEngine.load: The Anchor does not have a recognized format: ${element.format}`);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
return node;
|
|
136
|
-
}
|
|
137
|
-
catch (e) {
|
|
138
|
-
throw new viewer_shared_services_1.ShapeDiverViewerDataProcessingError("HTMLElementAnchorEngine.load: Loading of anchors failed.");
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
exports.HTMLElementAnchorEngine = HTMLElementAnchorEngine;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HTMLElementAnchorEngine = void 0;
|
|
13
|
+
const viewer_shared_math_1 = require("@shapediver/viewer.shared.math");
|
|
14
|
+
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
|
|
15
|
+
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
16
|
+
class HTMLElementAnchorEngine {
|
|
17
|
+
constructor() {
|
|
18
|
+
// #region Properties (4)
|
|
19
|
+
this._converter = viewer_shared_services_1.Converter.instance;
|
|
20
|
+
this._inputValidator = viewer_shared_services_1.InputValidator.instance;
|
|
21
|
+
this._logger = viewer_shared_services_1.Logger.instance;
|
|
22
|
+
// #endregion Public Methods (1)
|
|
23
|
+
}
|
|
24
|
+
// #endregion Properties (4)
|
|
25
|
+
// #region Public Static Accessors (1)
|
|
26
|
+
static get instance() {
|
|
27
|
+
return this._instance || (this._instance = new this());
|
|
28
|
+
}
|
|
29
|
+
// #endregion Public Static Accessors (1)
|
|
30
|
+
// #region Public Methods (1)
|
|
31
|
+
/**
|
|
32
|
+
* Load the material content into a scene graph node.
|
|
33
|
+
*
|
|
34
|
+
* @param content the material content
|
|
35
|
+
* @returns the scene graph node
|
|
36
|
+
*/
|
|
37
|
+
loadContent(content) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
try {
|
|
40
|
+
const node = new viewer_shared_node_tree_1.TreeNode("htmlElementAnchors");
|
|
41
|
+
if (content.format === "tag2d") {
|
|
42
|
+
const data = content.data;
|
|
43
|
+
data.forEach((element) => {
|
|
44
|
+
// we need a location and a text, otherwise this doesn't make sense
|
|
45
|
+
if (!element.location || !element.text) {
|
|
46
|
+
this._logger.warn("HTMLElementAnchorEngine.load: One of the specified Tag2D elements did not have all necessary properties.");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const cleanedText = this._inputValidator.sanitize(element.text);
|
|
50
|
+
node.data.push(new viewer_shared_node_tree_1.HTMLElementAnchorTextData({
|
|
51
|
+
location: this._converter.toVec3(element.location),
|
|
52
|
+
data: {
|
|
53
|
+
color: element.color || "#000000",
|
|
54
|
+
text: cleanedText,
|
|
55
|
+
},
|
|
56
|
+
}));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
else if (content.format === "anchor") {
|
|
60
|
+
const data = content.data;
|
|
61
|
+
data.forEach((element) => {
|
|
62
|
+
if (!element.location || !element.data) {
|
|
63
|
+
this._logger.warn("HTMLElementAnchorEngine.load: One of the specified Anchor elements did not have all necessary properties.");
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
let position;
|
|
67
|
+
if (element.data.position)
|
|
68
|
+
position = {
|
|
69
|
+
vertical: element.data.position.vertical,
|
|
70
|
+
horizontal: element.data.position.horizontal,
|
|
71
|
+
};
|
|
72
|
+
let intersectionTarget;
|
|
73
|
+
if (element.intersectionTarget) {
|
|
74
|
+
if (typeof element.intersectionTarget === "string" ||
|
|
75
|
+
Array.isArray(element.intersectionTarget)) {
|
|
76
|
+
intersectionTarget = element.intersectionTarget;
|
|
77
|
+
}
|
|
78
|
+
else if (element.intersectionTarget.min &&
|
|
79
|
+
element.intersectionTarget.max) {
|
|
80
|
+
intersectionTarget = new viewer_shared_math_1.Box(this._converter.toVec3(element.intersectionTarget.min), this._converter.toVec3(element.intersectionTarget.max));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (!element.format || element.format === "text") {
|
|
84
|
+
if (!element.data.text) {
|
|
85
|
+
this._logger.warn("HTMLElementAnchorEngine.load: The text property for an Anchor element is missing.");
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const textData = element.data;
|
|
89
|
+
const cleanedText = this._inputValidator.sanitize(textData.text);
|
|
90
|
+
node.data.push(new viewer_shared_node_tree_1.HTMLElementAnchorTextData({
|
|
91
|
+
location: this._converter.toVec3(element.location),
|
|
92
|
+
data: {
|
|
93
|
+
color: textData.color || "#000000",
|
|
94
|
+
text: cleanedText,
|
|
95
|
+
hidden: textData.hidden,
|
|
96
|
+
textAlign: textData.textAlign,
|
|
97
|
+
position,
|
|
98
|
+
},
|
|
99
|
+
hideable: element.hideable,
|
|
100
|
+
viewports: element.viewports,
|
|
101
|
+
intersectionTarget,
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
else if (element.format === "image") {
|
|
105
|
+
if (!element.data.src ||
|
|
106
|
+
!element.data.width ||
|
|
107
|
+
!element.data.height ||
|
|
108
|
+
!element.data.alt) {
|
|
109
|
+
this._logger.warn("HTMLElementAnchorEngine.load: One of the specified Anchor elements did not have all necessary properties.");
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const imageData = element.data;
|
|
113
|
+
node.data.push(new viewer_shared_node_tree_1.HTMLElementAnchorImageData({
|
|
114
|
+
location: this._converter.toVec3(element.location),
|
|
115
|
+
data: {
|
|
116
|
+
alt: imageData.alt,
|
|
117
|
+
height: typeof imageData.height === "string"
|
|
118
|
+
? +imageData.height
|
|
119
|
+
: imageData.height,
|
|
120
|
+
width: typeof imageData.width === "string"
|
|
121
|
+
? +imageData.width
|
|
122
|
+
: imageData.width,
|
|
123
|
+
src: imageData.src,
|
|
124
|
+
hidden: imageData.hidden,
|
|
125
|
+
position,
|
|
126
|
+
},
|
|
127
|
+
hideable: element.hideable,
|
|
128
|
+
viewports: element.viewports,
|
|
129
|
+
intersectionTarget,
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
this._logger.warn(`HTMLElementAnchorEngine.load: The Anchor does not have a recognized format: ${element.format}`);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return node;
|
|
136
|
+
}
|
|
137
|
+
catch (e) {
|
|
138
|
+
throw new viewer_shared_services_1.ShapeDiverViewerDataProcessingError("HTMLElementAnchorEngine.load: Loading of anchors failed.");
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.HTMLElementAnchorEngine = HTMLElementAnchorEngine;
|
|
144
144
|
//# sourceMappingURL=HTMLElementAnchorEngine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HTMLElementAnchorEngine.js","sourceRoot":"","sources":["../src/HTMLElementAnchorEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,uEAAmD;AACnD,iFAK6C;AAC7C,+EAK4C;AAM5C,MAAa,uBAAuB;IAApC;QACC,yBAAyB;QAER,eAAU,GAA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OAAO,CAAC,IAAI,CAChB,+EAA+E,OAAO,CAAC,MAAM,EAAE,CAC/F,CAAC;oBACH,CAAC,CAAC,CAAC;gBACJ,CAAC;gBACD,OAAO,IAAI,CAAC;YACb,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACZ,MAAM,IAAI,4DAAmC,CAC5C,0DAA0D,CAC1D,CAAC;YACH,CAAC;QACF,CAAC;KAAA;CAGD;AA7KD,0DA6KC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HTMLElementAnchorEngine } from "./HTMLElementAnchorEngine";
|
|
2
|
-
export { HTMLElementAnchorEngine };
|
|
1
|
+
import { HTMLElementAnchorEngine } from "./HTMLElementAnchorEngine";
|
|
2
|
+
export { HTMLElementAnchorEngine };
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HTMLElementAnchorEngine = void 0;
|
|
4
|
-
const HTMLElementAnchorEngine_1 = require("./HTMLElementAnchorEngine");
|
|
5
|
-
Object.defineProperty(exports, "HTMLElementAnchorEngine", { enumerable: true, get: function () { return HTMLElementAnchorEngine_1.HTMLElementAnchorEngine; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTMLElementAnchorEngine = void 0;
|
|
4
|
+
const HTMLElementAnchorEngine_1 = require("./HTMLElementAnchorEngine");
|
|
5
|
+
Object.defineProperty(exports, "HTMLElementAnchorEngine", { enumerable: true, get: function () { return HTMLElementAnchorEngine_1.HTMLElementAnchorEngine; } });
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.data-engine.html-element-anchor-engine",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@shapediver/sdk.geometry-api-sdk-v2": "3.4.0",
|
|
42
|
-
"@shapediver/viewer.data-engine.shared-types": "3.16.
|
|
43
|
-
"@shapediver/viewer.shared.math": "3.16.
|
|
44
|
-
"@shapediver/viewer.shared.node-tree": "3.16.
|
|
45
|
-
"@shapediver/viewer.shared.services": "3.16.
|
|
46
|
-
"@shapediver/viewer.shared.types": "3.16.
|
|
47
|
-
"gl-matrix": "3.
|
|
42
|
+
"@shapediver/viewer.data-engine.shared-types": "3.16.9",
|
|
43
|
+
"@shapediver/viewer.shared.math": "3.16.9",
|
|
44
|
+
"@shapediver/viewer.shared.node-tree": "3.16.9",
|
|
45
|
+
"@shapediver/viewer.shared.services": "3.16.9",
|
|
46
|
+
"@shapediver/viewer.shared.types": "3.16.9",
|
|
47
|
+
"gl-matrix": "3.4.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a0c09ebab3b0b75f36130a56d9ed81436846e3c7"
|
|
50
50
|
}
|