@vertexvis/viewer 0.10.2-canary.7 → 0.11.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/cjs/{browser.esm-ae55f058.js → browser.esm-17419694.js} +25 -25
- package/dist/cjs/{bundle.esm-c457ad4d.js → bundle.esm-b79513ef.js} +231 -207
- package/dist/cjs/{constants-4277684a.js → constants-1d65ed39.js} +1 -1
- package/dist/cjs/{cursors-b93b43ef.js → cursors-8aaf500f.js} +1 -1
- package/dist/cjs/{dom-cdb50ebc.js → dom-40804039.js} +1 -1
- package/dist/cjs/index.cjs.js +8 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{markup-3dac4cef.js → markup-e84a143f.js} +11 -2
- package/dist/cjs/{measurement-b494bf55.js → measurement-4579193b.js} +2 -2
- package/dist/cjs/{orientation-42cc9e8d.js → orientation-09d0f3ef.js} +14 -7
- package/dist/cjs/{png-decoder-2add73dd.js → png-decoder-97ea96ba.js} +3 -3
- package/dist/cjs/{scene-23a0a330.js → scene-4397373a.js} +28524 -2446
- package/dist/cjs/{utils-6933381f.js → utils-414e6cfe.js} +2 -2
- package/dist/cjs/utils-440f0f7d.js +61 -0
- package/dist/cjs/vertex-scene-tree.cjs.entry.js +6 -5
- package/dist/cjs/vertex-viewer-dom-element_3.cjs.entry.js +4 -4
- package/dist/cjs/{vertex-viewer-markup-arrow_2.cjs.entry.js → vertex-viewer-markup-arrow_3.cjs.entry.js} +267 -4
- package/dist/cjs/vertex-viewer-markup-tool.cjs.entry.js +43 -9
- package/dist/cjs/vertex-viewer-markup.cjs.entry.js +25 -5
- package/dist/cjs/vertex-viewer-measurement-distance_2.cjs.entry.js +8 -8
- package/dist/cjs/vertex-viewer-measurement-tool.cjs.entry.js +5 -5
- package/dist/cjs/vertex-viewer-measurements.cjs.entry.js +5 -5
- package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +3 -3
- package/dist/cjs/vertex-viewer.cjs.entry.js +141 -48
- package/dist/cjs/viewer.cjs.js +1 -1
- package/dist/cjs/{viewport-e69f8223.js → viewport-fc405a48.js} +31 -7
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/scene-tree/scene-tree.js +3 -2
- package/dist/collection/components/viewer/viewer.js +28 -3
- package/dist/collection/components/viewer-markup/utils.js +65 -1
- package/dist/collection/components/viewer-markup/viewer-markup.js +72 -16
- package/dist/collection/components/viewer-markup-circle/utils.js +2 -55
- package/dist/collection/components/viewer-markup-circle/viewer-markup-circle.js +4 -4
- package/dist/collection/components/viewer-markup-freeform.tsx/utils.js +10 -0
- package/dist/collection/components/viewer-markup-freeform.tsx/viewer-markup-freeform.css +157 -0
- package/dist/collection/components/viewer-markup-freeform.tsx/viewer-markup-freeform.js +413 -0
- package/dist/collection/components/viewer-markup-tool/viewer-markup-tool.js +63 -9
- package/dist/collection/components/viewer-measurement-distance/viewer-measurement-distance-components.js +1 -1
- package/dist/collection/components/viewer-measurement-distance/viewer-measurement-distance.js +2 -2
- package/dist/collection/lib/cursors.js +1 -1
- package/dist/collection/lib/interactions/baseInteractionHandler.js +5 -4
- package/dist/collection/lib/interactions/flyToPartKeyInteraction.js +1 -1
- package/dist/collection/lib/interactions/interactionApi.js +101 -22
- package/dist/collection/lib/interactions/mouseInteractions.js +17 -15
- package/dist/collection/lib/interactions/multiTouchInteractionHandler.js +2 -2
- package/dist/collection/lib/mappers.js +4 -3
- package/dist/collection/lib/scenes/camera.js +8 -2
- package/dist/collection/lib/scenes/operations.js +1 -1
- package/dist/collection/lib/scenes/scene.js +5 -2
- package/dist/collection/lib/types/frame.js +8 -2
- package/dist/collection/lib/types/markup.js +9 -1
- package/dist/collection/lib/types/stencilBuffer.js +2 -2
- package/dist/collection/lib/types/viewport.js +32 -8
- package/dist/collection/testing/fixtures.js +2 -1
- package/dist/esm/{browser.esm-7dbdf78a.js → browser.esm-e4fb17dc.js} +25 -25
- package/dist/esm/{bundle.esm-590d2273.js → bundle.esm-d891316f.js} +232 -208
- package/dist/esm/{constants-083f6b2c.js → constants-037e417f.js} +1 -1
- package/dist/esm/{cursors-39294365.js → cursors-00835249.js} +1 -1
- package/dist/esm/{dom-43682375.js → dom-d0877f90.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/{markup-3ce3dccd.js → markup-9b29aa94.js} +11 -3
- package/dist/esm/{measurement-78bd27fc.js → measurement-8430d5d6.js} +2 -2
- package/dist/esm/{orientation-c3e2af18.js → orientation-bb34b652.js} +14 -7
- package/dist/esm/{png-decoder-dfb97536.js → png-decoder-c4745070.js} +3 -3
- package/dist/esm/{scene-30ac6229.js → scene-72760305.js} +28532 -2454
- package/dist/esm/utils-5fe43b8a.js +52 -0
- package/dist/esm/{utils-b857bd7c.js → utils-f8e0baf7.js} +2 -2
- package/dist/esm/vertex-scene-tree.entry.js +6 -5
- package/dist/esm/vertex-viewer-dom-element_3.entry.js +4 -4
- package/dist/esm/{vertex-viewer-markup-arrow_2.entry.js → vertex-viewer-markup-arrow_3.entry.js} +267 -5
- package/dist/esm/vertex-viewer-markup-tool.entry.js +43 -9
- package/dist/esm/vertex-viewer-markup.entry.js +25 -5
- package/dist/esm/vertex-viewer-measurement-distance_2.entry.js +8 -8
- package/dist/esm/vertex-viewer-measurement-tool.entry.js +5 -5
- package/dist/esm/vertex-viewer-measurements.entry.js +5 -5
- package/dist/esm/vertex-viewer-view-cube.entry.js +3 -3
- package/dist/esm/vertex-viewer.entry.js +141 -48
- package/dist/esm/viewer.js +1 -1
- package/dist/esm/{viewport-8fea0743.js → viewport-d6f5cd7b.js} +31 -7
- package/dist/types/components/viewer/viewer.d.ts +4 -0
- package/dist/types/components/viewer-markup/utils.d.ts +8 -0
- package/dist/types/components/viewer-markup/viewer-markup.d.ts +13 -6
- package/dist/types/components/viewer-markup-circle/utils.d.ts +1 -4
- package/dist/types/components/viewer-markup-freeform.tsx/utils.d.ts +3 -0
- package/dist/types/components/viewer-markup-freeform.tsx/viewer-markup-freeform.d.ts +116 -0
- package/dist/types/components/viewer-markup-tool/viewer-markup-tool.d.ts +13 -1
- package/dist/types/components.d.ts +107 -10
- package/dist/types/lib/interactions/interactionApi.d.ts +22 -6
- package/dist/types/lib/interactions/mouseInteractions.d.ts +7 -6
- package/dist/types/lib/scenes/camera.d.ts +5 -1
- package/dist/types/lib/scenes/scene.d.ts +1 -1
- package/dist/types/lib/types/frame.d.ts +4 -1
- package/dist/types/lib/types/markup.d.ts +12 -1
- package/dist/types/lib/types/viewport.d.ts +17 -0
- package/dist/viewer/index.esm.js +1 -1
- package/dist/viewer/p-012fb54f.js +4 -0
- package/dist/viewer/{p-3dc15d99.entry.js → p-117324c0.entry.js} +1 -1
- package/dist/viewer/{p-1ee75110.entry.js → p-1c772ec1.entry.js} +1 -1
- package/dist/viewer/p-1f8a238b.js +4 -0
- package/dist/viewer/p-21e8510d.js +4 -0
- package/dist/viewer/{p-e3105f9a.entry.js → p-3c2aff67.entry.js} +1 -1
- package/dist/viewer/p-5389e9d4.js +4 -0
- package/dist/viewer/p-59d075d4.js +17 -0
- package/dist/viewer/{p-5b078339.js → p-62c6f482.js} +1 -1
- package/dist/viewer/p-640cb5f8.js +18 -0
- package/dist/viewer/p-68aaf1f8.entry.js +4 -0
- package/dist/viewer/{p-05b2444e.js → p-75682963.js} +1 -1
- package/dist/viewer/{p-4183c421.entry.js → p-79c45c02.entry.js} +1 -1
- package/dist/viewer/p-835e158e.js +4 -0
- package/dist/viewer/p-8c255868.entry.js +4 -0
- package/dist/viewer/{p-f4a492e1.js → p-9faabd97.js} +1 -1
- package/dist/viewer/p-b122ee39.js +4 -0
- package/dist/viewer/p-b36b3d1a.js +4 -0
- package/dist/viewer/{p-7c71db57.entry.js → p-bc9e6919.entry.js} +1 -1
- package/dist/viewer/{p-f090a3f3.entry.js → p-c818c80e.entry.js} +1 -1
- package/dist/viewer/{p-e96bc9a2.js → p-d42a482c.js} +1 -1
- package/dist/viewer/p-f43e8cc2.entry.js +4 -0
- package/dist/viewer/p-f75436be.entry.js +4 -0
- package/dist/viewer/viewer.esm.js +1 -1
- package/package.json +18 -16
- package/readme.md +6 -6
- package/dist/cjs/utils-96f244e1.js +0 -104
- package/dist/esm/utils-a550c58f.js +0 -96
- package/dist/viewer/p-11bdd2c4.js +0 -4
- package/dist/viewer/p-14182324.entry.js +0 -4
- package/dist/viewer/p-2768474e.js +0 -4
- package/dist/viewer/p-2e11803d.js +0 -4
- package/dist/viewer/p-6d4ab5fc.js +0 -17
- package/dist/viewer/p-964642c6.js +0 -4
- package/dist/viewer/p-9e856d0a.entry.js +0 -4
- package/dist/viewer/p-a717d9ff.js +0 -4
- package/dist/viewer/p-a9434d8e.entry.js +0 -4
- package/dist/viewer/p-af806858.js +0 -4
- package/dist/viewer/p-b5c350a7.js +0 -4
- package/dist/viewer/p-d912dd24.js +0 -18
- package/dist/viewer/p-f6d75616.entry.js +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const bundle_esm = require('./bundle.esm-
|
|
6
|
+
const bundle_esm = require('./bundle.esm-b79513ef.js');
|
|
7
7
|
|
|
8
8
|
function delay() {
|
|
9
9
|
var args = [];
|
|
@@ -68,7 +68,7 @@ var hexRegex = /^(#|0x)?([A-Fa-f0-9]{6})$/;
|
|
|
68
68
|
* Constructs a new color with the given red, green, blue and alpha values. If
|
|
69
69
|
* alpha is undefined, defaults to 1.
|
|
70
70
|
*/
|
|
71
|
-
var create = function (r, g, b, a) {
|
|
71
|
+
var create$2 = function (r, g, b, a) {
|
|
72
72
|
if (a === void 0) { a = 255; }
|
|
73
73
|
return { r: r, g: g, b: b, a: a };
|
|
74
74
|
};
|
|
@@ -79,7 +79,7 @@ var create = function (r, g, b, a) {
|
|
|
79
79
|
var fromNumber = function (num) {
|
|
80
80
|
// tslint:disable:no-bitwise
|
|
81
81
|
var normalized = num & 0xffffff;
|
|
82
|
-
return create((normalized >> 16) & 0xff, (normalized >> 8) & 0xff, normalized & 0xff);
|
|
82
|
+
return create$2((normalized >> 16) & 0xff, (normalized >> 8) & 0xff, normalized & 0xff);
|
|
83
83
|
// tslint:enable:no-bitwise
|
|
84
84
|
};
|
|
85
85
|
/**
|
|
@@ -101,11 +101,11 @@ var fromHexString = function (str) {
|
|
|
101
101
|
var fromCss = function (css) {
|
|
102
102
|
var rgbMatch = rgbRegex.exec(css);
|
|
103
103
|
if (rgbMatch != null) {
|
|
104
|
-
return create(parseInt(rgbMatch[1]), parseInt(rgbMatch[2]), parseInt(rgbMatch[3]));
|
|
104
|
+
return create$2(parseInt(rgbMatch[1]), parseInt(rgbMatch[2]), parseInt(rgbMatch[3]));
|
|
105
105
|
}
|
|
106
106
|
var rgbaMatch = rgbaRegex.exec(css);
|
|
107
107
|
if (rgbaMatch != null) {
|
|
108
|
-
return create(parseInt(rgbaMatch[1]), parseInt(rgbaMatch[2]), parseInt(rgbaMatch[3]), Math.floor(parseFloat(rgbaMatch[4]) * 255));
|
|
108
|
+
return create$2(parseInt(rgbaMatch[1]), parseInt(rgbaMatch[2]), parseInt(rgbaMatch[3]), Math.floor(parseFloat(rgbaMatch[4]) * 255));
|
|
109
109
|
}
|
|
110
110
|
if (hexRegex.test(css)) {
|
|
111
111
|
return fromHexString(css);
|
|
@@ -116,7 +116,7 @@ var fromCss = function (css) {
|
|
|
116
116
|
* expected to be `[r, g, b]` or `[r, g, b, a]`.
|
|
117
117
|
*/
|
|
118
118
|
var fromArray = function (rgba) {
|
|
119
|
-
return create(rgba[0], rgba[1], rgba[2], rgba[3]);
|
|
119
|
+
return create$2(rgba[0], rgba[1], rgba[2], rgba[3]);
|
|
120
120
|
};
|
|
121
121
|
/**
|
|
122
122
|
* Returns `true` if the color's alpha channel is 0.
|
|
@@ -144,7 +144,7 @@ var componentToHex = function (num) {
|
|
|
144
144
|
|
|
145
145
|
var color = /*#__PURE__*/Object.freeze({
|
|
146
146
|
__proto__: null,
|
|
147
|
-
create: create,
|
|
147
|
+
create: create$2,
|
|
148
148
|
fromNumber: fromNumber,
|
|
149
149
|
fromHexString: fromHexString,
|
|
150
150
|
fromCss: fromCss,
|
|
@@ -532,7 +532,7 @@ function isObjectObject(o) {
|
|
|
532
532
|
&& Object.prototype.toString.call(o) === '[object Object]';
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
function isPlainObject(o) {
|
|
535
|
+
function isPlainObject$1(o) {
|
|
536
536
|
var ctor,prot;
|
|
537
537
|
|
|
538
538
|
if (isObjectObject(o) === false) return false;
|
|
@@ -556,11 +556,8 @@ function isPlainObject(o) {
|
|
|
556
556
|
|
|
557
557
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
558
558
|
|
|
559
|
-
|
|
560
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
561
|
-
}
|
|
559
|
+
var lodash_isequal = {exports: {}};
|
|
562
560
|
|
|
563
|
-
var lodash_isequal = createCommonjsModule(function (module, exports) {
|
|
564
561
|
/**
|
|
565
562
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
566
563
|
* Build: `lodash modularize exports="npm" -o ./`
|
|
@@ -570,6 +567,7 @@ var lodash_isequal = createCommonjsModule(function (module, exports) {
|
|
|
570
567
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
571
568
|
*/
|
|
572
569
|
|
|
570
|
+
(function (module, exports) {
|
|
573
571
|
/** Used as the size to enable large array optimizations. */
|
|
574
572
|
var LARGE_ARRAY_SIZE = 200;
|
|
575
573
|
|
|
@@ -655,7 +653,7 @@ var freeSelf = typeof self == 'object' && self && self.Object === Object && self
|
|
|
655
653
|
var root = freeGlobal || freeSelf || Function('return this')();
|
|
656
654
|
|
|
657
655
|
/** Detect free variable `exports`. */
|
|
658
|
-
var freeExports =
|
|
656
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
659
657
|
|
|
660
658
|
/** Detect free variable `module`. */
|
|
661
659
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -2409,7 +2407,9 @@ function stubFalse() {
|
|
|
2409
2407
|
}
|
|
2410
2408
|
|
|
2411
2409
|
module.exports = isEqual;
|
|
2412
|
-
});
|
|
2410
|
+
}(lodash_isequal, lodash_isequal.exports));
|
|
2411
|
+
|
|
2412
|
+
var areEqual = lodash_isequal.exports;
|
|
2413
2413
|
|
|
2414
2414
|
function defaults() {
|
|
2415
2415
|
var objects = [];
|
|
@@ -2427,7 +2427,7 @@ function defaults() {
|
|
|
2427
2427
|
if (result[key] == null) {
|
|
2428
2428
|
result[key] = b[key];
|
|
2429
2429
|
}
|
|
2430
|
-
else if (isPlainObject
|
|
2430
|
+
else if (isPlainObject(result[key])) {
|
|
2431
2431
|
result[key] = defaults(result[key], b[key]);
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
@@ -2457,8 +2457,8 @@ function defaults() {
|
|
|
2457
2457
|
* isPlainObject(Object.create(null)); //=> false
|
|
2458
2458
|
* ```
|
|
2459
2459
|
*/
|
|
2460
|
-
function isPlainObject
|
|
2461
|
-
return isPlainObject(obj);
|
|
2460
|
+
function isPlainObject(obj) {
|
|
2461
|
+
return isPlainObject$1(obj);
|
|
2462
2462
|
}
|
|
2463
2463
|
/**
|
|
2464
2464
|
* Performs a deep comparison of two objects and returns `true` if they're
|
|
@@ -2474,8 +2474,8 @@ function isPlainObject$1(obj) {
|
|
|
2474
2474
|
* @param b The object to compare with `a`.
|
|
2475
2475
|
* @returns `true` if the two objects are equal. Otherwise `false`.
|
|
2476
2476
|
*/
|
|
2477
|
-
function isEqual(a, b) {
|
|
2478
|
-
return
|
|
2477
|
+
function isEqual$1(a, b) {
|
|
2478
|
+
return areEqual(a, b);
|
|
2479
2479
|
}
|
|
2480
2480
|
function toPairs(obj) {
|
|
2481
2481
|
if (obj != null) {
|
|
@@ -2506,8 +2506,8 @@ function fromPairs(pairs) {
|
|
|
2506
2506
|
var objects = /*#__PURE__*/Object.freeze({
|
|
2507
2507
|
__proto__: null,
|
|
2508
2508
|
defaults: defaults,
|
|
2509
|
-
isPlainObject: isPlainObject
|
|
2510
|
-
isEqual: isEqual,
|
|
2509
|
+
isPlainObject: isPlainObject,
|
|
2510
|
+
isEqual: isEqual$1,
|
|
2511
2511
|
toPairs: toPairs,
|
|
2512
2512
|
fromPairs: fromPairs
|
|
2513
2513
|
});
|
|
@@ -2571,7 +2571,7 @@ var parseAndAddParams = function (baseStr, params) {
|
|
|
2571
2571
|
var base = parse(baseStr);
|
|
2572
2572
|
return params ? addQueryParams(params, base) : base;
|
|
2573
2573
|
};
|
|
2574
|
-
var isEqual
|
|
2574
|
+
var isEqual = function (a, b) {
|
|
2575
2575
|
var queryA = JSON.stringify(sortByQueryName(queryAsArray(a)));
|
|
2576
2576
|
var queryB = JSON.stringify(sortByQueryName(queryAsArray(b)));
|
|
2577
2577
|
return (a.scheme === b.scheme &&
|
|
@@ -2690,7 +2690,7 @@ var uri = /*#__PURE__*/Object.freeze({
|
|
|
2690
2690
|
__proto__: null,
|
|
2691
2691
|
parse: parse,
|
|
2692
2692
|
parseAndAddParams: parseAndAddParams,
|
|
2693
|
-
isEqual: isEqual
|
|
2693
|
+
isEqual: isEqual,
|
|
2694
2694
|
replacePath: replacePath,
|
|
2695
2695
|
pathAsArray: pathAsArray,
|
|
2696
2696
|
appendPath: appendPath,
|
|
@@ -2850,11 +2850,11 @@ function v1(options, buf, offset) {
|
|
|
2850
2850
|
return buf || stringify(b);
|
|
2851
2851
|
}
|
|
2852
2852
|
|
|
2853
|
-
var create
|
|
2853
|
+
var create = function () { return v1(); };
|
|
2854
2854
|
|
|
2855
2855
|
var uuid = /*#__PURE__*/Object.freeze({
|
|
2856
2856
|
__proto__: null,
|
|
2857
|
-
create: create
|
|
2857
|
+
create: create
|
|
2858
2858
|
});
|
|
2859
2859
|
|
|
2860
2860
|
var EventDispatcher = /** @class */ (function () {
|