@holoviz/panel 1.2.2 → 1.2.3-rc.1
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/bundled/datatabulator/luxon/build/global/luxon.min.js +1 -1
- package/dist/bundled/datatabulator/luxon/build/global/luxon.min.js.map +1 -1
- package/dist/bundled/notificationarea/panel/1.2.3-rc.1/dist/bundled/font-awesome/css/all.min.css +2 -0
- package/dist/bundled/panel/1.2.3-rc.1/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
- package/dist/bundled/panel/1.2.3-rc.1/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
- package/dist/bundled/panel/1.2.3-rc.1/dist/bundled/font-awesome/css/all.min.css +2 -0
- package/dist/bundled/panel/1.2.3-rc.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
- package/dist/bundled/plotlyplot/panel/1.2.3-rc.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
- package/dist/bundled/quillinput/{1.3.6 → 1.3.7}/quill.bubble.css +1 -1
- package/dist/bundled/quillinput/{1.3.6 → 1.3.7}/quill.js +83 -10
- package/dist/bundled/quillinput/{1.3.6 → 1.3.7}/quill.snow.css +1 -1
- package/dist/lib/models/html.js +4 -0
- package/dist/lib/models/html.js.map +1 -1
- package/dist/lib/models/quill.js +45 -2
- package/dist/lib/models/quill.js.map +1 -1
- package/dist/lib/models/reactive_html.js +1 -1
- package/dist/lib/models/reactive_html.js.map +1 -1
- package/dist/lib/models/tabulator.js +4 -0
- package/dist/lib/models/tabulator.js.map +1 -1
- package/dist/panel.js +788 -762
- package/dist/panel.js.map +1 -1
- package/dist/panel.json +1 -1
- package/dist/panel.min.js +23 -23
- package/dist/wheels/{panel-1.2.2-py3-none-any.whl → panel-1.2.3rc1-py3-none-any.whl} +0 -0
- package/package.json +9 -2
- package/dist/bundled/notificationarea/panel/1.2.2/dist/bundled/font-awesome/css/all.min.css +0 -2
- package/dist/bundled/panel/1.2.2/dist/bundled/bootstrap5/css/bootstrap.min.css +0 -2
- package/dist/bundled/panel/1.2.2/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +0 -2
- package/dist/bundled/panel/1.2.2/dist/bundled/font-awesome/css/all.min.css +0 -2
- package/dist/bundled/panel/1.2.2/dist/bundled/jquery/jquery.slim.min.js +0 -2
- package/dist/bundled/plotlyplot/panel/1.2.2/dist/bundled/jquery/jquery.slim.min.js +0 -2
package/dist/panel.js
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
__esExport("CommManager", comm_manager_1.CommManager);
|
|
67
67
|
var customselect_1 = require("9c8629b48f") /* ./customselect */;
|
|
68
68
|
__esExport("CustomSelect", customselect_1.CustomSelect);
|
|
69
|
-
var tabulator_1 = require("
|
|
69
|
+
var tabulator_1 = require("f9be88b634") /* ./tabulator */;
|
|
70
70
|
__esExport("DataTabulator", tabulator_1.DataTabulator);
|
|
71
71
|
var datetime_picker_1 = require("6658732ce1") /* ./datetime_picker */;
|
|
72
72
|
__esExport("DatetimePicker", datetime_picker_1.DatetimePicker);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
__esExport("DeckGLPlot", deckgl_1.DeckGLPlot);
|
|
75
75
|
var echarts_1 = require("54ac9fb4a9") /* ./echarts */;
|
|
76
76
|
__esExport("ECharts", echarts_1.ECharts);
|
|
77
|
-
var html_1 = require("
|
|
77
|
+
var html_1 = require("15e8e695c0") /* ./html */;
|
|
78
78
|
__esExport("HTML", html_1.HTML);
|
|
79
79
|
var ipywidget_1 = require("fb67b83931") /* ./ipywidget */;
|
|
80
80
|
__esExport("IPyWidget", ipywidget_1.IPyWidget);
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
__esExport("PlotlyPlot", plotly_1.PlotlyPlot);
|
|
101
101
|
var progress_1 = require("b82925a928") /* ./progress */;
|
|
102
102
|
__esExport("Progress", progress_1.Progress);
|
|
103
|
-
var quill_1 = require("
|
|
103
|
+
var quill_1 = require("613978ad84") /* ./quill */;
|
|
104
104
|
__esExport("QuillInput", quill_1.QuillInput);
|
|
105
|
-
var reactive_html_1 = require("
|
|
105
|
+
var reactive_html_1 = require("415e6d6661") /* ./reactive_html */;
|
|
106
106
|
__esExport("ReactiveHTML", reactive_html_1.ReactiveHTML);
|
|
107
107
|
var singleselect_1 = require("6b20024bba") /* ./singleselect */;
|
|
108
108
|
__esExport("SingleSelect", singleselect_1.SingleSelect);
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
});
|
|
1006
1006
|
})();
|
|
1007
1007
|
},
|
|
1008
|
-
"
|
|
1008
|
+
"f9be88b634": /* models/tabulator.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
1009
1009
|
__esModule();
|
|
1010
1010
|
var _a, _b, _c;
|
|
1011
1011
|
const dom_1 = require("@bokehjs/core/dom");
|
|
@@ -1269,6 +1269,10 @@
|
|
|
1269
1269
|
this.on_change([configuration, layout, groupby], (0, debounce_1.debounce)(() => {
|
|
1270
1270
|
this.invalidate_render();
|
|
1271
1271
|
}, 20, false));
|
|
1272
|
+
this.connect(this.model.properties.visible.change, () => {
|
|
1273
|
+
if (this.model.visible)
|
|
1274
|
+
this.tabulator.element.style.visibility = 'visible';
|
|
1275
|
+
});
|
|
1272
1276
|
this.on_change([columns], () => {
|
|
1273
1277
|
this.tabulator.setColumns(this.getColumns());
|
|
1274
1278
|
this.setHidden();
|
|
@@ -5060,7 +5064,7 @@
|
|
|
5060
5064
|
const data_1 = require("4e27eda472") /* ./data */;
|
|
5061
5065
|
const layout_dom_1 = require("@bokehjs/models/layouts/layout_dom");
|
|
5062
5066
|
const tooltips_1 = require("9588ab7c9e") /* ./tooltips */;
|
|
5063
|
-
const constants_1 = tslib_1.__importDefault(require("
|
|
5067
|
+
const constants_1 = tslib_1.__importDefault(require("d970fa7374") /* @luma.gl/constants */);
|
|
5064
5068
|
function extractClasses() {
|
|
5065
5069
|
// Get classes for registration from standalone deck.gl
|
|
5066
5070
|
const classesDict = {};
|
|
@@ -5459,21 +5463,12 @@
|
|
|
5459
5463
|
}
|
|
5460
5464
|
exports.makeTooltip = makeTooltip;
|
|
5461
5465
|
},
|
|
5462
|
-
"
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
// Standard WebGL 1 constants
|
|
5466
|
-
// These constants are defined on the WebGLRenderingContext interface.
|
|
5467
|
-
/* eslint-disable key-spacing, max-len, no-inline-comments, camelcase */
|
|
5468
|
-
// eslint-disable-next-line
|
|
5469
|
-
module.exports = {
|
|
5470
|
-
// Clearing buffers
|
|
5471
|
-
// Constants passed to clear() to clear buffer masks.
|
|
5466
|
+
"d970fa7374": /* @luma.gl/constants/dist/esm/index.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
5467
|
+
__esModule();
|
|
5468
|
+
exports.default = {
|
|
5472
5469
|
DEPTH_BUFFER_BIT: 0x00000100,
|
|
5473
5470
|
STENCIL_BUFFER_BIT: 0x00000400,
|
|
5474
5471
|
COLOR_BUFFER_BIT: 0x00004000,
|
|
5475
|
-
// Rendering primitives
|
|
5476
|
-
// Constants passed to drawElements() or drawArrays() to specify what kind of primitive to render.
|
|
5477
5472
|
POINTS: 0x0000,
|
|
5478
5473
|
LINES: 0x0001,
|
|
5479
5474
|
LINE_LOOP: 0x0002,
|
|
@@ -5481,8 +5476,6 @@
|
|
|
5481
5476
|
TRIANGLES: 0x0004,
|
|
5482
5477
|
TRIANGLE_STRIP: 0x0005,
|
|
5483
5478
|
TRIANGLE_FAN: 0x0006,
|
|
5484
|
-
// Blending modes
|
|
5485
|
-
// Constants passed to blendFunc() or blendFuncSeparate() to specify the blending mode (for both, RBG and alpha, or separately).
|
|
5486
5479
|
ZERO: 0,
|
|
5487
5480
|
ONE: 1,
|
|
5488
5481
|
SRC_COLOR: 0x0300,
|
|
@@ -5498,14 +5491,9 @@
|
|
|
5498
5491
|
ONE_MINUS_CONSTANT_COLOR: 0x8002,
|
|
5499
5492
|
CONSTANT_ALPHA: 0x8003,
|
|
5500
5493
|
ONE_MINUS_CONSTANT_ALPHA: 0x8004,
|
|
5501
|
-
// Blending equations
|
|
5502
|
-
// Constants passed to blendEquation() or blendEquationSeparate() to control
|
|
5503
|
-
// how the blending is calculated (for both, RBG and alpha, or separately).
|
|
5504
5494
|
FUNC_ADD: 0x8006,
|
|
5505
5495
|
FUNC_SUBTRACT: 0x800a,
|
|
5506
5496
|
FUNC_REVERSE_SUBTRACT: 0x800b,
|
|
5507
|
-
// Getting GL parameter information
|
|
5508
|
-
// Constants passed to getParameter() to specify what information to return.
|
|
5509
5497
|
BLEND_EQUATION: 0x8009,
|
|
5510
5498
|
BLEND_EQUATION_RGB: 0x8009,
|
|
5511
5499
|
BLEND_EQUATION_ALPHA: 0x883d,
|
|
@@ -5569,9 +5557,6 @@
|
|
|
5569
5557
|
IMPLEMENTATION_COLOR_READ_TYPE: 0x8b9a,
|
|
5570
5558
|
IMPLEMENTATION_COLOR_READ_FORMAT: 0x8b9b,
|
|
5571
5559
|
BROWSER_DEFAULT_WEBGL: 0x9244,
|
|
5572
|
-
// Buffers
|
|
5573
|
-
// Constants passed to bufferData(), bufferSubData(), bindBuffer(), or
|
|
5574
|
-
// getBufferParameter().
|
|
5575
5560
|
STATIC_DRAW: 0x88e4,
|
|
5576
5561
|
STREAM_DRAW: 0x88e0,
|
|
5577
5562
|
DYNAMIC_DRAW: 0x88e8,
|
|
@@ -5579,8 +5564,6 @@
|
|
|
5579
5564
|
ELEMENT_ARRAY_BUFFER: 0x8893,
|
|
5580
5565
|
BUFFER_SIZE: 0x8764,
|
|
5581
5566
|
BUFFER_USAGE: 0x8765,
|
|
5582
|
-
// Vertex attributes
|
|
5583
|
-
// Constants passed to getVertexAttrib().
|
|
5584
5567
|
CURRENT_VERTEX_ATTRIB: 0x8626,
|
|
5585
5568
|
VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622,
|
|
5586
5569
|
VERTEX_ATTRIB_ARRAY_SIZE: 0x8623,
|
|
@@ -5589,14 +5572,10 @@
|
|
|
5589
5572
|
VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886a,
|
|
5590
5573
|
VERTEX_ATTRIB_ARRAY_POINTER: 0x8645,
|
|
5591
5574
|
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889f,
|
|
5592
|
-
// Culling
|
|
5593
|
-
// Constants passed to cullFace().
|
|
5594
5575
|
CULL_FACE: 0x0b44,
|
|
5595
5576
|
FRONT: 0x0404,
|
|
5596
5577
|
BACK: 0x0405,
|
|
5597
5578
|
FRONT_AND_BACK: 0x0408,
|
|
5598
|
-
// Enabling and disabling
|
|
5599
|
-
// Constants passed to enable() or disable().
|
|
5600
5579
|
BLEND: 0x0be2,
|
|
5601
5580
|
DEPTH_TEST: 0x0b71,
|
|
5602
5581
|
DITHER: 0x0bd0,
|
|
@@ -5605,25 +5584,18 @@
|
|
|
5605
5584
|
SAMPLE_COVERAGE: 0x80a0,
|
|
5606
5585
|
SCISSOR_TEST: 0x0c11,
|
|
5607
5586
|
STENCIL_TEST: 0x0b90,
|
|
5608
|
-
// Errors
|
|
5609
|
-
// Constants returned from getError().
|
|
5610
5587
|
NO_ERROR: 0,
|
|
5611
5588
|
INVALID_ENUM: 0x0500,
|
|
5612
5589
|
INVALID_VALUE: 0x0501,
|
|
5613
5590
|
INVALID_OPERATION: 0x0502,
|
|
5614
5591
|
OUT_OF_MEMORY: 0x0505,
|
|
5615
5592
|
CONTEXT_LOST_WEBGL: 0x9242,
|
|
5616
|
-
// Front face directions
|
|
5617
|
-
// Constants passed to frontFace().
|
|
5618
5593
|
CW: 0x0900,
|
|
5619
5594
|
CCW: 0x0901,
|
|
5620
|
-
// Hints
|
|
5621
|
-
// Constants passed to hint()
|
|
5622
5595
|
DONT_CARE: 0x1100,
|
|
5623
5596
|
FASTEST: 0x1101,
|
|
5624
5597
|
NICEST: 0x1102,
|
|
5625
5598
|
GENERATE_MIPMAP_HINT: 0x8192,
|
|
5626
|
-
// Data types
|
|
5627
5599
|
BYTE: 0x1400,
|
|
5628
5600
|
UNSIGNED_BYTE: 0x1401,
|
|
5629
5601
|
SHORT: 0x1402,
|
|
@@ -5632,20 +5604,15 @@
|
|
|
5632
5604
|
UNSIGNED_INT: 0x1405,
|
|
5633
5605
|
FLOAT: 0x1406,
|
|
5634
5606
|
DOUBLE: 0x140a,
|
|
5635
|
-
// Pixel formats
|
|
5636
5607
|
DEPTH_COMPONENT: 0x1902,
|
|
5637
5608
|
ALPHA: 0x1906,
|
|
5638
5609
|
RGB: 0x1907,
|
|
5639
5610
|
RGBA: 0x1908,
|
|
5640
5611
|
LUMINANCE: 0x1909,
|
|
5641
5612
|
LUMINANCE_ALPHA: 0x190a,
|
|
5642
|
-
// Pixel types
|
|
5643
|
-
// UNSIGNED_BYTE: 0x1401,
|
|
5644
5613
|
UNSIGNED_SHORT_4_4_4_4: 0x8033,
|
|
5645
5614
|
UNSIGNED_SHORT_5_5_5_1: 0x8034,
|
|
5646
5615
|
UNSIGNED_SHORT_5_6_5: 0x8363,
|
|
5647
|
-
// Shaders
|
|
5648
|
-
// Constants passed to createShader() or getShaderParameter()
|
|
5649
5616
|
FRAGMENT_SHADER: 0x8b30,
|
|
5650
5617
|
VERTEX_SHADER: 0x8b31,
|
|
5651
5618
|
COMPILE_STATUS: 0x8b81,
|
|
@@ -5665,8 +5632,6 @@
|
|
|
5665
5632
|
SHADER_TYPE: 0x8b4f,
|
|
5666
5633
|
SHADING_LANGUAGE_VERSION: 0x8b8c,
|
|
5667
5634
|
CURRENT_PROGRAM: 0x8b8d,
|
|
5668
|
-
// Depth or stencil tests
|
|
5669
|
-
// Constants passed to depthFunc() or stencilFunc().
|
|
5670
5635
|
NEVER: 0x0200,
|
|
5671
5636
|
ALWAYS: 0x0207,
|
|
5672
5637
|
LESS: 0x0201,
|
|
@@ -5675,8 +5640,6 @@
|
|
|
5675
5640
|
GREATER: 0x0204,
|
|
5676
5641
|
GEQUAL: 0x0206,
|
|
5677
5642
|
NOTEQUAL: 0x0205,
|
|
5678
|
-
// Stencil actions
|
|
5679
|
-
// Constants passed to stencilOp().
|
|
5680
5643
|
KEEP: 0x1e00,
|
|
5681
5644
|
REPLACE: 0x1e01,
|
|
5682
5645
|
INCR: 0x1e02,
|
|
@@ -5684,9 +5647,6 @@
|
|
|
5684
5647
|
INVERT: 0x150a,
|
|
5685
5648
|
INCR_WRAP: 0x8507,
|
|
5686
5649
|
DECR_WRAP: 0x8508,
|
|
5687
|
-
// Textures
|
|
5688
|
-
// Constants passed to texParameteri(),
|
|
5689
|
-
// texParameterf(), bindTexture(), texImage2D(), and others.
|
|
5690
5650
|
NEAREST: 0x2600,
|
|
5691
5651
|
LINEAR: 0x2601,
|
|
5692
5652
|
NEAREST_MIPMAP_NEAREST: 0x2700,
|
|
@@ -5708,16 +5668,13 @@
|
|
|
5708
5668
|
TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519,
|
|
5709
5669
|
TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851a,
|
|
5710
5670
|
MAX_CUBE_MAP_TEXTURE_SIZE: 0x851c,
|
|
5711
|
-
// TEXTURE0 - 31 0x84C0 - 0x84DF A texture unit.
|
|
5712
5671
|
TEXTURE0: 0x84c0,
|
|
5713
5672
|
ACTIVE_TEXTURE: 0x84e0,
|
|
5714
5673
|
REPEAT: 0x2901,
|
|
5715
5674
|
CLAMP_TO_EDGE: 0x812f,
|
|
5716
5675
|
MIRRORED_REPEAT: 0x8370,
|
|
5717
|
-
// Emulation
|
|
5718
5676
|
TEXTURE_WIDTH: 0x1000,
|
|
5719
5677
|
TEXTURE_HEIGHT: 0x1001,
|
|
5720
|
-
// Uniform types
|
|
5721
5678
|
FLOAT_VEC2: 0x8b50,
|
|
5722
5679
|
FLOAT_VEC3: 0x8b51,
|
|
5723
5680
|
FLOAT_VEC4: 0x8b52,
|
|
@@ -5733,14 +5690,12 @@
|
|
|
5733
5690
|
FLOAT_MAT4: 0x8b5c,
|
|
5734
5691
|
SAMPLER_2D: 0x8b5e,
|
|
5735
5692
|
SAMPLER_CUBE: 0x8b60,
|
|
5736
|
-
// Shader precision-specified types
|
|
5737
5693
|
LOW_FLOAT: 0x8df0,
|
|
5738
5694
|
MEDIUM_FLOAT: 0x8df1,
|
|
5739
5695
|
HIGH_FLOAT: 0x8df2,
|
|
5740
5696
|
LOW_INT: 0x8df3,
|
|
5741
5697
|
MEDIUM_INT: 0x8df4,
|
|
5742
5698
|
HIGH_INT: 0x8df5,
|
|
5743
|
-
// Framebuffers and renderbuffers
|
|
5744
5699
|
FRAMEBUFFER: 0x8d40,
|
|
5745
5700
|
RENDERBUFFER: 0x8d41,
|
|
5746
5701
|
RGBA4: 0x8056,
|
|
@@ -5779,19 +5734,9 @@
|
|
|
5779
5734
|
DRAW_FRAMEBUFFER: 0x8ca9,
|
|
5780
5735
|
MAX_RENDERBUFFER_SIZE: 0x84e8,
|
|
5781
5736
|
INVALID_FRAMEBUFFER_OPERATION: 0x0506,
|
|
5782
|
-
// Pixel storage modes
|
|
5783
|
-
// Constants passed to pixelStorei().
|
|
5784
5737
|
UNPACK_FLIP_Y_WEBGL: 0x9240,
|
|
5785
5738
|
UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241,
|
|
5786
5739
|
UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243,
|
|
5787
|
-
// /////////////////////////////////////////////////////
|
|
5788
|
-
// Additional constants defined WebGL 2
|
|
5789
|
-
// These constants are defined on the WebGL2RenderingContext interface.
|
|
5790
|
-
// All WebGL 1 constants are also available in a WebGL 2 context.
|
|
5791
|
-
// /////////////////////////////////////////////////////
|
|
5792
|
-
// Getting GL parameter information
|
|
5793
|
-
// Constants passed to getParameter()
|
|
5794
|
-
// to specify what information to return.
|
|
5795
5740
|
READ_BUFFER: 0x0c02,
|
|
5796
5741
|
UNPACK_ROW_LENGTH: 0x0cf2,
|
|
5797
5742
|
UNPACK_SKIP_ROWS: 0x0cf3,
|
|
@@ -5819,9 +5764,6 @@
|
|
|
5819
5764
|
MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125,
|
|
5820
5765
|
MAX_SERVER_WAIT_TIMEOUT: 0x9111,
|
|
5821
5766
|
MAX_ELEMENT_INDEX: 0x8d6b,
|
|
5822
|
-
// Textures
|
|
5823
|
-
// Constants passed to texParameteri(),
|
|
5824
|
-
// texParameterf(), bindTexture(), texImage2D(), and others.
|
|
5825
5767
|
RED: 0x1903,
|
|
5826
5768
|
RGB8: 0x8051,
|
|
5827
5769
|
RGBA8: 0x8058,
|
|
@@ -5884,21 +5826,8 @@
|
|
|
5884
5826
|
RGB8_SNORM: 0x8f96,
|
|
5885
5827
|
RGBA8_SNORM: 0x8f97,
|
|
5886
5828
|
RGB10_A2UI: 0x906f,
|
|
5887
|
-
/* covered by extension
|
|
5888
|
-
COMPRESSED_R11_EAC : 0x9270,
|
|
5889
|
-
COMPRESSED_SIGNED_R11_EAC: 0x9271,
|
|
5890
|
-
COMPRESSED_RG11_EAC: 0x9272,
|
|
5891
|
-
COMPRESSED_SIGNED_RG11_EAC : 0x9273,
|
|
5892
|
-
COMPRESSED_RGB8_ETC2 : 0x9274,
|
|
5893
|
-
COMPRESSED_SRGB8_ETC2: 0x9275,
|
|
5894
|
-
COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 : 0x9276,
|
|
5895
|
-
COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC : 0x9277,
|
|
5896
|
-
COMPRESSED_RGBA8_ETC2_EAC: 0x9278,
|
|
5897
|
-
COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : 0x9279,
|
|
5898
|
-
*/
|
|
5899
5829
|
TEXTURE_IMMUTABLE_FORMAT: 0x912f,
|
|
5900
5830
|
TEXTURE_IMMUTABLE_LEVELS: 0x82df,
|
|
5901
|
-
// Pixel types
|
|
5902
5831
|
UNSIGNED_INT_2_10_10_10_REV: 0x8368,
|
|
5903
5832
|
UNSIGNED_INT_10F_11F_11F_REV: 0x8c3b,
|
|
5904
5833
|
UNSIGNED_INT_5_9_9_9_REV: 0x8c3e,
|
|
@@ -5908,13 +5837,11 @@
|
|
|
5908
5837
|
RG: 0x8227,
|
|
5909
5838
|
RG_INTEGER: 0x8228,
|
|
5910
5839
|
INT_2_10_10_10_REV: 0x8d9f,
|
|
5911
|
-
// Queries
|
|
5912
5840
|
CURRENT_QUERY: 0x8865,
|
|
5913
5841
|
QUERY_RESULT: 0x8866,
|
|
5914
5842
|
QUERY_RESULT_AVAILABLE: 0x8867,
|
|
5915
5843
|
ANY_SAMPLES_PASSED: 0x8c2f,
|
|
5916
5844
|
ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8d6a,
|
|
5917
|
-
// Draw buffers
|
|
5918
5845
|
MAX_DRAW_BUFFERS: 0x8824,
|
|
5919
5846
|
DRAW_BUFFER0: 0x8825,
|
|
5920
5847
|
DRAW_BUFFER1: 0x8826,
|
|
@@ -5948,7 +5875,6 @@
|
|
|
5948
5875
|
COLOR_ATTACHMENT13: 0x8ced,
|
|
5949
5876
|
COLOR_ATTACHMENT14: 0x8cee,
|
|
5950
5877
|
COLOR_ATTACHMENT15: 0x8cef,
|
|
5951
|
-
// Samplers
|
|
5952
5878
|
SAMPLER_3D: 0x8b5f,
|
|
5953
5879
|
SAMPLER_2D_SHADOW: 0x8b62,
|
|
5954
5880
|
SAMPLER_2D_ARRAY: 0x8dc1,
|
|
@@ -5964,7 +5890,6 @@
|
|
|
5964
5890
|
UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8dd7,
|
|
5965
5891
|
MAX_SAMPLES: 0x8d57,
|
|
5966
5892
|
SAMPLER_BINDING: 0x8919,
|
|
5967
|
-
// Buffers
|
|
5968
5893
|
PIXEL_PACK_BUFFER: 0x88eb,
|
|
5969
5894
|
PIXEL_UNPACK_BUFFER: 0x88ec,
|
|
5970
5895
|
PIXEL_PACK_BUFFER_BINDING: 0x88ed,
|
|
@@ -5973,7 +5898,6 @@
|
|
|
5973
5898
|
COPY_WRITE_BUFFER: 0x8f37,
|
|
5974
5899
|
COPY_READ_BUFFER_BINDING: 0x8f36,
|
|
5975
5900
|
COPY_WRITE_BUFFER_BINDING: 0x8f37,
|
|
5976
|
-
// Data types
|
|
5977
5901
|
FLOAT_MAT2x3: 0x8b65,
|
|
5978
5902
|
FLOAT_MAT2x4: 0x8b66,
|
|
5979
5903
|
FLOAT_MAT3x2: 0x8b67,
|
|
@@ -5985,10 +5909,8 @@
|
|
|
5985
5909
|
UNSIGNED_INT_VEC4: 0x8dc8,
|
|
5986
5910
|
UNSIGNED_NORMALIZED: 0x8c17,
|
|
5987
5911
|
SIGNED_NORMALIZED: 0x8f9c,
|
|
5988
|
-
// Vertex attributes
|
|
5989
5912
|
VERTEX_ATTRIB_ARRAY_INTEGER: 0x88fd,
|
|
5990
5913
|
VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88fe,
|
|
5991
|
-
// Transform feedback
|
|
5992
5914
|
TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8c7f,
|
|
5993
5915
|
MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8c80,
|
|
5994
5916
|
TRANSFORM_FEEDBACK_VARYINGS: 0x8c83,
|
|
@@ -6005,7 +5927,6 @@
|
|
|
6005
5927
|
TRANSFORM_FEEDBACK_PAUSED: 0x8e23,
|
|
6006
5928
|
TRANSFORM_FEEDBACK_ACTIVE: 0x8e24,
|
|
6007
5929
|
TRANSFORM_FEEDBACK_BINDING: 0x8e25,
|
|
6008
|
-
// Framebuffers and renderbuffers
|
|
6009
5930
|
FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210,
|
|
6010
5931
|
FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211,
|
|
6011
5932
|
FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212,
|
|
@@ -6015,15 +5936,12 @@
|
|
|
6015
5936
|
FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216,
|
|
6016
5937
|
FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217,
|
|
6017
5938
|
FRAMEBUFFER_DEFAULT: 0x8218,
|
|
6018
|
-
// DEPTH_STENCIL_ATTACHMENT : 0x821A,
|
|
6019
|
-
// DEPTH_STENCIL: 0x84F9,
|
|
6020
5939
|
DEPTH24_STENCIL8: 0x88f0,
|
|
6021
5940
|
DRAW_FRAMEBUFFER_BINDING: 0x8ca6,
|
|
6022
5941
|
READ_FRAMEBUFFER_BINDING: 0x8caa,
|
|
6023
5942
|
RENDERBUFFER_SAMPLES: 0x8cab,
|
|
6024
5943
|
FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8cd4,
|
|
6025
5944
|
FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8d56,
|
|
6026
|
-
// Uniforms
|
|
6027
5945
|
UNIFORM_BUFFER: 0x8a11,
|
|
6028
5946
|
UNIFORM_BUFFER_BINDING: 0x8a28,
|
|
6029
5947
|
UNIFORM_BUFFER_START: 0x8a29,
|
|
@@ -6050,7 +5968,6 @@
|
|
|
6050
5968
|
UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8a43,
|
|
6051
5969
|
UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8a44,
|
|
6052
5970
|
UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8a46,
|
|
6053
|
-
// Sync objects
|
|
6054
5971
|
OBJECT_TYPE: 0x9112,
|
|
6055
5972
|
SYNC_CONDITION: 0x9113,
|
|
6056
5973
|
SYNC_STATUS: 0x9114,
|
|
@@ -6064,7 +5981,6 @@
|
|
|
6064
5981
|
CONDITION_SATISFIED: 0x911c,
|
|
6065
5982
|
WAIT_FAILED: 0x911d,
|
|
6066
5983
|
SYNC_FLUSH_COMMANDS_BIT: 0x00000001,
|
|
6067
|
-
// Miscellaneous constants
|
|
6068
5984
|
COLOR: 0x1800,
|
|
6069
5985
|
DEPTH: 0x1801,
|
|
6070
5986
|
STENCIL: 0x1802,
|
|
@@ -6082,21 +5998,15 @@
|
|
|
6082
5998
|
INVALID_INDEX: 0xffffffff,
|
|
6083
5999
|
TIMEOUT_IGNORED: -1,
|
|
6084
6000
|
MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247,
|
|
6085
|
-
// Constants defined in WebGL extensions
|
|
6086
|
-
// ANGLE_instanced_arrays
|
|
6087
6001
|
VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88fe,
|
|
6088
|
-
// WEBGL_debug_renderer_info
|
|
6089
6002
|
UNMASKED_VENDOR_WEBGL: 0x9245,
|
|
6090
6003
|
UNMASKED_RENDERER_WEBGL: 0x9246,
|
|
6091
|
-
// EXT_texture_filter_anisotropic
|
|
6092
6004
|
MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84ff,
|
|
6093
6005
|
TEXTURE_MAX_ANISOTROPY_EXT: 0x84fe,
|
|
6094
|
-
// WEBGL_compressed_texture_s3tc
|
|
6095
6006
|
COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83f0,
|
|
6096
6007
|
COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83f1,
|
|
6097
6008
|
COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83f2,
|
|
6098
6009
|
COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83f3,
|
|
6099
|
-
// WEBGL_compressed_texture_es3
|
|
6100
6010
|
COMPRESSED_R11_EAC: 0x9270,
|
|
6101
6011
|
COMPRESSED_SIGNED_R11_EAC: 0x9271,
|
|
6102
6012
|
COMPRESSED_RG11_EAC: 0x9272,
|
|
@@ -6107,37 +6017,27 @@
|
|
|
6107
6017
|
COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9277,
|
|
6108
6018
|
COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9278,
|
|
6109
6019
|
COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9279,
|
|
6110
|
-
// WEBGL_compressed_texture_pvrtc
|
|
6111
6020
|
COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8c00,
|
|
6112
6021
|
COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8c02,
|
|
6113
6022
|
COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8c01,
|
|
6114
6023
|
COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8c03,
|
|
6115
|
-
// WEBGL_compressed_texture_etc1
|
|
6116
6024
|
COMPRESSED_RGB_ETC1_WEBGL: 0x8d64,
|
|
6117
|
-
// WEBGL_compressed_texture_atc
|
|
6118
6025
|
COMPRESSED_RGB_ATC_WEBGL: 0x8c92,
|
|
6119
6026
|
COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: 0x8c92,
|
|
6120
6027
|
COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: 0x87ee,
|
|
6121
|
-
// WEBGL_depth_texture
|
|
6122
6028
|
UNSIGNED_INT_24_8_WEBGL: 0x84fa,
|
|
6123
|
-
// OES_texture_half_float
|
|
6124
6029
|
HALF_FLOAT_OES: 0x8d61,
|
|
6125
|
-
// WEBGL_color_buffer_float
|
|
6126
6030
|
RGBA32F_EXT: 0x8814,
|
|
6127
6031
|
RGB32F_EXT: 0x8815,
|
|
6128
6032
|
FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211,
|
|
6129
6033
|
UNSIGNED_NORMALIZED_EXT: 0x8c17,
|
|
6130
|
-
// EXT_blend_minmax
|
|
6131
6034
|
MIN_EXT: 0x8007,
|
|
6132
6035
|
MAX_EXT: 0x8008,
|
|
6133
|
-
// EXT_sRGB
|
|
6134
6036
|
SRGB_EXT: 0x8c40,
|
|
6135
6037
|
SRGB_ALPHA_EXT: 0x8c42,
|
|
6136
6038
|
SRGB8_ALPHA8_EXT: 0x8c43,
|
|
6137
6039
|
FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210,
|
|
6138
|
-
// OES_standard_derivatives
|
|
6139
6040
|
FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8b8b,
|
|
6140
|
-
// WEBGL_draw_buffers
|
|
6141
6041
|
COLOR_ATTACHMENT0_WEBGL: 0x8ce0,
|
|
6142
6042
|
COLOR_ATTACHMENT1_WEBGL: 0x8ce1,
|
|
6143
6043
|
COLOR_ATTACHMENT2_WEBGL: 0x8ce2,
|
|
@@ -6172,16 +6072,14 @@
|
|
|
6172
6072
|
DRAW_BUFFER15_WEBGL: 0x8834,
|
|
6173
6073
|
MAX_COLOR_ATTACHMENTS_WEBGL: 0x8cdf,
|
|
6174
6074
|
MAX_DRAW_BUFFERS_WEBGL: 0x8824,
|
|
6175
|
-
// OES_vertex_array_object
|
|
6176
6075
|
VERTEX_ARRAY_BINDING_OES: 0x85b5,
|
|
6177
|
-
// EXT_disjoint_timer_query
|
|
6178
6076
|
QUERY_COUNTER_BITS_EXT: 0x8864,
|
|
6179
6077
|
CURRENT_QUERY_EXT: 0x8865,
|
|
6180
6078
|
QUERY_RESULT_EXT: 0x8866,
|
|
6181
6079
|
QUERY_RESULT_AVAILABLE_EXT: 0x8867,
|
|
6182
6080
|
TIME_ELAPSED_EXT: 0x88bf,
|
|
6183
6081
|
TIMESTAMP_EXT: 0x8e28,
|
|
6184
|
-
GPU_DISJOINT_EXT: 0x8fbb
|
|
6082
|
+
GPU_DISJOINT_EXT: 0x8fbb
|
|
6185
6083
|
};
|
|
6186
6084
|
},
|
|
6187
6085
|
"54ac9fb4a9": /* models/echarts.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
@@ -6575,7 +6473,7 @@
|
|
|
6575
6473
|
});
|
|
6576
6474
|
});
|
|
6577
6475
|
},
|
|
6578
|
-
"
|
|
6476
|
+
"15e8e695c0": /* models/html.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
6579
6477
|
__esModule();
|
|
6580
6478
|
var _a, _b;
|
|
6581
6479
|
const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
|
|
@@ -6625,6 +6523,10 @@
|
|
|
6625
6523
|
const html = this.process_tex();
|
|
6626
6524
|
this.set_html(html);
|
|
6627
6525
|
});
|
|
6526
|
+
this.connect(this.model.properties.visible.change, () => {
|
|
6527
|
+
if (this.model.visible)
|
|
6528
|
+
this.container.style.visibility = 'visible';
|
|
6529
|
+
});
|
|
6628
6530
|
this.connect(this.model.properties.events.change, () => {
|
|
6629
6531
|
this._remove_event_listeners();
|
|
6630
6532
|
this._setup_event_listeners();
|
|
@@ -7405,7 +7307,7 @@
|
|
|
7405
7307
|
var _a;
|
|
7406
7308
|
const markup_1 = require("@bokehjs/models/widgets/markup");
|
|
7407
7309
|
const layout_1 = require("ea218d1c3c") /* ./layout */;
|
|
7408
|
-
const html_1 = require("
|
|
7310
|
+
const html_1 = require("15e8e695c0") /* ./html */;
|
|
7409
7311
|
class PDFView extends layout_1.PanelMarkupView {
|
|
7410
7312
|
connect_signals() {
|
|
7411
7313
|
super.connect_signals();
|
|
@@ -8582,15 +8484,47 @@
|
|
|
8582
8484
|
}));
|
|
8583
8485
|
})();
|
|
8584
8486
|
},
|
|
8585
|
-
"
|
|
8487
|
+
"613978ad84": /* models/quill.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
8586
8488
|
__esModule();
|
|
8587
8489
|
var _a;
|
|
8588
8490
|
const dom_1 = require("@bokehjs/core/dom");
|
|
8589
8491
|
const layout_1 = require("ea218d1c3c") /* ./layout */;
|
|
8492
|
+
const normalizeNative = (nativeRange) => {
|
|
8493
|
+
// document.getSelection model has properties startContainer and endContainer
|
|
8494
|
+
// shadow.getSelection model has baseNode and focusNode
|
|
8495
|
+
// Unify formats to always look like document.getSelection
|
|
8496
|
+
if (nativeRange) {
|
|
8497
|
+
const range = nativeRange;
|
|
8498
|
+
if (range.baseNode) {
|
|
8499
|
+
range.startContainer = nativeRange.baseNode;
|
|
8500
|
+
range.endContainer = nativeRange.focusNode;
|
|
8501
|
+
range.startOffset = nativeRange.baseOffset;
|
|
8502
|
+
range.endOffset = nativeRange.focusOffset;
|
|
8503
|
+
if (range.endOffset < range.startOffset) {
|
|
8504
|
+
range.startContainer = nativeRange.focusNode;
|
|
8505
|
+
range.endContainer = nativeRange.baseNode;
|
|
8506
|
+
range.startOffset = nativeRange.focusOffset;
|
|
8507
|
+
range.endOffset = nativeRange.baseOffset;
|
|
8508
|
+
}
|
|
8509
|
+
}
|
|
8510
|
+
if (range.startContainer) {
|
|
8511
|
+
return {
|
|
8512
|
+
start: { node: range.startContainer, offset: range.startOffset },
|
|
8513
|
+
end: { node: range.endContainer, offset: range.endOffset },
|
|
8514
|
+
native: range
|
|
8515
|
+
};
|
|
8516
|
+
}
|
|
8517
|
+
}
|
|
8518
|
+
return null;
|
|
8519
|
+
};
|
|
8590
8520
|
class QuillInputView extends layout_1.HTMLBoxView {
|
|
8591
8521
|
connect_signals() {
|
|
8592
8522
|
super.connect_signals();
|
|
8593
8523
|
this.connect(this.model.properties.disabled.change, () => this.quill.enable(!this.model.disabled));
|
|
8524
|
+
this.connect(this.model.properties.visible.change, () => {
|
|
8525
|
+
if (this.model.visible)
|
|
8526
|
+
this.container.style.visibility = 'visible';
|
|
8527
|
+
});
|
|
8594
8528
|
this.connect(this.model.properties.text.change, () => {
|
|
8595
8529
|
if (this._editing)
|
|
8596
8530
|
return;
|
|
@@ -8634,9 +8568,17 @@
|
|
|
8634
8568
|
placeholder: this.model.placeholder,
|
|
8635
8569
|
theme: theme
|
|
8636
8570
|
});
|
|
8571
|
+
// Hack Quill and replace document.getSelection with shadow.getSelection
|
|
8572
|
+
// see https://stackoverflow.com/questions/67914657/quill-editor-inside-shadow-dom/67944380#67944380
|
|
8573
|
+
this.quill.selection.getNativeRange = () => {
|
|
8574
|
+
const selection = this.shadow_el.getSelection();
|
|
8575
|
+
const range = normalizeNative(selection);
|
|
8576
|
+
return range;
|
|
8577
|
+
};
|
|
8637
8578
|
this._editor = this.shadow_el.querySelector('.ql-editor');
|
|
8638
8579
|
this._toolbar = this.shadow_el.querySelector('.ql-toolbar');
|
|
8639
|
-
this.quill.clipboard.
|
|
8580
|
+
const delta = this.quill.clipboard.convert(this.model.text);
|
|
8581
|
+
this.quill.setContents(delta);
|
|
8640
8582
|
this.quill.on('text-change', () => {
|
|
8641
8583
|
if (this._editing)
|
|
8642
8584
|
return;
|
|
@@ -8652,7 +8594,10 @@
|
|
|
8652
8594
|
});
|
|
8653
8595
|
}
|
|
8654
8596
|
style_redraw() {
|
|
8655
|
-
this.
|
|
8597
|
+
if (this.model.visible)
|
|
8598
|
+
this.container.style.visibility = 'visible';
|
|
8599
|
+
const delta = this.quill.clipboard.convert(this.model.text);
|
|
8600
|
+
this.quill.setContents(delta);
|
|
8656
8601
|
this.invalidate_layout();
|
|
8657
8602
|
}
|
|
8658
8603
|
after_layout() {
|
|
@@ -8684,17 +8629,17 @@
|
|
|
8684
8629
|
});
|
|
8685
8630
|
})();
|
|
8686
8631
|
},
|
|
8687
|
-
"
|
|
8632
|
+
"415e6d6661": /* models/reactive_html.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
8688
8633
|
__esModule();
|
|
8689
8634
|
var _a;
|
|
8690
|
-
const preact_1 = require("
|
|
8691
|
-
const hooks_1 = require("
|
|
8635
|
+
const preact_1 = require("1fa25f4fbb") /* preact */;
|
|
8636
|
+
const hooks_1 = require("d952f1d8b6") /* preact/hooks */;
|
|
8692
8637
|
const preact_2 = require("b3f51db71c") /* htm/preact */;
|
|
8693
8638
|
const dom_1 = require("@bokehjs/core/dom");
|
|
8694
8639
|
const types_1 = require("@bokehjs/core/util/types");
|
|
8695
8640
|
const data_1 = require("4e27eda472") /* ./data */;
|
|
8696
8641
|
const event_to_object_1 = require("490942d778") /* ./event-to-object */;
|
|
8697
|
-
const html_1 = require("
|
|
8642
|
+
const html_1 = require("15e8e695c0") /* ./html */;
|
|
8698
8643
|
const layout_1 = require("ea218d1c3c") /* ./layout */;
|
|
8699
8644
|
function serialize_attrs(attrs) {
|
|
8700
8645
|
const serialized = {};
|
|
@@ -8948,7 +8893,7 @@
|
|
|
8948
8893
|
}
|
|
8949
8894
|
}
|
|
8950
8895
|
_render_html(literal, state = {}) {
|
|
8951
|
-
let htm = literal;
|
|
8896
|
+
let htm = literal.replace(/[`]/g, '\\$&');
|
|
8952
8897
|
let callbacks = '';
|
|
8953
8898
|
const methods = [];
|
|
8954
8899
|
for (const elname in this.model.callbacks) {
|
|
@@ -9158,44 +9103,44 @@
|
|
|
9158
9103
|
}));
|
|
9159
9104
|
})();
|
|
9160
9105
|
},
|
|
9161
|
-
"
|
|
9106
|
+
"1fa25f4fbb": /* preact/dist/preact.module.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
9162
9107
|
__esModule();
|
|
9163
|
-
var n, l, u, i,
|
|
9108
|
+
var n, l, u, t, i, o, r, f, e, c = {}, s = [], a = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, h = Array.isArray;
|
|
9164
9109
|
exports.options = l;
|
|
9165
|
-
exports.isValidElement =
|
|
9166
|
-
function
|
|
9110
|
+
exports.isValidElement = t;
|
|
9111
|
+
function v(n, l) {
|
|
9167
9112
|
for (var u in l)
|
|
9168
9113
|
n[u] = l[u];
|
|
9169
9114
|
return n;
|
|
9170
9115
|
}
|
|
9171
|
-
function
|
|
9172
|
-
function
|
|
9173
|
-
var
|
|
9174
|
-
for (
|
|
9175
|
-
"key" ==
|
|
9176
|
-
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) :
|
|
9177
|
-
for (
|
|
9178
|
-
void 0 === f[
|
|
9179
|
-
return
|
|
9180
|
-
}
|
|
9181
|
-
exports.createElement =
|
|
9182
|
-
exports.h =
|
|
9183
|
-
function
|
|
9184
|
-
function
|
|
9185
|
-
exports.createRef =
|
|
9186
|
-
function
|
|
9187
|
-
exports.Fragment =
|
|
9188
|
-
function
|
|
9189
|
-
exports.Component =
|
|
9190
|
-
function
|
|
9116
|
+
function p(n) { var l = n.parentNode; l && l.removeChild(n); }
|
|
9117
|
+
function y(l, u, t) {
|
|
9118
|
+
var i, o, r, f = {};
|
|
9119
|
+
for (r in u)
|
|
9120
|
+
"key" == r ? i = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
|
|
9121
|
+
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps)
|
|
9122
|
+
for (r in l.defaultProps)
|
|
9123
|
+
void 0 === f[r] && (f[r] = l.defaultProps[r]);
|
|
9124
|
+
return d(l, f, i, o, null);
|
|
9125
|
+
}
|
|
9126
|
+
exports.createElement = y;
|
|
9127
|
+
exports.h = y;
|
|
9128
|
+
function d(n, t, i, o, r) { var f = { type: n, props: t, key: i, ref: o, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r ? ++u : r }; return null == r && null != l.vnode && l.vnode(f), f; }
|
|
9129
|
+
function _() { return { current: null }; }
|
|
9130
|
+
exports.createRef = _;
|
|
9131
|
+
function k(n) { return n.children; }
|
|
9132
|
+
exports.Fragment = k;
|
|
9133
|
+
function b(n, l) { this.props = n, this.context = l; }
|
|
9134
|
+
exports.Component = b;
|
|
9135
|
+
function g(n, l) {
|
|
9191
9136
|
if (null == l)
|
|
9192
|
-
return n.__ ?
|
|
9137
|
+
return n.__ ? g(n.__, n.__.__k.indexOf(n) + 1) : null;
|
|
9193
9138
|
for (var u; l < n.__k.length; l++)
|
|
9194
9139
|
if (null != (u = n.__k[l]) && null != u.__e)
|
|
9195
9140
|
return u.__e;
|
|
9196
|
-
return "function" == typeof n.type ?
|
|
9141
|
+
return "function" == typeof n.type ? g(n) : null;
|
|
9197
9142
|
}
|
|
9198
|
-
function
|
|
9143
|
+
function m(n) {
|
|
9199
9144
|
var l, u;
|
|
9200
9145
|
if (null != (n = n.__) && null != n.__c) {
|
|
9201
9146
|
for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++)
|
|
@@ -9203,145 +9148,126 @@
|
|
|
9203
9148
|
n.__e = n.__c.base = u.__e;
|
|
9204
9149
|
break;
|
|
9205
9150
|
}
|
|
9206
|
-
return
|
|
9207
|
-
}
|
|
9208
|
-
}
|
|
9209
|
-
function
|
|
9210
|
-
function
|
|
9211
|
-
var n, l, u,
|
|
9212
|
-
for (
|
|
9213
|
-
n.__d && (l =
|
|
9214
|
-
|
|
9215
|
-
}
|
|
9216
|
-
function
|
|
9217
|
-
var
|
|
9218
|
-
for (u.__k = [],
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
break;
|
|
9227
|
-
}
|
|
9228
|
-
p = null;
|
|
9229
|
-
}
|
|
9230
|
-
z(n, _, p = p || e, t, r, o, f, s, a), b = _.__e, (v = _.ref) && p.ref != v && (m || (m = []), p.ref && m.push(p.ref, null, _), m.push(v, _.__c || b, _)), null != b ? (null == g && (g = b), "function" == typeof _.type && _.__k === p.__k ? _.__d = s = x(_, s, n) : s = P(n, _, p, w, b, s), "function" == typeof u.type && (u.__d = s)) : s && p.__e == s && s.parentNode != n && (s = k(p));
|
|
9231
|
-
}
|
|
9232
|
-
for (u.__e = g, h = A; h--;)
|
|
9233
|
-
null != w[h] && ("function" == typeof u.type && null != w[h].__e && w[h].__e == u.__d && (u.__d = C(i).nextSibling), O(w[h], w[h]));
|
|
9234
|
-
if (m)
|
|
9235
|
-
for (h = 0; h < m.length; h++)
|
|
9236
|
-
N(m[h], m[++h], m[++h]);
|
|
9237
|
-
}
|
|
9238
|
-
function x(n, l, u) {
|
|
9239
|
-
for (var i, t = n.__k, r = 0; t && r < t.length; r++)
|
|
9240
|
-
(i = t[r]) && (i.__ = n, l = "function" == typeof i.type ? x(i, l, u) : P(u, i, i, t, i.__e, l));
|
|
9151
|
+
return m(n);
|
|
9152
|
+
}
|
|
9153
|
+
}
|
|
9154
|
+
function w(n) { (!n.__d && (n.__d = !0) && i.push(n) && !x.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || r)(x); }
|
|
9155
|
+
function x() {
|
|
9156
|
+
var n, l, u, t, o, r, e, c, s;
|
|
9157
|
+
for (i.sort(f); n = i.shift();)
|
|
9158
|
+
n.__d && (l = i.length, t = void 0, o = void 0, r = void 0, c = (e = (u = n).__v).__e, (s = u.__P) && (t = [], o = [], (r = v({}, e)).__v = e.__v + 1, L(s, e, r, u.__n, void 0 !== s.ownerSVGElement, null != e.__h ? [c] : null, t, null == c ? g(e) : c, e.__h, o), M(t, e, o), e.__e != c && m(e)), i.length > l && i.sort(f));
|
|
9159
|
+
x.__r = 0;
|
|
9160
|
+
}
|
|
9161
|
+
function P(n, l, u, t, i, o, r, f, e, a, v) {
|
|
9162
|
+
var p, y, _, b, m, w, x, P, C, H = 0, I = t && t.__k || s, T = I.length, j = T, z = l.length;
|
|
9163
|
+
for (u.__k = [], p = 0; p < z; p++)
|
|
9164
|
+
null != (b = u.__k[p] = null == (b = l[p]) || "boolean" == typeof b || "function" == typeof b ? null : "string" == typeof b || "number" == typeof b || "bigint" == typeof b ? d(null, b, null, null, b) : h(b) ? d(k, { children: b }, null, null, null) : b.__b > 0 ? d(b.type, b.props, b.key, b.ref ? b.ref : null, b.__v) : b) ? (b.__ = u, b.__b = u.__b + 1, -1 === (P = A(b, I, x = p + H, j)) ? _ = c : (_ = I[P] || c, I[P] = void 0, j--), L(n, b, _, i, o, r, f, e, a, v), m = b.__e, (y = b.ref) && _.ref != y && (_.ref && O(_.ref, null, b), v.push(y, b.__c || m, b)), null != m && (null == w && (w = m), (C = _ === c || null === _.__v) ? -1 == P && H-- : P !== x && (P === x + 1 ? H++ : P > x ? j > z - x ? H += P - x : H-- : H = P < x && P == x - 1 ? P - x : 0), x = p + H, "function" != typeof b.type || P === x && _.__k !== b.__k ? "function" == typeof b.type || P === x && !C ? void 0 !== b.__d ? (e = b.__d, b.__d = void 0) : e = m.nextSibling : e = S(n, m, e) : e = $(b, e, n), "function" == typeof u.type && (u.__d = e))) : (_ = I[p]) && null == _.key && _.__e && (_.__e == e && (e = g(_)), q(_, _, !1), I[p] = null);
|
|
9165
|
+
for (u.__e = w, p = T; p--;)
|
|
9166
|
+
null != I[p] && ("function" == typeof u.type && null != I[p].__e && I[p].__e == u.__d && (u.__d = I[p].__e.nextSibling), q(I[p], I[p]));
|
|
9167
|
+
}
|
|
9168
|
+
function $(n, l, u) {
|
|
9169
|
+
for (var t, i = n.__k, o = 0; i && o < i.length; o++)
|
|
9170
|
+
(t = i[o]) && (t.__ = n, l = "function" == typeof t.type ? $(t, l, u) : S(u, t.__e, l));
|
|
9241
9171
|
return l;
|
|
9242
9172
|
}
|
|
9243
|
-
function
|
|
9244
|
-
exports.toChildArray =
|
|
9245
|
-
function
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
if (n.__k)
|
|
9265
|
-
for (l = n.__k.length - 1; l >= 0; l--)
|
|
9266
|
-
if ((u = n.__k[l]) && (i = C(u)))
|
|
9267
|
-
return i;
|
|
9268
|
-
return null;
|
|
9173
|
+
function C(n, l) { return l = l || [], null == n || "boolean" == typeof n || (h(n) ? n.some(function (n) { C(n, l); }) : l.push(n)), l; }
|
|
9174
|
+
exports.toChildArray = C;
|
|
9175
|
+
function S(n, l, u) { return null == u || u.parentNode !== n ? n.insertBefore(l, null) : l == u && null != l.parentNode || n.insertBefore(l, u), l.nextSibling; }
|
|
9176
|
+
function A(n, l, u, t) {
|
|
9177
|
+
var i = n.key, o = n.type, r = u - 1, f = u + 1, e = l[u];
|
|
9178
|
+
if (null === e || e && i == e.key && o === e.type)
|
|
9179
|
+
return u;
|
|
9180
|
+
if (t > (null != e ? 1 : 0))
|
|
9181
|
+
for (; r >= 0 || f < l.length;) {
|
|
9182
|
+
if (r >= 0) {
|
|
9183
|
+
if ((e = l[r]) && i == e.key && o === e.type)
|
|
9184
|
+
return r;
|
|
9185
|
+
r--;
|
|
9186
|
+
}
|
|
9187
|
+
if (f < l.length) {
|
|
9188
|
+
if ((e = l[f]) && i == e.key && o === e.type)
|
|
9189
|
+
return f;
|
|
9190
|
+
f++;
|
|
9191
|
+
}
|
|
9192
|
+
}
|
|
9193
|
+
return -1;
|
|
9269
9194
|
}
|
|
9270
|
-
function
|
|
9271
|
-
var
|
|
9272
|
-
for (
|
|
9273
|
-
"children" ===
|
|
9274
|
-
for (
|
|
9275
|
-
|
|
9195
|
+
function H(n, l, u, t, i) {
|
|
9196
|
+
var o;
|
|
9197
|
+
for (o in u)
|
|
9198
|
+
"children" === o || "key" === o || o in l || T(n, o, null, u[o], t);
|
|
9199
|
+
for (o in l)
|
|
9200
|
+
i && "function" != typeof l[o] || "children" === o || "key" === o || "value" === o || "checked" === o || u[o] === l[o] || T(n, o, l[o], u[o], t);
|
|
9276
9201
|
}
|
|
9277
|
-
function
|
|
9278
|
-
function
|
|
9279
|
-
var
|
|
9202
|
+
function I(n, l, u) { "-" === l[0] ? n.setProperty(l, null == u ? "" : u) : n[l] = null == u ? "" : "number" != typeof u || a.test(l) ? u : u + "px"; }
|
|
9203
|
+
function T(n, l, u, t, i) {
|
|
9204
|
+
var o;
|
|
9280
9205
|
n: if ("style" === l)
|
|
9281
9206
|
if ("string" == typeof u)
|
|
9282
9207
|
n.style.cssText = u;
|
|
9283
9208
|
else {
|
|
9284
|
-
if ("string" == typeof
|
|
9285
|
-
for (l in
|
|
9286
|
-
u && l in u ||
|
|
9209
|
+
if ("string" == typeof t && (n.style.cssText = t = ""), t)
|
|
9210
|
+
for (l in t)
|
|
9211
|
+
u && l in u || I(n.style, l, "");
|
|
9287
9212
|
if (u)
|
|
9288
9213
|
for (l in u)
|
|
9289
|
-
|
|
9214
|
+
t && u[l] === t[l] || I(n.style, l, u[l]);
|
|
9290
9215
|
}
|
|
9291
9216
|
else if ("o" === l[0] && "n" === l[1])
|
|
9292
|
-
|
|
9217
|
+
o = l !== (l = l.replace(/(PointerCapture)$|Capture$/, "$1")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? t || n.addEventListener(l, o ? z : j, o) : n.removeEventListener(l, o ? z : j, o);
|
|
9293
9218
|
else if ("dangerouslySetInnerHTML" !== l) {
|
|
9294
|
-
if (
|
|
9219
|
+
if (i)
|
|
9295
9220
|
l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
9296
|
-
else if ("width" !== l && "height" !== l && "href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && l in n)
|
|
9221
|
+
else if ("width" !== l && "height" !== l && "href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && "rowSpan" !== l && "colSpan" !== l && l in n)
|
|
9297
9222
|
try {
|
|
9298
9223
|
n[l] = null == u ? "" : u;
|
|
9299
9224
|
break n;
|
|
9300
9225
|
}
|
|
9301
9226
|
catch (n) { }
|
|
9302
|
-
"function" == typeof u || (null == u || !1 === u && -
|
|
9227
|
+
"function" == typeof u || (null == u || !1 === u && "-" !== l[4] ? n.removeAttribute(l) : n.setAttribute(l, u));
|
|
9303
9228
|
}
|
|
9304
9229
|
}
|
|
9305
|
-
function
|
|
9306
|
-
function
|
|
9307
|
-
function
|
|
9308
|
-
var
|
|
9230
|
+
function j(n) { return this.l[n.type + !1](l.event ? l.event(n) : n); }
|
|
9231
|
+
function z(n) { return this.l[n.type + !0](l.event ? l.event(n) : n); }
|
|
9232
|
+
function L(n, u, t, i, o, r, f, e, c, s) {
|
|
9233
|
+
var a, p, y, d, _, g, m, w, x, $, C, S, A, H, I, T = u.type;
|
|
9309
9234
|
if (void 0 !== u.constructor)
|
|
9310
9235
|
return null;
|
|
9311
|
-
null !=
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
if (
|
|
9315
|
-
null ==
|
|
9236
|
+
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null, r = [e]), (a = l.__b) && a(u);
|
|
9237
|
+
n: if ("function" == typeof T)
|
|
9238
|
+
try {
|
|
9239
|
+
if (w = u.props, x = (a = T.contextType) && i[a.__c], $ = a ? x ? x.props.value : a.__ : i, t.__c ? m = (p = u.__c = t.__c).__ = p.__E : ("prototype" in T && T.prototype.render ? u.__c = p = new T(w, $) : (u.__c = p = new b(w, $), p.constructor = T, p.render = B), x && x.sub(p), p.props = w, p.state || (p.state = {}), p.context = $, p.__n = i, y = p.__d = !0, p.__h = [], p._sb = []), null == p.__s && (p.__s = p.state), null != T.getDerivedStateFromProps && (p.__s == p.state && (p.__s = v({}, p.__s)), v(p.__s, T.getDerivedStateFromProps(w, p.__s))), d = p.props, _ = p.state, p.__v = u, y)
|
|
9240
|
+
null == T.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);
|
|
9316
9241
|
else {
|
|
9317
|
-
if (null ==
|
|
9318
|
-
for (u.__v !==
|
|
9319
|
-
|
|
9320
|
-
|
|
9242
|
+
if (null == T.getDerivedStateFromProps && w !== d && null != p.componentWillReceiveProps && p.componentWillReceiveProps(w, $), !p.__e && (null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(w, p.__s, $) || u.__v === t.__v)) {
|
|
9243
|
+
for (u.__v !== t.__v && (p.props = w, p.state = p.__s, p.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) { n && (n.__ = u); }), C = 0; C < p._sb.length; C++)
|
|
9244
|
+
p.__h.push(p._sb[C]);
|
|
9245
|
+
p._sb = [], p.__h.length && f.push(p);
|
|
9321
9246
|
break n;
|
|
9322
9247
|
}
|
|
9323
|
-
null !=
|
|
9248
|
+
null != p.componentWillUpdate && p.componentWillUpdate(w, p.__s, $), null != p.componentDidUpdate && p.__h.push(function () { p.componentDidUpdate(d, _, g); });
|
|
9324
9249
|
}
|
|
9325
|
-
if (
|
|
9326
|
-
for (
|
|
9327
|
-
|
|
9328
|
-
|
|
9250
|
+
if (p.context = $, p.props = w, p.__P = n, p.__e = !1, S = l.__r, A = 0, "prototype" in T && T.prototype.render) {
|
|
9251
|
+
for (p.state = p.__s, p.__d = !1, S && S(u), a = p.render(p.props, p.state, p.context), H = 0; H < p._sb.length; H++)
|
|
9252
|
+
p.__h.push(p._sb[H]);
|
|
9253
|
+
p._sb = [];
|
|
9329
9254
|
}
|
|
9330
9255
|
else
|
|
9331
9256
|
do {
|
|
9332
|
-
|
|
9333
|
-
} while (
|
|
9334
|
-
|
|
9257
|
+
p.__d = !1, S && S(u), a = p.render(p.props, p.state, p.context), p.state = p.__s;
|
|
9258
|
+
} while (p.__d && ++A < 25);
|
|
9259
|
+
p.state = p.__s, null != p.getChildContext && (i = v(v({}, i), p.getChildContext())), y || null == p.getSnapshotBeforeUpdate || (g = p.getSnapshotBeforeUpdate(d, _)), P(n, h(I = null != a && a.type === k && null == a.key ? a.props.children : a) ? I : [I], u, t, i, o, r, f, e, c, s), p.base = u.__e, u.__h = null, p.__h.length && f.push(p), m && (p.__E = p.__ = null);
|
|
9335
9260
|
}
|
|
9336
|
-
|
|
9337
|
-
null
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
}
|
|
9261
|
+
catch (n) {
|
|
9262
|
+
u.__v = null, (c || null != r) && (u.__e = e, u.__h = !!c, r[r.indexOf(e)] = null), l.__e(n, u, t);
|
|
9263
|
+
}
|
|
9264
|
+
else
|
|
9265
|
+
null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = N(t.__e, u, t, i, o, r, f, c, s);
|
|
9266
|
+
(a = l.diffed) && a(u);
|
|
9343
9267
|
}
|
|
9344
|
-
function
|
|
9268
|
+
function M(n, u, t) {
|
|
9269
|
+
for (var i = 0; i < t.length; i++)
|
|
9270
|
+
O(t[i], t[++i], t[++i]);
|
|
9345
9271
|
l.__c && l.__c(u, n), n.some(function (u) {
|
|
9346
9272
|
try {
|
|
9347
9273
|
n = u.__h, u.__h = [], n.some(function (n) { n.call(u); });
|
|
@@ -9351,126 +9277,133 @@
|
|
|
9351
9277
|
}
|
|
9352
9278
|
});
|
|
9353
9279
|
}
|
|
9354
|
-
function
|
|
9355
|
-
var
|
|
9356
|
-
if ("svg" ===
|
|
9357
|
-
for (;
|
|
9358
|
-
if ((
|
|
9359
|
-
l =
|
|
9280
|
+
function N(l, u, t, i, o, r, f, e, s) {
|
|
9281
|
+
var a, v, y, d = t.props, _ = u.props, k = u.type, b = 0;
|
|
9282
|
+
if ("svg" === k && (o = !0), null != r)
|
|
9283
|
+
for (; b < r.length; b++)
|
|
9284
|
+
if ((a = r[b]) && "setAttribute" in a == !!k && (k ? a.localName === k : 3 === a.nodeType)) {
|
|
9285
|
+
l = a, r[b] = null;
|
|
9360
9286
|
break;
|
|
9361
9287
|
}
|
|
9362
9288
|
if (null == l) {
|
|
9363
|
-
if (null ===
|
|
9364
|
-
return document.createTextNode(
|
|
9365
|
-
l =
|
|
9289
|
+
if (null === k)
|
|
9290
|
+
return document.createTextNode(_);
|
|
9291
|
+
l = o ? document.createElementNS("http://www.w3.org/2000/svg", k) : document.createElement(k, _.is && _), r = null, e = !1;
|
|
9366
9292
|
}
|
|
9367
|
-
if (null ===
|
|
9368
|
-
|
|
9293
|
+
if (null === k)
|
|
9294
|
+
d === _ || e && l.data === _ || (l.data = _);
|
|
9369
9295
|
else {
|
|
9370
|
-
if (
|
|
9371
|
-
if (null !=
|
|
9372
|
-
for (
|
|
9373
|
-
|
|
9374
|
-
(
|
|
9296
|
+
if (r = r && n.call(l.childNodes), v = (d = t.props || c).dangerouslySetInnerHTML, y = _.dangerouslySetInnerHTML, !e) {
|
|
9297
|
+
if (null != r)
|
|
9298
|
+
for (d = {}, b = 0; b < l.attributes.length; b++)
|
|
9299
|
+
d[l.attributes[b].name] = l.attributes[b].value;
|
|
9300
|
+
(y || v) && (y && (v && y.__html == v.__html || y.__html === l.innerHTML) || (l.innerHTML = y && y.__html || ""));
|
|
9375
9301
|
}
|
|
9376
|
-
if (
|
|
9302
|
+
if (H(l, _, d, o, e), y)
|
|
9377
9303
|
u.__k = [];
|
|
9378
|
-
else if (
|
|
9379
|
-
for (
|
|
9380
|
-
null !=
|
|
9381
|
-
|
|
9304
|
+
else if (P(l, h(b = u.props.children) ? b : [b], u, t, i, o && "foreignObject" !== k, r, f, r ? r[0] : t.__k && g(t, 0), e, s), null != r)
|
|
9305
|
+
for (b = r.length; b--;)
|
|
9306
|
+
null != r[b] && p(r[b]);
|
|
9307
|
+
e || ("value" in _ && void 0 !== (b = _.value) && (b !== l.value || "progress" === k && !b || "option" === k && b !== d.value) && T(l, "value", b, d.value, !1), "checked" in _ && void 0 !== (b = _.checked) && b !== l.checked && T(l, "checked", b, d.checked, !1));
|
|
9382
9308
|
}
|
|
9383
9309
|
return l;
|
|
9384
9310
|
}
|
|
9385
|
-
function
|
|
9311
|
+
function O(n, u, t) {
|
|
9386
9312
|
try {
|
|
9387
9313
|
"function" == typeof n ? n(u) : n.current = u;
|
|
9388
9314
|
}
|
|
9389
9315
|
catch (n) {
|
|
9390
|
-
l.__e(n,
|
|
9316
|
+
l.__e(n, t);
|
|
9391
9317
|
}
|
|
9392
9318
|
}
|
|
9393
|
-
function
|
|
9394
|
-
var
|
|
9395
|
-
if (l.unmount && l.unmount(n), (
|
|
9396
|
-
if (
|
|
9319
|
+
function q(n, u, t) {
|
|
9320
|
+
var i, o;
|
|
9321
|
+
if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || O(i, null, u)), null != (i = n.__c)) {
|
|
9322
|
+
if (i.componentWillUnmount)
|
|
9397
9323
|
try {
|
|
9398
|
-
|
|
9324
|
+
i.componentWillUnmount();
|
|
9399
9325
|
}
|
|
9400
9326
|
catch (n) {
|
|
9401
9327
|
l.__e(n, u);
|
|
9402
9328
|
}
|
|
9403
|
-
|
|
9404
|
-
}
|
|
9405
|
-
if (
|
|
9406
|
-
for (
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
}
|
|
9410
|
-
function
|
|
9411
|
-
function
|
|
9412
|
-
exports.render =
|
|
9413
|
-
function
|
|
9414
|
-
exports.hydrate =
|
|
9415
|
-
function
|
|
9416
|
-
var
|
|
9417
|
-
for (
|
|
9418
|
-
"key" ==
|
|
9419
|
-
return arguments.length > 2 && (
|
|
9420
|
-
}
|
|
9421
|
-
exports.cloneElement =
|
|
9422
|
-
function
|
|
9423
|
-
exports.createContext =
|
|
9424
|
-
n =
|
|
9425
|
-
for (var
|
|
9426
|
-
if ((
|
|
9329
|
+
i.base = i.__P = null, n.__c = void 0;
|
|
9330
|
+
}
|
|
9331
|
+
if (i = n.__k)
|
|
9332
|
+
for (o = 0; o < i.length; o++)
|
|
9333
|
+
i[o] && q(i[o], u, t || "function" != typeof n.type);
|
|
9334
|
+
t || null == n.__e || p(n.__e), n.__ = n.__e = n.__d = void 0;
|
|
9335
|
+
}
|
|
9336
|
+
function B(n, l, u) { return this.constructor(n, u); }
|
|
9337
|
+
function D(u, t, i) { var o, r, f, e; l.__ && l.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], e = [], L(t, u = (!o && i || t).__k = y(k, null, [u]), r || c, c, void 0 !== t.ownerSVGElement, !o && i ? [i] : r ? null : t.firstChild ? n.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o, e), M(f, u, e); }
|
|
9338
|
+
exports.render = D;
|
|
9339
|
+
function E(n, l) { D(n, l, E); }
|
|
9340
|
+
exports.hydrate = E;
|
|
9341
|
+
function F(l, u, t) {
|
|
9342
|
+
var i, o, r, f, e = v({}, l.props);
|
|
9343
|
+
for (r in l.type && l.type.defaultProps && (f = l.type.defaultProps), u)
|
|
9344
|
+
"key" == r ? i = u[r] : "ref" == r ? o = u[r] : e[r] = void 0 === u[r] && void 0 !== f ? f[r] : u[r];
|
|
9345
|
+
return arguments.length > 2 && (e.children = arguments.length > 3 ? n.call(arguments, 2) : t), d(l.type, e, i || l.key, o || l.ref, null);
|
|
9346
|
+
}
|
|
9347
|
+
exports.cloneElement = F;
|
|
9348
|
+
function G(n, l) { var u = { __c: l = "__cC" + e++, __: n, Consumer: function (n, l) { return n.children(l); }, Provider: function (n) { var u, t; return this.getChildContext || (u = [], (t = {})[l] = this, this.getChildContext = function () { return t; }, this.shouldComponentUpdate = function (n) { this.props.value !== n.value && u.some(function (n) { n.__e = !0, w(n); }); }, this.sub = function (n) { u.push(n); var l = n.componentWillUnmount; n.componentWillUnmount = function () { u.splice(u.indexOf(n), 1), l && l.call(n); }; }), n.children; } }; return u.Provider.__ = u.Consumer.contextType = u; }
|
|
9349
|
+
exports.createContext = G;
|
|
9350
|
+
n = s.slice, exports.options = l = { __e: function (n, l, u, t) {
|
|
9351
|
+
for (var i, o, r; l = l.__;)
|
|
9352
|
+
if ((i = l.__c) && !i.__)
|
|
9427
9353
|
try {
|
|
9428
|
-
if ((
|
|
9429
|
-
return
|
|
9354
|
+
if ((o = i.constructor) && null != o.getDerivedStateFromError && (i.setState(o.getDerivedStateFromError(n)), r = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), r = i.__d), r)
|
|
9355
|
+
return i.__E = i;
|
|
9430
9356
|
}
|
|
9431
9357
|
catch (l) {
|
|
9432
9358
|
n = l;
|
|
9433
9359
|
}
|
|
9434
9360
|
throw n;
|
|
9435
|
-
} }, u = 0, exports.isValidElement =
|
|
9361
|
+
} }, u = 0, exports.isValidElement = t = function (n) { return null != n && void 0 === n.constructor; }, b.prototype.setState = function (n, l) { var u; u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = v({}, this.state), "function" == typeof n && (n = n(v({}, u), this.props)), n && v(u, n), null != n && this.__v && (l && this._sb.push(l), w(this)); }, b.prototype.forceUpdate = function (n) { this.__v && (this.__e = !0, n && this.__h.push(n), w(this)); }, b.prototype.render = k, i = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function (n, l) { return n.__v.__b - l.__v.__b; }, x.__r = 0, e = 0;
|
|
9436
9362
|
},
|
|
9437
|
-
"
|
|
9363
|
+
"d952f1d8b6": /* preact/hooks/dist/hooks.module.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
9438
9364
|
__esModule();
|
|
9439
|
-
const preact_1 = require("
|
|
9365
|
+
const preact_1 = require("1fa25f4fbb") /* preact */;
|
|
9440
9366
|
var t, r, u, i, o = 0, f = [], c = [], e = preact_1.options.__b, a = preact_1.options.__r, v = preact_1.options.diffed, l = preact_1.options.__c, m = preact_1.options.unmount;
|
|
9441
9367
|
function d(t, u) { preact_1.options.__h && preact_1.options.__h(r, t, o || u), o = 0; var i = r.__H || (r.__H = { __: [], __h: [] }); return t >= i.__.length && i.__.push({ __V: c }), i.__[t]; }
|
|
9442
|
-
function
|
|
9443
|
-
exports.useState =
|
|
9444
|
-
function
|
|
9368
|
+
function h(n) { return o = 1, s(B, n); }
|
|
9369
|
+
exports.useState = h;
|
|
9370
|
+
function s(n, u, i) {
|
|
9445
9371
|
var o = d(t++, 2);
|
|
9446
9372
|
if (o.t = n, !o.__c && (o.__ = [i ? i(u) : B(void 0, u), function (n) { var t = o.__N ? o.__N[0] : o.__[0], r = o.t(t, n); t !== r && (o.__N = [r, o.__[1]], o.__c.setState({})); }], o.__c = r, !r.u)) {
|
|
9447
|
-
|
|
9448
|
-
var f = r.shouldComponentUpdate;
|
|
9449
|
-
r.shouldComponentUpdate = function (n, t, r) {
|
|
9373
|
+
var f = function (n, t, r) {
|
|
9450
9374
|
if (!o.__c.__H)
|
|
9451
9375
|
return !0;
|
|
9452
9376
|
var u = o.__c.__H.__.filter(function (n) { return n.__c; });
|
|
9453
9377
|
if (u.every(function (n) { return !n.__N; }))
|
|
9454
|
-
return !
|
|
9378
|
+
return !c || c.call(this, n, t, r);
|
|
9455
9379
|
var i = !1;
|
|
9456
9380
|
return u.forEach(function (n) {
|
|
9457
9381
|
if (n.__N) {
|
|
9458
9382
|
var t = n.__[0];
|
|
9459
9383
|
n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = !0);
|
|
9460
9384
|
}
|
|
9461
|
-
}), !(!i && o.__c.props === n) && (!
|
|
9385
|
+
}), !(!i && o.__c.props === n) && (!c || c.call(this, n, t, r));
|
|
9462
9386
|
};
|
|
9387
|
+
r.u = !0;
|
|
9388
|
+
var c = r.shouldComponentUpdate, e = r.componentWillUpdate;
|
|
9389
|
+
r.componentWillUpdate = function (n, t, r) {
|
|
9390
|
+
if (this.__e) {
|
|
9391
|
+
var u = c;
|
|
9392
|
+
c = void 0, f(n, t, r), c = u;
|
|
9393
|
+
}
|
|
9394
|
+
e && e.call(this, n, t, r);
|
|
9395
|
+
}, r.shouldComponentUpdate = f;
|
|
9463
9396
|
}
|
|
9464
9397
|
return o.__N || o.__;
|
|
9465
9398
|
}
|
|
9466
|
-
exports.useReducer =
|
|
9467
|
-
function
|
|
9468
|
-
exports.useEffect =
|
|
9469
|
-
function
|
|
9470
|
-
exports.useLayoutEffect =
|
|
9399
|
+
exports.useReducer = s;
|
|
9400
|
+
function p(u, i) { var o = d(t++, 3); !preact_1.options.__s && z(o.__H, i) && (o.__ = u, o.i = i, r.__H.__h.push(o)); }
|
|
9401
|
+
exports.useEffect = p;
|
|
9402
|
+
function y(u, i) { var o = d(t++, 4); !preact_1.options.__s && z(o.__H, i) && (o.__ = u, o.i = i, r.__h.push(o)); }
|
|
9403
|
+
exports.useLayoutEffect = y;
|
|
9471
9404
|
function _(n) { return o = 5, F(function () { return { current: n }; }, []); }
|
|
9472
9405
|
exports.useRef = _;
|
|
9473
|
-
function A(n, t, r) { o = 6,
|
|
9406
|
+
function A(n, t, r) { o = 6, y(function () { return "function" == typeof n ? (n(t()), function () { return n(null); }) : n ? (n.current = t(), function () { return n.current = null; }) : void 0; }, null == r ? r : r.concat(n)); }
|
|
9474
9407
|
exports.useImperativeHandle = A;
|
|
9475
9408
|
function F(n, r) { var u = d(t++, 7); return z(u.__H, r) ? (u.__V = n(), u.i = r, u.__h = n, u.__V) : u.__; }
|
|
9476
9409
|
exports.useMemo = F;
|
|
@@ -9480,7 +9413,7 @@
|
|
|
9480
9413
|
exports.useContext = q;
|
|
9481
9414
|
function x(t, r) { preact_1.options.useDebugValue && preact_1.options.useDebugValue(r ? r(t) : t); }
|
|
9482
9415
|
exports.useDebugValue = x;
|
|
9483
|
-
function P(n) { var u = d(t++, 10), i =
|
|
9416
|
+
function P(n) { var u = d(t++, 10), i = h(); return u.__ = n, r.componentDidCatch || (r.componentDidCatch = function (n, t) { u.__ && u.__(n, t), i[1](n); }), [i[0], function () { i[1](void 0); }]; }
|
|
9484
9417
|
exports.useErrorBoundary = P;
|
|
9485
9418
|
function V() {
|
|
9486
9419
|
var n = d(t++, 11);
|
|
@@ -9503,7 +9436,7 @@
|
|
|
9503
9436
|
t.__H.__h = [], preact_1.options.__e(r, t.__v);
|
|
9504
9437
|
}
|
|
9505
9438
|
}
|
|
9506
|
-
preact_1.options.__b = function (n) { r = null, e && e(n); }, preact_1.options.__r = function (n) { a && a(n), t = 0; var i = (r = n.__c).__H; i && (u === r ? (i.__h = [], r.__h = [], i.__.forEach(function (n) { n.__N && (n.__ = n.__N), n.__V = c, n.__N = n.i = void 0; })) : (i.__h.forEach(k), i.__h.forEach(w), i.__h = [])), u = r; }, preact_1.options.diffed = function (t) { v && v(t); var o = t.__c; o && o.__H && (o.__H.__h.length && (1 !== f.push(o) && i === preact_1.options.requestAnimationFrame || ((i = preact_1.options.requestAnimationFrame) || j)(b)), o.__H.__.forEach(function (n) { n.i && (n.__H = n.i), n.__V !== c && (n.__ = n.__V), n.i = void 0, n.__V = c; })), u = r = null; }, preact_1.options.__c = function (t, r) {
|
|
9439
|
+
preact_1.options.__b = function (n) { r = null, e && e(n); }, preact_1.options.__r = function (n) { a && a(n), t = 0; var i = (r = n.__c).__H; i && (u === r ? (i.__h = [], r.__h = [], i.__.forEach(function (n) { n.__N && (n.__ = n.__N), n.__V = c, n.__N = n.i = void 0; })) : (i.__h.forEach(k), i.__h.forEach(w), i.__h = [], t = 0)), u = r; }, preact_1.options.diffed = function (t) { v && v(t); var o = t.__c; o && o.__H && (o.__H.__h.length && (1 !== f.push(o) && i === preact_1.options.requestAnimationFrame || ((i = preact_1.options.requestAnimationFrame) || j)(b)), o.__H.__.forEach(function (n) { n.i && (n.__H = n.i), n.__V !== c && (n.__ = n.__V), n.i = void 0, n.__V = c; })), u = r = null; }, preact_1.options.__c = function (t, r) {
|
|
9507
9440
|
r.some(function (t) {
|
|
9508
9441
|
try {
|
|
9509
9442
|
t.__h.forEach(k), t.__h = t.__h.filter(function (n) { return !n.__ || w(n); });
|
|
@@ -9534,8 +9467,8 @@
|
|
|
9534
9467
|
"b3f51db71c": /* htm/preact/index.module.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
9535
9468
|
__esModule();
|
|
9536
9469
|
const tslib_1 = require("tslib");
|
|
9537
|
-
const preact_1 = require("
|
|
9538
|
-
var preact_2 = require("
|
|
9470
|
+
const preact_1 = require("1fa25f4fbb") /* preact */;
|
|
9471
|
+
var preact_2 = require("1fa25f4fbb") /* preact */;
|
|
9539
9472
|
__esExport("h", preact_2.h);
|
|
9540
9473
|
__esExport("render", preact_2.render);
|
|
9541
9474
|
__esExport("Component", preact_2.Component);
|
|
@@ -12200,28 +12133,28 @@
|
|
|
12200
12133
|
"2f3fd5db07": /* gl-matrix/esm/index.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
12201
12134
|
__esModule();
|
|
12202
12135
|
const tslib_1 = require("tslib");
|
|
12203
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
12136
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
12204
12137
|
exports.glMatrix = glMatrix;
|
|
12205
|
-
const mat2 = tslib_1.__importStar(require("
|
|
12138
|
+
const mat2 = tslib_1.__importStar(require("d77e165b60") /* ./mat2.js */);
|
|
12206
12139
|
exports.mat2 = mat2;
|
|
12207
|
-
const mat2d = tslib_1.__importStar(require("
|
|
12140
|
+
const mat2d = tslib_1.__importStar(require("33a5f6cb7a") /* ./mat2d.js */);
|
|
12208
12141
|
exports.mat2d = mat2d;
|
|
12209
|
-
const mat3 = tslib_1.__importStar(require("
|
|
12142
|
+
const mat3 = tslib_1.__importStar(require("a025ef02dc") /* ./mat3.js */);
|
|
12210
12143
|
exports.mat3 = mat3;
|
|
12211
|
-
const mat4 = tslib_1.__importStar(require("
|
|
12144
|
+
const mat4 = tslib_1.__importStar(require("83bad9e639") /* ./mat4.js */);
|
|
12212
12145
|
exports.mat4 = mat4;
|
|
12213
|
-
const quat = tslib_1.__importStar(require("
|
|
12146
|
+
const quat = tslib_1.__importStar(require("f83fe7c413") /* ./quat.js */);
|
|
12214
12147
|
exports.quat = quat;
|
|
12215
|
-
const quat2 = tslib_1.__importStar(require("
|
|
12148
|
+
const quat2 = tslib_1.__importStar(require("fb9294db61") /* ./quat2.js */);
|
|
12216
12149
|
exports.quat2 = quat2;
|
|
12217
|
-
const vec2 = tslib_1.__importStar(require("
|
|
12150
|
+
const vec2 = tslib_1.__importStar(require("58c71a9bd3") /* ./vec2.js */);
|
|
12218
12151
|
exports.vec2 = vec2;
|
|
12219
|
-
const vec3 = tslib_1.__importStar(require("
|
|
12152
|
+
const vec3 = tslib_1.__importStar(require("63eddc5433") /* ./vec3.js */);
|
|
12220
12153
|
exports.vec3 = vec3;
|
|
12221
|
-
const vec4 = tslib_1.__importStar(require("
|
|
12154
|
+
const vec4 = tslib_1.__importStar(require("11562bccc5") /* ./vec4.js */);
|
|
12222
12155
|
exports.vec4 = vec4;
|
|
12223
12156
|
},
|
|
12224
|
-
"
|
|
12157
|
+
"7d825b979e": /* gl-matrix/esm/common.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
12225
12158
|
__esModule();
|
|
12226
12159
|
/**
|
|
12227
12160
|
* Common utilities
|
|
@@ -12234,7 +12167,7 @@
|
|
|
12234
12167
|
/**
|
|
12235
12168
|
* Sets the type of array used when creating new vectors and matrices
|
|
12236
12169
|
*
|
|
12237
|
-
* @param {
|
|
12170
|
+
* @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array
|
|
12238
12171
|
*/
|
|
12239
12172
|
function setMatrixArrayType(type) {
|
|
12240
12173
|
exports.ARRAY_TYPE = type;
|
|
@@ -12272,10 +12205,10 @@
|
|
|
12272
12205
|
return Math.sqrt(y);
|
|
12273
12206
|
};
|
|
12274
12207
|
},
|
|
12275
|
-
"
|
|
12208
|
+
"d77e165b60": /* gl-matrix/esm/mat2.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
12276
12209
|
__esModule();
|
|
12277
12210
|
const tslib_1 = require("tslib");
|
|
12278
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
12211
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
12279
12212
|
/**
|
|
12280
12213
|
* 2x2 Matrix
|
|
12281
12214
|
* @module mat2
|
|
@@ -12299,7 +12232,7 @@
|
|
|
12299
12232
|
/**
|
|
12300
12233
|
* Creates a new mat2 initialized with values from an existing matrix
|
|
12301
12234
|
*
|
|
12302
|
-
* @param {
|
|
12235
|
+
* @param {ReadonlyMat2} a matrix to clone
|
|
12303
12236
|
* @returns {mat2} a new 2x2 matrix
|
|
12304
12237
|
*/
|
|
12305
12238
|
function clone(a) {
|
|
@@ -12315,7 +12248,7 @@
|
|
|
12315
12248
|
* Copy the values from one mat2 to another
|
|
12316
12249
|
*
|
|
12317
12250
|
* @param {mat2} out the receiving matrix
|
|
12318
|
-
* @param {
|
|
12251
|
+
* @param {ReadonlyMat2} a the source matrix
|
|
12319
12252
|
* @returns {mat2} out
|
|
12320
12253
|
*/
|
|
12321
12254
|
function copy(out, a) {
|
|
@@ -12380,7 +12313,7 @@
|
|
|
12380
12313
|
* Transpose the values of a mat2
|
|
12381
12314
|
*
|
|
12382
12315
|
* @param {mat2} out the receiving matrix
|
|
12383
|
-
* @param {
|
|
12316
|
+
* @param {ReadonlyMat2} a the source matrix
|
|
12384
12317
|
* @returns {mat2} out
|
|
12385
12318
|
*/
|
|
12386
12319
|
function transpose(out, a) {
|
|
@@ -12404,7 +12337,7 @@
|
|
|
12404
12337
|
* Inverts a mat2
|
|
12405
12338
|
*
|
|
12406
12339
|
* @param {mat2} out the receiving matrix
|
|
12407
|
-
* @param {
|
|
12340
|
+
* @param {ReadonlyMat2} a the source matrix
|
|
12408
12341
|
* @returns {mat2} out
|
|
12409
12342
|
*/
|
|
12410
12343
|
function invert(out, a) {
|
|
@@ -12425,7 +12358,7 @@
|
|
|
12425
12358
|
* Calculates the adjugate of a mat2
|
|
12426
12359
|
*
|
|
12427
12360
|
* @param {mat2} out the receiving matrix
|
|
12428
|
-
* @param {
|
|
12361
|
+
* @param {ReadonlyMat2} a the source matrix
|
|
12429
12362
|
* @returns {mat2} out
|
|
12430
12363
|
*/
|
|
12431
12364
|
function adjoint(out, a) {
|
|
@@ -12441,7 +12374,7 @@
|
|
|
12441
12374
|
/**
|
|
12442
12375
|
* Calculates the determinant of a mat2
|
|
12443
12376
|
*
|
|
12444
|
-
* @param {
|
|
12377
|
+
* @param {ReadonlyMat2} a the source matrix
|
|
12445
12378
|
* @returns {Number} determinant of a
|
|
12446
12379
|
*/
|
|
12447
12380
|
function determinant(a) {
|
|
@@ -12452,8 +12385,8 @@
|
|
|
12452
12385
|
* Multiplies two mat2's
|
|
12453
12386
|
*
|
|
12454
12387
|
* @param {mat2} out the receiving matrix
|
|
12455
|
-
* @param {
|
|
12456
|
-
* @param {
|
|
12388
|
+
* @param {ReadonlyMat2} a the first operand
|
|
12389
|
+
* @param {ReadonlyMat2} b the second operand
|
|
12457
12390
|
* @returns {mat2} out
|
|
12458
12391
|
*/
|
|
12459
12392
|
function multiply(out, a, b) {
|
|
@@ -12470,7 +12403,7 @@
|
|
|
12470
12403
|
* Rotates a mat2 by the given angle
|
|
12471
12404
|
*
|
|
12472
12405
|
* @param {mat2} out the receiving matrix
|
|
12473
|
-
* @param {
|
|
12406
|
+
* @param {ReadonlyMat2} a the matrix to rotate
|
|
12474
12407
|
* @param {Number} rad the angle to rotate the matrix by
|
|
12475
12408
|
* @returns {mat2} out
|
|
12476
12409
|
*/
|
|
@@ -12489,8 +12422,8 @@
|
|
|
12489
12422
|
* Scales the mat2 by the dimensions in the given vec2
|
|
12490
12423
|
*
|
|
12491
12424
|
* @param {mat2} out the receiving matrix
|
|
12492
|
-
* @param {
|
|
12493
|
-
* @param {
|
|
12425
|
+
* @param {ReadonlyMat2} a the matrix to rotate
|
|
12426
|
+
* @param {ReadonlyVec2} v the vec2 to scale the matrix by
|
|
12494
12427
|
* @returns {mat2} out
|
|
12495
12428
|
**/
|
|
12496
12429
|
function scale(out, a, v) {
|
|
@@ -12532,7 +12465,7 @@
|
|
|
12532
12465
|
* mat2.scale(dest, dest, vec);
|
|
12533
12466
|
*
|
|
12534
12467
|
* @param {mat2} out mat2 receiving operation result
|
|
12535
|
-
* @param {
|
|
12468
|
+
* @param {ReadonlyVec2} v Scaling vector
|
|
12536
12469
|
* @returns {mat2} out
|
|
12537
12470
|
*/
|
|
12538
12471
|
function fromScaling(out, v) {
|
|
@@ -12546,7 +12479,7 @@
|
|
|
12546
12479
|
/**
|
|
12547
12480
|
* Returns a string representation of a mat2
|
|
12548
12481
|
*
|
|
12549
|
-
* @param {
|
|
12482
|
+
* @param {ReadonlyMat2} a matrix to represent as a string
|
|
12550
12483
|
* @returns {String} string representation of the matrix
|
|
12551
12484
|
*/
|
|
12552
12485
|
function str(a) {
|
|
@@ -12556,7 +12489,7 @@
|
|
|
12556
12489
|
/**
|
|
12557
12490
|
* Returns Frobenius norm of a mat2
|
|
12558
12491
|
*
|
|
12559
|
-
* @param {
|
|
12492
|
+
* @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of
|
|
12560
12493
|
* @returns {Number} Frobenius norm
|
|
12561
12494
|
*/
|
|
12562
12495
|
function frob(a) {
|
|
@@ -12565,10 +12498,10 @@
|
|
|
12565
12498
|
exports.frob = frob;
|
|
12566
12499
|
/**
|
|
12567
12500
|
* Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix
|
|
12568
|
-
* @param {
|
|
12569
|
-
* @param {
|
|
12570
|
-
* @param {
|
|
12571
|
-
* @param {
|
|
12501
|
+
* @param {ReadonlyMat2} L the lower triangular matrix
|
|
12502
|
+
* @param {ReadonlyMat2} D the diagonal matrix
|
|
12503
|
+
* @param {ReadonlyMat2} U the upper triangular matrix
|
|
12504
|
+
* @param {ReadonlyMat2} a the input matrix to factorize
|
|
12572
12505
|
*/
|
|
12573
12506
|
function LDU(L, D, U, a) {
|
|
12574
12507
|
L[2] = a[2] / a[0];
|
|
@@ -12582,8 +12515,8 @@
|
|
|
12582
12515
|
* Adds two mat2's
|
|
12583
12516
|
*
|
|
12584
12517
|
* @param {mat2} out the receiving matrix
|
|
12585
|
-
* @param {
|
|
12586
|
-
* @param {
|
|
12518
|
+
* @param {ReadonlyMat2} a the first operand
|
|
12519
|
+
* @param {ReadonlyMat2} b the second operand
|
|
12587
12520
|
* @returns {mat2} out
|
|
12588
12521
|
*/
|
|
12589
12522
|
function add(out, a, b) {
|
|
@@ -12598,8 +12531,8 @@
|
|
|
12598
12531
|
* Subtracts matrix b from matrix a
|
|
12599
12532
|
*
|
|
12600
12533
|
* @param {mat2} out the receiving matrix
|
|
12601
|
-
* @param {
|
|
12602
|
-
* @param {
|
|
12534
|
+
* @param {ReadonlyMat2} a the first operand
|
|
12535
|
+
* @param {ReadonlyMat2} b the second operand
|
|
12603
12536
|
* @returns {mat2} out
|
|
12604
12537
|
*/
|
|
12605
12538
|
function subtract(out, a, b) {
|
|
@@ -12613,8 +12546,8 @@
|
|
|
12613
12546
|
/**
|
|
12614
12547
|
* Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
|
|
12615
12548
|
*
|
|
12616
|
-
* @param {
|
|
12617
|
-
* @param {
|
|
12549
|
+
* @param {ReadonlyMat2} a The first matrix.
|
|
12550
|
+
* @param {ReadonlyMat2} b The second matrix.
|
|
12618
12551
|
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
12619
12552
|
*/
|
|
12620
12553
|
function exactEquals(a, b) {
|
|
@@ -12624,8 +12557,8 @@
|
|
|
12624
12557
|
/**
|
|
12625
12558
|
* Returns whether or not the matrices have approximately the same elements in the same position.
|
|
12626
12559
|
*
|
|
12627
|
-
* @param {
|
|
12628
|
-
* @param {
|
|
12560
|
+
* @param {ReadonlyMat2} a The first matrix.
|
|
12561
|
+
* @param {ReadonlyMat2} b The second matrix.
|
|
12629
12562
|
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
12630
12563
|
*/
|
|
12631
12564
|
function equals(a, b) {
|
|
@@ -12638,7 +12571,7 @@
|
|
|
12638
12571
|
* Multiply each element of the matrix by a scalar.
|
|
12639
12572
|
*
|
|
12640
12573
|
* @param {mat2} out the receiving matrix
|
|
12641
|
-
* @param {
|
|
12574
|
+
* @param {ReadonlyMat2} a the matrix to scale
|
|
12642
12575
|
* @param {Number} b amount to scale the matrix's elements by
|
|
12643
12576
|
* @returns {mat2} out
|
|
12644
12577
|
*/
|
|
@@ -12654,8 +12587,8 @@
|
|
|
12654
12587
|
* Adds two mat2's after multiplying each element of the second operand by a scalar value.
|
|
12655
12588
|
*
|
|
12656
12589
|
* @param {mat2} out the receiving vector
|
|
12657
|
-
* @param {
|
|
12658
|
-
* @param {
|
|
12590
|
+
* @param {ReadonlyMat2} a the first operand
|
|
12591
|
+
* @param {ReadonlyMat2} b the second operand
|
|
12659
12592
|
* @param {Number} scale the amount to scale b's elements by before adding
|
|
12660
12593
|
* @returns {mat2} out
|
|
12661
12594
|
*/
|
|
@@ -12678,10 +12611,10 @@
|
|
|
12678
12611
|
*/
|
|
12679
12612
|
exports.sub = subtract;
|
|
12680
12613
|
},
|
|
12681
|
-
"
|
|
12614
|
+
"33a5f6cb7a": /* gl-matrix/esm/mat2d.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
12682
12615
|
__esModule();
|
|
12683
12616
|
const tslib_1 = require("tslib");
|
|
12684
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
12617
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
12685
12618
|
/**
|
|
12686
12619
|
* 2x3 Matrix
|
|
12687
12620
|
* @module mat2d
|
|
@@ -12721,7 +12654,7 @@
|
|
|
12721
12654
|
/**
|
|
12722
12655
|
* Creates a new mat2d initialized with values from an existing matrix
|
|
12723
12656
|
*
|
|
12724
|
-
* @param {
|
|
12657
|
+
* @param {ReadonlyMat2d} a matrix to clone
|
|
12725
12658
|
* @returns {mat2d} a new 2x3 matrix
|
|
12726
12659
|
*/
|
|
12727
12660
|
function clone(a) {
|
|
@@ -12739,7 +12672,7 @@
|
|
|
12739
12672
|
* Copy the values from one mat2d to another
|
|
12740
12673
|
*
|
|
12741
12674
|
* @param {mat2d} out the receiving matrix
|
|
12742
|
-
* @param {
|
|
12675
|
+
* @param {ReadonlyMat2d} a the source matrix
|
|
12743
12676
|
* @returns {mat2d} out
|
|
12744
12677
|
*/
|
|
12745
12678
|
function copy(out, a) {
|
|
@@ -12816,7 +12749,7 @@
|
|
|
12816
12749
|
* Inverts a mat2d
|
|
12817
12750
|
*
|
|
12818
12751
|
* @param {mat2d} out the receiving matrix
|
|
12819
|
-
* @param {
|
|
12752
|
+
* @param {ReadonlyMat2d} a the source matrix
|
|
12820
12753
|
* @returns {mat2d} out
|
|
12821
12754
|
*/
|
|
12822
12755
|
function invert(out, a) {
|
|
@@ -12839,7 +12772,7 @@
|
|
|
12839
12772
|
/**
|
|
12840
12773
|
* Calculates the determinant of a mat2d
|
|
12841
12774
|
*
|
|
12842
|
-
* @param {
|
|
12775
|
+
* @param {ReadonlyMat2d} a the source matrix
|
|
12843
12776
|
* @returns {Number} determinant of a
|
|
12844
12777
|
*/
|
|
12845
12778
|
function determinant(a) {
|
|
@@ -12850,8 +12783,8 @@
|
|
|
12850
12783
|
* Multiplies two mat2d's
|
|
12851
12784
|
*
|
|
12852
12785
|
* @param {mat2d} out the receiving matrix
|
|
12853
|
-
* @param {
|
|
12854
|
-
* @param {
|
|
12786
|
+
* @param {ReadonlyMat2d} a the first operand
|
|
12787
|
+
* @param {ReadonlyMat2d} b the second operand
|
|
12855
12788
|
* @returns {mat2d} out
|
|
12856
12789
|
*/
|
|
12857
12790
|
function multiply(out, a, b) {
|
|
@@ -12870,7 +12803,7 @@
|
|
|
12870
12803
|
* Rotates a mat2d by the given angle
|
|
12871
12804
|
*
|
|
12872
12805
|
* @param {mat2d} out the receiving matrix
|
|
12873
|
-
* @param {
|
|
12806
|
+
* @param {ReadonlyMat2d} a the matrix to rotate
|
|
12874
12807
|
* @param {Number} rad the angle to rotate the matrix by
|
|
12875
12808
|
* @returns {mat2d} out
|
|
12876
12809
|
*/
|
|
@@ -12891,8 +12824,8 @@
|
|
|
12891
12824
|
* Scales the mat2d by the dimensions in the given vec2
|
|
12892
12825
|
*
|
|
12893
12826
|
* @param {mat2d} out the receiving matrix
|
|
12894
|
-
* @param {
|
|
12895
|
-
* @param {
|
|
12827
|
+
* @param {ReadonlyMat2d} a the matrix to translate
|
|
12828
|
+
* @param {ReadonlyVec2} v the vec2 to scale the matrix by
|
|
12896
12829
|
* @returns {mat2d} out
|
|
12897
12830
|
**/
|
|
12898
12831
|
function scale(out, a, v) {
|
|
@@ -12911,8 +12844,8 @@
|
|
|
12911
12844
|
* Translates the mat2d by the dimensions in the given vec2
|
|
12912
12845
|
*
|
|
12913
12846
|
* @param {mat2d} out the receiving matrix
|
|
12914
|
-
* @param {
|
|
12915
|
-
* @param {
|
|
12847
|
+
* @param {ReadonlyMat2d} a the matrix to translate
|
|
12848
|
+
* @param {ReadonlyVec2} v the vec2 to translate the matrix by
|
|
12916
12849
|
* @returns {mat2d} out
|
|
12917
12850
|
**/
|
|
12918
12851
|
function translate(out, a, v) {
|
|
@@ -12957,7 +12890,7 @@
|
|
|
12957
12890
|
* mat2d.scale(dest, dest, vec);
|
|
12958
12891
|
*
|
|
12959
12892
|
* @param {mat2d} out mat2d receiving operation result
|
|
12960
|
-
* @param {
|
|
12893
|
+
* @param {ReadonlyVec2} v Scaling vector
|
|
12961
12894
|
* @returns {mat2d} out
|
|
12962
12895
|
*/
|
|
12963
12896
|
function fromScaling(out, v) {
|
|
@@ -12978,7 +12911,7 @@
|
|
|
12978
12911
|
* mat2d.translate(dest, dest, vec);
|
|
12979
12912
|
*
|
|
12980
12913
|
* @param {mat2d} out mat2d receiving operation result
|
|
12981
|
-
* @param {
|
|
12914
|
+
* @param {ReadonlyVec2} v Translation vector
|
|
12982
12915
|
* @returns {mat2d} out
|
|
12983
12916
|
*/
|
|
12984
12917
|
function fromTranslation(out, v) {
|
|
@@ -12994,7 +12927,7 @@
|
|
|
12994
12927
|
/**
|
|
12995
12928
|
* Returns a string representation of a mat2d
|
|
12996
12929
|
*
|
|
12997
|
-
* @param {
|
|
12930
|
+
* @param {ReadonlyMat2d} a matrix to represent as a string
|
|
12998
12931
|
* @returns {String} string representation of the matrix
|
|
12999
12932
|
*/
|
|
13000
12933
|
function str(a) {
|
|
@@ -13004,7 +12937,7 @@
|
|
|
13004
12937
|
/**
|
|
13005
12938
|
* Returns Frobenius norm of a mat2d
|
|
13006
12939
|
*
|
|
13007
|
-
* @param {
|
|
12940
|
+
* @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of
|
|
13008
12941
|
* @returns {Number} Frobenius norm
|
|
13009
12942
|
*/
|
|
13010
12943
|
function frob(a) {
|
|
@@ -13015,8 +12948,8 @@
|
|
|
13015
12948
|
* Adds two mat2d's
|
|
13016
12949
|
*
|
|
13017
12950
|
* @param {mat2d} out the receiving matrix
|
|
13018
|
-
* @param {
|
|
13019
|
-
* @param {
|
|
12951
|
+
* @param {ReadonlyMat2d} a the first operand
|
|
12952
|
+
* @param {ReadonlyMat2d} b the second operand
|
|
13020
12953
|
* @returns {mat2d} out
|
|
13021
12954
|
*/
|
|
13022
12955
|
function add(out, a, b) {
|
|
@@ -13033,8 +12966,8 @@
|
|
|
13033
12966
|
* Subtracts matrix b from matrix a
|
|
13034
12967
|
*
|
|
13035
12968
|
* @param {mat2d} out the receiving matrix
|
|
13036
|
-
* @param {
|
|
13037
|
-
* @param {
|
|
12969
|
+
* @param {ReadonlyMat2d} a the first operand
|
|
12970
|
+
* @param {ReadonlyMat2d} b the second operand
|
|
13038
12971
|
* @returns {mat2d} out
|
|
13039
12972
|
*/
|
|
13040
12973
|
function subtract(out, a, b) {
|
|
@@ -13051,7 +12984,7 @@
|
|
|
13051
12984
|
* Multiply each element of the matrix by a scalar.
|
|
13052
12985
|
*
|
|
13053
12986
|
* @param {mat2d} out the receiving matrix
|
|
13054
|
-
* @param {
|
|
12987
|
+
* @param {ReadonlyMat2d} a the matrix to scale
|
|
13055
12988
|
* @param {Number} b amount to scale the matrix's elements by
|
|
13056
12989
|
* @returns {mat2d} out
|
|
13057
12990
|
*/
|
|
@@ -13069,8 +13002,8 @@
|
|
|
13069
13002
|
* Adds two mat2d's after multiplying each element of the second operand by a scalar value.
|
|
13070
13003
|
*
|
|
13071
13004
|
* @param {mat2d} out the receiving vector
|
|
13072
|
-
* @param {
|
|
13073
|
-
* @param {
|
|
13005
|
+
* @param {ReadonlyMat2d} a the first operand
|
|
13006
|
+
* @param {ReadonlyMat2d} b the second operand
|
|
13074
13007
|
* @param {Number} scale the amount to scale b's elements by before adding
|
|
13075
13008
|
* @returns {mat2d} out
|
|
13076
13009
|
*/
|
|
@@ -13087,8 +13020,8 @@
|
|
|
13087
13020
|
/**
|
|
13088
13021
|
* Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
|
|
13089
13022
|
*
|
|
13090
|
-
* @param {
|
|
13091
|
-
* @param {
|
|
13023
|
+
* @param {ReadonlyMat2d} a The first matrix.
|
|
13024
|
+
* @param {ReadonlyMat2d} b The second matrix.
|
|
13092
13025
|
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
13093
13026
|
*/
|
|
13094
13027
|
function exactEquals(a, b) {
|
|
@@ -13098,8 +13031,8 @@
|
|
|
13098
13031
|
/**
|
|
13099
13032
|
* Returns whether or not the matrices have approximately the same elements in the same position.
|
|
13100
13033
|
*
|
|
13101
|
-
* @param {
|
|
13102
|
-
* @param {
|
|
13034
|
+
* @param {ReadonlyMat2d} a The first matrix.
|
|
13035
|
+
* @param {ReadonlyMat2d} b The second matrix.
|
|
13103
13036
|
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
13104
13037
|
*/
|
|
13105
13038
|
function equals(a, b) {
|
|
@@ -13119,10 +13052,10 @@
|
|
|
13119
13052
|
*/
|
|
13120
13053
|
exports.sub = subtract;
|
|
13121
13054
|
},
|
|
13122
|
-
"
|
|
13055
|
+
"a025ef02dc": /* gl-matrix/esm/mat3.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
13123
13056
|
__esModule();
|
|
13124
13057
|
const tslib_1 = require("tslib");
|
|
13125
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
13058
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
13126
13059
|
/**
|
|
13127
13060
|
* 3x3 Matrix
|
|
13128
13061
|
* @module mat3
|
|
@@ -13152,7 +13085,7 @@
|
|
|
13152
13085
|
* Copies the upper-left 3x3 values into the given mat3.
|
|
13153
13086
|
*
|
|
13154
13087
|
* @param {mat3} out the receiving 3x3 matrix
|
|
13155
|
-
* @param {
|
|
13088
|
+
* @param {ReadonlyMat4} a the source 4x4 matrix
|
|
13156
13089
|
* @returns {mat3} out
|
|
13157
13090
|
*/
|
|
13158
13091
|
function fromMat4(out, a) {
|
|
@@ -13171,7 +13104,7 @@
|
|
|
13171
13104
|
/**
|
|
13172
13105
|
* Creates a new mat3 initialized with values from an existing matrix
|
|
13173
13106
|
*
|
|
13174
|
-
* @param {
|
|
13107
|
+
* @param {ReadonlyMat3} a matrix to clone
|
|
13175
13108
|
* @returns {mat3} a new 3x3 matrix
|
|
13176
13109
|
*/
|
|
13177
13110
|
function clone(a) {
|
|
@@ -13192,7 +13125,7 @@
|
|
|
13192
13125
|
* Copy the values from one mat3 to another
|
|
13193
13126
|
*
|
|
13194
13127
|
* @param {mat3} out the receiving matrix
|
|
13195
|
-
* @param {
|
|
13128
|
+
* @param {ReadonlyMat3} a the source matrix
|
|
13196
13129
|
* @returns {mat3} out
|
|
13197
13130
|
*/
|
|
13198
13131
|
function copy(out, a) {
|
|
@@ -13287,7 +13220,7 @@
|
|
|
13287
13220
|
* Transpose the values of a mat3
|
|
13288
13221
|
*
|
|
13289
13222
|
* @param {mat3} out the receiving matrix
|
|
13290
|
-
* @param {
|
|
13223
|
+
* @param {ReadonlyMat3} a the source matrix
|
|
13291
13224
|
* @returns {mat3} out
|
|
13292
13225
|
*/
|
|
13293
13226
|
function transpose(out, a) {
|
|
@@ -13319,7 +13252,7 @@
|
|
|
13319
13252
|
* Inverts a mat3
|
|
13320
13253
|
*
|
|
13321
13254
|
* @param {mat3} out the receiving matrix
|
|
13322
|
-
* @param {
|
|
13255
|
+
* @param {ReadonlyMat3} a the source matrix
|
|
13323
13256
|
* @returns {mat3} out
|
|
13324
13257
|
*/
|
|
13325
13258
|
function invert(out, a) {
|
|
@@ -13350,7 +13283,7 @@
|
|
|
13350
13283
|
* Calculates the adjugate of a mat3
|
|
13351
13284
|
*
|
|
13352
13285
|
* @param {mat3} out the receiving matrix
|
|
13353
|
-
* @param {
|
|
13286
|
+
* @param {ReadonlyMat3} a the source matrix
|
|
13354
13287
|
* @returns {mat3} out
|
|
13355
13288
|
*/
|
|
13356
13289
|
function adjoint(out, a) {
|
|
@@ -13372,7 +13305,7 @@
|
|
|
13372
13305
|
/**
|
|
13373
13306
|
* Calculates the determinant of a mat3
|
|
13374
13307
|
*
|
|
13375
|
-
* @param {
|
|
13308
|
+
* @param {ReadonlyMat3} a the source matrix
|
|
13376
13309
|
* @returns {Number} determinant of a
|
|
13377
13310
|
*/
|
|
13378
13311
|
function determinant(a) {
|
|
@@ -13386,8 +13319,8 @@
|
|
|
13386
13319
|
* Multiplies two mat3's
|
|
13387
13320
|
*
|
|
13388
13321
|
* @param {mat3} out the receiving matrix
|
|
13389
|
-
* @param {
|
|
13390
|
-
* @param {
|
|
13322
|
+
* @param {ReadonlyMat3} a the first operand
|
|
13323
|
+
* @param {ReadonlyMat3} b the second operand
|
|
13391
13324
|
* @returns {mat3} out
|
|
13392
13325
|
*/
|
|
13393
13326
|
function multiply(out, a, b) {
|
|
@@ -13413,8 +13346,8 @@
|
|
|
13413
13346
|
* Translate a mat3 by the given vector
|
|
13414
13347
|
*
|
|
13415
13348
|
* @param {mat3} out the receiving matrix
|
|
13416
|
-
* @param {
|
|
13417
|
-
* @param {
|
|
13349
|
+
* @param {ReadonlyMat3} a the matrix to translate
|
|
13350
|
+
* @param {ReadonlyVec2} v vector to translate by
|
|
13418
13351
|
* @returns {mat3} out
|
|
13419
13352
|
*/
|
|
13420
13353
|
function translate(out, a, v) {
|
|
@@ -13435,7 +13368,7 @@
|
|
|
13435
13368
|
* Rotates a mat3 by the given angle
|
|
13436
13369
|
*
|
|
13437
13370
|
* @param {mat3} out the receiving matrix
|
|
13438
|
-
* @param {
|
|
13371
|
+
* @param {ReadonlyMat3} a the matrix to rotate
|
|
13439
13372
|
* @param {Number} rad the angle to rotate the matrix by
|
|
13440
13373
|
* @returns {mat3} out
|
|
13441
13374
|
*/
|
|
@@ -13457,8 +13390,8 @@
|
|
|
13457
13390
|
* Scales the mat3 by the dimensions in the given vec2
|
|
13458
13391
|
*
|
|
13459
13392
|
* @param {mat3} out the receiving matrix
|
|
13460
|
-
* @param {
|
|
13461
|
-
* @param {
|
|
13393
|
+
* @param {ReadonlyMat3} a the matrix to rotate
|
|
13394
|
+
* @param {ReadonlyVec2} v the vec2 to scale the matrix by
|
|
13462
13395
|
* @returns {mat3} out
|
|
13463
13396
|
**/
|
|
13464
13397
|
function scale(out, a, v) {
|
|
@@ -13483,7 +13416,7 @@
|
|
|
13483
13416
|
* mat3.translate(dest, dest, vec);
|
|
13484
13417
|
*
|
|
13485
13418
|
* @param {mat3} out mat3 receiving operation result
|
|
13486
|
-
* @param {
|
|
13419
|
+
* @param {ReadonlyVec2} v Translation vector
|
|
13487
13420
|
* @returns {mat3} out
|
|
13488
13421
|
*/
|
|
13489
13422
|
function fromTranslation(out, v) {
|
|
@@ -13532,7 +13465,7 @@
|
|
|
13532
13465
|
* mat3.scale(dest, dest, vec);
|
|
13533
13466
|
*
|
|
13534
13467
|
* @param {mat3} out mat3 receiving operation result
|
|
13535
|
-
* @param {
|
|
13468
|
+
* @param {ReadonlyVec2} v Scaling vector
|
|
13536
13469
|
* @returns {mat3} out
|
|
13537
13470
|
*/
|
|
13538
13471
|
function fromScaling(out, v) {
|
|
@@ -13552,7 +13485,7 @@
|
|
|
13552
13485
|
* Copies the values from a mat2d into a mat3
|
|
13553
13486
|
*
|
|
13554
13487
|
* @param {mat3} out the receiving matrix
|
|
13555
|
-
* @param {
|
|
13488
|
+
* @param {ReadonlyMat2d} a the matrix to copy
|
|
13556
13489
|
* @returns {mat3} out
|
|
13557
13490
|
**/
|
|
13558
13491
|
function fromMat2d(out, a) {
|
|
@@ -13572,7 +13505,7 @@
|
|
|
13572
13505
|
* Calculates a 3x3 matrix from the given quaternion
|
|
13573
13506
|
*
|
|
13574
13507
|
* @param {mat3} out mat3 receiving operation result
|
|
13575
|
-
* @param {
|
|
13508
|
+
* @param {ReadonlyQuat} q Quaternion to create matrix from
|
|
13576
13509
|
*
|
|
13577
13510
|
* @returns {mat3} out
|
|
13578
13511
|
*/
|
|
@@ -13606,7 +13539,7 @@
|
|
|
13606
13539
|
* Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix
|
|
13607
13540
|
*
|
|
13608
13541
|
* @param {mat3} out mat3 receiving operation result
|
|
13609
|
-
* @param {
|
|
13542
|
+
* @param {ReadonlyMat4} a Mat4 to derive the normal matrix from
|
|
13610
13543
|
*
|
|
13611
13544
|
* @returns {mat3} out
|
|
13612
13545
|
*/
|
|
@@ -13668,7 +13601,7 @@
|
|
|
13668
13601
|
/**
|
|
13669
13602
|
* Returns a string representation of a mat3
|
|
13670
13603
|
*
|
|
13671
|
-
* @param {
|
|
13604
|
+
* @param {ReadonlyMat3} a matrix to represent as a string
|
|
13672
13605
|
* @returns {String} string representation of the matrix
|
|
13673
13606
|
*/
|
|
13674
13607
|
function str(a) {
|
|
@@ -13678,7 +13611,7 @@
|
|
|
13678
13611
|
/**
|
|
13679
13612
|
* Returns Frobenius norm of a mat3
|
|
13680
13613
|
*
|
|
13681
|
-
* @param {
|
|
13614
|
+
* @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of
|
|
13682
13615
|
* @returns {Number} Frobenius norm
|
|
13683
13616
|
*/
|
|
13684
13617
|
function frob(a) {
|
|
@@ -13689,8 +13622,8 @@
|
|
|
13689
13622
|
* Adds two mat3's
|
|
13690
13623
|
*
|
|
13691
13624
|
* @param {mat3} out the receiving matrix
|
|
13692
|
-
* @param {
|
|
13693
|
-
* @param {
|
|
13625
|
+
* @param {ReadonlyMat3} a the first operand
|
|
13626
|
+
* @param {ReadonlyMat3} b the second operand
|
|
13694
13627
|
* @returns {mat3} out
|
|
13695
13628
|
*/
|
|
13696
13629
|
function add(out, a, b) {
|
|
@@ -13710,8 +13643,8 @@
|
|
|
13710
13643
|
* Subtracts matrix b from matrix a
|
|
13711
13644
|
*
|
|
13712
13645
|
* @param {mat3} out the receiving matrix
|
|
13713
|
-
* @param {
|
|
13714
|
-
* @param {
|
|
13646
|
+
* @param {ReadonlyMat3} a the first operand
|
|
13647
|
+
* @param {ReadonlyMat3} b the second operand
|
|
13715
13648
|
* @returns {mat3} out
|
|
13716
13649
|
*/
|
|
13717
13650
|
function subtract(out, a, b) {
|
|
@@ -13731,7 +13664,7 @@
|
|
|
13731
13664
|
* Multiply each element of the matrix by a scalar.
|
|
13732
13665
|
*
|
|
13733
13666
|
* @param {mat3} out the receiving matrix
|
|
13734
|
-
* @param {
|
|
13667
|
+
* @param {ReadonlyMat3} a the matrix to scale
|
|
13735
13668
|
* @param {Number} b amount to scale the matrix's elements by
|
|
13736
13669
|
* @returns {mat3} out
|
|
13737
13670
|
*/
|
|
@@ -13752,8 +13685,8 @@
|
|
|
13752
13685
|
* Adds two mat3's after multiplying each element of the second operand by a scalar value.
|
|
13753
13686
|
*
|
|
13754
13687
|
* @param {mat3} out the receiving vector
|
|
13755
|
-
* @param {
|
|
13756
|
-
* @param {
|
|
13688
|
+
* @param {ReadonlyMat3} a the first operand
|
|
13689
|
+
* @param {ReadonlyMat3} b the second operand
|
|
13757
13690
|
* @param {Number} scale the amount to scale b's elements by before adding
|
|
13758
13691
|
* @returns {mat3} out
|
|
13759
13692
|
*/
|
|
@@ -13773,8 +13706,8 @@
|
|
|
13773
13706
|
/**
|
|
13774
13707
|
* Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
|
|
13775
13708
|
*
|
|
13776
|
-
* @param {
|
|
13777
|
-
* @param {
|
|
13709
|
+
* @param {ReadonlyMat3} a The first matrix.
|
|
13710
|
+
* @param {ReadonlyMat3} b The second matrix.
|
|
13778
13711
|
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
13779
13712
|
*/
|
|
13780
13713
|
function exactEquals(a, b) {
|
|
@@ -13784,8 +13717,8 @@
|
|
|
13784
13717
|
/**
|
|
13785
13718
|
* Returns whether or not the matrices have approximately the same elements in the same position.
|
|
13786
13719
|
*
|
|
13787
|
-
* @param {
|
|
13788
|
-
* @param {
|
|
13720
|
+
* @param {ReadonlyMat3} a The first matrix.
|
|
13721
|
+
* @param {ReadonlyMat3} b The second matrix.
|
|
13789
13722
|
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
13790
13723
|
*/
|
|
13791
13724
|
function equals(a, b) {
|
|
@@ -13805,10 +13738,11 @@
|
|
|
13805
13738
|
*/
|
|
13806
13739
|
exports.sub = subtract;
|
|
13807
13740
|
},
|
|
13808
|
-
"
|
|
13741
|
+
"83bad9e639": /* gl-matrix/esm/mat4.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
13809
13742
|
__esModule();
|
|
13743
|
+
exports.sub = void 0;
|
|
13810
13744
|
const tslib_1 = require("tslib");
|
|
13811
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
13745
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
13812
13746
|
/**
|
|
13813
13747
|
* 4x4 Matrix<br>Format: column-major, when typed out it looks like row-major<br>The matrices are being post multiplied.
|
|
13814
13748
|
* @module mat4
|
|
@@ -13844,7 +13778,7 @@
|
|
|
13844
13778
|
/**
|
|
13845
13779
|
* Creates a new mat4 initialized with values from an existing matrix
|
|
13846
13780
|
*
|
|
13847
|
-
* @param {
|
|
13781
|
+
* @param {ReadonlyMat4} a matrix to clone
|
|
13848
13782
|
* @returns {mat4} a new 4x4 matrix
|
|
13849
13783
|
*/
|
|
13850
13784
|
function clone(a) {
|
|
@@ -13872,7 +13806,7 @@
|
|
|
13872
13806
|
* Copy the values from one mat4 to another
|
|
13873
13807
|
*
|
|
13874
13808
|
* @param {mat4} out the receiving matrix
|
|
13875
|
-
* @param {
|
|
13809
|
+
* @param {ReadonlyMat4} a the source matrix
|
|
13876
13810
|
* @returns {mat4} out
|
|
13877
13811
|
*/
|
|
13878
13812
|
function copy(out, a) {
|
|
@@ -14009,7 +13943,7 @@
|
|
|
14009
13943
|
* Transpose the values of a mat4
|
|
14010
13944
|
*
|
|
14011
13945
|
* @param {mat4} out the receiving matrix
|
|
14012
|
-
* @param {
|
|
13946
|
+
* @param {ReadonlyMat4} a the source matrix
|
|
14013
13947
|
* @returns {mat4} out
|
|
14014
13948
|
*/
|
|
14015
13949
|
function transpose(out, a) {
|
|
@@ -14056,7 +13990,7 @@
|
|
|
14056
13990
|
* Inverts a mat4
|
|
14057
13991
|
*
|
|
14058
13992
|
* @param {mat4} out the receiving matrix
|
|
14059
|
-
* @param {
|
|
13993
|
+
* @param {ReadonlyMat4} a the source matrix
|
|
14060
13994
|
* @returns {mat4} out
|
|
14061
13995
|
*/
|
|
14062
13996
|
function invert(out, a) {
|
|
@@ -14104,7 +14038,7 @@
|
|
|
14104
14038
|
* Calculates the adjugate of a mat4
|
|
14105
14039
|
*
|
|
14106
14040
|
* @param {mat4} out the receiving matrix
|
|
14107
|
-
* @param {
|
|
14041
|
+
* @param {ReadonlyMat4} a the source matrix
|
|
14108
14042
|
* @returns {mat4} out
|
|
14109
14043
|
*/
|
|
14110
14044
|
function adjoint(out, a) {
|
|
@@ -14134,7 +14068,7 @@
|
|
|
14134
14068
|
/**
|
|
14135
14069
|
* Calculates the determinant of a mat4
|
|
14136
14070
|
*
|
|
14137
|
-
* @param {
|
|
14071
|
+
* @param {ReadonlyMat4} a the source matrix
|
|
14138
14072
|
* @returns {Number} determinant of a
|
|
14139
14073
|
*/
|
|
14140
14074
|
function determinant(a) {
|
|
@@ -14161,8 +14095,8 @@
|
|
|
14161
14095
|
* Multiplies two mat4s
|
|
14162
14096
|
*
|
|
14163
14097
|
* @param {mat4} out the receiving matrix
|
|
14164
|
-
* @param {
|
|
14165
|
-
* @param {
|
|
14098
|
+
* @param {ReadonlyMat4} a the first operand
|
|
14099
|
+
* @param {ReadonlyMat4} b the second operand
|
|
14166
14100
|
* @returns {mat4} out
|
|
14167
14101
|
*/
|
|
14168
14102
|
function multiply(out, a, b) {
|
|
@@ -14206,8 +14140,8 @@
|
|
|
14206
14140
|
* Translate a mat4 by the given vector
|
|
14207
14141
|
*
|
|
14208
14142
|
* @param {mat4} out the receiving matrix
|
|
14209
|
-
* @param {
|
|
14210
|
-
* @param {
|
|
14143
|
+
* @param {ReadonlyMat4} a the matrix to translate
|
|
14144
|
+
* @param {ReadonlyVec3} v vector to translate by
|
|
14211
14145
|
* @returns {mat4} out
|
|
14212
14146
|
*/
|
|
14213
14147
|
function translate(out, a, v) {
|
|
@@ -14258,8 +14192,8 @@
|
|
|
14258
14192
|
* Scales the mat4 by the dimensions in the given vec3 not using vectorization
|
|
14259
14193
|
*
|
|
14260
14194
|
* @param {mat4} out the receiving matrix
|
|
14261
|
-
* @param {
|
|
14262
|
-
* @param {
|
|
14195
|
+
* @param {ReadonlyMat4} a the matrix to scale
|
|
14196
|
+
* @param {ReadonlyVec3} v the vec3 to scale the matrix by
|
|
14263
14197
|
* @returns {mat4} out
|
|
14264
14198
|
**/
|
|
14265
14199
|
function scale(out, a, v) {
|
|
@@ -14287,9 +14221,9 @@
|
|
|
14287
14221
|
* Rotates a mat4 by the given angle around the given axis
|
|
14288
14222
|
*
|
|
14289
14223
|
* @param {mat4} out the receiving matrix
|
|
14290
|
-
* @param {
|
|
14224
|
+
* @param {ReadonlyMat4} a the matrix to rotate
|
|
14291
14225
|
* @param {Number} rad the angle to rotate the matrix by
|
|
14292
|
-
* @param {
|
|
14226
|
+
* @param {ReadonlyVec3} axis the axis to rotate around
|
|
14293
14227
|
* @returns {mat4} out
|
|
14294
14228
|
*/
|
|
14295
14229
|
function rotate(out, a, rad, axis) {
|
|
@@ -14359,7 +14293,7 @@
|
|
|
14359
14293
|
* Rotates a matrix by the given angle around the X axis
|
|
14360
14294
|
*
|
|
14361
14295
|
* @param {mat4} out the receiving matrix
|
|
14362
|
-
* @param {
|
|
14296
|
+
* @param {ReadonlyMat4} a the matrix to rotate
|
|
14363
14297
|
* @param {Number} rad the angle to rotate the matrix by
|
|
14364
14298
|
* @returns {mat4} out
|
|
14365
14299
|
*/
|
|
@@ -14400,7 +14334,7 @@
|
|
|
14400
14334
|
* Rotates a matrix by the given angle around the Y axis
|
|
14401
14335
|
*
|
|
14402
14336
|
* @param {mat4} out the receiving matrix
|
|
14403
|
-
* @param {
|
|
14337
|
+
* @param {ReadonlyMat4} a the matrix to rotate
|
|
14404
14338
|
* @param {Number} rad the angle to rotate the matrix by
|
|
14405
14339
|
* @returns {mat4} out
|
|
14406
14340
|
*/
|
|
@@ -14441,7 +14375,7 @@
|
|
|
14441
14375
|
* Rotates a matrix by the given angle around the Z axis
|
|
14442
14376
|
*
|
|
14443
14377
|
* @param {mat4} out the receiving matrix
|
|
14444
|
-
* @param {
|
|
14378
|
+
* @param {ReadonlyMat4} a the matrix to rotate
|
|
14445
14379
|
* @param {Number} rad the angle to rotate the matrix by
|
|
14446
14380
|
* @returns {mat4} out
|
|
14447
14381
|
*/
|
|
@@ -14486,7 +14420,7 @@
|
|
|
14486
14420
|
* mat4.translate(dest, dest, vec);
|
|
14487
14421
|
*
|
|
14488
14422
|
* @param {mat4} out mat4 receiving operation result
|
|
14489
|
-
* @param {
|
|
14423
|
+
* @param {ReadonlyVec3} v Translation vector
|
|
14490
14424
|
* @returns {mat4} out
|
|
14491
14425
|
*/
|
|
14492
14426
|
function fromTranslation(out, v) {
|
|
@@ -14517,7 +14451,7 @@
|
|
|
14517
14451
|
* mat4.scale(dest, dest, vec);
|
|
14518
14452
|
*
|
|
14519
14453
|
* @param {mat4} out mat4 receiving operation result
|
|
14520
|
-
* @param {
|
|
14454
|
+
* @param {ReadonlyVec3} v Scaling vector
|
|
14521
14455
|
* @returns {mat4} out
|
|
14522
14456
|
*/
|
|
14523
14457
|
function fromScaling(out, v) {
|
|
@@ -14549,7 +14483,7 @@
|
|
|
14549
14483
|
*
|
|
14550
14484
|
* @param {mat4} out mat4 receiving operation result
|
|
14551
14485
|
* @param {Number} rad the angle to rotate the matrix by
|
|
14552
|
-
* @param {
|
|
14486
|
+
* @param {ReadonlyVec3} axis the axis to rotate around
|
|
14553
14487
|
* @returns {mat4} out
|
|
14554
14488
|
*/
|
|
14555
14489
|
function fromRotation(out, rad, axis) {
|
|
@@ -14696,7 +14630,7 @@
|
|
|
14696
14630
|
*
|
|
14697
14631
|
* @param {mat4} out mat4 receiving operation result
|
|
14698
14632
|
* @param {quat4} q Rotation quaternion
|
|
14699
|
-
* @param {
|
|
14633
|
+
* @param {ReadonlyVec3} v Translation vector
|
|
14700
14634
|
* @returns {mat4} out
|
|
14701
14635
|
*/
|
|
14702
14636
|
function fromRotationTranslation(out, q, v) {
|
|
@@ -14737,7 +14671,7 @@
|
|
|
14737
14671
|
* Creates a new mat4 from a dual quat.
|
|
14738
14672
|
*
|
|
14739
14673
|
* @param {mat4} out Matrix
|
|
14740
|
-
* @param {
|
|
14674
|
+
* @param {ReadonlyQuat2} a Dual Quaternion
|
|
14741
14675
|
* @returns {mat4} mat4 receiving operation result
|
|
14742
14676
|
*/
|
|
14743
14677
|
function fromQuat2(out, a) {
|
|
@@ -14764,7 +14698,7 @@
|
|
|
14764
14698
|
* the returned vector will be the same as the translation vector
|
|
14765
14699
|
* originally supplied.
|
|
14766
14700
|
* @param {vec3} out Vector to receive translation component
|
|
14767
|
-
* @param {
|
|
14701
|
+
* @param {ReadonlyMat4} mat Matrix to be decomposed (input)
|
|
14768
14702
|
* @return {vec3} out
|
|
14769
14703
|
*/
|
|
14770
14704
|
function getTranslation(out, mat) {
|
|
@@ -14781,7 +14715,7 @@
|
|
|
14781
14715
|
* the same as the scaling vector
|
|
14782
14716
|
* originally supplied.
|
|
14783
14717
|
* @param {vec3} out Vector to receive scaling factor component
|
|
14784
|
-
* @param {
|
|
14718
|
+
* @param {ReadonlyMat4} mat Matrix to be decomposed (input)
|
|
14785
14719
|
* @return {vec3} out
|
|
14786
14720
|
*/
|
|
14787
14721
|
function getScaling(out, mat) {
|
|
@@ -14806,7 +14740,7 @@
|
|
|
14806
14740
|
* fromRotationTranslation, the returned quaternion will be the
|
|
14807
14741
|
* same as the quaternion originally supplied.
|
|
14808
14742
|
* @param {quat} out Quaternion to receive the rotation component
|
|
14809
|
-
* @param {
|
|
14743
|
+
* @param {ReadonlyMat4} mat Matrix to be decomposed (input)
|
|
14810
14744
|
* @return {quat} out
|
|
14811
14745
|
*/
|
|
14812
14746
|
function getRotation(out, mat) {
|
|
@@ -14870,8 +14804,8 @@
|
|
|
14870
14804
|
*
|
|
14871
14805
|
* @param {mat4} out mat4 receiving operation result
|
|
14872
14806
|
* @param {quat4} q Rotation quaternion
|
|
14873
|
-
* @param {
|
|
14874
|
-
* @param {
|
|
14807
|
+
* @param {ReadonlyVec3} v Translation vector
|
|
14808
|
+
* @param {ReadonlyVec3} s Scaling vector
|
|
14875
14809
|
* @returns {mat4} out
|
|
14876
14810
|
*/
|
|
14877
14811
|
function fromRotationTranslationScale(out, q, v, s) {
|
|
@@ -14926,9 +14860,9 @@
|
|
|
14926
14860
|
*
|
|
14927
14861
|
* @param {mat4} out mat4 receiving operation result
|
|
14928
14862
|
* @param {quat4} q Rotation quaternion
|
|
14929
|
-
* @param {
|
|
14930
|
-
* @param {
|
|
14931
|
-
* @param {
|
|
14863
|
+
* @param {ReadonlyVec3} v Translation vector
|
|
14864
|
+
* @param {ReadonlyVec3} s Scaling vector
|
|
14865
|
+
* @param {ReadonlyVec3} o The origin vector around which to scale and rotate
|
|
14932
14866
|
* @returns {mat4} out
|
|
14933
14867
|
*/
|
|
14934
14868
|
function fromRotationTranslationScaleOrigin(out, q, v, s, o) {
|
|
@@ -14984,7 +14918,7 @@
|
|
|
14984
14918
|
* Calculates a 4x4 matrix from the given quaternion
|
|
14985
14919
|
*
|
|
14986
14920
|
* @param {mat4} out mat4 receiving operation result
|
|
14987
|
-
* @param {
|
|
14921
|
+
* @param {ReadonlyQuat} q Quaternion to create matrix from
|
|
14988
14922
|
*
|
|
14989
14923
|
* @returns {mat4} out
|
|
14990
14924
|
*/
|
|
@@ -15058,6 +14992,8 @@
|
|
|
15058
14992
|
exports.frustum = frustum;
|
|
15059
14993
|
/**
|
|
15060
14994
|
* Generates a perspective projection matrix with the given bounds.
|
|
14995
|
+
* The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
|
|
14996
|
+
* which matches WebGL/OpenGL's clip volume.
|
|
15061
14997
|
* Passing null/undefined/no value for far will generate infinite projection matrix.
|
|
15062
14998
|
*
|
|
15063
14999
|
* @param {mat4} out mat4 frustum matrix will be written into
|
|
@@ -15067,7 +15003,7 @@
|
|
|
15067
15003
|
* @param {number} far Far bound of the frustum, can be null or Infinity
|
|
15068
15004
|
* @returns {mat4} out
|
|
15069
15005
|
*/
|
|
15070
|
-
function
|
|
15006
|
+
function perspectiveNO(out, fovy, aspect, near, far) {
|
|
15071
15007
|
var f = 1.0 / Math.tan(fovy / 2), nf;
|
|
15072
15008
|
out[0] = f / aspect;
|
|
15073
15009
|
out[1] = 0;
|
|
@@ -15094,7 +15030,53 @@
|
|
|
15094
15030
|
}
|
|
15095
15031
|
return out;
|
|
15096
15032
|
}
|
|
15097
|
-
exports.
|
|
15033
|
+
exports.perspectiveNO = perspectiveNO;
|
|
15034
|
+
/**
|
|
15035
|
+
* Alias for {@link mat4.perspectiveNO}
|
|
15036
|
+
* @function
|
|
15037
|
+
*/
|
|
15038
|
+
exports.perspective = perspectiveNO;
|
|
15039
|
+
/**
|
|
15040
|
+
* Generates a perspective projection matrix suitable for WebGPU with the given bounds.
|
|
15041
|
+
* The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],
|
|
15042
|
+
* which matches WebGPU/Vulkan/DirectX/Metal's clip volume.
|
|
15043
|
+
* Passing null/undefined/no value for far will generate infinite projection matrix.
|
|
15044
|
+
*
|
|
15045
|
+
* @param {mat4} out mat4 frustum matrix will be written into
|
|
15046
|
+
* @param {number} fovy Vertical field of view in radians
|
|
15047
|
+
* @param {number} aspect Aspect ratio. typically viewport width/height
|
|
15048
|
+
* @param {number} near Near bound of the frustum
|
|
15049
|
+
* @param {number} far Far bound of the frustum, can be null or Infinity
|
|
15050
|
+
* @returns {mat4} out
|
|
15051
|
+
*/
|
|
15052
|
+
function perspectiveZO(out, fovy, aspect, near, far) {
|
|
15053
|
+
var f = 1.0 / Math.tan(fovy / 2), nf;
|
|
15054
|
+
out[0] = f / aspect;
|
|
15055
|
+
out[1] = 0;
|
|
15056
|
+
out[2] = 0;
|
|
15057
|
+
out[3] = 0;
|
|
15058
|
+
out[4] = 0;
|
|
15059
|
+
out[5] = f;
|
|
15060
|
+
out[6] = 0;
|
|
15061
|
+
out[7] = 0;
|
|
15062
|
+
out[8] = 0;
|
|
15063
|
+
out[9] = 0;
|
|
15064
|
+
out[11] = -1;
|
|
15065
|
+
out[12] = 0;
|
|
15066
|
+
out[13] = 0;
|
|
15067
|
+
out[15] = 0;
|
|
15068
|
+
if (far != null && far !== Infinity) {
|
|
15069
|
+
nf = 1 / (near - far);
|
|
15070
|
+
out[10] = far * nf;
|
|
15071
|
+
out[14] = far * near * nf;
|
|
15072
|
+
}
|
|
15073
|
+
else {
|
|
15074
|
+
out[10] = -1;
|
|
15075
|
+
out[14] = -near;
|
|
15076
|
+
}
|
|
15077
|
+
return out;
|
|
15078
|
+
}
|
|
15079
|
+
exports.perspectiveZO = perspectiveZO;
|
|
15098
15080
|
/**
|
|
15099
15081
|
* Generates a perspective projection matrix with the given field of view.
|
|
15100
15082
|
* This is primarily useful for generating projection matrices to be used
|
|
@@ -15133,7 +15115,9 @@
|
|
|
15133
15115
|
}
|
|
15134
15116
|
exports.perspectiveFromFieldOfView = perspectiveFromFieldOfView;
|
|
15135
15117
|
/**
|
|
15136
|
-
* Generates a orthogonal projection matrix with the given bounds
|
|
15118
|
+
* Generates a orthogonal projection matrix with the given bounds.
|
|
15119
|
+
* The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
|
|
15120
|
+
* which matches WebGL/OpenGL's clip volume.
|
|
15137
15121
|
*
|
|
15138
15122
|
* @param {mat4} out mat4 frustum matrix will be written into
|
|
15139
15123
|
* @param {number} left Left bound of the frustum
|
|
@@ -15144,7 +15128,7 @@
|
|
|
15144
15128
|
* @param {number} far Far bound of the frustum
|
|
15145
15129
|
* @returns {mat4} out
|
|
15146
15130
|
*/
|
|
15147
|
-
function
|
|
15131
|
+
function orthoNO(out, left, right, bottom, top, near, far) {
|
|
15148
15132
|
var lr = 1 / (left - right);
|
|
15149
15133
|
var bt = 1 / (bottom - top);
|
|
15150
15134
|
var nf = 1 / (near - far);
|
|
@@ -15166,15 +15150,57 @@
|
|
|
15166
15150
|
out[15] = 1;
|
|
15167
15151
|
return out;
|
|
15168
15152
|
}
|
|
15169
|
-
exports.
|
|
15153
|
+
exports.orthoNO = orthoNO;
|
|
15154
|
+
/**
|
|
15155
|
+
* Alias for {@link mat4.orthoNO}
|
|
15156
|
+
* @function
|
|
15157
|
+
*/
|
|
15158
|
+
exports.ortho = orthoNO;
|
|
15159
|
+
/**
|
|
15160
|
+
* Generates a orthogonal projection matrix with the given bounds.
|
|
15161
|
+
* The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],
|
|
15162
|
+
* which matches WebGPU/Vulkan/DirectX/Metal's clip volume.
|
|
15163
|
+
*
|
|
15164
|
+
* @param {mat4} out mat4 frustum matrix will be written into
|
|
15165
|
+
* @param {number} left Left bound of the frustum
|
|
15166
|
+
* @param {number} right Right bound of the frustum
|
|
15167
|
+
* @param {number} bottom Bottom bound of the frustum
|
|
15168
|
+
* @param {number} top Top bound of the frustum
|
|
15169
|
+
* @param {number} near Near bound of the frustum
|
|
15170
|
+
* @param {number} far Far bound of the frustum
|
|
15171
|
+
* @returns {mat4} out
|
|
15172
|
+
*/
|
|
15173
|
+
function orthoZO(out, left, right, bottom, top, near, far) {
|
|
15174
|
+
var lr = 1 / (left - right);
|
|
15175
|
+
var bt = 1 / (bottom - top);
|
|
15176
|
+
var nf = 1 / (near - far);
|
|
15177
|
+
out[0] = -2 * lr;
|
|
15178
|
+
out[1] = 0;
|
|
15179
|
+
out[2] = 0;
|
|
15180
|
+
out[3] = 0;
|
|
15181
|
+
out[4] = 0;
|
|
15182
|
+
out[5] = -2 * bt;
|
|
15183
|
+
out[6] = 0;
|
|
15184
|
+
out[7] = 0;
|
|
15185
|
+
out[8] = 0;
|
|
15186
|
+
out[9] = 0;
|
|
15187
|
+
out[10] = nf;
|
|
15188
|
+
out[11] = 0;
|
|
15189
|
+
out[12] = (left + right) * lr;
|
|
15190
|
+
out[13] = (top + bottom) * bt;
|
|
15191
|
+
out[14] = near * nf;
|
|
15192
|
+
out[15] = 1;
|
|
15193
|
+
return out;
|
|
15194
|
+
}
|
|
15195
|
+
exports.orthoZO = orthoZO;
|
|
15170
15196
|
/**
|
|
15171
15197
|
* Generates a look-at matrix with the given eye position, focal point, and up axis.
|
|
15172
15198
|
* If you want a matrix that actually makes an object look at another object, you should use targetTo instead.
|
|
15173
15199
|
*
|
|
15174
15200
|
* @param {mat4} out mat4 frustum matrix will be written into
|
|
15175
|
-
* @param {
|
|
15176
|
-
* @param {
|
|
15177
|
-
* @param {
|
|
15201
|
+
* @param {ReadonlyVec3} eye Position of the viewer
|
|
15202
|
+
* @param {ReadonlyVec3} center Point the viewer is looking at
|
|
15203
|
+
* @param {ReadonlyVec3} up vec3 pointing up
|
|
15178
15204
|
* @returns {mat4} out
|
|
15179
15205
|
*/
|
|
15180
15206
|
function lookAt(out, eye, center, up) {
|
|
@@ -15251,9 +15277,9 @@
|
|
|
15251
15277
|
* Generates a matrix that makes something look at something else.
|
|
15252
15278
|
*
|
|
15253
15279
|
* @param {mat4} out mat4 frustum matrix will be written into
|
|
15254
|
-
* @param {
|
|
15255
|
-
* @param {
|
|
15256
|
-
* @param {
|
|
15280
|
+
* @param {ReadonlyVec3} eye Position of the viewer
|
|
15281
|
+
* @param {ReadonlyVec3} center Point the viewer is looking at
|
|
15282
|
+
* @param {ReadonlyVec3} up vec3 pointing up
|
|
15257
15283
|
* @returns {mat4} out
|
|
15258
15284
|
*/
|
|
15259
15285
|
function targetTo(out, eye, target, up) {
|
|
@@ -15296,7 +15322,7 @@
|
|
|
15296
15322
|
/**
|
|
15297
15323
|
* Returns a string representation of a mat4
|
|
15298
15324
|
*
|
|
15299
|
-
* @param {
|
|
15325
|
+
* @param {ReadonlyMat4} a matrix to represent as a string
|
|
15300
15326
|
* @returns {String} string representation of the matrix
|
|
15301
15327
|
*/
|
|
15302
15328
|
function str(a) {
|
|
@@ -15306,7 +15332,7 @@
|
|
|
15306
15332
|
/**
|
|
15307
15333
|
* Returns Frobenius norm of a mat4
|
|
15308
15334
|
*
|
|
15309
|
-
* @param {
|
|
15335
|
+
* @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of
|
|
15310
15336
|
* @returns {Number} Frobenius norm
|
|
15311
15337
|
*/
|
|
15312
15338
|
function frob(a) {
|
|
@@ -15317,8 +15343,8 @@
|
|
|
15317
15343
|
* Adds two mat4's
|
|
15318
15344
|
*
|
|
15319
15345
|
* @param {mat4} out the receiving matrix
|
|
15320
|
-
* @param {
|
|
15321
|
-
* @param {
|
|
15346
|
+
* @param {ReadonlyMat4} a the first operand
|
|
15347
|
+
* @param {ReadonlyMat4} b the second operand
|
|
15322
15348
|
* @returns {mat4} out
|
|
15323
15349
|
*/
|
|
15324
15350
|
function add(out, a, b) {
|
|
@@ -15345,8 +15371,8 @@
|
|
|
15345
15371
|
* Subtracts matrix b from matrix a
|
|
15346
15372
|
*
|
|
15347
15373
|
* @param {mat4} out the receiving matrix
|
|
15348
|
-
* @param {
|
|
15349
|
-
* @param {
|
|
15374
|
+
* @param {ReadonlyMat4} a the first operand
|
|
15375
|
+
* @param {ReadonlyMat4} b the second operand
|
|
15350
15376
|
* @returns {mat4} out
|
|
15351
15377
|
*/
|
|
15352
15378
|
function subtract(out, a, b) {
|
|
@@ -15373,7 +15399,7 @@
|
|
|
15373
15399
|
* Multiply each element of the matrix by a scalar.
|
|
15374
15400
|
*
|
|
15375
15401
|
* @param {mat4} out the receiving matrix
|
|
15376
|
-
* @param {
|
|
15402
|
+
* @param {ReadonlyMat4} a the matrix to scale
|
|
15377
15403
|
* @param {Number} b amount to scale the matrix's elements by
|
|
15378
15404
|
* @returns {mat4} out
|
|
15379
15405
|
*/
|
|
@@ -15401,8 +15427,8 @@
|
|
|
15401
15427
|
* Adds two mat4's after multiplying each element of the second operand by a scalar value.
|
|
15402
15428
|
*
|
|
15403
15429
|
* @param {mat4} out the receiving vector
|
|
15404
|
-
* @param {
|
|
15405
|
-
* @param {
|
|
15430
|
+
* @param {ReadonlyMat4} a the first operand
|
|
15431
|
+
* @param {ReadonlyMat4} b the second operand
|
|
15406
15432
|
* @param {Number} scale the amount to scale b's elements by before adding
|
|
15407
15433
|
* @returns {mat4} out
|
|
15408
15434
|
*/
|
|
@@ -15429,8 +15455,8 @@
|
|
|
15429
15455
|
/**
|
|
15430
15456
|
* Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
|
|
15431
15457
|
*
|
|
15432
|
-
* @param {
|
|
15433
|
-
* @param {
|
|
15458
|
+
* @param {ReadonlyMat4} a The first matrix.
|
|
15459
|
+
* @param {ReadonlyMat4} b The second matrix.
|
|
15434
15460
|
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
15435
15461
|
*/
|
|
15436
15462
|
function exactEquals(a, b) {
|
|
@@ -15440,8 +15466,8 @@
|
|
|
15440
15466
|
/**
|
|
15441
15467
|
* Returns whether or not the matrices have approximately the same elements in the same position.
|
|
15442
15468
|
*
|
|
15443
|
-
* @param {
|
|
15444
|
-
* @param {
|
|
15469
|
+
* @param {ReadonlyMat4} a The first matrix.
|
|
15470
|
+
* @param {ReadonlyMat4} b The second matrix.
|
|
15445
15471
|
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
15446
15472
|
*/
|
|
15447
15473
|
function equals(a, b) {
|
|
@@ -15467,13 +15493,13 @@
|
|
|
15467
15493
|
*/
|
|
15468
15494
|
exports.sub = subtract;
|
|
15469
15495
|
},
|
|
15470
|
-
"
|
|
15496
|
+
"f83fe7c413": /* gl-matrix/esm/quat.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
15471
15497
|
__esModule();
|
|
15472
15498
|
const tslib_1 = require("tslib");
|
|
15473
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
15474
|
-
const mat3 = tslib_1.__importStar(require("
|
|
15475
|
-
const vec3 = tslib_1.__importStar(require("
|
|
15476
|
-
const vec4 = tslib_1.__importStar(require("
|
|
15499
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
15500
|
+
const mat3 = tslib_1.__importStar(require("a025ef02dc") /* ./mat3.js */);
|
|
15501
|
+
const vec3 = tslib_1.__importStar(require("63eddc5433") /* ./vec3.js */);
|
|
15502
|
+
const vec4 = tslib_1.__importStar(require("11562bccc5") /* ./vec4.js */);
|
|
15477
15503
|
/**
|
|
15478
15504
|
* Quaternion
|
|
15479
15505
|
* @module quat
|
|
@@ -15513,7 +15539,7 @@
|
|
|
15513
15539
|
* then returns it.
|
|
15514
15540
|
*
|
|
15515
15541
|
* @param {quat} out the receiving quaternion
|
|
15516
|
-
* @param {
|
|
15542
|
+
* @param {ReadonlyVec3} axis the axis around which to rotate
|
|
15517
15543
|
* @param {Number} rad the angle in radians
|
|
15518
15544
|
* @returns {quat} out
|
|
15519
15545
|
**/
|
|
@@ -15537,7 +15563,7 @@
|
|
|
15537
15563
|
* angle -90 is the same as the quaternion formed by
|
|
15538
15564
|
* [0, 0, 1] and 270. This method favors the latter.
|
|
15539
15565
|
* @param {vec3} out_axis Vector receiving the axis of rotation
|
|
15540
|
-
* @param {
|
|
15566
|
+
* @param {ReadonlyQuat} q Quaternion to be decomposed
|
|
15541
15567
|
* @return {Number} Angle, in radians, of the rotation
|
|
15542
15568
|
*/
|
|
15543
15569
|
function getAxisAngle(out_axis, q) {
|
|
@@ -15560,8 +15586,8 @@
|
|
|
15560
15586
|
/**
|
|
15561
15587
|
* Gets the angular distance between two unit quaternions
|
|
15562
15588
|
*
|
|
15563
|
-
* @param {
|
|
15564
|
-
* @param {
|
|
15589
|
+
* @param {ReadonlyQuat} a Origin unit quaternion
|
|
15590
|
+
* @param {ReadonlyQuat} b Destination unit quaternion
|
|
15565
15591
|
* @return {Number} Angle, in radians, between the two quaternions
|
|
15566
15592
|
*/
|
|
15567
15593
|
function getAngle(a, b) {
|
|
@@ -15573,8 +15599,8 @@
|
|
|
15573
15599
|
* Multiplies two quat's
|
|
15574
15600
|
*
|
|
15575
15601
|
* @param {quat} out the receiving quaternion
|
|
15576
|
-
* @param {
|
|
15577
|
-
* @param {
|
|
15602
|
+
* @param {ReadonlyQuat} a the first operand
|
|
15603
|
+
* @param {ReadonlyQuat} b the second operand
|
|
15578
15604
|
* @returns {quat} out
|
|
15579
15605
|
*/
|
|
15580
15606
|
function multiply(out, a, b) {
|
|
@@ -15591,7 +15617,7 @@
|
|
|
15591
15617
|
* Rotates a quaternion by the given angle about the X axis
|
|
15592
15618
|
*
|
|
15593
15619
|
* @param {quat} out quat receiving operation result
|
|
15594
|
-
* @param {
|
|
15620
|
+
* @param {ReadonlyQuat} a quat to rotate
|
|
15595
15621
|
* @param {number} rad angle (in radians) to rotate
|
|
15596
15622
|
* @returns {quat} out
|
|
15597
15623
|
*/
|
|
@@ -15610,7 +15636,7 @@
|
|
|
15610
15636
|
* Rotates a quaternion by the given angle about the Y axis
|
|
15611
15637
|
*
|
|
15612
15638
|
* @param {quat} out quat receiving operation result
|
|
15613
|
-
* @param {
|
|
15639
|
+
* @param {ReadonlyQuat} a quat to rotate
|
|
15614
15640
|
* @param {number} rad angle (in radians) to rotate
|
|
15615
15641
|
* @returns {quat} out
|
|
15616
15642
|
*/
|
|
@@ -15629,7 +15655,7 @@
|
|
|
15629
15655
|
* Rotates a quaternion by the given angle about the Z axis
|
|
15630
15656
|
*
|
|
15631
15657
|
* @param {quat} out quat receiving operation result
|
|
15632
|
-
* @param {
|
|
15658
|
+
* @param {ReadonlyQuat} a quat to rotate
|
|
15633
15659
|
* @param {number} rad angle (in radians) to rotate
|
|
15634
15660
|
* @returns {quat} out
|
|
15635
15661
|
*/
|
|
@@ -15650,7 +15676,7 @@
|
|
|
15650
15676
|
* Any existing W component will be ignored.
|
|
15651
15677
|
*
|
|
15652
15678
|
* @param {quat} out the receiving quaternion
|
|
15653
|
-
* @param {
|
|
15679
|
+
* @param {ReadonlyQuat} a quat to calculate W component of
|
|
15654
15680
|
* @returns {quat} out
|
|
15655
15681
|
*/
|
|
15656
15682
|
function calculateW(out, a) {
|
|
@@ -15666,7 +15692,7 @@
|
|
|
15666
15692
|
* Calculate the exponential of a unit quaternion.
|
|
15667
15693
|
*
|
|
15668
15694
|
* @param {quat} out the receiving quaternion
|
|
15669
|
-
* @param {
|
|
15695
|
+
* @param {ReadonlyQuat} a quat to calculate the exponential of
|
|
15670
15696
|
* @returns {quat} out
|
|
15671
15697
|
*/
|
|
15672
15698
|
function exp(out, a) {
|
|
@@ -15685,7 +15711,7 @@
|
|
|
15685
15711
|
* Calculate the natural logarithm of a unit quaternion.
|
|
15686
15712
|
*
|
|
15687
15713
|
* @param {quat} out the receiving quaternion
|
|
15688
|
-
* @param {
|
|
15714
|
+
* @param {ReadonlyQuat} a quat to calculate the exponential of
|
|
15689
15715
|
* @returns {quat} out
|
|
15690
15716
|
*/
|
|
15691
15717
|
function ln(out, a) {
|
|
@@ -15703,7 +15729,7 @@
|
|
|
15703
15729
|
* Calculate the scalar power of a unit quaternion.
|
|
15704
15730
|
*
|
|
15705
15731
|
* @param {quat} out the receiving quaternion
|
|
15706
|
-
* @param {
|
|
15732
|
+
* @param {ReadonlyQuat} a quat to calculate the exponential of
|
|
15707
15733
|
* @param {Number} b amount to scale the quaternion by
|
|
15708
15734
|
* @returns {quat} out
|
|
15709
15735
|
*/
|
|
@@ -15718,8 +15744,8 @@
|
|
|
15718
15744
|
* Performs a spherical linear interpolation between two quat
|
|
15719
15745
|
*
|
|
15720
15746
|
* @param {quat} out the receiving quaternion
|
|
15721
|
-
* @param {
|
|
15722
|
-
* @param {
|
|
15747
|
+
* @param {ReadonlyQuat} a the first operand
|
|
15748
|
+
* @param {ReadonlyQuat} b the second operand
|
|
15723
15749
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
15724
15750
|
* @returns {quat} out
|
|
15725
15751
|
*/
|
|
@@ -15782,7 +15808,7 @@
|
|
|
15782
15808
|
* Calculates the inverse of a quat
|
|
15783
15809
|
*
|
|
15784
15810
|
* @param {quat} out the receiving quaternion
|
|
15785
|
-
* @param {
|
|
15811
|
+
* @param {ReadonlyQuat} a quat to calculate inverse of
|
|
15786
15812
|
* @returns {quat} out
|
|
15787
15813
|
*/
|
|
15788
15814
|
function invert(out, a) {
|
|
@@ -15801,7 +15827,7 @@
|
|
|
15801
15827
|
* If the quaternion is normalized, this function is faster than quat.inverse and produces the same result.
|
|
15802
15828
|
*
|
|
15803
15829
|
* @param {quat} out the receiving quaternion
|
|
15804
|
-
* @param {
|
|
15830
|
+
* @param {ReadonlyQuat} a quat to calculate conjugate of
|
|
15805
15831
|
* @returns {quat} out
|
|
15806
15832
|
*/
|
|
15807
15833
|
function conjugate(out, a) {
|
|
@@ -15819,7 +15845,7 @@
|
|
|
15819
15845
|
* to renormalize the quaternion yourself where necessary.
|
|
15820
15846
|
*
|
|
15821
15847
|
* @param {quat} out the receiving quaternion
|
|
15822
|
-
* @param {
|
|
15848
|
+
* @param {ReadonlyMat3} m rotation matrix
|
|
15823
15849
|
* @returns {quat} out
|
|
15824
15850
|
* @function
|
|
15825
15851
|
*/
|
|
@@ -15887,7 +15913,7 @@
|
|
|
15887
15913
|
/**
|
|
15888
15914
|
* Returns a string representation of a quatenion
|
|
15889
15915
|
*
|
|
15890
|
-
* @param {
|
|
15916
|
+
* @param {ReadonlyQuat} a vector to represent as a string
|
|
15891
15917
|
* @returns {String} string representation of the vector
|
|
15892
15918
|
*/
|
|
15893
15919
|
function str(a) {
|
|
@@ -15897,7 +15923,7 @@
|
|
|
15897
15923
|
/**
|
|
15898
15924
|
* Creates a new quat initialized with values from an existing quaternion
|
|
15899
15925
|
*
|
|
15900
|
-
* @param {
|
|
15926
|
+
* @param {ReadonlyQuat} a quaternion to clone
|
|
15901
15927
|
* @returns {quat} a new quaternion
|
|
15902
15928
|
* @function
|
|
15903
15929
|
*/
|
|
@@ -15917,7 +15943,7 @@
|
|
|
15917
15943
|
* Copy the values from one quat to another
|
|
15918
15944
|
*
|
|
15919
15945
|
* @param {quat} out the receiving quaternion
|
|
15920
|
-
* @param {
|
|
15946
|
+
* @param {ReadonlyQuat} a the source quaternion
|
|
15921
15947
|
* @returns {quat} out
|
|
15922
15948
|
* @function
|
|
15923
15949
|
*/
|
|
@@ -15938,8 +15964,8 @@
|
|
|
15938
15964
|
* Adds two quat's
|
|
15939
15965
|
*
|
|
15940
15966
|
* @param {quat} out the receiving quaternion
|
|
15941
|
-
* @param {
|
|
15942
|
-
* @param {
|
|
15967
|
+
* @param {ReadonlyQuat} a the first operand
|
|
15968
|
+
* @param {ReadonlyQuat} b the second operand
|
|
15943
15969
|
* @returns {quat} out
|
|
15944
15970
|
* @function
|
|
15945
15971
|
*/
|
|
@@ -15953,7 +15979,7 @@
|
|
|
15953
15979
|
* Scales a quat by a scalar number
|
|
15954
15980
|
*
|
|
15955
15981
|
* @param {quat} out the receiving vector
|
|
15956
|
-
* @param {
|
|
15982
|
+
* @param {ReadonlyQuat} a the vector to scale
|
|
15957
15983
|
* @param {Number} b amount to scale the vector by
|
|
15958
15984
|
* @returns {quat} out
|
|
15959
15985
|
* @function
|
|
@@ -15962,8 +15988,8 @@
|
|
|
15962
15988
|
/**
|
|
15963
15989
|
* Calculates the dot product of two quat's
|
|
15964
15990
|
*
|
|
15965
|
-
* @param {
|
|
15966
|
-
* @param {
|
|
15991
|
+
* @param {ReadonlyQuat} a the first operand
|
|
15992
|
+
* @param {ReadonlyQuat} b the second operand
|
|
15967
15993
|
* @returns {Number} dot product of a and b
|
|
15968
15994
|
* @function
|
|
15969
15995
|
*/
|
|
@@ -15972,8 +15998,8 @@
|
|
|
15972
15998
|
* Performs a linear interpolation between two quat's
|
|
15973
15999
|
*
|
|
15974
16000
|
* @param {quat} out the receiving quaternion
|
|
15975
|
-
* @param {
|
|
15976
|
-
* @param {
|
|
16001
|
+
* @param {ReadonlyQuat} a the first operand
|
|
16002
|
+
* @param {ReadonlyQuat} b the second operand
|
|
15977
16003
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
15978
16004
|
* @returns {quat} out
|
|
15979
16005
|
* @function
|
|
@@ -15982,7 +16008,7 @@
|
|
|
15982
16008
|
/**
|
|
15983
16009
|
* Calculates the length of a quat
|
|
15984
16010
|
*
|
|
15985
|
-
* @param {
|
|
16011
|
+
* @param {ReadonlyQuat} a vector to calculate length of
|
|
15986
16012
|
* @returns {Number} length of a
|
|
15987
16013
|
*/
|
|
15988
16014
|
exports.length = vec4.length;
|
|
@@ -15994,7 +16020,7 @@
|
|
|
15994
16020
|
/**
|
|
15995
16021
|
* Calculates the squared length of a quat
|
|
15996
16022
|
*
|
|
15997
|
-
* @param {
|
|
16023
|
+
* @param {ReadonlyQuat} a vector to calculate squared length of
|
|
15998
16024
|
* @returns {Number} squared length of a
|
|
15999
16025
|
* @function
|
|
16000
16026
|
*/
|
|
@@ -16008,7 +16034,7 @@
|
|
|
16008
16034
|
* Normalize a quat
|
|
16009
16035
|
*
|
|
16010
16036
|
* @param {quat} out the receiving quaternion
|
|
16011
|
-
* @param {
|
|
16037
|
+
* @param {ReadonlyQuat} a quaternion to normalize
|
|
16012
16038
|
* @returns {quat} out
|
|
16013
16039
|
* @function
|
|
16014
16040
|
*/
|
|
@@ -16016,16 +16042,16 @@
|
|
|
16016
16042
|
/**
|
|
16017
16043
|
* Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===)
|
|
16018
16044
|
*
|
|
16019
|
-
* @param {
|
|
16020
|
-
* @param {
|
|
16045
|
+
* @param {ReadonlyQuat} a The first quaternion.
|
|
16046
|
+
* @param {ReadonlyQuat} b The second quaternion.
|
|
16021
16047
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
16022
16048
|
*/
|
|
16023
16049
|
exports.exactEquals = vec4.exactEquals;
|
|
16024
16050
|
/**
|
|
16025
16051
|
* Returns whether or not the quaternions have approximately the same elements in the same position.
|
|
16026
16052
|
*
|
|
16027
|
-
* @param {
|
|
16028
|
-
* @param {
|
|
16053
|
+
* @param {ReadonlyQuat} a The first vector.
|
|
16054
|
+
* @param {ReadonlyQuat} b The second vector.
|
|
16029
16055
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
16030
16056
|
*/
|
|
16031
16057
|
exports.equals = vec4.equals;
|
|
@@ -16036,8 +16062,8 @@
|
|
|
16036
16062
|
* Both vectors are assumed to be unit length.
|
|
16037
16063
|
*
|
|
16038
16064
|
* @param {quat} out the receiving quaternion.
|
|
16039
|
-
* @param {
|
|
16040
|
-
* @param {
|
|
16065
|
+
* @param {ReadonlyVec3} a the initial vector
|
|
16066
|
+
* @param {ReadonlyVec3} b the destination vector
|
|
16041
16067
|
* @returns {quat} out
|
|
16042
16068
|
*/
|
|
16043
16069
|
exports.rotationTo = function () {
|
|
@@ -16075,10 +16101,10 @@
|
|
|
16075
16101
|
* Performs a spherical linear interpolation with two control points
|
|
16076
16102
|
*
|
|
16077
16103
|
* @param {quat} out the receiving quaternion
|
|
16078
|
-
* @param {
|
|
16079
|
-
* @param {
|
|
16080
|
-
* @param {
|
|
16081
|
-
* @param {
|
|
16104
|
+
* @param {ReadonlyQuat} a the first operand
|
|
16105
|
+
* @param {ReadonlyQuat} b the second operand
|
|
16106
|
+
* @param {ReadonlyQuat} c the third operand
|
|
16107
|
+
* @param {ReadonlyQuat} d the fourth operand
|
|
16082
16108
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
16083
16109
|
* @returns {quat} out
|
|
16084
16110
|
*/
|
|
@@ -16097,9 +16123,9 @@
|
|
|
16097
16123
|
* axes. Each axis is a vec3 and is expected to be unit length and
|
|
16098
16124
|
* perpendicular to all other specified axes.
|
|
16099
16125
|
*
|
|
16100
|
-
* @param {
|
|
16101
|
-
* @param {
|
|
16102
|
-
* @param {
|
|
16126
|
+
* @param {ReadonlyVec3} view the vector representing the viewing direction
|
|
16127
|
+
* @param {ReadonlyVec3} right the vector representing the local "right" direction
|
|
16128
|
+
* @param {ReadonlyVec3} up the vector representing the local "up" direction
|
|
16103
16129
|
* @returns {quat} out
|
|
16104
16130
|
*/
|
|
16105
16131
|
exports.setAxes = function () {
|
|
@@ -16118,10 +16144,10 @@
|
|
|
16118
16144
|
};
|
|
16119
16145
|
}();
|
|
16120
16146
|
},
|
|
16121
|
-
"
|
|
16147
|
+
"63eddc5433": /* gl-matrix/esm/vec3.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
16122
16148
|
__esModule();
|
|
16123
16149
|
const tslib_1 = require("tslib");
|
|
16124
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
16150
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
16125
16151
|
/**
|
|
16126
16152
|
* 3 Dimensional Vector
|
|
16127
16153
|
* @module vec3
|
|
@@ -16144,7 +16170,7 @@
|
|
|
16144
16170
|
/**
|
|
16145
16171
|
* Creates a new vec3 initialized with values from an existing vector
|
|
16146
16172
|
*
|
|
16147
|
-
* @param {
|
|
16173
|
+
* @param {ReadonlyVec3} a vector to clone
|
|
16148
16174
|
* @returns {vec3} a new 3D vector
|
|
16149
16175
|
*/
|
|
16150
16176
|
function clone(a) {
|
|
@@ -16158,7 +16184,7 @@
|
|
|
16158
16184
|
/**
|
|
16159
16185
|
* Calculates the length of a vec3
|
|
16160
16186
|
*
|
|
16161
|
-
* @param {
|
|
16187
|
+
* @param {ReadonlyVec3} a vector to calculate length of
|
|
16162
16188
|
* @returns {Number} length of a
|
|
16163
16189
|
*/
|
|
16164
16190
|
function length(a) {
|
|
@@ -16188,7 +16214,7 @@
|
|
|
16188
16214
|
* Copy the values from one vec3 to another
|
|
16189
16215
|
*
|
|
16190
16216
|
* @param {vec3} out the receiving vector
|
|
16191
|
-
* @param {
|
|
16217
|
+
* @param {ReadonlyVec3} a the source vector
|
|
16192
16218
|
* @returns {vec3} out
|
|
16193
16219
|
*/
|
|
16194
16220
|
function copy(out, a) {
|
|
@@ -16218,8 +16244,8 @@
|
|
|
16218
16244
|
* Adds two vec3's
|
|
16219
16245
|
*
|
|
16220
16246
|
* @param {vec3} out the receiving vector
|
|
16221
|
-
* @param {
|
|
16222
|
-
* @param {
|
|
16247
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16248
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16223
16249
|
* @returns {vec3} out
|
|
16224
16250
|
*/
|
|
16225
16251
|
function add(out, a, b) {
|
|
@@ -16233,8 +16259,8 @@
|
|
|
16233
16259
|
* Subtracts vector b from vector a
|
|
16234
16260
|
*
|
|
16235
16261
|
* @param {vec3} out the receiving vector
|
|
16236
|
-
* @param {
|
|
16237
|
-
* @param {
|
|
16262
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16263
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16238
16264
|
* @returns {vec3} out
|
|
16239
16265
|
*/
|
|
16240
16266
|
function subtract(out, a, b) {
|
|
@@ -16248,8 +16274,8 @@
|
|
|
16248
16274
|
* Multiplies two vec3's
|
|
16249
16275
|
*
|
|
16250
16276
|
* @param {vec3} out the receiving vector
|
|
16251
|
-
* @param {
|
|
16252
|
-
* @param {
|
|
16277
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16278
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16253
16279
|
* @returns {vec3} out
|
|
16254
16280
|
*/
|
|
16255
16281
|
function multiply(out, a, b) {
|
|
@@ -16263,8 +16289,8 @@
|
|
|
16263
16289
|
* Divides two vec3's
|
|
16264
16290
|
*
|
|
16265
16291
|
* @param {vec3} out the receiving vector
|
|
16266
|
-
* @param {
|
|
16267
|
-
* @param {
|
|
16292
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16293
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16268
16294
|
* @returns {vec3} out
|
|
16269
16295
|
*/
|
|
16270
16296
|
function divide(out, a, b) {
|
|
@@ -16278,7 +16304,7 @@
|
|
|
16278
16304
|
* Math.ceil the components of a vec3
|
|
16279
16305
|
*
|
|
16280
16306
|
* @param {vec3} out the receiving vector
|
|
16281
|
-
* @param {
|
|
16307
|
+
* @param {ReadonlyVec3} a vector to ceil
|
|
16282
16308
|
* @returns {vec3} out
|
|
16283
16309
|
*/
|
|
16284
16310
|
function ceil(out, a) {
|
|
@@ -16292,7 +16318,7 @@
|
|
|
16292
16318
|
* Math.floor the components of a vec3
|
|
16293
16319
|
*
|
|
16294
16320
|
* @param {vec3} out the receiving vector
|
|
16295
|
-
* @param {
|
|
16321
|
+
* @param {ReadonlyVec3} a vector to floor
|
|
16296
16322
|
* @returns {vec3} out
|
|
16297
16323
|
*/
|
|
16298
16324
|
function floor(out, a) {
|
|
@@ -16306,8 +16332,8 @@
|
|
|
16306
16332
|
* Returns the minimum of two vec3's
|
|
16307
16333
|
*
|
|
16308
16334
|
* @param {vec3} out the receiving vector
|
|
16309
|
-
* @param {
|
|
16310
|
-
* @param {
|
|
16335
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16336
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16311
16337
|
* @returns {vec3} out
|
|
16312
16338
|
*/
|
|
16313
16339
|
function min(out, a, b) {
|
|
@@ -16321,8 +16347,8 @@
|
|
|
16321
16347
|
* Returns the maximum of two vec3's
|
|
16322
16348
|
*
|
|
16323
16349
|
* @param {vec3} out the receiving vector
|
|
16324
|
-
* @param {
|
|
16325
|
-
* @param {
|
|
16350
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16351
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16326
16352
|
* @returns {vec3} out
|
|
16327
16353
|
*/
|
|
16328
16354
|
function max(out, a, b) {
|
|
@@ -16336,7 +16362,7 @@
|
|
|
16336
16362
|
* Math.round the components of a vec3
|
|
16337
16363
|
*
|
|
16338
16364
|
* @param {vec3} out the receiving vector
|
|
16339
|
-
* @param {
|
|
16365
|
+
* @param {ReadonlyVec3} a vector to round
|
|
16340
16366
|
* @returns {vec3} out
|
|
16341
16367
|
*/
|
|
16342
16368
|
function round(out, a) {
|
|
@@ -16350,7 +16376,7 @@
|
|
|
16350
16376
|
* Scales a vec3 by a scalar number
|
|
16351
16377
|
*
|
|
16352
16378
|
* @param {vec3} out the receiving vector
|
|
16353
|
-
* @param {
|
|
16379
|
+
* @param {ReadonlyVec3} a the vector to scale
|
|
16354
16380
|
* @param {Number} b amount to scale the vector by
|
|
16355
16381
|
* @returns {vec3} out
|
|
16356
16382
|
*/
|
|
@@ -16365,8 +16391,8 @@
|
|
|
16365
16391
|
* Adds two vec3's after scaling the second operand by a scalar value
|
|
16366
16392
|
*
|
|
16367
16393
|
* @param {vec3} out the receiving vector
|
|
16368
|
-
* @param {
|
|
16369
|
-
* @param {
|
|
16394
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16395
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16370
16396
|
* @param {Number} scale the amount to scale b by before adding
|
|
16371
16397
|
* @returns {vec3} out
|
|
16372
16398
|
*/
|
|
@@ -16380,8 +16406,8 @@
|
|
|
16380
16406
|
/**
|
|
16381
16407
|
* Calculates the euclidian distance between two vec3's
|
|
16382
16408
|
*
|
|
16383
|
-
* @param {
|
|
16384
|
-
* @param {
|
|
16409
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16410
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16385
16411
|
* @returns {Number} distance between a and b
|
|
16386
16412
|
*/
|
|
16387
16413
|
function distance(a, b) {
|
|
@@ -16394,8 +16420,8 @@
|
|
|
16394
16420
|
/**
|
|
16395
16421
|
* Calculates the squared euclidian distance between two vec3's
|
|
16396
16422
|
*
|
|
16397
|
-
* @param {
|
|
16398
|
-
* @param {
|
|
16423
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16424
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16399
16425
|
* @returns {Number} squared distance between a and b
|
|
16400
16426
|
*/
|
|
16401
16427
|
function squaredDistance(a, b) {
|
|
@@ -16408,7 +16434,7 @@
|
|
|
16408
16434
|
/**
|
|
16409
16435
|
* Calculates the squared length of a vec3
|
|
16410
16436
|
*
|
|
16411
|
-
* @param {
|
|
16437
|
+
* @param {ReadonlyVec3} a vector to calculate squared length of
|
|
16412
16438
|
* @returns {Number} squared length of a
|
|
16413
16439
|
*/
|
|
16414
16440
|
function squaredLength(a) {
|
|
@@ -16422,7 +16448,7 @@
|
|
|
16422
16448
|
* Negates the components of a vec3
|
|
16423
16449
|
*
|
|
16424
16450
|
* @param {vec3} out the receiving vector
|
|
16425
|
-
* @param {
|
|
16451
|
+
* @param {ReadonlyVec3} a vector to negate
|
|
16426
16452
|
* @returns {vec3} out
|
|
16427
16453
|
*/
|
|
16428
16454
|
function negate(out, a) {
|
|
@@ -16436,7 +16462,7 @@
|
|
|
16436
16462
|
* Returns the inverse of the components of a vec3
|
|
16437
16463
|
*
|
|
16438
16464
|
* @param {vec3} out the receiving vector
|
|
16439
|
-
* @param {
|
|
16465
|
+
* @param {ReadonlyVec3} a vector to invert
|
|
16440
16466
|
* @returns {vec3} out
|
|
16441
16467
|
*/
|
|
16442
16468
|
function inverse(out, a) {
|
|
@@ -16450,7 +16476,7 @@
|
|
|
16450
16476
|
* Normalize a vec3
|
|
16451
16477
|
*
|
|
16452
16478
|
* @param {vec3} out the receiving vector
|
|
16453
|
-
* @param {
|
|
16479
|
+
* @param {ReadonlyVec3} a vector to normalize
|
|
16454
16480
|
* @returns {vec3} out
|
|
16455
16481
|
*/
|
|
16456
16482
|
function normalize(out, a) {
|
|
@@ -16471,8 +16497,8 @@
|
|
|
16471
16497
|
/**
|
|
16472
16498
|
* Calculates the dot product of two vec3's
|
|
16473
16499
|
*
|
|
16474
|
-
* @param {
|
|
16475
|
-
* @param {
|
|
16500
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16501
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16476
16502
|
* @returns {Number} dot product of a and b
|
|
16477
16503
|
*/
|
|
16478
16504
|
function dot(a, b) {
|
|
@@ -16483,8 +16509,8 @@
|
|
|
16483
16509
|
* Computes the cross product of two vec3's
|
|
16484
16510
|
*
|
|
16485
16511
|
* @param {vec3} out the receiving vector
|
|
16486
|
-
* @param {
|
|
16487
|
-
* @param {
|
|
16512
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16513
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16488
16514
|
* @returns {vec3} out
|
|
16489
16515
|
*/
|
|
16490
16516
|
function cross(out, a, b) {
|
|
@@ -16500,8 +16526,8 @@
|
|
|
16500
16526
|
* Performs a linear interpolation between two vec3's
|
|
16501
16527
|
*
|
|
16502
16528
|
* @param {vec3} out the receiving vector
|
|
16503
|
-
* @param {
|
|
16504
|
-
* @param {
|
|
16529
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16530
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16505
16531
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
16506
16532
|
* @returns {vec3} out
|
|
16507
16533
|
*/
|
|
@@ -16519,10 +16545,10 @@
|
|
|
16519
16545
|
* Performs a hermite interpolation with two control points
|
|
16520
16546
|
*
|
|
16521
16547
|
* @param {vec3} out the receiving vector
|
|
16522
|
-
* @param {
|
|
16523
|
-
* @param {
|
|
16524
|
-
* @param {
|
|
16525
|
-
* @param {
|
|
16548
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16549
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16550
|
+
* @param {ReadonlyVec3} c the third operand
|
|
16551
|
+
* @param {ReadonlyVec3} d the fourth operand
|
|
16526
16552
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
16527
16553
|
* @returns {vec3} out
|
|
16528
16554
|
*/
|
|
@@ -16542,10 +16568,10 @@
|
|
|
16542
16568
|
* Performs a bezier interpolation with two control points
|
|
16543
16569
|
*
|
|
16544
16570
|
* @param {vec3} out the receiving vector
|
|
16545
|
-
* @param {
|
|
16546
|
-
* @param {
|
|
16547
|
-
* @param {
|
|
16548
|
-
* @param {
|
|
16571
|
+
* @param {ReadonlyVec3} a the first operand
|
|
16572
|
+
* @param {ReadonlyVec3} b the second operand
|
|
16573
|
+
* @param {ReadonlyVec3} c the third operand
|
|
16574
|
+
* @param {ReadonlyVec3} d the fourth operand
|
|
16549
16575
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
16550
16576
|
* @returns {vec3} out
|
|
16551
16577
|
*/
|
|
@@ -16586,8 +16612,8 @@
|
|
|
16586
16612
|
* 4th vector component is implicitly '1'
|
|
16587
16613
|
*
|
|
16588
16614
|
* @param {vec3} out the receiving vector
|
|
16589
|
-
* @param {
|
|
16590
|
-
* @param {
|
|
16615
|
+
* @param {ReadonlyVec3} a the vector to transform
|
|
16616
|
+
* @param {ReadonlyMat4} m matrix to transform with
|
|
16591
16617
|
* @returns {vec3} out
|
|
16592
16618
|
*/
|
|
16593
16619
|
function transformMat4(out, a, m) {
|
|
@@ -16604,8 +16630,8 @@
|
|
|
16604
16630
|
* Transforms the vec3 with a mat3.
|
|
16605
16631
|
*
|
|
16606
16632
|
* @param {vec3} out the receiving vector
|
|
16607
|
-
* @param {
|
|
16608
|
-
* @param {
|
|
16633
|
+
* @param {ReadonlyVec3} a the vector to transform
|
|
16634
|
+
* @param {ReadonlyMat3} m the 3x3 matrix to transform with
|
|
16609
16635
|
* @returns {vec3} out
|
|
16610
16636
|
*/
|
|
16611
16637
|
function transformMat3(out, a, m) {
|
|
@@ -16621,8 +16647,8 @@
|
|
|
16621
16647
|
* Can also be used for dual quaternions. (Multiply it with the real part)
|
|
16622
16648
|
*
|
|
16623
16649
|
* @param {vec3} out the receiving vector
|
|
16624
|
-
* @param {
|
|
16625
|
-
* @param {
|
|
16650
|
+
* @param {ReadonlyVec3} a the vector to transform
|
|
16651
|
+
* @param {ReadonlyQuat} q quaternion to transform with
|
|
16626
16652
|
* @returns {vec3} out
|
|
16627
16653
|
*/
|
|
16628
16654
|
function transformQuat(out, a, q) {
|
|
@@ -16648,8 +16674,8 @@
|
|
|
16648
16674
|
/**
|
|
16649
16675
|
* Rotate a 3D vector around the x-axis
|
|
16650
16676
|
* @param {vec3} out The receiving vec3
|
|
16651
|
-
* @param {
|
|
16652
|
-
* @param {
|
|
16677
|
+
* @param {ReadonlyVec3} a The vec3 point to rotate
|
|
16678
|
+
* @param {ReadonlyVec3} b The origin of the rotation
|
|
16653
16679
|
* @param {Number} rad The angle of rotation in radians
|
|
16654
16680
|
* @returns {vec3} out
|
|
16655
16681
|
*/
|
|
@@ -16670,8 +16696,8 @@
|
|
|
16670
16696
|
/**
|
|
16671
16697
|
* Rotate a 3D vector around the y-axis
|
|
16672
16698
|
* @param {vec3} out The receiving vec3
|
|
16673
|
-
* @param {
|
|
16674
|
-
* @param {
|
|
16699
|
+
* @param {ReadonlyVec3} a The vec3 point to rotate
|
|
16700
|
+
* @param {ReadonlyVec3} b The origin of the rotation
|
|
16675
16701
|
* @param {Number} rad The angle of rotation in radians
|
|
16676
16702
|
* @returns {vec3} out
|
|
16677
16703
|
*/
|
|
@@ -16692,8 +16718,8 @@
|
|
|
16692
16718
|
/**
|
|
16693
16719
|
* Rotate a 3D vector around the z-axis
|
|
16694
16720
|
* @param {vec3} out The receiving vec3
|
|
16695
|
-
* @param {
|
|
16696
|
-
* @param {
|
|
16721
|
+
* @param {ReadonlyVec3} a The vec3 point to rotate
|
|
16722
|
+
* @param {ReadonlyVec3} b The origin of the rotation
|
|
16697
16723
|
* @param {Number} rad The angle of rotation in radians
|
|
16698
16724
|
* @returns {vec3} out
|
|
16699
16725
|
*/
|
|
@@ -16713,8 +16739,8 @@
|
|
|
16713
16739
|
exports.rotateZ = rotateZ;
|
|
16714
16740
|
/**
|
|
16715
16741
|
* Get the angle between two 3D vectors
|
|
16716
|
-
* @param {
|
|
16717
|
-
* @param {
|
|
16742
|
+
* @param {ReadonlyVec3} a The first operand
|
|
16743
|
+
* @param {ReadonlyVec3} b The second operand
|
|
16718
16744
|
* @returns {Number} The angle in radians
|
|
16719
16745
|
*/
|
|
16720
16746
|
function angle(a, b) {
|
|
@@ -16738,7 +16764,7 @@
|
|
|
16738
16764
|
/**
|
|
16739
16765
|
* Returns a string representation of a vector
|
|
16740
16766
|
*
|
|
16741
|
-
* @param {
|
|
16767
|
+
* @param {ReadonlyVec3} a vector to represent as a string
|
|
16742
16768
|
* @returns {String} string representation of the vector
|
|
16743
16769
|
*/
|
|
16744
16770
|
function str(a) {
|
|
@@ -16748,8 +16774,8 @@
|
|
|
16748
16774
|
/**
|
|
16749
16775
|
* Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
|
|
16750
16776
|
*
|
|
16751
|
-
* @param {
|
|
16752
|
-
* @param {
|
|
16777
|
+
* @param {ReadonlyVec3} a The first vector.
|
|
16778
|
+
* @param {ReadonlyVec3} b The second vector.
|
|
16753
16779
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
16754
16780
|
*/
|
|
16755
16781
|
function exactEquals(a, b) {
|
|
@@ -16759,8 +16785,8 @@
|
|
|
16759
16785
|
/**
|
|
16760
16786
|
* Returns whether or not the vectors have approximately the same elements in the same position.
|
|
16761
16787
|
*
|
|
16762
|
-
* @param {
|
|
16763
|
-
* @param {
|
|
16788
|
+
* @param {ReadonlyVec3} a The first vector.
|
|
16789
|
+
* @param {ReadonlyVec3} b The second vector.
|
|
16764
16790
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
16765
16791
|
*/
|
|
16766
16792
|
function equals(a, b) {
|
|
@@ -16845,10 +16871,10 @@
|
|
|
16845
16871
|
};
|
|
16846
16872
|
}();
|
|
16847
16873
|
},
|
|
16848
|
-
"
|
|
16874
|
+
"11562bccc5": /* gl-matrix/esm/vec4.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
16849
16875
|
__esModule();
|
|
16850
16876
|
const tslib_1 = require("tslib");
|
|
16851
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
16877
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
16852
16878
|
/**
|
|
16853
16879
|
* 4 Dimensional Vector
|
|
16854
16880
|
* @module vec4
|
|
@@ -16872,7 +16898,7 @@
|
|
|
16872
16898
|
/**
|
|
16873
16899
|
* Creates a new vec4 initialized with values from an existing vector
|
|
16874
16900
|
*
|
|
16875
|
-
* @param {
|
|
16901
|
+
* @param {ReadonlyVec4} a vector to clone
|
|
16876
16902
|
* @returns {vec4} a new 4D vector
|
|
16877
16903
|
*/
|
|
16878
16904
|
function clone(a) {
|
|
@@ -16906,7 +16932,7 @@
|
|
|
16906
16932
|
* Copy the values from one vec4 to another
|
|
16907
16933
|
*
|
|
16908
16934
|
* @param {vec4} out the receiving vector
|
|
16909
|
-
* @param {
|
|
16935
|
+
* @param {ReadonlyVec4} a the source vector
|
|
16910
16936
|
* @returns {vec4} out
|
|
16911
16937
|
*/
|
|
16912
16938
|
function copy(out, a) {
|
|
@@ -16939,8 +16965,8 @@
|
|
|
16939
16965
|
* Adds two vec4's
|
|
16940
16966
|
*
|
|
16941
16967
|
* @param {vec4} out the receiving vector
|
|
16942
|
-
* @param {
|
|
16943
|
-
* @param {
|
|
16968
|
+
* @param {ReadonlyVec4} a the first operand
|
|
16969
|
+
* @param {ReadonlyVec4} b the second operand
|
|
16944
16970
|
* @returns {vec4} out
|
|
16945
16971
|
*/
|
|
16946
16972
|
function add(out, a, b) {
|
|
@@ -16955,8 +16981,8 @@
|
|
|
16955
16981
|
* Subtracts vector b from vector a
|
|
16956
16982
|
*
|
|
16957
16983
|
* @param {vec4} out the receiving vector
|
|
16958
|
-
* @param {
|
|
16959
|
-
* @param {
|
|
16984
|
+
* @param {ReadonlyVec4} a the first operand
|
|
16985
|
+
* @param {ReadonlyVec4} b the second operand
|
|
16960
16986
|
* @returns {vec4} out
|
|
16961
16987
|
*/
|
|
16962
16988
|
function subtract(out, a, b) {
|
|
@@ -16971,8 +16997,8 @@
|
|
|
16971
16997
|
* Multiplies two vec4's
|
|
16972
16998
|
*
|
|
16973
16999
|
* @param {vec4} out the receiving vector
|
|
16974
|
-
* @param {
|
|
16975
|
-
* @param {
|
|
17000
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17001
|
+
* @param {ReadonlyVec4} b the second operand
|
|
16976
17002
|
* @returns {vec4} out
|
|
16977
17003
|
*/
|
|
16978
17004
|
function multiply(out, a, b) {
|
|
@@ -16987,8 +17013,8 @@
|
|
|
16987
17013
|
* Divides two vec4's
|
|
16988
17014
|
*
|
|
16989
17015
|
* @param {vec4} out the receiving vector
|
|
16990
|
-
* @param {
|
|
16991
|
-
* @param {
|
|
17016
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17017
|
+
* @param {ReadonlyVec4} b the second operand
|
|
16992
17018
|
* @returns {vec4} out
|
|
16993
17019
|
*/
|
|
16994
17020
|
function divide(out, a, b) {
|
|
@@ -17003,7 +17029,7 @@
|
|
|
17003
17029
|
* Math.ceil the components of a vec4
|
|
17004
17030
|
*
|
|
17005
17031
|
* @param {vec4} out the receiving vector
|
|
17006
|
-
* @param {
|
|
17032
|
+
* @param {ReadonlyVec4} a vector to ceil
|
|
17007
17033
|
* @returns {vec4} out
|
|
17008
17034
|
*/
|
|
17009
17035
|
function ceil(out, a) {
|
|
@@ -17018,7 +17044,7 @@
|
|
|
17018
17044
|
* Math.floor the components of a vec4
|
|
17019
17045
|
*
|
|
17020
17046
|
* @param {vec4} out the receiving vector
|
|
17021
|
-
* @param {
|
|
17047
|
+
* @param {ReadonlyVec4} a vector to floor
|
|
17022
17048
|
* @returns {vec4} out
|
|
17023
17049
|
*/
|
|
17024
17050
|
function floor(out, a) {
|
|
@@ -17033,8 +17059,8 @@
|
|
|
17033
17059
|
* Returns the minimum of two vec4's
|
|
17034
17060
|
*
|
|
17035
17061
|
* @param {vec4} out the receiving vector
|
|
17036
|
-
* @param {
|
|
17037
|
-
* @param {
|
|
17062
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17063
|
+
* @param {ReadonlyVec4} b the second operand
|
|
17038
17064
|
* @returns {vec4} out
|
|
17039
17065
|
*/
|
|
17040
17066
|
function min(out, a, b) {
|
|
@@ -17049,8 +17075,8 @@
|
|
|
17049
17075
|
* Returns the maximum of two vec4's
|
|
17050
17076
|
*
|
|
17051
17077
|
* @param {vec4} out the receiving vector
|
|
17052
|
-
* @param {
|
|
17053
|
-
* @param {
|
|
17078
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17079
|
+
* @param {ReadonlyVec4} b the second operand
|
|
17054
17080
|
* @returns {vec4} out
|
|
17055
17081
|
*/
|
|
17056
17082
|
function max(out, a, b) {
|
|
@@ -17065,7 +17091,7 @@
|
|
|
17065
17091
|
* Math.round the components of a vec4
|
|
17066
17092
|
*
|
|
17067
17093
|
* @param {vec4} out the receiving vector
|
|
17068
|
-
* @param {
|
|
17094
|
+
* @param {ReadonlyVec4} a vector to round
|
|
17069
17095
|
* @returns {vec4} out
|
|
17070
17096
|
*/
|
|
17071
17097
|
function round(out, a) {
|
|
@@ -17080,7 +17106,7 @@
|
|
|
17080
17106
|
* Scales a vec4 by a scalar number
|
|
17081
17107
|
*
|
|
17082
17108
|
* @param {vec4} out the receiving vector
|
|
17083
|
-
* @param {
|
|
17109
|
+
* @param {ReadonlyVec4} a the vector to scale
|
|
17084
17110
|
* @param {Number} b amount to scale the vector by
|
|
17085
17111
|
* @returns {vec4} out
|
|
17086
17112
|
*/
|
|
@@ -17096,8 +17122,8 @@
|
|
|
17096
17122
|
* Adds two vec4's after scaling the second operand by a scalar value
|
|
17097
17123
|
*
|
|
17098
17124
|
* @param {vec4} out the receiving vector
|
|
17099
|
-
* @param {
|
|
17100
|
-
* @param {
|
|
17125
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17126
|
+
* @param {ReadonlyVec4} b the second operand
|
|
17101
17127
|
* @param {Number} scale the amount to scale b by before adding
|
|
17102
17128
|
* @returns {vec4} out
|
|
17103
17129
|
*/
|
|
@@ -17112,8 +17138,8 @@
|
|
|
17112
17138
|
/**
|
|
17113
17139
|
* Calculates the euclidian distance between two vec4's
|
|
17114
17140
|
*
|
|
17115
|
-
* @param {
|
|
17116
|
-
* @param {
|
|
17141
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17142
|
+
* @param {ReadonlyVec4} b the second operand
|
|
17117
17143
|
* @returns {Number} distance between a and b
|
|
17118
17144
|
*/
|
|
17119
17145
|
function distance(a, b) {
|
|
@@ -17127,8 +17153,8 @@
|
|
|
17127
17153
|
/**
|
|
17128
17154
|
* Calculates the squared euclidian distance between two vec4's
|
|
17129
17155
|
*
|
|
17130
|
-
* @param {
|
|
17131
|
-
* @param {
|
|
17156
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17157
|
+
* @param {ReadonlyVec4} b the second operand
|
|
17132
17158
|
* @returns {Number} squared distance between a and b
|
|
17133
17159
|
*/
|
|
17134
17160
|
function squaredDistance(a, b) {
|
|
@@ -17142,7 +17168,7 @@
|
|
|
17142
17168
|
/**
|
|
17143
17169
|
* Calculates the length of a vec4
|
|
17144
17170
|
*
|
|
17145
|
-
* @param {
|
|
17171
|
+
* @param {ReadonlyVec4} a vector to calculate length of
|
|
17146
17172
|
* @returns {Number} length of a
|
|
17147
17173
|
*/
|
|
17148
17174
|
function length(a) {
|
|
@@ -17156,7 +17182,7 @@
|
|
|
17156
17182
|
/**
|
|
17157
17183
|
* Calculates the squared length of a vec4
|
|
17158
17184
|
*
|
|
17159
|
-
* @param {
|
|
17185
|
+
* @param {ReadonlyVec4} a vector to calculate squared length of
|
|
17160
17186
|
* @returns {Number} squared length of a
|
|
17161
17187
|
*/
|
|
17162
17188
|
function squaredLength(a) {
|
|
@@ -17171,7 +17197,7 @@
|
|
|
17171
17197
|
* Negates the components of a vec4
|
|
17172
17198
|
*
|
|
17173
17199
|
* @param {vec4} out the receiving vector
|
|
17174
|
-
* @param {
|
|
17200
|
+
* @param {ReadonlyVec4} a vector to negate
|
|
17175
17201
|
* @returns {vec4} out
|
|
17176
17202
|
*/
|
|
17177
17203
|
function negate(out, a) {
|
|
@@ -17186,7 +17212,7 @@
|
|
|
17186
17212
|
* Returns the inverse of the components of a vec4
|
|
17187
17213
|
*
|
|
17188
17214
|
* @param {vec4} out the receiving vector
|
|
17189
|
-
* @param {
|
|
17215
|
+
* @param {ReadonlyVec4} a vector to invert
|
|
17190
17216
|
* @returns {vec4} out
|
|
17191
17217
|
*/
|
|
17192
17218
|
function inverse(out, a) {
|
|
@@ -17201,7 +17227,7 @@
|
|
|
17201
17227
|
* Normalize a vec4
|
|
17202
17228
|
*
|
|
17203
17229
|
* @param {vec4} out the receiving vector
|
|
17204
|
-
* @param {
|
|
17230
|
+
* @param {ReadonlyVec4} a vector to normalize
|
|
17205
17231
|
* @returns {vec4} out
|
|
17206
17232
|
*/
|
|
17207
17233
|
function normalize(out, a) {
|
|
@@ -17223,8 +17249,8 @@
|
|
|
17223
17249
|
/**
|
|
17224
17250
|
* Calculates the dot product of two vec4's
|
|
17225
17251
|
*
|
|
17226
|
-
* @param {
|
|
17227
|
-
* @param {
|
|
17252
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17253
|
+
* @param {ReadonlyVec4} b the second operand
|
|
17228
17254
|
* @returns {Number} dot product of a and b
|
|
17229
17255
|
*/
|
|
17230
17256
|
function dot(a, b) {
|
|
@@ -17234,10 +17260,10 @@
|
|
|
17234
17260
|
/**
|
|
17235
17261
|
* Returns the cross-product of three vectors in a 4-dimensional space
|
|
17236
17262
|
*
|
|
17237
|
-
* @param {
|
|
17238
|
-
* @param {
|
|
17239
|
-
* @param {
|
|
17240
|
-
* @param {
|
|
17263
|
+
* @param {ReadonlyVec4} result the receiving vector
|
|
17264
|
+
* @param {ReadonlyVec4} U the first vector
|
|
17265
|
+
* @param {ReadonlyVec4} V the second vector
|
|
17266
|
+
* @param {ReadonlyVec4} W the third vector
|
|
17241
17267
|
* @returns {vec4} result
|
|
17242
17268
|
*/
|
|
17243
17269
|
function cross(out, u, v, w) {
|
|
@@ -17257,8 +17283,8 @@
|
|
|
17257
17283
|
* Performs a linear interpolation between two vec4's
|
|
17258
17284
|
*
|
|
17259
17285
|
* @param {vec4} out the receiving vector
|
|
17260
|
-
* @param {
|
|
17261
|
-
* @param {
|
|
17286
|
+
* @param {ReadonlyVec4} a the first operand
|
|
17287
|
+
* @param {ReadonlyVec4} b the second operand
|
|
17262
17288
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
17263
17289
|
* @returns {vec4} out
|
|
17264
17290
|
*/
|
|
@@ -17309,8 +17335,8 @@
|
|
|
17309
17335
|
* Transforms the vec4 with a mat4.
|
|
17310
17336
|
*
|
|
17311
17337
|
* @param {vec4} out the receiving vector
|
|
17312
|
-
* @param {
|
|
17313
|
-
* @param {
|
|
17338
|
+
* @param {ReadonlyVec4} a the vector to transform
|
|
17339
|
+
* @param {ReadonlyMat4} m matrix to transform with
|
|
17314
17340
|
* @returns {vec4} out
|
|
17315
17341
|
*/
|
|
17316
17342
|
function transformMat4(out, a, m) {
|
|
@@ -17326,8 +17352,8 @@
|
|
|
17326
17352
|
* Transforms the vec4 with a quat
|
|
17327
17353
|
*
|
|
17328
17354
|
* @param {vec4} out the receiving vector
|
|
17329
|
-
* @param {
|
|
17330
|
-
* @param {
|
|
17355
|
+
* @param {ReadonlyVec4} a the vector to transform
|
|
17356
|
+
* @param {ReadonlyQuat} q quaternion to transform with
|
|
17331
17357
|
* @returns {vec4} out
|
|
17332
17358
|
*/
|
|
17333
17359
|
function transformQuat(out, a, q) {
|
|
@@ -17361,7 +17387,7 @@
|
|
|
17361
17387
|
/**
|
|
17362
17388
|
* Returns a string representation of a vector
|
|
17363
17389
|
*
|
|
17364
|
-
* @param {
|
|
17390
|
+
* @param {ReadonlyVec4} a vector to represent as a string
|
|
17365
17391
|
* @returns {String} string representation of the vector
|
|
17366
17392
|
*/
|
|
17367
17393
|
function str(a) {
|
|
@@ -17371,8 +17397,8 @@
|
|
|
17371
17397
|
/**
|
|
17372
17398
|
* Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
|
|
17373
17399
|
*
|
|
17374
|
-
* @param {
|
|
17375
|
-
* @param {
|
|
17400
|
+
* @param {ReadonlyVec4} a The first vector.
|
|
17401
|
+
* @param {ReadonlyVec4} b The second vector.
|
|
17376
17402
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
17377
17403
|
*/
|
|
17378
17404
|
function exactEquals(a, b) {
|
|
@@ -17382,8 +17408,8 @@
|
|
|
17382
17408
|
/**
|
|
17383
17409
|
* Returns whether or not the vectors have approximately the same elements in the same position.
|
|
17384
17410
|
*
|
|
17385
|
-
* @param {
|
|
17386
|
-
* @param {
|
|
17411
|
+
* @param {ReadonlyVec4} a The first vector.
|
|
17412
|
+
* @param {ReadonlyVec4} b The second vector.
|
|
17387
17413
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
17388
17414
|
*/
|
|
17389
17415
|
function equals(a, b) {
|
|
@@ -17470,12 +17496,12 @@
|
|
|
17470
17496
|
};
|
|
17471
17497
|
}();
|
|
17472
17498
|
},
|
|
17473
|
-
"
|
|
17499
|
+
"fb9294db61": /* gl-matrix/esm/quat2.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
17474
17500
|
__esModule();
|
|
17475
17501
|
const tslib_1 = require("tslib");
|
|
17476
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
17477
|
-
const quat = tslib_1.__importStar(require("
|
|
17478
|
-
const mat4 = tslib_1.__importStar(require("
|
|
17502
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
17503
|
+
const quat = tslib_1.__importStar(require("f83fe7c413") /* ./quat.js */);
|
|
17504
|
+
const mat4 = tslib_1.__importStar(require("83bad9e639") /* ./mat4.js */);
|
|
17479
17505
|
/**
|
|
17480
17506
|
* Dual Quaternion<br>
|
|
17481
17507
|
* Format: [real, dual]<br>
|
|
@@ -17506,7 +17532,7 @@
|
|
|
17506
17532
|
/**
|
|
17507
17533
|
* Creates a new quat initialized with values from an existing quaternion
|
|
17508
17534
|
*
|
|
17509
|
-
* @param {
|
|
17535
|
+
* @param {ReadonlyQuat2} a dual quaternion to clone
|
|
17510
17536
|
* @returns {quat2} new dual quaternion
|
|
17511
17537
|
* @function
|
|
17512
17538
|
*/
|
|
@@ -17580,9 +17606,9 @@
|
|
|
17580
17606
|
/**
|
|
17581
17607
|
* Creates a dual quat from a quaternion and a translation
|
|
17582
17608
|
*
|
|
17583
|
-
* @param {
|
|
17584
|
-
* @param {
|
|
17585
|
-
* @param {
|
|
17609
|
+
* @param {ReadonlyQuat2} dual quaternion receiving operation result
|
|
17610
|
+
* @param {ReadonlyQuat} q a normalized quaternion
|
|
17611
|
+
* @param {ReadonlyVec3} t tranlation vector
|
|
17586
17612
|
* @returns {quat2} dual quaternion receiving operation result
|
|
17587
17613
|
* @function
|
|
17588
17614
|
*/
|
|
@@ -17602,8 +17628,8 @@
|
|
|
17602
17628
|
/**
|
|
17603
17629
|
* Creates a dual quat from a translation
|
|
17604
17630
|
*
|
|
17605
|
-
* @param {
|
|
17606
|
-
* @param {
|
|
17631
|
+
* @param {ReadonlyQuat2} dual quaternion receiving operation result
|
|
17632
|
+
* @param {ReadonlyVec3} t translation vector
|
|
17607
17633
|
* @returns {quat2} dual quaternion receiving operation result
|
|
17608
17634
|
* @function
|
|
17609
17635
|
*/
|
|
@@ -17622,8 +17648,8 @@
|
|
|
17622
17648
|
/**
|
|
17623
17649
|
* Creates a dual quat from a quaternion
|
|
17624
17650
|
*
|
|
17625
|
-
* @param {
|
|
17626
|
-
* @param {
|
|
17651
|
+
* @param {ReadonlyQuat2} dual quaternion receiving operation result
|
|
17652
|
+
* @param {ReadonlyQuat} q the quaternion
|
|
17627
17653
|
* @returns {quat2} dual quaternion receiving operation result
|
|
17628
17654
|
* @function
|
|
17629
17655
|
*/
|
|
@@ -17643,7 +17669,7 @@
|
|
|
17643
17669
|
* Creates a new dual quat from a matrix (4x4)
|
|
17644
17670
|
*
|
|
17645
17671
|
* @param {quat2} out the dual quaternion
|
|
17646
|
-
* @param {
|
|
17672
|
+
* @param {ReadonlyMat4} a the matrix
|
|
17647
17673
|
* @returns {quat2} dual quat receiving operation result
|
|
17648
17674
|
* @function
|
|
17649
17675
|
*/
|
|
@@ -17661,7 +17687,7 @@
|
|
|
17661
17687
|
* Copy the values from one dual quat to another
|
|
17662
17688
|
*
|
|
17663
17689
|
* @param {quat2} out the receiving dual quaternion
|
|
17664
|
-
* @param {
|
|
17690
|
+
* @param {ReadonlyQuat2} a the source dual quaternion
|
|
17665
17691
|
* @returns {quat2} out
|
|
17666
17692
|
* @function
|
|
17667
17693
|
*/
|
|
@@ -17725,14 +17751,14 @@
|
|
|
17725
17751
|
/**
|
|
17726
17752
|
* Gets the real part of a dual quat
|
|
17727
17753
|
* @param {quat} out real part
|
|
17728
|
-
* @param {
|
|
17754
|
+
* @param {ReadonlyQuat2} a Dual Quaternion
|
|
17729
17755
|
* @return {quat} real part
|
|
17730
17756
|
*/
|
|
17731
17757
|
exports.getReal = quat.copy;
|
|
17732
17758
|
/**
|
|
17733
17759
|
* Gets the dual part of a dual quat
|
|
17734
17760
|
* @param {quat} out dual part
|
|
17735
|
-
* @param {
|
|
17761
|
+
* @param {ReadonlyQuat2} a Dual Quaternion
|
|
17736
17762
|
* @return {quat} dual part
|
|
17737
17763
|
*/
|
|
17738
17764
|
function getDual(out, a) {
|
|
@@ -17747,7 +17773,7 @@
|
|
|
17747
17773
|
* Set the real component of a dual quat to the given quaternion
|
|
17748
17774
|
*
|
|
17749
17775
|
* @param {quat2} out the receiving quaternion
|
|
17750
|
-
* @param {
|
|
17776
|
+
* @param {ReadonlyQuat} q a quaternion representing the real part
|
|
17751
17777
|
* @returns {quat2} out
|
|
17752
17778
|
* @function
|
|
17753
17779
|
*/
|
|
@@ -17756,7 +17782,7 @@
|
|
|
17756
17782
|
* Set the dual component of a dual quat to the given quaternion
|
|
17757
17783
|
*
|
|
17758
17784
|
* @param {quat2} out the receiving quaternion
|
|
17759
|
-
* @param {
|
|
17785
|
+
* @param {ReadonlyQuat} q a quaternion representing the dual part
|
|
17760
17786
|
* @returns {quat2} out
|
|
17761
17787
|
* @function
|
|
17762
17788
|
*/
|
|
@@ -17771,7 +17797,7 @@
|
|
|
17771
17797
|
/**
|
|
17772
17798
|
* Gets the translation of a normalized dual quat
|
|
17773
17799
|
* @param {vec3} out translation
|
|
17774
|
-
* @param {
|
|
17800
|
+
* @param {ReadonlyQuat2} a Dual Quaternion to be decomposed
|
|
17775
17801
|
* @return {vec3} translation
|
|
17776
17802
|
*/
|
|
17777
17803
|
function getTranslation(out, a) {
|
|
@@ -17786,8 +17812,8 @@
|
|
|
17786
17812
|
* Translates a dual quat by the given vector
|
|
17787
17813
|
*
|
|
17788
17814
|
* @param {quat2} out the receiving dual quaternion
|
|
17789
|
-
* @param {
|
|
17790
|
-
* @param {
|
|
17815
|
+
* @param {ReadonlyQuat2} a the dual quaternion to translate
|
|
17816
|
+
* @param {ReadonlyVec3} v vector to translate by
|
|
17791
17817
|
* @returns {quat2} out
|
|
17792
17818
|
*/
|
|
17793
17819
|
function translate(out, a, v) {
|
|
@@ -17807,7 +17833,7 @@
|
|
|
17807
17833
|
* Rotates a dual quat around the X axis
|
|
17808
17834
|
*
|
|
17809
17835
|
* @param {quat2} out the receiving dual quaternion
|
|
17810
|
-
* @param {
|
|
17836
|
+
* @param {ReadonlyQuat2} a the dual quaternion to rotate
|
|
17811
17837
|
* @param {number} rad how far should the rotation be
|
|
17812
17838
|
* @returns {quat2} out
|
|
17813
17839
|
*/
|
|
@@ -17829,7 +17855,7 @@
|
|
|
17829
17855
|
* Rotates a dual quat around the Y axis
|
|
17830
17856
|
*
|
|
17831
17857
|
* @param {quat2} out the receiving dual quaternion
|
|
17832
|
-
* @param {
|
|
17858
|
+
* @param {ReadonlyQuat2} a the dual quaternion to rotate
|
|
17833
17859
|
* @param {number} rad how far should the rotation be
|
|
17834
17860
|
* @returns {quat2} out
|
|
17835
17861
|
*/
|
|
@@ -17851,7 +17877,7 @@
|
|
|
17851
17877
|
* Rotates a dual quat around the Z axis
|
|
17852
17878
|
*
|
|
17853
17879
|
* @param {quat2} out the receiving dual quaternion
|
|
17854
|
-
* @param {
|
|
17880
|
+
* @param {ReadonlyQuat2} a the dual quaternion to rotate
|
|
17855
17881
|
* @param {number} rad how far should the rotation be
|
|
17856
17882
|
* @returns {quat2} out
|
|
17857
17883
|
*/
|
|
@@ -17873,8 +17899,8 @@
|
|
|
17873
17899
|
* Rotates a dual quat by a given quaternion (a * q)
|
|
17874
17900
|
*
|
|
17875
17901
|
* @param {quat2} out the receiving dual quaternion
|
|
17876
|
-
* @param {
|
|
17877
|
-
* @param {
|
|
17902
|
+
* @param {ReadonlyQuat2} a the dual quaternion to rotate
|
|
17903
|
+
* @param {ReadonlyQuat} q quaternion to rotate by
|
|
17878
17904
|
* @returns {quat2} out
|
|
17879
17905
|
*/
|
|
17880
17906
|
function rotateByQuatAppend(out, a, q) {
|
|
@@ -17898,8 +17924,8 @@
|
|
|
17898
17924
|
* Rotates a dual quat by a given quaternion (q * a)
|
|
17899
17925
|
*
|
|
17900
17926
|
* @param {quat2} out the receiving dual quaternion
|
|
17901
|
-
* @param {
|
|
17902
|
-
* @param {
|
|
17927
|
+
* @param {ReadonlyQuat} q quaternion to rotate by
|
|
17928
|
+
* @param {ReadonlyQuat2} a the dual quaternion to rotate
|
|
17903
17929
|
* @returns {quat2} out
|
|
17904
17930
|
*/
|
|
17905
17931
|
function rotateByQuatPrepend(out, q, a) {
|
|
@@ -17923,8 +17949,8 @@
|
|
|
17923
17949
|
* Rotates a dual quat around a given axis. Does the normalisation automatically
|
|
17924
17950
|
*
|
|
17925
17951
|
* @param {quat2} out the receiving dual quaternion
|
|
17926
|
-
* @param {
|
|
17927
|
-
* @param {
|
|
17952
|
+
* @param {ReadonlyQuat2} a the dual quaternion to rotate
|
|
17953
|
+
* @param {ReadonlyVec3} axis the axis to rotate around
|
|
17928
17954
|
* @param {Number} rad how far the rotation should be
|
|
17929
17955
|
* @returns {quat2} out
|
|
17930
17956
|
*/
|
|
@@ -17957,8 +17983,8 @@
|
|
|
17957
17983
|
* Adds two dual quat's
|
|
17958
17984
|
*
|
|
17959
17985
|
* @param {quat2} out the receiving dual quaternion
|
|
17960
|
-
* @param {
|
|
17961
|
-
* @param {
|
|
17986
|
+
* @param {ReadonlyQuat2} a the first operand
|
|
17987
|
+
* @param {ReadonlyQuat2} b the second operand
|
|
17962
17988
|
* @returns {quat2} out
|
|
17963
17989
|
* @function
|
|
17964
17990
|
*/
|
|
@@ -17978,8 +18004,8 @@
|
|
|
17978
18004
|
* Multiplies two dual quat's
|
|
17979
18005
|
*
|
|
17980
18006
|
* @param {quat2} out the receiving dual quaternion
|
|
17981
|
-
* @param {
|
|
17982
|
-
* @param {
|
|
18007
|
+
* @param {ReadonlyQuat2} a the first operand
|
|
18008
|
+
* @param {ReadonlyQuat2} b the second operand
|
|
17983
18009
|
* @returns {quat2} out
|
|
17984
18010
|
*/
|
|
17985
18011
|
function multiply(out, a, b) {
|
|
@@ -18004,7 +18030,7 @@
|
|
|
18004
18030
|
* Scales a dual quat by a scalar number
|
|
18005
18031
|
*
|
|
18006
18032
|
* @param {quat2} out the receiving dual quat
|
|
18007
|
-
* @param {
|
|
18033
|
+
* @param {ReadonlyQuat2} a the dual quat to scale
|
|
18008
18034
|
* @param {Number} b amount to scale the dual quat by
|
|
18009
18035
|
* @returns {quat2} out
|
|
18010
18036
|
* @function
|
|
@@ -18024,8 +18050,8 @@
|
|
|
18024
18050
|
/**
|
|
18025
18051
|
* Calculates the dot product of two dual quat's (The dot product of the real parts)
|
|
18026
18052
|
*
|
|
18027
|
-
* @param {
|
|
18028
|
-
* @param {
|
|
18053
|
+
* @param {ReadonlyQuat2} a the first operand
|
|
18054
|
+
* @param {ReadonlyQuat2} b the second operand
|
|
18029
18055
|
* @returns {Number} dot product of a and b
|
|
18030
18056
|
* @function
|
|
18031
18057
|
*/
|
|
@@ -18035,8 +18061,8 @@
|
|
|
18035
18061
|
* NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5)
|
|
18036
18062
|
*
|
|
18037
18063
|
* @param {quat2} out the receiving dual quat
|
|
18038
|
-
* @param {
|
|
18039
|
-
* @param {
|
|
18064
|
+
* @param {ReadonlyQuat2} a the first operand
|
|
18065
|
+
* @param {ReadonlyQuat2} b the second operand
|
|
18040
18066
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
18041
18067
|
* @returns {quat2} out
|
|
18042
18068
|
*/
|
|
@@ -18059,7 +18085,7 @@
|
|
|
18059
18085
|
* Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper
|
|
18060
18086
|
*
|
|
18061
18087
|
* @param {quat2} out the receiving dual quaternion
|
|
18062
|
-
* @param {
|
|
18088
|
+
* @param {ReadonlyQuat2} a dual quat to calculate inverse of
|
|
18063
18089
|
* @returns {quat2} out
|
|
18064
18090
|
*/
|
|
18065
18091
|
function invert(out, a) {
|
|
@@ -18080,7 +18106,7 @@
|
|
|
18080
18106
|
* If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result.
|
|
18081
18107
|
*
|
|
18082
18108
|
* @param {quat2} out the receiving quaternion
|
|
18083
|
-
* @param {
|
|
18109
|
+
* @param {ReadonlyQuat2} a quat to calculate conjugate of
|
|
18084
18110
|
* @returns {quat2} out
|
|
18085
18111
|
*/
|
|
18086
18112
|
function conjugate(out, a) {
|
|
@@ -18098,7 +18124,7 @@
|
|
|
18098
18124
|
/**
|
|
18099
18125
|
* Calculates the length of a dual quat
|
|
18100
18126
|
*
|
|
18101
|
-
* @param {
|
|
18127
|
+
* @param {ReadonlyQuat2} a dual quat to calculate length of
|
|
18102
18128
|
* @returns {Number} length of a
|
|
18103
18129
|
* @function
|
|
18104
18130
|
*/
|
|
@@ -18111,7 +18137,7 @@
|
|
|
18111
18137
|
/**
|
|
18112
18138
|
* Calculates the squared length of a dual quat
|
|
18113
18139
|
*
|
|
18114
|
-
* @param {
|
|
18140
|
+
* @param {ReadonlyQuat2} a dual quat to calculate squared length of
|
|
18115
18141
|
* @returns {Number} squared length of a
|
|
18116
18142
|
* @function
|
|
18117
18143
|
*/
|
|
@@ -18125,7 +18151,7 @@
|
|
|
18125
18151
|
* Normalize a dual quat
|
|
18126
18152
|
*
|
|
18127
18153
|
* @param {quat2} out the receiving dual quaternion
|
|
18128
|
-
* @param {
|
|
18154
|
+
* @param {ReadonlyQuat2} a dual quaternion to normalize
|
|
18129
18155
|
* @returns {quat2} out
|
|
18130
18156
|
* @function
|
|
18131
18157
|
*/
|
|
@@ -18157,7 +18183,7 @@
|
|
|
18157
18183
|
/**
|
|
18158
18184
|
* Returns a string representation of a dual quatenion
|
|
18159
18185
|
*
|
|
18160
|
-
* @param {
|
|
18186
|
+
* @param {ReadonlyQuat2} a dual quaternion to represent as a string
|
|
18161
18187
|
* @returns {String} string representation of the dual quat
|
|
18162
18188
|
*/
|
|
18163
18189
|
function str(a) {
|
|
@@ -18167,8 +18193,8 @@
|
|
|
18167
18193
|
/**
|
|
18168
18194
|
* Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===)
|
|
18169
18195
|
*
|
|
18170
|
-
* @param {
|
|
18171
|
-
* @param {
|
|
18196
|
+
* @param {ReadonlyQuat2} a the first dual quaternion.
|
|
18197
|
+
* @param {ReadonlyQuat2} b the second dual quaternion.
|
|
18172
18198
|
* @returns {Boolean} true if the dual quaternions are equal, false otherwise.
|
|
18173
18199
|
*/
|
|
18174
18200
|
function exactEquals(a, b) {
|
|
@@ -18178,8 +18204,8 @@
|
|
|
18178
18204
|
/**
|
|
18179
18205
|
* Returns whether or not the dual quaternions have approximately the same elements in the same position.
|
|
18180
18206
|
*
|
|
18181
|
-
* @param {
|
|
18182
|
-
* @param {
|
|
18207
|
+
* @param {ReadonlyQuat2} a the first dual quat.
|
|
18208
|
+
* @param {ReadonlyQuat2} b the second dual quat.
|
|
18183
18209
|
* @returns {Boolean} true if the dual quats are equal, false otherwise.
|
|
18184
18210
|
*/
|
|
18185
18211
|
function equals(a, b) {
|
|
@@ -18189,10 +18215,10 @@
|
|
|
18189
18215
|
}
|
|
18190
18216
|
exports.equals = equals;
|
|
18191
18217
|
},
|
|
18192
|
-
"
|
|
18218
|
+
"58c71a9bd3": /* gl-matrix/esm/vec2.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
18193
18219
|
__esModule();
|
|
18194
18220
|
const tslib_1 = require("tslib");
|
|
18195
|
-
const glMatrix = tslib_1.__importStar(require("
|
|
18221
|
+
const glMatrix = tslib_1.__importStar(require("7d825b979e") /* ./common.js */);
|
|
18196
18222
|
/**
|
|
18197
18223
|
* 2 Dimensional Vector
|
|
18198
18224
|
* @module vec2
|
|
@@ -18214,7 +18240,7 @@
|
|
|
18214
18240
|
/**
|
|
18215
18241
|
* Creates a new vec2 initialized with values from an existing vector
|
|
18216
18242
|
*
|
|
18217
|
-
* @param {
|
|
18243
|
+
* @param {ReadonlyVec2} a vector to clone
|
|
18218
18244
|
* @returns {vec2} a new 2D vector
|
|
18219
18245
|
*/
|
|
18220
18246
|
function clone(a) {
|
|
@@ -18242,7 +18268,7 @@
|
|
|
18242
18268
|
* Copy the values from one vec2 to another
|
|
18243
18269
|
*
|
|
18244
18270
|
* @param {vec2} out the receiving vector
|
|
18245
|
-
* @param {
|
|
18271
|
+
* @param {ReadonlyVec2} a the source vector
|
|
18246
18272
|
* @returns {vec2} out
|
|
18247
18273
|
*/
|
|
18248
18274
|
function copy(out, a) {
|
|
@@ -18269,8 +18295,8 @@
|
|
|
18269
18295
|
* Adds two vec2's
|
|
18270
18296
|
*
|
|
18271
18297
|
* @param {vec2} out the receiving vector
|
|
18272
|
-
* @param {
|
|
18273
|
-
* @param {
|
|
18298
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18299
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18274
18300
|
* @returns {vec2} out
|
|
18275
18301
|
*/
|
|
18276
18302
|
function add(out, a, b) {
|
|
@@ -18283,8 +18309,8 @@
|
|
|
18283
18309
|
* Subtracts vector b from vector a
|
|
18284
18310
|
*
|
|
18285
18311
|
* @param {vec2} out the receiving vector
|
|
18286
|
-
* @param {
|
|
18287
|
-
* @param {
|
|
18312
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18313
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18288
18314
|
* @returns {vec2} out
|
|
18289
18315
|
*/
|
|
18290
18316
|
function subtract(out, a, b) {
|
|
@@ -18297,8 +18323,8 @@
|
|
|
18297
18323
|
* Multiplies two vec2's
|
|
18298
18324
|
*
|
|
18299
18325
|
* @param {vec2} out the receiving vector
|
|
18300
|
-
* @param {
|
|
18301
|
-
* @param {
|
|
18326
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18327
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18302
18328
|
* @returns {vec2} out
|
|
18303
18329
|
*/
|
|
18304
18330
|
function multiply(out, a, b) {
|
|
@@ -18311,8 +18337,8 @@
|
|
|
18311
18337
|
* Divides two vec2's
|
|
18312
18338
|
*
|
|
18313
18339
|
* @param {vec2} out the receiving vector
|
|
18314
|
-
* @param {
|
|
18315
|
-
* @param {
|
|
18340
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18341
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18316
18342
|
* @returns {vec2} out
|
|
18317
18343
|
*/
|
|
18318
18344
|
function divide(out, a, b) {
|
|
@@ -18325,7 +18351,7 @@
|
|
|
18325
18351
|
* Math.ceil the components of a vec2
|
|
18326
18352
|
*
|
|
18327
18353
|
* @param {vec2} out the receiving vector
|
|
18328
|
-
* @param {
|
|
18354
|
+
* @param {ReadonlyVec2} a vector to ceil
|
|
18329
18355
|
* @returns {vec2} out
|
|
18330
18356
|
*/
|
|
18331
18357
|
function ceil(out, a) {
|
|
@@ -18338,7 +18364,7 @@
|
|
|
18338
18364
|
* Math.floor the components of a vec2
|
|
18339
18365
|
*
|
|
18340
18366
|
* @param {vec2} out the receiving vector
|
|
18341
|
-
* @param {
|
|
18367
|
+
* @param {ReadonlyVec2} a vector to floor
|
|
18342
18368
|
* @returns {vec2} out
|
|
18343
18369
|
*/
|
|
18344
18370
|
function floor(out, a) {
|
|
@@ -18351,8 +18377,8 @@
|
|
|
18351
18377
|
* Returns the minimum of two vec2's
|
|
18352
18378
|
*
|
|
18353
18379
|
* @param {vec2} out the receiving vector
|
|
18354
|
-
* @param {
|
|
18355
|
-
* @param {
|
|
18380
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18381
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18356
18382
|
* @returns {vec2} out
|
|
18357
18383
|
*/
|
|
18358
18384
|
function min(out, a, b) {
|
|
@@ -18365,8 +18391,8 @@
|
|
|
18365
18391
|
* Returns the maximum of two vec2's
|
|
18366
18392
|
*
|
|
18367
18393
|
* @param {vec2} out the receiving vector
|
|
18368
|
-
* @param {
|
|
18369
|
-
* @param {
|
|
18394
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18395
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18370
18396
|
* @returns {vec2} out
|
|
18371
18397
|
*/
|
|
18372
18398
|
function max(out, a, b) {
|
|
@@ -18379,7 +18405,7 @@
|
|
|
18379
18405
|
* Math.round the components of a vec2
|
|
18380
18406
|
*
|
|
18381
18407
|
* @param {vec2} out the receiving vector
|
|
18382
|
-
* @param {
|
|
18408
|
+
* @param {ReadonlyVec2} a vector to round
|
|
18383
18409
|
* @returns {vec2} out
|
|
18384
18410
|
*/
|
|
18385
18411
|
function round(out, a) {
|
|
@@ -18392,7 +18418,7 @@
|
|
|
18392
18418
|
* Scales a vec2 by a scalar number
|
|
18393
18419
|
*
|
|
18394
18420
|
* @param {vec2} out the receiving vector
|
|
18395
|
-
* @param {
|
|
18421
|
+
* @param {ReadonlyVec2} a the vector to scale
|
|
18396
18422
|
* @param {Number} b amount to scale the vector by
|
|
18397
18423
|
* @returns {vec2} out
|
|
18398
18424
|
*/
|
|
@@ -18406,8 +18432,8 @@
|
|
|
18406
18432
|
* Adds two vec2's after scaling the second operand by a scalar value
|
|
18407
18433
|
*
|
|
18408
18434
|
* @param {vec2} out the receiving vector
|
|
18409
|
-
* @param {
|
|
18410
|
-
* @param {
|
|
18435
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18436
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18411
18437
|
* @param {Number} scale the amount to scale b by before adding
|
|
18412
18438
|
* @returns {vec2} out
|
|
18413
18439
|
*/
|
|
@@ -18420,8 +18446,8 @@
|
|
|
18420
18446
|
/**
|
|
18421
18447
|
* Calculates the euclidian distance between two vec2's
|
|
18422
18448
|
*
|
|
18423
|
-
* @param {
|
|
18424
|
-
* @param {
|
|
18449
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18450
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18425
18451
|
* @returns {Number} distance between a and b
|
|
18426
18452
|
*/
|
|
18427
18453
|
function distance(a, b) {
|
|
@@ -18432,8 +18458,8 @@
|
|
|
18432
18458
|
/**
|
|
18433
18459
|
* Calculates the squared euclidian distance between two vec2's
|
|
18434
18460
|
*
|
|
18435
|
-
* @param {
|
|
18436
|
-
* @param {
|
|
18461
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18462
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18437
18463
|
* @returns {Number} squared distance between a and b
|
|
18438
18464
|
*/
|
|
18439
18465
|
function squaredDistance(a, b) {
|
|
@@ -18444,7 +18470,7 @@
|
|
|
18444
18470
|
/**
|
|
18445
18471
|
* Calculates the length of a vec2
|
|
18446
18472
|
*
|
|
18447
|
-
* @param {
|
|
18473
|
+
* @param {ReadonlyVec2} a vector to calculate length of
|
|
18448
18474
|
* @returns {Number} length of a
|
|
18449
18475
|
*/
|
|
18450
18476
|
function length(a) {
|
|
@@ -18455,7 +18481,7 @@
|
|
|
18455
18481
|
/**
|
|
18456
18482
|
* Calculates the squared length of a vec2
|
|
18457
18483
|
*
|
|
18458
|
-
* @param {
|
|
18484
|
+
* @param {ReadonlyVec2} a vector to calculate squared length of
|
|
18459
18485
|
* @returns {Number} squared length of a
|
|
18460
18486
|
*/
|
|
18461
18487
|
function squaredLength(a) {
|
|
@@ -18467,7 +18493,7 @@
|
|
|
18467
18493
|
* Negates the components of a vec2
|
|
18468
18494
|
*
|
|
18469
18495
|
* @param {vec2} out the receiving vector
|
|
18470
|
-
* @param {
|
|
18496
|
+
* @param {ReadonlyVec2} a vector to negate
|
|
18471
18497
|
* @returns {vec2} out
|
|
18472
18498
|
*/
|
|
18473
18499
|
function negate(out, a) {
|
|
@@ -18480,7 +18506,7 @@
|
|
|
18480
18506
|
* Returns the inverse of the components of a vec2
|
|
18481
18507
|
*
|
|
18482
18508
|
* @param {vec2} out the receiving vector
|
|
18483
|
-
* @param {
|
|
18509
|
+
* @param {ReadonlyVec2} a vector to invert
|
|
18484
18510
|
* @returns {vec2} out
|
|
18485
18511
|
*/
|
|
18486
18512
|
function inverse(out, a) {
|
|
@@ -18493,7 +18519,7 @@
|
|
|
18493
18519
|
* Normalize a vec2
|
|
18494
18520
|
*
|
|
18495
18521
|
* @param {vec2} out the receiving vector
|
|
18496
|
-
* @param {
|
|
18522
|
+
* @param {ReadonlyVec2} a vector to normalize
|
|
18497
18523
|
* @returns {vec2} out
|
|
18498
18524
|
*/
|
|
18499
18525
|
function normalize(out, a) {
|
|
@@ -18511,8 +18537,8 @@
|
|
|
18511
18537
|
/**
|
|
18512
18538
|
* Calculates the dot product of two vec2's
|
|
18513
18539
|
*
|
|
18514
|
-
* @param {
|
|
18515
|
-
* @param {
|
|
18540
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18541
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18516
18542
|
* @returns {Number} dot product of a and b
|
|
18517
18543
|
*/
|
|
18518
18544
|
function dot(a, b) {
|
|
@@ -18524,8 +18550,8 @@
|
|
|
18524
18550
|
* Note that the cross product must by definition produce a 3D vector
|
|
18525
18551
|
*
|
|
18526
18552
|
* @param {vec3} out the receiving vector
|
|
18527
|
-
* @param {
|
|
18528
|
-
* @param {
|
|
18553
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18554
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18529
18555
|
* @returns {vec3} out
|
|
18530
18556
|
*/
|
|
18531
18557
|
function cross(out, a, b) {
|
|
@@ -18539,8 +18565,8 @@
|
|
|
18539
18565
|
* Performs a linear interpolation between two vec2's
|
|
18540
18566
|
*
|
|
18541
18567
|
* @param {vec2} out the receiving vector
|
|
18542
|
-
* @param {
|
|
18543
|
-
* @param {
|
|
18568
|
+
* @param {ReadonlyVec2} a the first operand
|
|
18569
|
+
* @param {ReadonlyVec2} b the second operand
|
|
18544
18570
|
* @param {Number} t interpolation amount, in the range [0-1], between the two inputs
|
|
18545
18571
|
* @returns {vec2} out
|
|
18546
18572
|
*/
|
|
@@ -18570,8 +18596,8 @@
|
|
|
18570
18596
|
* Transforms the vec2 with a mat2
|
|
18571
18597
|
*
|
|
18572
18598
|
* @param {vec2} out the receiving vector
|
|
18573
|
-
* @param {
|
|
18574
|
-
* @param {
|
|
18599
|
+
* @param {ReadonlyVec2} a the vector to transform
|
|
18600
|
+
* @param {ReadonlyMat2} m matrix to transform with
|
|
18575
18601
|
* @returns {vec2} out
|
|
18576
18602
|
*/
|
|
18577
18603
|
function transformMat2(out, a, m) {
|
|
@@ -18585,8 +18611,8 @@
|
|
|
18585
18611
|
* Transforms the vec2 with a mat2d
|
|
18586
18612
|
*
|
|
18587
18613
|
* @param {vec2} out the receiving vector
|
|
18588
|
-
* @param {
|
|
18589
|
-
* @param {
|
|
18614
|
+
* @param {ReadonlyVec2} a the vector to transform
|
|
18615
|
+
* @param {ReadonlyMat2d} m matrix to transform with
|
|
18590
18616
|
* @returns {vec2} out
|
|
18591
18617
|
*/
|
|
18592
18618
|
function transformMat2d(out, a, m) {
|
|
@@ -18601,8 +18627,8 @@
|
|
|
18601
18627
|
* 3rd vector component is implicitly '1'
|
|
18602
18628
|
*
|
|
18603
18629
|
* @param {vec2} out the receiving vector
|
|
18604
|
-
* @param {
|
|
18605
|
-
* @param {
|
|
18630
|
+
* @param {ReadonlyVec2} a the vector to transform
|
|
18631
|
+
* @param {ReadonlyMat3} m matrix to transform with
|
|
18606
18632
|
* @returns {vec2} out
|
|
18607
18633
|
*/
|
|
18608
18634
|
function transformMat3(out, a, m) {
|
|
@@ -18618,8 +18644,8 @@
|
|
|
18618
18644
|
* 4th vector component is implicitly '1'
|
|
18619
18645
|
*
|
|
18620
18646
|
* @param {vec2} out the receiving vector
|
|
18621
|
-
* @param {
|
|
18622
|
-
* @param {
|
|
18647
|
+
* @param {ReadonlyVec2} a the vector to transform
|
|
18648
|
+
* @param {ReadonlyMat4} m matrix to transform with
|
|
18623
18649
|
* @returns {vec2} out
|
|
18624
18650
|
*/
|
|
18625
18651
|
function transformMat4(out, a, m) {
|
|
@@ -18633,8 +18659,8 @@
|
|
|
18633
18659
|
/**
|
|
18634
18660
|
* Rotate a 2D vector
|
|
18635
18661
|
* @param {vec2} out The receiving vec2
|
|
18636
|
-
* @param {
|
|
18637
|
-
* @param {
|
|
18662
|
+
* @param {ReadonlyVec2} a The vec2 point to rotate
|
|
18663
|
+
* @param {ReadonlyVec2} b The origin of the rotation
|
|
18638
18664
|
* @param {Number} rad The angle of rotation in radians
|
|
18639
18665
|
* @returns {vec2} out
|
|
18640
18666
|
*/
|
|
@@ -18648,8 +18674,8 @@
|
|
|
18648
18674
|
exports.rotate = rotate;
|
|
18649
18675
|
/**
|
|
18650
18676
|
* Get the angle between two 2D vectors
|
|
18651
|
-
* @param {
|
|
18652
|
-
* @param {
|
|
18677
|
+
* @param {ReadonlyVec2} a The first operand
|
|
18678
|
+
* @param {ReadonlyVec2} b The second operand
|
|
18653
18679
|
* @returns {Number} The angle in radians
|
|
18654
18680
|
*/
|
|
18655
18681
|
function angle(a, b) {
|
|
@@ -18676,7 +18702,7 @@
|
|
|
18676
18702
|
/**
|
|
18677
18703
|
* Returns a string representation of a vector
|
|
18678
18704
|
*
|
|
18679
|
-
* @param {
|
|
18705
|
+
* @param {ReadonlyVec2} a vector to represent as a string
|
|
18680
18706
|
* @returns {String} string representation of the vector
|
|
18681
18707
|
*/
|
|
18682
18708
|
function str(a) {
|
|
@@ -18686,8 +18712,8 @@
|
|
|
18686
18712
|
/**
|
|
18687
18713
|
* Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
|
|
18688
18714
|
*
|
|
18689
|
-
* @param {
|
|
18690
|
-
* @param {
|
|
18715
|
+
* @param {ReadonlyVec2} a The first vector.
|
|
18716
|
+
* @param {ReadonlyVec2} b The second vector.
|
|
18691
18717
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
18692
18718
|
*/
|
|
18693
18719
|
function exactEquals(a, b) {
|
|
@@ -18697,8 +18723,8 @@
|
|
|
18697
18723
|
/**
|
|
18698
18724
|
* Returns whether or not the vectors have approximately the same elements in the same position.
|
|
18699
18725
|
*
|
|
18700
|
-
* @param {
|
|
18701
|
-
* @param {
|
|
18726
|
+
* @param {ReadonlyVec2} a The first vector.
|
|
18727
|
+
* @param {ReadonlyVec2} b The second vector.
|
|
18702
18728
|
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
18703
18729
|
*/
|
|
18704
18730
|
function equals(a, b) {
|
|
@@ -19391,5 +19417,5 @@
|
|
|
19391
19417
|
}
|
|
19392
19418
|
exports.initialize_fullscreen_render = initialize_fullscreen_render;
|
|
19393
19419
|
},
|
|
19394
|
-
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"6e19b31aba","models/ace":"7df2008a2e","models/layout":"ea218d1c3c","models/audio":"78153b60aa","models/browser":"6df8bf1ac7","models/card":"c1e57c7e7d","models/column":"13afd4a31a","models/comm_manager":"1e66dab844","models/customselect":"9c8629b48f","models/tabulator":"
|
|
19420
|
+
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"6e19b31aba","models/ace":"7df2008a2e","models/layout":"ea218d1c3c","models/audio":"78153b60aa","models/browser":"6df8bf1ac7","models/card":"c1e57c7e7d","models/column":"13afd4a31a","models/comm_manager":"1e66dab844","models/customselect":"9c8629b48f","models/tabulator":"f9be88b634","models/data":"4e27eda472","models/datetime_picker":"6658732ce1","models/deckgl":"991e3a226c","models/tooltips":"9588ab7c9e","models/echarts":"54ac9fb4a9","models/event-to-object":"490942d778","models/html":"15e8e695c0","models/ipywidget":"fb67b83931","models/json":"66846b828c","models/jsoneditor":"4b8a56c700","models/file_download":"9c15016be8","models/katex":"197cfa57e5","models/location":"00a25cf872","models/mathjax":"46a1770629","models/pdf":"d49a559fbc","models/perspective":"d39fde6463","models/player":"c172556ad3","models/plotly":"bb3d0ded66","models/util":"990b5dd5c7","models/progress":"b82925a928","models/quill":"613978ad84","models/reactive_html":"415e6d6661","models/singleselect":"6b20024bba","models/speech_to_text":"cd0c80cc4c","models/state":"66717cb841","models/tabs":"67a5649f75","models/terminal":"cd4a941f8d","models/text_to_speech":"eb4ae0acfa","models/tooltip_icon":"26ffc3afe8","models/trend":"8f4ab32d74","models/vega":"3b23e1bc5c","models/video":"4ac59b8079","models/videostream":"797fd61298","models/vizzu":"e8339ee57a","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"3bce7c9db6","models/vtk/vtklayout":"d7ded264dc","models/vtk/util":"a76a9b7c23","models/vtk/vtkcolorbar":"787f6aeecd","models/vtk/vtkaxes":"7cec459a06","models/vtk/vtkvolume":"c2892117a7","models/vtk/vtksynchronized":"40c4377615","models/vtk/panel_fullscreen_renwin_sync":"877619fe71"}, {});});
|
|
19395
19421
|
//# sourceMappingURL=panel.js.map
|