@cosmos.gl/graph 3.0.0-beta.7 → 3.0.0-beta.8

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/index.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { select as b } from "d3-selection";
2
2
  import "d3-transition";
3
- import { easeQuadIn as ne, easeQuadOut as re, easeQuadInOut as ae } from "d3-ease";
4
- import { textureFormatDecoder as de, Texture as g, Buffer as S, UniformStore as R, luma as le } from "@luma.gl/core";
5
- import { webgl2Adapter as ce } from "@luma.gl/webgl";
6
- import { color as fe } from "d3-color";
7
- import he from "dompurify";
8
- import { scaleLinear as Q, scalePow as ue } from "d3-scale";
3
+ import { easeQuadIn as he, easeQuadOut as ue, easeQuadInOut as Se } from "d3-ease";
4
+ import { textureFormatDecoder as pe, Texture as g, Buffer as S, UniformStore as R, luma as _e } from "@luma.gl/core";
5
+ import { webgl2Adapter as Te } from "@luma.gl/webgl";
6
+ import { color as ge } from "d3-color";
7
+ import Ce from "dompurify";
8
+ import { scaleLinear as oe, scalePow as Pe } from "d3-scale";
9
9
  import { mat3 as V } from "gl-matrix";
10
- import { Random as Se } from "random";
10
+ import { Random as Re } from "random";
11
11
  import { Model as x } from "@luma.gl/engine";
12
- import pe from "gl-bench";
13
- import { range as _e } from "d3-array";
14
- import { zoomIdentity as W, zoom as Te } from "d3-zoom";
15
- import { drag as ge } from "d3-drag";
12
+ import xe from "gl-bench";
13
+ import { range as ve } from "d3-array";
14
+ import { zoomIdentity as W, zoom as Ae } from "d3-zoom";
15
+ import { drag as me } from "d3-drag";
16
16
  var L;
17
17
  (function(e) {
18
18
  e[e.DEPTH_BUFFER_BIT = 256] = "DEPTH_BUFFER_BIT", e[e.STENCIL_BUFFER_BIT = 1024] = "STENCIL_BUFFER_BIT", e[e.COLOR_BUFFER_BIT = 16384] = "COLOR_BUFFER_BIT", e[e.POINTS = 0] = "POINTS", e[e.LINES = 1] = "LINES", e[e.LINE_LOOP = 2] = "LINE_LOOP", e[e.LINE_STRIP = 3] = "LINE_STRIP", e[e.TRIANGLES = 4] = "TRIANGLES", e[e.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", e[e.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", e[e.ZERO = 0] = "ZERO", e[e.ONE = 1] = "ONE", e[e.SRC_COLOR = 768] = "SRC_COLOR", e[e.ONE_MINUS_SRC_COLOR = 769] = "ONE_MINUS_SRC_COLOR", e[e.SRC_ALPHA = 770] = "SRC_ALPHA", e[e.ONE_MINUS_SRC_ALPHA = 771] = "ONE_MINUS_SRC_ALPHA", e[e.DST_ALPHA = 772] = "DST_ALPHA", e[e.ONE_MINUS_DST_ALPHA = 773] = "ONE_MINUS_DST_ALPHA", e[e.DST_COLOR = 774] = "DST_COLOR", e[e.ONE_MINUS_DST_COLOR = 775] = "ONE_MINUS_DST_COLOR", e[e.SRC_ALPHA_SATURATE = 776] = "SRC_ALPHA_SATURATE", e[e.CONSTANT_COLOR = 32769] = "CONSTANT_COLOR", e[e.ONE_MINUS_CONSTANT_COLOR = 32770] = "ONE_MINUS_CONSTANT_COLOR", e[e.CONSTANT_ALPHA = 32771] = "CONSTANT_ALPHA", e[e.ONE_MINUS_CONSTANT_ALPHA = 32772] = "ONE_MINUS_CONSTANT_ALPHA", e[e.FUNC_ADD = 32774] = "FUNC_ADD", e[e.FUNC_SUBTRACT = 32778] = "FUNC_SUBTRACT", e[e.FUNC_REVERSE_SUBTRACT = 32779] = "FUNC_REVERSE_SUBTRACT", e[e.BLEND_EQUATION = 32777] = "BLEND_EQUATION", e[e.BLEND_EQUATION_RGB = 32777] = "BLEND_EQUATION_RGB", e[e.BLEND_EQUATION_ALPHA = 34877] = "BLEND_EQUATION_ALPHA", e[e.BLEND_DST_RGB = 32968] = "BLEND_DST_RGB", e[e.BLEND_SRC_RGB = 32969] = "BLEND_SRC_RGB", e[e.BLEND_DST_ALPHA = 32970] = "BLEND_DST_ALPHA", e[e.BLEND_SRC_ALPHA = 32971] = "BLEND_SRC_ALPHA", e[e.BLEND_COLOR = 32773] = "BLEND_COLOR", e[e.ARRAY_BUFFER_BINDING = 34964] = "ARRAY_BUFFER_BINDING", e[e.ELEMENT_ARRAY_BUFFER_BINDING = 34965] = "ELEMENT_ARRAY_BUFFER_BINDING", e[e.LINE_WIDTH = 2849] = "LINE_WIDTH", e[e.ALIASED_POINT_SIZE_RANGE = 33901] = "ALIASED_POINT_SIZE_RANGE", e[e.ALIASED_LINE_WIDTH_RANGE = 33902] = "ALIASED_LINE_WIDTH_RANGE", e[e.CULL_FACE_MODE = 2885] = "CULL_FACE_MODE", e[e.FRONT_FACE = 2886] = "FRONT_FACE", e[e.DEPTH_RANGE = 2928] = "DEPTH_RANGE", e[e.DEPTH_WRITEMASK = 2930] = "DEPTH_WRITEMASK", e[e.DEPTH_CLEAR_VALUE = 2931] = "DEPTH_CLEAR_VALUE", e[e.DEPTH_FUNC = 2932] = "DEPTH_FUNC", e[e.STENCIL_CLEAR_VALUE = 2961] = "STENCIL_CLEAR_VALUE", e[e.STENCIL_FUNC = 2962] = "STENCIL_FUNC", e[e.STENCIL_FAIL = 2964] = "STENCIL_FAIL", e[e.STENCIL_PASS_DEPTH_FAIL = 2965] = "STENCIL_PASS_DEPTH_FAIL", e[e.STENCIL_PASS_DEPTH_PASS = 2966] = "STENCIL_PASS_DEPTH_PASS", e[e.STENCIL_REF = 2967] = "STENCIL_REF", e[e.STENCIL_VALUE_MASK = 2963] = "STENCIL_VALUE_MASK", e[e.STENCIL_WRITEMASK = 2968] = "STENCIL_WRITEMASK", e[e.STENCIL_BACK_FUNC = 34816] = "STENCIL_BACK_FUNC", e[e.STENCIL_BACK_FAIL = 34817] = "STENCIL_BACK_FAIL", e[e.STENCIL_BACK_PASS_DEPTH_FAIL = 34818] = "STENCIL_BACK_PASS_DEPTH_FAIL", e[e.STENCIL_BACK_PASS_DEPTH_PASS = 34819] = "STENCIL_BACK_PASS_DEPTH_PASS", e[e.STENCIL_BACK_REF = 36003] = "STENCIL_BACK_REF", e[e.STENCIL_BACK_VALUE_MASK = 36004] = "STENCIL_BACK_VALUE_MASK", e[e.STENCIL_BACK_WRITEMASK = 36005] = "STENCIL_BACK_WRITEMASK", e[e.VIEWPORT = 2978] = "VIEWPORT", e[e.SCISSOR_BOX = 3088] = "SCISSOR_BOX", e[e.COLOR_CLEAR_VALUE = 3106] = "COLOR_CLEAR_VALUE", e[e.COLOR_WRITEMASK = 3107] = "COLOR_WRITEMASK", e[e.UNPACK_ALIGNMENT = 3317] = "UNPACK_ALIGNMENT", e[e.PACK_ALIGNMENT = 3333] = "PACK_ALIGNMENT", e[e.MAX_TEXTURE_SIZE = 3379] = "MAX_TEXTURE_SIZE", e[e.MAX_VIEWPORT_DIMS = 3386] = "MAX_VIEWPORT_DIMS", e[e.SUBPIXEL_BITS = 3408] = "SUBPIXEL_BITS", e[e.RED_BITS = 3410] = "RED_BITS", e[e.GREEN_BITS = 3411] = "GREEN_BITS", e[e.BLUE_BITS = 3412] = "BLUE_BITS", e[e.ALPHA_BITS = 3413] = "ALPHA_BITS", e[e.DEPTH_BITS = 3414] = "DEPTH_BITS", e[e.STENCIL_BITS = 3415] = "STENCIL_BITS", e[e.POLYGON_OFFSET_UNITS = 10752] = "POLYGON_OFFSET_UNITS", e[e.POLYGON_OFFSET_FACTOR = 32824] = "POLYGON_OFFSET_FACTOR", e[e.TEXTURE_BINDING_2D = 32873] = "TEXTURE_BINDING_2D", e[e.SAMPLE_BUFFERS = 32936] = "SAMPLE_BUFFERS", e[e.SAMPLES = 32937] = "SAMPLES", e[e.SAMPLE_COVERAGE_VALUE = 32938] = "SAMPLE_COVERAGE_VALUE", e[e.SAMPLE_COVERAGE_INVERT = 32939] = "SAMPLE_COVERAGE_INVERT", e[e.COMPRESSED_TEXTURE_FORMATS = 34467] = "COMPRESSED_TEXTURE_FORMATS", e[e.VENDOR = 7936] = "VENDOR", e[e.RENDERER = 7937] = "RENDERER", e[e.VERSION = 7938] = "VERSION", e[e.IMPLEMENTATION_COLOR_READ_TYPE = 35738] = "IMPLEMENTATION_COLOR_READ_TYPE", e[e.IMPLEMENTATION_COLOR_READ_FORMAT = 35739] = "IMPLEMENTATION_COLOR_READ_FORMAT", e[e.BROWSER_DEFAULT_WEBGL = 37444] = "BROWSER_DEFAULT_WEBGL", e[e.STATIC_DRAW = 35044] = "STATIC_DRAW", e[e.STREAM_DRAW = 35040] = "STREAM_DRAW", e[e.DYNAMIC_DRAW = 35048] = "DYNAMIC_DRAW", e[e.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", e[e.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", e[e.BUFFER_SIZE = 34660] = "BUFFER_SIZE", e[e.BUFFER_USAGE = 34661] = "BUFFER_USAGE", e[e.CURRENT_VERTEX_ATTRIB = 34342] = "CURRENT_VERTEX_ATTRIB", e[e.VERTEX_ATTRIB_ARRAY_ENABLED = 34338] = "VERTEX_ATTRIB_ARRAY_ENABLED", e[e.VERTEX_ATTRIB_ARRAY_SIZE = 34339] = "VERTEX_ATTRIB_ARRAY_SIZE", e[e.VERTEX_ATTRIB_ARRAY_STRIDE = 34340] = "VERTEX_ATTRIB_ARRAY_STRIDE", e[e.VERTEX_ATTRIB_ARRAY_TYPE = 34341] = "VERTEX_ATTRIB_ARRAY_TYPE", e[e.VERTEX_ATTRIB_ARRAY_NORMALIZED = 34922] = "VERTEX_ATTRIB_ARRAY_NORMALIZED", e[e.VERTEX_ATTRIB_ARRAY_POINTER = 34373] = "VERTEX_ATTRIB_ARRAY_POINTER", e[e.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 34975] = "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING", e[e.CULL_FACE = 2884] = "CULL_FACE", e[e.FRONT = 1028] = "FRONT", e[e.BACK = 1029] = "BACK", e[e.FRONT_AND_BACK = 1032] = "FRONT_AND_BACK", e[e.BLEND = 3042] = "BLEND", e[e.DEPTH_TEST = 2929] = "DEPTH_TEST", e[e.DITHER = 3024] = "DITHER", e[e.POLYGON_OFFSET_FILL = 32823] = "POLYGON_OFFSET_FILL", e[e.SAMPLE_ALPHA_TO_COVERAGE = 32926] = "SAMPLE_ALPHA_TO_COVERAGE", e[e.SAMPLE_COVERAGE = 32928] = "SAMPLE_COVERAGE", e[e.SCISSOR_TEST = 3089] = "SCISSOR_TEST", e[e.STENCIL_TEST = 2960] = "STENCIL_TEST", e[e.NO_ERROR = 0] = "NO_ERROR", e[e.INVALID_ENUM = 1280] = "INVALID_ENUM", e[e.INVALID_VALUE = 1281] = "INVALID_VALUE", e[e.INVALID_OPERATION = 1282] = "INVALID_OPERATION", e[e.OUT_OF_MEMORY = 1285] = "OUT_OF_MEMORY", e[e.CONTEXT_LOST_WEBGL = 37442] = "CONTEXT_LOST_WEBGL", e[e.CW = 2304] = "CW", e[e.CCW = 2305] = "CCW", e[e.DONT_CARE = 4352] = "DONT_CARE", e[e.FASTEST = 4353] = "FASTEST", e[e.NICEST = 4354] = "NICEST", e[e.GENERATE_MIPMAP_HINT = 33170] = "GENERATE_MIPMAP_HINT", e[e.BYTE = 5120] = "BYTE", e[e.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", e[e.SHORT = 5122] = "SHORT", e[e.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", e[e.INT = 5124] = "INT", e[e.UNSIGNED_INT = 5125] = "UNSIGNED_INT", e[e.FLOAT = 5126] = "FLOAT", e[e.DOUBLE = 5130] = "DOUBLE", e[e.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", e[e.ALPHA = 6406] = "ALPHA", e[e.RGB = 6407] = "RGB", e[e.RGBA = 6408] = "RGBA", e[e.LUMINANCE = 6409] = "LUMINANCE", e[e.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", e[e.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", e[e.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", e[e.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", e[e.FRAGMENT_SHADER = 35632] = "FRAGMENT_SHADER", e[e.VERTEX_SHADER = 35633] = "VERTEX_SHADER", e[e.COMPILE_STATUS = 35713] = "COMPILE_STATUS", e[e.DELETE_STATUS = 35712] = "DELETE_STATUS", e[e.LINK_STATUS = 35714] = "LINK_STATUS", e[e.VALIDATE_STATUS = 35715] = "VALIDATE_STATUS", e[e.ATTACHED_SHADERS = 35717] = "ATTACHED_SHADERS", e[e.ACTIVE_ATTRIBUTES = 35721] = "ACTIVE_ATTRIBUTES", e[e.ACTIVE_UNIFORMS = 35718] = "ACTIVE_UNIFORMS", e[e.MAX_VERTEX_ATTRIBS = 34921] = "MAX_VERTEX_ATTRIBS", e[e.MAX_VERTEX_UNIFORM_VECTORS = 36347] = "MAX_VERTEX_UNIFORM_VECTORS", e[e.MAX_VARYING_VECTORS = 36348] = "MAX_VARYING_VECTORS", e[e.MAX_COMBINED_TEXTURE_IMAGE_UNITS = 35661] = "MAX_COMBINED_TEXTURE_IMAGE_UNITS", e[e.MAX_VERTEX_TEXTURE_IMAGE_UNITS = 35660] = "MAX_VERTEX_TEXTURE_IMAGE_UNITS", e[e.MAX_TEXTURE_IMAGE_UNITS = 34930] = "MAX_TEXTURE_IMAGE_UNITS", e[e.MAX_FRAGMENT_UNIFORM_VECTORS = 36349] = "MAX_FRAGMENT_UNIFORM_VECTORS", e[e.SHADER_TYPE = 35663] = "SHADER_TYPE", e[e.SHADING_LANGUAGE_VERSION = 35724] = "SHADING_LANGUAGE_VERSION", e[e.CURRENT_PROGRAM = 35725] = "CURRENT_PROGRAM", e[e.NEVER = 512] = "NEVER", e[e.LESS = 513] = "LESS", e[e.EQUAL = 514] = "EQUAL", e[e.LEQUAL = 515] = "LEQUAL", e[e.GREATER = 516] = "GREATER", e[e.NOTEQUAL = 517] = "NOTEQUAL", e[e.GEQUAL = 518] = "GEQUAL", e[e.ALWAYS = 519] = "ALWAYS", e[e.KEEP = 7680] = "KEEP", e[e.REPLACE = 7681] = "REPLACE", e[e.INCR = 7682] = "INCR", e[e.DECR = 7683] = "DECR", e[e.INVERT = 5386] = "INVERT", e[e.INCR_WRAP = 34055] = "INCR_WRAP", e[e.DECR_WRAP = 34056] = "DECR_WRAP", e[e.NEAREST = 9728] = "NEAREST", e[e.LINEAR = 9729] = "LINEAR", e[e.NEAREST_MIPMAP_NEAREST = 9984] = "NEAREST_MIPMAP_NEAREST", e[e.LINEAR_MIPMAP_NEAREST = 9985] = "LINEAR_MIPMAP_NEAREST", e[e.NEAREST_MIPMAP_LINEAR = 9986] = "NEAREST_MIPMAP_LINEAR", e[e.LINEAR_MIPMAP_LINEAR = 9987] = "LINEAR_MIPMAP_LINEAR", e[e.TEXTURE_MAG_FILTER = 10240] = "TEXTURE_MAG_FILTER", e[e.TEXTURE_MIN_FILTER = 10241] = "TEXTURE_MIN_FILTER", e[e.TEXTURE_WRAP_S = 10242] = "TEXTURE_WRAP_S", e[e.TEXTURE_WRAP_T = 10243] = "TEXTURE_WRAP_T", e[e.TEXTURE_2D = 3553] = "TEXTURE_2D", e[e.TEXTURE = 5890] = "TEXTURE", e[e.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", e[e.TEXTURE_BINDING_CUBE_MAP = 34068] = "TEXTURE_BINDING_CUBE_MAP", e[e.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", e[e.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", e[e.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", e[e.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", e[e.MAX_CUBE_MAP_TEXTURE_SIZE = 34076] = "MAX_CUBE_MAP_TEXTURE_SIZE", e[e.TEXTURE0 = 33984] = "TEXTURE0", e[e.ACTIVE_TEXTURE = 34016] = "ACTIVE_TEXTURE", e[e.REPEAT = 10497] = "REPEAT", e[e.CLAMP_TO_EDGE = 33071] = "CLAMP_TO_EDGE", e[e.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", e[e.TEXTURE_WIDTH = 4096] = "TEXTURE_WIDTH", e[e.TEXTURE_HEIGHT = 4097] = "TEXTURE_HEIGHT", e[e.FLOAT_VEC2 = 35664] = "FLOAT_VEC2", e[e.FLOAT_VEC3 = 35665] = "FLOAT_VEC3", e[e.FLOAT_VEC4 = 35666] = "FLOAT_VEC4", e[e.INT_VEC2 = 35667] = "INT_VEC2", e[e.INT_VEC3 = 35668] = "INT_VEC3", e[e.INT_VEC4 = 35669] = "INT_VEC4", e[e.BOOL = 35670] = "BOOL", e[e.BOOL_VEC2 = 35671] = "BOOL_VEC2", e[e.BOOL_VEC3 = 35672] = "BOOL_VEC3", e[e.BOOL_VEC4 = 35673] = "BOOL_VEC4", e[e.FLOAT_MAT2 = 35674] = "FLOAT_MAT2", e[e.FLOAT_MAT3 = 35675] = "FLOAT_MAT3", e[e.FLOAT_MAT4 = 35676] = "FLOAT_MAT4", e[e.SAMPLER_2D = 35678] = "SAMPLER_2D", e[e.SAMPLER_CUBE = 35680] = "SAMPLER_CUBE", e[e.LOW_FLOAT = 36336] = "LOW_FLOAT", e[e.MEDIUM_FLOAT = 36337] = "MEDIUM_FLOAT", e[e.HIGH_FLOAT = 36338] = "HIGH_FLOAT", e[e.LOW_INT = 36339] = "LOW_INT", e[e.MEDIUM_INT = 36340] = "MEDIUM_INT", e[e.HIGH_INT = 36341] = "HIGH_INT", e[e.FRAMEBUFFER = 36160] = "FRAMEBUFFER", e[e.RENDERBUFFER = 36161] = "RENDERBUFFER", e[e.RGBA4 = 32854] = "RGBA4", e[e.RGB5_A1 = 32855] = "RGB5_A1", e[e.RGB565 = 36194] = "RGB565", e[e.DEPTH_COMPONENT16 = 33189] = "DEPTH_COMPONENT16", e[e.STENCIL_INDEX = 6401] = "STENCIL_INDEX", e[e.STENCIL_INDEX8 = 36168] = "STENCIL_INDEX8", e[e.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", e[e.RENDERBUFFER_WIDTH = 36162] = "RENDERBUFFER_WIDTH", e[e.RENDERBUFFER_HEIGHT = 36163] = "RENDERBUFFER_HEIGHT", e[e.RENDERBUFFER_INTERNAL_FORMAT = 36164] = "RENDERBUFFER_INTERNAL_FORMAT", e[e.RENDERBUFFER_RED_SIZE = 36176] = "RENDERBUFFER_RED_SIZE", e[e.RENDERBUFFER_GREEN_SIZE = 36177] = "RENDERBUFFER_GREEN_SIZE", e[e.RENDERBUFFER_BLUE_SIZE = 36178] = "RENDERBUFFER_BLUE_SIZE", e[e.RENDERBUFFER_ALPHA_SIZE = 36179] = "RENDERBUFFER_ALPHA_SIZE", e[e.RENDERBUFFER_DEPTH_SIZE = 36180] = "RENDERBUFFER_DEPTH_SIZE", e[e.RENDERBUFFER_STENCIL_SIZE = 36181] = "RENDERBUFFER_STENCIL_SIZE", e[e.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 36048] = "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE", e[e.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 36049] = "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME", e[e.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 36050] = "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL", e[e.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 36051] = "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE", e[e.COLOR_ATTACHMENT0 = 36064] = "COLOR_ATTACHMENT0", e[e.DEPTH_ATTACHMENT = 36096] = "DEPTH_ATTACHMENT", e[e.STENCIL_ATTACHMENT = 36128] = "STENCIL_ATTACHMENT", e[e.DEPTH_STENCIL_ATTACHMENT = 33306] = "DEPTH_STENCIL_ATTACHMENT", e[e.NONE = 0] = "NONE", e[e.FRAMEBUFFER_COMPLETE = 36053] = "FRAMEBUFFER_COMPLETE", e[e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 36054] = "FRAMEBUFFER_INCOMPLETE_ATTACHMENT", e[e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 36055] = "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", e[e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 36057] = "FRAMEBUFFER_INCOMPLETE_DIMENSIONS", e[e.FRAMEBUFFER_UNSUPPORTED = 36061] = "FRAMEBUFFER_UNSUPPORTED", e[e.FRAMEBUFFER_BINDING = 36006] = "FRAMEBUFFER_BINDING", e[e.RENDERBUFFER_BINDING = 36007] = "RENDERBUFFER_BINDING", e[e.READ_FRAMEBUFFER = 36008] = "READ_FRAMEBUFFER", e[e.DRAW_FRAMEBUFFER = 36009] = "DRAW_FRAMEBUFFER", e[e.MAX_RENDERBUFFER_SIZE = 34024] = "MAX_RENDERBUFFER_SIZE", e[e.INVALID_FRAMEBUFFER_OPERATION = 1286] = "INVALID_FRAMEBUFFER_OPERATION", e[e.UNPACK_FLIP_Y_WEBGL = 37440] = "UNPACK_FLIP_Y_WEBGL", e[e.UNPACK_PREMULTIPLY_ALPHA_WEBGL = 37441] = "UNPACK_PREMULTIPLY_ALPHA_WEBGL", e[e.UNPACK_COLORSPACE_CONVERSION_WEBGL = 37443] = "UNPACK_COLORSPACE_CONVERSION_WEBGL", e[e.READ_BUFFER = 3074] = "READ_BUFFER", e[e.UNPACK_ROW_LENGTH = 3314] = "UNPACK_ROW_LENGTH", e[e.UNPACK_SKIP_ROWS = 3315] = "UNPACK_SKIP_ROWS", e[e.UNPACK_SKIP_PIXELS = 3316] = "UNPACK_SKIP_PIXELS", e[e.PACK_ROW_LENGTH = 3330] = "PACK_ROW_LENGTH", e[e.PACK_SKIP_ROWS = 3331] = "PACK_SKIP_ROWS", e[e.PACK_SKIP_PIXELS = 3332] = "PACK_SKIP_PIXELS", e[e.TEXTURE_BINDING_3D = 32874] = "TEXTURE_BINDING_3D", e[e.UNPACK_SKIP_IMAGES = 32877] = "UNPACK_SKIP_IMAGES", e[e.UNPACK_IMAGE_HEIGHT = 32878] = "UNPACK_IMAGE_HEIGHT", e[e.MAX_3D_TEXTURE_SIZE = 32883] = "MAX_3D_TEXTURE_SIZE", e[e.MAX_ELEMENTS_VERTICES = 33e3] = "MAX_ELEMENTS_VERTICES", e[e.MAX_ELEMENTS_INDICES = 33001] = "MAX_ELEMENTS_INDICES", e[e.MAX_TEXTURE_LOD_BIAS = 34045] = "MAX_TEXTURE_LOD_BIAS", e[e.MAX_FRAGMENT_UNIFORM_COMPONENTS = 35657] = "MAX_FRAGMENT_UNIFORM_COMPONENTS", e[e.MAX_VERTEX_UNIFORM_COMPONENTS = 35658] = "MAX_VERTEX_UNIFORM_COMPONENTS", e[e.MAX_ARRAY_TEXTURE_LAYERS = 35071] = "MAX_ARRAY_TEXTURE_LAYERS", e[e.MIN_PROGRAM_TEXEL_OFFSET = 35076] = "MIN_PROGRAM_TEXEL_OFFSET", e[e.MAX_PROGRAM_TEXEL_OFFSET = 35077] = "MAX_PROGRAM_TEXEL_OFFSET", e[e.MAX_VARYING_COMPONENTS = 35659] = "MAX_VARYING_COMPONENTS", e[e.FRAGMENT_SHADER_DERIVATIVE_HINT = 35723] = "FRAGMENT_SHADER_DERIVATIVE_HINT", e[e.RASTERIZER_DISCARD = 35977] = "RASTERIZER_DISCARD", e[e.VERTEX_ARRAY_BINDING = 34229] = "VERTEX_ARRAY_BINDING", e[e.MAX_VERTEX_OUTPUT_COMPONENTS = 37154] = "MAX_VERTEX_OUTPUT_COMPONENTS", e[e.MAX_FRAGMENT_INPUT_COMPONENTS = 37157] = "MAX_FRAGMENT_INPUT_COMPONENTS", e[e.MAX_SERVER_WAIT_TIMEOUT = 37137] = "MAX_SERVER_WAIT_TIMEOUT", e[e.MAX_ELEMENT_INDEX = 36203] = "MAX_ELEMENT_INDEX", e[e.RED = 6403] = "RED", e[e.RGB8 = 32849] = "RGB8", e[e.RGBA8 = 32856] = "RGBA8", e[e.RGB10_A2 = 32857] = "RGB10_A2", e[e.TEXTURE_3D = 32879] = "TEXTURE_3D", e[e.TEXTURE_WRAP_R = 32882] = "TEXTURE_WRAP_R", e[e.TEXTURE_MIN_LOD = 33082] = "TEXTURE_MIN_LOD", e[e.TEXTURE_MAX_LOD = 33083] = "TEXTURE_MAX_LOD", e[e.TEXTURE_BASE_LEVEL = 33084] = "TEXTURE_BASE_LEVEL", e[e.TEXTURE_MAX_LEVEL = 33085] = "TEXTURE_MAX_LEVEL", e[e.TEXTURE_COMPARE_MODE = 34892] = "TEXTURE_COMPARE_MODE", e[e.TEXTURE_COMPARE_FUNC = 34893] = "TEXTURE_COMPARE_FUNC", e[e.SRGB = 35904] = "SRGB", e[e.SRGB8 = 35905] = "SRGB8", e[e.SRGB8_ALPHA8 = 35907] = "SRGB8_ALPHA8", e[e.COMPARE_REF_TO_TEXTURE = 34894] = "COMPARE_REF_TO_TEXTURE", e[e.RGBA32F = 34836] = "RGBA32F", e[e.RGB32F = 34837] = "RGB32F", e[e.RGBA16F = 34842] = "RGBA16F", e[e.RGB16F = 34843] = "RGB16F", e[e.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", e[e.TEXTURE_BINDING_2D_ARRAY = 35869] = "TEXTURE_BINDING_2D_ARRAY", e[e.R11F_G11F_B10F = 35898] = "R11F_G11F_B10F", e[e.RGB9_E5 = 35901] = "RGB9_E5", e[e.RGBA32UI = 36208] = "RGBA32UI", e[e.RGB32UI = 36209] = "RGB32UI", e[e.RGBA16UI = 36214] = "RGBA16UI", e[e.RGB16UI = 36215] = "RGB16UI", e[e.RGBA8UI = 36220] = "RGBA8UI", e[e.RGB8UI = 36221] = "RGB8UI", e[e.RGBA32I = 36226] = "RGBA32I", e[e.RGB32I = 36227] = "RGB32I", e[e.RGBA16I = 36232] = "RGBA16I", e[e.RGB16I = 36233] = "RGB16I", e[e.RGBA8I = 36238] = "RGBA8I", e[e.RGB8I = 36239] = "RGB8I", e[e.RED_INTEGER = 36244] = "RED_INTEGER", e[e.RGB_INTEGER = 36248] = "RGB_INTEGER", e[e.RGBA_INTEGER = 36249] = "RGBA_INTEGER", e[e.R8 = 33321] = "R8", e[e.RG8 = 33323] = "RG8", e[e.R16F = 33325] = "R16F", e[e.R32F = 33326] = "R32F", e[e.RG16F = 33327] = "RG16F", e[e.RG32F = 33328] = "RG32F", e[e.R8I = 33329] = "R8I", e[e.R8UI = 33330] = "R8UI", e[e.R16I = 33331] = "R16I", e[e.R16UI = 33332] = "R16UI", e[e.R32I = 33333] = "R32I", e[e.R32UI = 33334] = "R32UI", e[e.RG8I = 33335] = "RG8I", e[e.RG8UI = 33336] = "RG8UI", e[e.RG16I = 33337] = "RG16I", e[e.RG16UI = 33338] = "RG16UI", e[e.RG32I = 33339] = "RG32I", e[e.RG32UI = 33340] = "RG32UI", e[e.R8_SNORM = 36756] = "R8_SNORM", e[e.RG8_SNORM = 36757] = "RG8_SNORM", e[e.RGB8_SNORM = 36758] = "RGB8_SNORM", e[e.RGBA8_SNORM = 36759] = "RGBA8_SNORM", e[e.RGB10_A2UI = 36975] = "RGB10_A2UI", e[e.TEXTURE_IMMUTABLE_FORMAT = 37167] = "TEXTURE_IMMUTABLE_FORMAT", e[e.TEXTURE_IMMUTABLE_LEVELS = 33503] = "TEXTURE_IMMUTABLE_LEVELS", e[e.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", e[e.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", e[e.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", e[e.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", e[e.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", e[e.HALF_FLOAT = 5131] = "HALF_FLOAT", e[e.RG = 33319] = "RG", e[e.RG_INTEGER = 33320] = "RG_INTEGER", e[e.INT_2_10_10_10_REV = 36255] = "INT_2_10_10_10_REV", e[e.CURRENT_QUERY = 34917] = "CURRENT_QUERY", e[e.QUERY_RESULT = 34918] = "QUERY_RESULT", e[e.QUERY_RESULT_AVAILABLE = 34919] = "QUERY_RESULT_AVAILABLE", e[e.ANY_SAMPLES_PASSED = 35887] = "ANY_SAMPLES_PASSED", e[e.ANY_SAMPLES_PASSED_CONSERVATIVE = 36202] = "ANY_SAMPLES_PASSED_CONSERVATIVE", e[e.MAX_DRAW_BUFFERS = 34852] = "MAX_DRAW_BUFFERS", e[e.DRAW_BUFFER0 = 34853] = "DRAW_BUFFER0", e[e.DRAW_BUFFER1 = 34854] = "DRAW_BUFFER1", e[e.DRAW_BUFFER2 = 34855] = "DRAW_BUFFER2", e[e.DRAW_BUFFER3 = 34856] = "DRAW_BUFFER3", e[e.DRAW_BUFFER4 = 34857] = "DRAW_BUFFER4", e[e.DRAW_BUFFER5 = 34858] = "DRAW_BUFFER5", e[e.DRAW_BUFFER6 = 34859] = "DRAW_BUFFER6", e[e.DRAW_BUFFER7 = 34860] = "DRAW_BUFFER7", e[e.DRAW_BUFFER8 = 34861] = "DRAW_BUFFER8", e[e.DRAW_BUFFER9 = 34862] = "DRAW_BUFFER9", e[e.DRAW_BUFFER10 = 34863] = "DRAW_BUFFER10", e[e.DRAW_BUFFER11 = 34864] = "DRAW_BUFFER11", e[e.DRAW_BUFFER12 = 34865] = "DRAW_BUFFER12", e[e.DRAW_BUFFER13 = 34866] = "DRAW_BUFFER13", e[e.DRAW_BUFFER14 = 34867] = "DRAW_BUFFER14", e[e.DRAW_BUFFER15 = 34868] = "DRAW_BUFFER15", e[e.MAX_COLOR_ATTACHMENTS = 36063] = "MAX_COLOR_ATTACHMENTS", e[e.COLOR_ATTACHMENT1 = 36065] = "COLOR_ATTACHMENT1", e[e.COLOR_ATTACHMENT2 = 36066] = "COLOR_ATTACHMENT2", e[e.COLOR_ATTACHMENT3 = 36067] = "COLOR_ATTACHMENT3", e[e.COLOR_ATTACHMENT4 = 36068] = "COLOR_ATTACHMENT4", e[e.COLOR_ATTACHMENT5 = 36069] = "COLOR_ATTACHMENT5", e[e.COLOR_ATTACHMENT6 = 36070] = "COLOR_ATTACHMENT6", e[e.COLOR_ATTACHMENT7 = 36071] = "COLOR_ATTACHMENT7", e[e.COLOR_ATTACHMENT8 = 36072] = "COLOR_ATTACHMENT8", e[e.COLOR_ATTACHMENT9 = 36073] = "COLOR_ATTACHMENT9", e[e.COLOR_ATTACHMENT10 = 36074] = "COLOR_ATTACHMENT10", e[e.COLOR_ATTACHMENT11 = 36075] = "COLOR_ATTACHMENT11", e[e.COLOR_ATTACHMENT12 = 36076] = "COLOR_ATTACHMENT12", e[e.COLOR_ATTACHMENT13 = 36077] = "COLOR_ATTACHMENT13", e[e.COLOR_ATTACHMENT14 = 36078] = "COLOR_ATTACHMENT14", e[e.COLOR_ATTACHMENT15 = 36079] = "COLOR_ATTACHMENT15", e[e.SAMPLER_3D = 35679] = "SAMPLER_3D", e[e.SAMPLER_2D_SHADOW = 35682] = "SAMPLER_2D_SHADOW", e[e.SAMPLER_2D_ARRAY = 36289] = "SAMPLER_2D_ARRAY", e[e.SAMPLER_2D_ARRAY_SHADOW = 36292] = "SAMPLER_2D_ARRAY_SHADOW", e[e.SAMPLER_CUBE_SHADOW = 36293] = "SAMPLER_CUBE_SHADOW", e[e.INT_SAMPLER_2D = 36298] = "INT_SAMPLER_2D", e[e.INT_SAMPLER_3D = 36299] = "INT_SAMPLER_3D", e[e.INT_SAMPLER_CUBE = 36300] = "INT_SAMPLER_CUBE", e[e.INT_SAMPLER_2D_ARRAY = 36303] = "INT_SAMPLER_2D_ARRAY", e[e.UNSIGNED_INT_SAMPLER_2D = 36306] = "UNSIGNED_INT_SAMPLER_2D", e[e.UNSIGNED_INT_SAMPLER_3D = 36307] = "UNSIGNED_INT_SAMPLER_3D", e[e.UNSIGNED_INT_SAMPLER_CUBE = 36308] = "UNSIGNED_INT_SAMPLER_CUBE", e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY = 36311] = "UNSIGNED_INT_SAMPLER_2D_ARRAY", e[e.MAX_SAMPLES = 36183] = "MAX_SAMPLES", e[e.SAMPLER_BINDING = 35097] = "SAMPLER_BINDING", e[e.PIXEL_PACK_BUFFER = 35051] = "PIXEL_PACK_BUFFER", e[e.PIXEL_UNPACK_BUFFER = 35052] = "PIXEL_UNPACK_BUFFER", e[e.PIXEL_PACK_BUFFER_BINDING = 35053] = "PIXEL_PACK_BUFFER_BINDING", e[e.PIXEL_UNPACK_BUFFER_BINDING = 35055] = "PIXEL_UNPACK_BUFFER_BINDING", e[e.COPY_READ_BUFFER = 36662] = "COPY_READ_BUFFER", e[e.COPY_WRITE_BUFFER = 36663] = "COPY_WRITE_BUFFER", e[e.COPY_READ_BUFFER_BINDING = 36662] = "COPY_READ_BUFFER_BINDING", e[e.COPY_WRITE_BUFFER_BINDING = 36663] = "COPY_WRITE_BUFFER_BINDING", e[e.FLOAT_MAT2x3 = 35685] = "FLOAT_MAT2x3", e[e.FLOAT_MAT2x4 = 35686] = "FLOAT_MAT2x4", e[e.FLOAT_MAT3x2 = 35687] = "FLOAT_MAT3x2", e[e.FLOAT_MAT3x4 = 35688] = "FLOAT_MAT3x4", e[e.FLOAT_MAT4x2 = 35689] = "FLOAT_MAT4x2", e[e.FLOAT_MAT4x3 = 35690] = "FLOAT_MAT4x3", e[e.UNSIGNED_INT_VEC2 = 36294] = "UNSIGNED_INT_VEC2", e[e.UNSIGNED_INT_VEC3 = 36295] = "UNSIGNED_INT_VEC3", e[e.UNSIGNED_INT_VEC4 = 36296] = "UNSIGNED_INT_VEC4", e[e.UNSIGNED_NORMALIZED = 35863] = "UNSIGNED_NORMALIZED", e[e.SIGNED_NORMALIZED = 36764] = "SIGNED_NORMALIZED", e[e.VERTEX_ATTRIB_ARRAY_INTEGER = 35069] = "VERTEX_ATTRIB_ARRAY_INTEGER", e[e.VERTEX_ATTRIB_ARRAY_DIVISOR = 35070] = "VERTEX_ATTRIB_ARRAY_DIVISOR", e[e.TRANSFORM_FEEDBACK_BUFFER_MODE = 35967] = "TRANSFORM_FEEDBACK_BUFFER_MODE", e[e.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 35968] = "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS", e[e.TRANSFORM_FEEDBACK_VARYINGS = 35971] = "TRANSFORM_FEEDBACK_VARYINGS", e[e.TRANSFORM_FEEDBACK_BUFFER_START = 35972] = "TRANSFORM_FEEDBACK_BUFFER_START", e[e.TRANSFORM_FEEDBACK_BUFFER_SIZE = 35973] = "TRANSFORM_FEEDBACK_BUFFER_SIZE", e[e.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 35976] = "TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN", e[e.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 35978] = "MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS", e[e.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 35979] = "MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS", e[e.INTERLEAVED_ATTRIBS = 35980] = "INTERLEAVED_ATTRIBS", e[e.SEPARATE_ATTRIBS = 35981] = "SEPARATE_ATTRIBS", e[e.TRANSFORM_FEEDBACK_BUFFER = 35982] = "TRANSFORM_FEEDBACK_BUFFER", e[e.TRANSFORM_FEEDBACK_BUFFER_BINDING = 35983] = "TRANSFORM_FEEDBACK_BUFFER_BINDING", e[e.TRANSFORM_FEEDBACK = 36386] = "TRANSFORM_FEEDBACK", e[e.TRANSFORM_FEEDBACK_PAUSED = 36387] = "TRANSFORM_FEEDBACK_PAUSED", e[e.TRANSFORM_FEEDBACK_ACTIVE = 36388] = "TRANSFORM_FEEDBACK_ACTIVE", e[e.TRANSFORM_FEEDBACK_BINDING = 36389] = "TRANSFORM_FEEDBACK_BINDING", e[e.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 33296] = "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING", e[e.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 33297] = "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE", e[e.FRAMEBUFFER_ATTACHMENT_RED_SIZE = 33298] = "FRAMEBUFFER_ATTACHMENT_RED_SIZE", e[e.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 33299] = "FRAMEBUFFER_ATTACHMENT_GREEN_SIZE", e[e.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 33300] = "FRAMEBUFFER_ATTACHMENT_BLUE_SIZE", e[e.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 33301] = "FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE", e[e.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 33302] = "FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE", e[e.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 33303] = "FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE", e[e.FRAMEBUFFER_DEFAULT = 33304] = "FRAMEBUFFER_DEFAULT", e[e.DEPTH24_STENCIL8 = 35056] = "DEPTH24_STENCIL8", e[e.DRAW_FRAMEBUFFER_BINDING = 36006] = "DRAW_FRAMEBUFFER_BINDING", e[e.READ_FRAMEBUFFER_BINDING = 36010] = "READ_FRAMEBUFFER_BINDING", e[e.RENDERBUFFER_SAMPLES = 36011] = "RENDERBUFFER_SAMPLES", e[e.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 36052] = "FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER", e[e.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 36182] = "FRAMEBUFFER_INCOMPLETE_MULTISAMPLE", e[e.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", e[e.UNIFORM_BUFFER_BINDING = 35368] = "UNIFORM_BUFFER_BINDING", e[e.UNIFORM_BUFFER_START = 35369] = "UNIFORM_BUFFER_START", e[e.UNIFORM_BUFFER_SIZE = 35370] = "UNIFORM_BUFFER_SIZE", e[e.MAX_VERTEX_UNIFORM_BLOCKS = 35371] = "MAX_VERTEX_UNIFORM_BLOCKS", e[e.MAX_FRAGMENT_UNIFORM_BLOCKS = 35373] = "MAX_FRAGMENT_UNIFORM_BLOCKS", e[e.MAX_COMBINED_UNIFORM_BLOCKS = 35374] = "MAX_COMBINED_UNIFORM_BLOCKS", e[e.MAX_UNIFORM_BUFFER_BINDINGS = 35375] = "MAX_UNIFORM_BUFFER_BINDINGS", e[e.MAX_UNIFORM_BLOCK_SIZE = 35376] = "MAX_UNIFORM_BLOCK_SIZE", e[e.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 35377] = "MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS", e[e.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 35379] = "MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS", e[e.UNIFORM_BUFFER_OFFSET_ALIGNMENT = 35380] = "UNIFORM_BUFFER_OFFSET_ALIGNMENT", e[e.ACTIVE_UNIFORM_BLOCKS = 35382] = "ACTIVE_UNIFORM_BLOCKS", e[e.UNIFORM_TYPE = 35383] = "UNIFORM_TYPE", e[e.UNIFORM_SIZE = 35384] = "UNIFORM_SIZE", e[e.UNIFORM_BLOCK_INDEX = 35386] = "UNIFORM_BLOCK_INDEX", e[e.UNIFORM_OFFSET = 35387] = "UNIFORM_OFFSET", e[e.UNIFORM_ARRAY_STRIDE = 35388] = "UNIFORM_ARRAY_STRIDE", e[e.UNIFORM_MATRIX_STRIDE = 35389] = "UNIFORM_MATRIX_STRIDE", e[e.UNIFORM_IS_ROW_MAJOR = 35390] = "UNIFORM_IS_ROW_MAJOR", e[e.UNIFORM_BLOCK_BINDING = 35391] = "UNIFORM_BLOCK_BINDING", e[e.UNIFORM_BLOCK_DATA_SIZE = 35392] = "UNIFORM_BLOCK_DATA_SIZE", e[e.UNIFORM_BLOCK_ACTIVE_UNIFORMS = 35394] = "UNIFORM_BLOCK_ACTIVE_UNIFORMS", e[e.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 35395] = "UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES", e[e.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 35396] = "UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER", e[e.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 35398] = "UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER", e[e.OBJECT_TYPE = 37138] = "OBJECT_TYPE", e[e.SYNC_CONDITION = 37139] = "SYNC_CONDITION", e[e.SYNC_STATUS = 37140] = "SYNC_STATUS", e[e.SYNC_FLAGS = 37141] = "SYNC_FLAGS", e[e.SYNC_FENCE = 37142] = "SYNC_FENCE", e[e.SYNC_GPU_COMMANDS_COMPLETE = 37143] = "SYNC_GPU_COMMANDS_COMPLETE", e[e.UNSIGNALED = 37144] = "UNSIGNALED", e[e.SIGNALED = 37145] = "SIGNALED", e[e.ALREADY_SIGNALED = 37146] = "ALREADY_SIGNALED", e[e.TIMEOUT_EXPIRED = 37147] = "TIMEOUT_EXPIRED", e[e.CONDITION_SATISFIED = 37148] = "CONDITION_SATISFIED", e[e.WAIT_FAILED = 37149] = "WAIT_FAILED", e[e.SYNC_FLUSH_COMMANDS_BIT = 1] = "SYNC_FLUSH_COMMANDS_BIT", e[e.COLOR = 6144] = "COLOR", e[e.DEPTH = 6145] = "DEPTH", e[e.STENCIL = 6146] = "STENCIL", e[e.MIN = 32775] = "MIN", e[e.MAX = 32776] = "MAX", e[e.DEPTH_COMPONENT24 = 33190] = "DEPTH_COMPONENT24", e[e.STREAM_READ = 35041] = "STREAM_READ", e[e.STREAM_COPY = 35042] = "STREAM_COPY", e[e.STATIC_READ = 35045] = "STATIC_READ", e[e.STATIC_COPY = 35046] = "STATIC_COPY", e[e.DYNAMIC_READ = 35049] = "DYNAMIC_READ", e[e.DYNAMIC_COPY = 35050] = "DYNAMIC_COPY", e[e.DEPTH_COMPONENT32F = 36012] = "DEPTH_COMPONENT32F", e[e.DEPTH32F_STENCIL8 = 36013] = "DEPTH32F_STENCIL8", e[e.INVALID_INDEX = 4294967295] = "INVALID_INDEX", e[e.TIMEOUT_IGNORED = -1] = "TIMEOUT_IGNORED", e[e.MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 37447] = "MAX_CLIENT_WAIT_TIMEOUT_WEBGL", e[e.UNMASKED_VENDOR_WEBGL = 37445] = "UNMASKED_VENDOR_WEBGL", e[e.UNMASKED_RENDERER_WEBGL = 37446] = "UNMASKED_RENDERER_WEBGL", e[e.MAX_TEXTURE_MAX_ANISOTROPY_EXT = 34047] = "MAX_TEXTURE_MAX_ANISOTROPY_EXT", e[e.TEXTURE_MAX_ANISOTROPY_EXT = 34046] = "TEXTURE_MAX_ANISOTROPY_EXT", e[e.R16_EXT = 33322] = "R16_EXT", e[e.RG16_EXT = 33324] = "RG16_EXT", e[e.RGB16_EXT = 32852] = "RGB16_EXT", e[e.RGBA16_EXT = 32859] = "RGBA16_EXT", e[e.R16_SNORM_EXT = 36760] = "R16_SNORM_EXT", e[e.RG16_SNORM_EXT = 36761] = "RG16_SNORM_EXT", e[e.RGB16_SNORM_EXT = 36762] = "RGB16_SNORM_EXT", e[e.RGBA16_SNORM_EXT = 36763] = "RGBA16_SNORM_EXT", e[e.COMPRESSED_RGB_S3TC_DXT1_EXT = 33776] = "COMPRESSED_RGB_S3TC_DXT1_EXT", e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT = 33777] = "COMPRESSED_RGBA_S3TC_DXT1_EXT", e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT = 33778] = "COMPRESSED_RGBA_S3TC_DXT3_EXT", e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT = 33779] = "COMPRESSED_RGBA_S3TC_DXT5_EXT", e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT = 35916] = "COMPRESSED_SRGB_S3TC_DXT1_EXT", e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 35917] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT", e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 35918] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT", e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 35919] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT", e[e.COMPRESSED_RED_RGTC1_EXT = 36283] = "COMPRESSED_RED_RGTC1_EXT", e[e.COMPRESSED_SIGNED_RED_RGTC1_EXT = 36284] = "COMPRESSED_SIGNED_RED_RGTC1_EXT", e[e.COMPRESSED_RED_GREEN_RGTC2_EXT = 36285] = "COMPRESSED_RED_GREEN_RGTC2_EXT", e[e.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 36286] = "COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT", e[e.COMPRESSED_RGBA_BPTC_UNORM_EXT = 36492] = "COMPRESSED_RGBA_BPTC_UNORM_EXT", e[e.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT = 36493] = "COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT", e[e.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT = 36494] = "COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT", e[e.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT = 36495] = "COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT", e[e.COMPRESSED_R11_EAC = 37488] = "COMPRESSED_R11_EAC", e[e.COMPRESSED_SIGNED_R11_EAC = 37489] = "COMPRESSED_SIGNED_R11_EAC", e[e.COMPRESSED_RG11_EAC = 37490] = "COMPRESSED_RG11_EAC", e[e.COMPRESSED_SIGNED_RG11_EAC = 37491] = "COMPRESSED_SIGNED_RG11_EAC", e[e.COMPRESSED_RGB8_ETC2 = 37492] = "COMPRESSED_RGB8_ETC2", e[e.COMPRESSED_RGBA8_ETC2_EAC = 37493] = "COMPRESSED_RGBA8_ETC2_EAC", e[e.COMPRESSED_SRGB8_ETC2 = 37494] = "COMPRESSED_SRGB8_ETC2", e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 37495] = "COMPRESSED_SRGB8_ALPHA8_ETC2_EAC", e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37496] = "COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2", e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37497] = "COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2", e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 35840] = "COMPRESSED_RGB_PVRTC_4BPPV1_IMG", e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 35842] = "COMPRESSED_RGBA_PVRTC_4BPPV1_IMG", e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 35841] = "COMPRESSED_RGB_PVRTC_2BPPV1_IMG", e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 35843] = "COMPRESSED_RGBA_PVRTC_2BPPV1_IMG", e[e.COMPRESSED_RGB_ETC1_WEBGL = 36196] = "COMPRESSED_RGB_ETC1_WEBGL", e[e.COMPRESSED_RGB_ATC_WEBGL = 35986] = "COMPRESSED_RGB_ATC_WEBGL", e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 35986] = "COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL", e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 34798] = "COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL", e[e.COMPRESSED_RGBA_ASTC_4x4_KHR = 37808] = "COMPRESSED_RGBA_ASTC_4x4_KHR", e[e.COMPRESSED_RGBA_ASTC_5x4_KHR = 37809] = "COMPRESSED_RGBA_ASTC_5x4_KHR", e[e.COMPRESSED_RGBA_ASTC_5x5_KHR = 37810] = "COMPRESSED_RGBA_ASTC_5x5_KHR", e[e.COMPRESSED_RGBA_ASTC_6x5_KHR = 37811] = "COMPRESSED_RGBA_ASTC_6x5_KHR", e[e.COMPRESSED_RGBA_ASTC_6x6_KHR = 37812] = "COMPRESSED_RGBA_ASTC_6x6_KHR", e[e.COMPRESSED_RGBA_ASTC_8x5_KHR = 37813] = "COMPRESSED_RGBA_ASTC_8x5_KHR", e[e.COMPRESSED_RGBA_ASTC_8x6_KHR = 37814] = "COMPRESSED_RGBA_ASTC_8x6_KHR", e[e.COMPRESSED_RGBA_ASTC_8x8_KHR = 37815] = "COMPRESSED_RGBA_ASTC_8x8_KHR", e[e.COMPRESSED_RGBA_ASTC_10x5_KHR = 37816] = "COMPRESSED_RGBA_ASTC_10x5_KHR", e[e.COMPRESSED_RGBA_ASTC_10x6_KHR = 37817] = "COMPRESSED_RGBA_ASTC_10x6_KHR", e[e.COMPRESSED_RGBA_ASTC_10x8_KHR = 37818] = "COMPRESSED_RGBA_ASTC_10x8_KHR", e[e.COMPRESSED_RGBA_ASTC_10x10_KHR = 37819] = "COMPRESSED_RGBA_ASTC_10x10_KHR", e[e.COMPRESSED_RGBA_ASTC_12x10_KHR = 37820] = "COMPRESSED_RGBA_ASTC_12x10_KHR", e[e.COMPRESSED_RGBA_ASTC_12x12_KHR = 37821] = "COMPRESSED_RGBA_ASTC_12x12_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 37840] = "COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 37841] = "COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 37842] = "COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 37843] = "COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 37844] = "COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 37845] = "COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 37846] = "COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 37847] = "COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 37848] = "COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 37849] = "COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 37850] = "COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 37851] = "COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 37852] = "COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR", e[e.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 37853] = "COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR", e[e.QUERY_COUNTER_BITS_EXT = 34916] = "QUERY_COUNTER_BITS_EXT", e[e.CURRENT_QUERY_EXT = 34917] = "CURRENT_QUERY_EXT", e[e.QUERY_RESULT_EXT = 34918] = "QUERY_RESULT_EXT", e[e.QUERY_RESULT_AVAILABLE_EXT = 34919] = "QUERY_RESULT_AVAILABLE_EXT", e[e.TIME_ELAPSED_EXT = 35007] = "TIME_ELAPSED_EXT", e[e.TIMESTAMP_EXT = 36392] = "TIMESTAMP_EXT", e[e.GPU_DISJOINT_EXT = 36795] = "GPU_DISJOINT_EXT", e[e.COMPLETION_STATUS_KHR = 37297] = "COMPLETION_STATUS_KHR", e[e.DEPTH_CLAMP_EXT = 34383] = "DEPTH_CLAMP_EXT", e[e.FIRST_VERTEX_CONVENTION_WEBGL = 36429] = "FIRST_VERTEX_CONVENTION_WEBGL", e[e.LAST_VERTEX_CONVENTION_WEBGL = 36430] = "LAST_VERTEX_CONVENTION_WEBGL", e[e.PROVOKING_VERTEX_WEBL = 36431] = "PROVOKING_VERTEX_WEBL", e[e.POLYGON_MODE_WEBGL = 2880] = "POLYGON_MODE_WEBGL", e[e.POLYGON_OFFSET_LINE_WEBGL = 10754] = "POLYGON_OFFSET_LINE_WEBGL", e[e.LINE_WEBGL = 6913] = "LINE_WEBGL", e[e.FILL_WEBGL = 6914] = "FILL_WEBGL", e[e.MAX_CLIP_DISTANCES_WEBGL = 3378] = "MAX_CLIP_DISTANCES_WEBGL", e[e.MAX_CULL_DISTANCES_WEBGL = 33529] = "MAX_CULL_DISTANCES_WEBGL", e[e.MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL = 33530] = "MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL", e[e.CLIP_DISTANCE0_WEBGL = 12288] = "CLIP_DISTANCE0_WEBGL", e[e.CLIP_DISTANCE1_WEBGL = 12289] = "CLIP_DISTANCE1_WEBGL", e[e.CLIP_DISTANCE2_WEBGL = 12290] = "CLIP_DISTANCE2_WEBGL", e[e.CLIP_DISTANCE3_WEBGL = 12291] = "CLIP_DISTANCE3_WEBGL", e[e.CLIP_DISTANCE4_WEBGL = 12292] = "CLIP_DISTANCE4_WEBGL", e[e.CLIP_DISTANCE5_WEBGL = 12293] = "CLIP_DISTANCE5_WEBGL", e[e.CLIP_DISTANCE6_WEBGL = 12294] = "CLIP_DISTANCE6_WEBGL", e[e.CLIP_DISTANCE7_WEBGL = 12295] = "CLIP_DISTANCE7_WEBGL", e[e.POLYGON_OFFSET_CLAMP_EXT = 36379] = "POLYGON_OFFSET_CLAMP_EXT", e[e.LOWER_LEFT_EXT = 36001] = "LOWER_LEFT_EXT", e[e.UPPER_LEFT_EXT = 36002] = "UPPER_LEFT_EXT", e[e.NEGATIVE_ONE_TO_ONE_EXT = 37726] = "NEGATIVE_ONE_TO_ONE_EXT", e[e.ZERO_TO_ONE_EXT = 37727] = "ZERO_TO_ONE_EXT", e[e.CLIP_ORIGIN_EXT = 37724] = "CLIP_ORIGIN_EXT", e[e.CLIP_DEPTH_MODE_EXT = 37725] = "CLIP_DEPTH_MODE_EXT", e[e.SRC1_COLOR_WEBGL = 35065] = "SRC1_COLOR_WEBGL", e[e.SRC1_ALPHA_WEBGL = 34185] = "SRC1_ALPHA_WEBGL", e[e.ONE_MINUS_SRC1_COLOR_WEBGL = 35066] = "ONE_MINUS_SRC1_COLOR_WEBGL", e[e.ONE_MINUS_SRC1_ALPHA_WEBGL = 35067] = "ONE_MINUS_SRC1_ALPHA_WEBGL", e[e.MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL = 35068] = "MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL", e[e.MIRROR_CLAMP_TO_EDGE_EXT = 34627] = "MIRROR_CLAMP_TO_EDGE_EXT";
19
19
  })(L || (L = {}));
20
- const K = 1e-3, H = 64, Ce = 4, $ = 2;
21
- class Pe {
20
+ const K = 1e-3, H = 64, Ie = 4, se = 2;
21
+ class ye {
22
22
  constructor() {
23
- this.pointsTextureSize = 0, this.linksTextureSize = 0, this.alpha = 1, this.transform = V.create(), this.screenSize = [0, 0], this.mousePosition = [0, 0], this.screenMousePosition = [0, 0], this.selectedArea = [[0, 0], [0, 0]], this.isSimulationRunning = !1, this.simulationProgress = 0, this.selectedIndices = null, this.maxPointSize = H, this.hoveredPoint = void 0, this.focusedPoint = void 0, this.draggingPointIndex = void 0, this.hoveredLinkIndex = void 0, this.adjustedSpaceSize = k.spaceSize, this.isSpaceKeyPressed = !1, this.webglMaxTextureSize = 16384, this.hoveredPointRingColor = [1, 1, 1, Fe], this.focusedPointRingColor = [1, 1, 1, Ee], this.hoveredLinkColor = [-1, -1, -1, -1], this.greyoutPointColor = [-1, -1, -1, -1], this.isDarkenGreyout = !1, this.isLinkHoveringEnabled = !1, this.alphaTarget = 0, this.scalePointX = Q(), this.scalePointY = Q(), this.random = new Se(), this._backgroundColor = [0, 0, 0, 0], this.alphaDecay = (t) => 1 - Math.pow(K, 1 / t);
23
+ this.pointsTextureSize = 0, this.linksTextureSize = 0, this.alpha = 1, this.transform = V.create(), this.screenSize = [0, 0], this.mousePosition = [0, 0], this.screenMousePosition = [0, 0], this.selectedArea = [[0, 0], [0, 0]], this.isSimulationRunning = !1, this.simulationProgress = 0, this.selectedIndices = null, this.maxPointSize = H, this.hoveredPoint = void 0, this.focusedPoint = void 0, this.draggingPointIndex = void 0, this.hoveredLinkIndex = void 0, this.adjustedSpaceSize = k.spaceSize, this.isSpaceKeyPressed = !1, this.webglMaxTextureSize = 16384, this.hoveredPointRingColor = [1, 1, 1, Be], this.focusedPointRingColor = [1, 1, 1, be], this.hoveredLinkColor = [-1, -1, -1, -1], this.greyoutPointColor = [-1, -1, -1, -1], this.isDarkenGreyout = !1, this.isLinkHoveringEnabled = !1, this.alphaTarget = 0, this.scalePointX = oe(), this.scalePointY = oe(), this.random = new Re(), this._backgroundColor = [0, 0, 0, 0], this.alphaDecay = (t) => 1 - Math.pow(K, 1 / t);
24
24
  }
25
25
  get backgroundColor() {
26
26
  return this._backgroundColor;
@@ -141,7 +141,7 @@ class Pe {
141
141
  }
142
142
  set backgroundColor(t) {
143
143
  this._backgroundColor = t;
144
- const i = Ae(t[0], t[1], t[2]);
144
+ const i = De(t[0], t[1], t[2]);
145
145
  document.documentElement.style.setProperty("--cosmosgl-attribution-color", i > 0.65 ? "black" : "white"), document.documentElement.style.setProperty("--cosmosgl-error-message-color", i > 0.65 ? "black" : "white"), this.div && (this.div.style.backgroundColor = `rgba(${t[0] * 255}, ${t[1] * 255}, ${t[2] * 255}, ${t[3]})`), this.isDarkenGreyout = i < 0.65;
146
146
  }
147
147
  addRandomSeed(t) {
@@ -214,13 +214,13 @@ class Pe {
214
214
  return (this.alphaTarget - this.alpha) * this.alphaDecay(t);
215
215
  }
216
216
  }
217
- const Re = (e) => typeof e == "function", ie = (e) => Array.isArray(e), xe = (e) => e instanceof Object, ve = (e) => e instanceof Object ? e.constructor.name !== "Function" && e.constructor.name !== "Object" : !1, zt = (e) => xe(e) && !ie(e) && !Re(e) && !ve(e);
217
+ const Fe = (e) => typeof e == "function", le = (e) => Array.isArray(e), Ee = (e) => e instanceof Object, Ne = (e) => e instanceof Object ? e.constructor.name !== "Function" && e.constructor.name !== "Object" : !1, Yt = (e) => Ee(e) && !le(e) && !Fe(e) && !Ne(e);
218
218
  function z(e) {
219
219
  let t;
220
- if (ie(e))
220
+ if (le(e))
221
221
  t = e;
222
222
  else {
223
- const i = fe(e), o = i == null ? void 0 : i.rgb();
223
+ const i = ge(e), o = i == null ? void 0 : i.rgb();
224
224
  t = [
225
225
  ((o == null ? void 0 : o.r) ?? 0) / 255,
226
226
  ((o == null ? void 0 : o.g) ?? 0) / 255,
@@ -230,7 +230,7 @@ function z(e) {
230
230
  }
231
231
  return t;
232
232
  }
233
- function Ae(e, t, i) {
233
+ function De(e, t, i) {
234
234
  return 0.2126 * e + 0.7152 * t + 0.0722 * i;
235
235
  }
236
236
  function I(e, t, i = 0, o = 0, s, n) {
@@ -241,7 +241,7 @@ function I(e, t, i = 0, o = 0, s, n) {
241
241
  sourceHeight: n
242
242
  });
243
243
  }
244
- function J(e, t) {
244
+ function ne(e, t) {
245
245
  switch (e.info.type) {
246
246
  case "webgl": {
247
247
  const i = e.gl.getParameter(L.ALIASED_POINT_SIZE_RANGE);
@@ -253,14 +253,14 @@ function J(e, t) {
253
253
  return H / t;
254
254
  }
255
255
  }
256
- function me(e, t, i) {
256
+ function Me(e, t, i) {
257
257
  return Math.min(Math.max(e, t), i);
258
258
  }
259
259
  function N(e) {
260
260
  return e != null && !Number.isNaN(e);
261
261
  }
262
- function Ie(e, t) {
263
- return he.sanitize(e, {
262
+ function Oe(e, t) {
263
+ return Ce.sanitize(e, {
264
264
  // Default configuration: allow common safe HTML elements and attributes
265
265
  ALLOWED_TAGS: ["a", "b", "i", "em", "strong", "span", "div", "p", "br"],
266
266
  ALLOWED_ATTR: ["href", "target", "class", "id", "style"],
@@ -268,8 +268,8 @@ function Ie(e, t) {
268
268
  ...t
269
269
  });
270
270
  }
271
- var oe = /* @__PURE__ */ ((e) => (e[e.Circle = 0] = "Circle", e[e.Square = 1] = "Square", e[e.Triangle = 2] = "Triangle", e[e.Diamond = 3] = "Diamond", e[e.Pentagon = 4] = "Pentagon", e[e.Hexagon = 5] = "Hexagon", e[e.Star = 6] = "Star", e[e.Cross = 7] = "Cross", e[e.None = 8] = "None", e))(oe || {});
272
- class ye {
271
+ var ce = /* @__PURE__ */ ((e) => (e[e.Circle = 0] = "Circle", e[e.Square = 1] = "Square", e[e.Triangle = 2] = "Triangle", e[e.Diamond = 3] = "Diamond", e[e.Pentagon = 4] = "Pentagon", e[e.Hexagon = 5] = "Hexagon", e[e.Star = 6] = "Star", e[e.Cross = 7] = "Cross", e[e.None = 8] = "None", e))(ce || {});
272
+ class Ue {
273
273
  constructor(t) {
274
274
  this._config = t;
275
275
  }
@@ -475,7 +475,7 @@ const k = {
475
475
  // Points
476
476
  pointDefaultColor: "#b3b3b3",
477
477
  pointDefaultSize: 4,
478
- pointDefaultShape: oe.Circle,
478
+ pointDefaultShape: ce.Circle,
479
479
  pointOpacity: 1,
480
480
  pointGreyoutOpacity: void 0,
481
481
  pointGreyoutColor: void 0,
@@ -571,15 +571,15 @@ const k = {
571
571
  randomSeed: void 0,
572
572
  rescalePositions: void 0,
573
573
  attribution: ""
574
- }, Fe = 0.7, Ee = 0.95, Z = (e) => Array.isArray(e) ? [...e] : e;
575
- function se() {
574
+ }, Be = 0.7, be = 0.95, Z = (e) => Array.isArray(e) ? [...e] : e;
575
+ function fe() {
576
576
  const e = {};
577
577
  for (const [t, i] of Object.entries(k))
578
578
  e[t] = Z(i);
579
579
  return e;
580
580
  }
581
- function Ne(e) {
582
- Object.assign(e, se());
581
+ function ze(e) {
582
+ Object.assign(e, fe());
583
583
  }
584
584
  function Y(e, t, i = !1) {
585
585
  const o = {};
@@ -592,7 +592,7 @@ class w {
592
592
  this._debugRandomNumber = Math.floor(Math.random() * 1e3), this.device = t, this.config = i, this.store = o, this.data = s, n && (this.points = n);
593
593
  }
594
594
  }
595
- const De = `#version 300 es
595
+ const ke = `#version 300 es
596
596
  precision highp float;
597
597
 
598
598
  in vec4 rgba;
@@ -600,7 +600,7 @@ out vec4 fragColor;
600
600
 
601
601
  void main() {
602
602
  fragColor = rgba;
603
- }`, Me = `#version 300 es
603
+ }`, we = `#version 300 es
604
604
  precision highp float;
605
605
 
606
606
  uniform sampler2D positionsTexture;
@@ -626,7 +626,7 @@ void main() {
626
626
  gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
627
627
  gl_PointSize = 1.0;
628
628
  }
629
- `, Oe = `#version 300 es
629
+ `, Ve = `#version 300 es
630
630
  precision highp float;
631
631
 
632
632
  uniform sampler2D positionsTexture;
@@ -673,7 +673,7 @@ function X(e) {
673
673
  return t;
674
674
  }
675
675
  function T(e, t) {
676
- const i = de.getInfo(e);
676
+ const i = pe.getInfo(e);
677
677
  return t * (i.bytesPerPixel ?? 0);
678
678
  }
679
679
  const D = `#version 300 es
@@ -690,7 +690,7 @@ void main() {
690
690
  gl_Position = vec4(vertexCoord, 0, 1);
691
691
  }
692
692
  `;
693
- class Ue extends w {
693
+ class He extends w {
694
694
  create() {
695
695
  var s;
696
696
  const { device: t, store: i } = this, { pointsTextureSize: o } = i;
@@ -741,8 +741,8 @@ class Ue extends w {
741
741
  }
742
742
  }
743
743
  })), this.calculateCentermassCommand || (this.calculateCentermassCommand = new x(t, {
744
- fs: De,
745
- vs: Me,
744
+ fs: ke,
745
+ vs: we,
746
746
  topology: "point-list",
747
747
  attributes: {
748
748
  ...this.pointIndices && { pointIndices: this.pointIndices }
@@ -771,7 +771,7 @@ class Ue extends w {
771
771
  depthCompare: "always"
772
772
  }
773
773
  })), this.calculateCentermassCommand.setVertexCount(this.data.pointsNumber ?? 0), this.runCommand || (this.runCommand = new x(t, {
774
- fs: Oe,
774
+ fs: Ve,
775
775
  vs: D,
776
776
  topology: "triangle-strip",
777
777
  vertexCount: 4,
@@ -833,7 +833,7 @@ class Ue extends w {
833
833
  (t = this.calculateCentermassCommand) == null || t.destroy(), this.calculateCentermassCommand = void 0, (i = this.runCommand) == null || i.destroy(), this.runCommand = void 0, this.centermassFbo && !this.centermassFbo.destroyed && this.centermassFbo.destroy(), this.centermassFbo = void 0, this.centermassTexture && !this.centermassTexture.destroyed && this.centermassTexture.destroy(), this.centermassTexture = void 0, (o = this.calculateUniformStore) == null || o.destroy(), this.calculateUniformStore = void 0, (s = this.forceUniformStore) == null || s.destroy(), this.forceUniformStore = void 0, this.pointIndices && !this.pointIndices.destroyed && this.pointIndices.destroy(), this.pointIndices = void 0, this.forceVertexCoordBuffer && !this.forceVertexCoordBuffer.destroyed && this.forceVertexCoordBuffer.destroy(), this.forceVertexCoordBuffer = void 0, this.previousPointsTextureSize = void 0;
834
834
  }
835
835
  }
836
- const Be = `#version 300 es
836
+ const Xe = `#version 300 es
837
837
  precision highp float;
838
838
 
839
839
  uniform sampler2D positionsTexture;
@@ -873,7 +873,7 @@ void main() {
873
873
 
874
874
  fragColor = velocity;
875
875
  }`;
876
- class be extends w {
876
+ class We extends w {
877
877
  initPrograms() {
878
878
  const { device: t, points: i, store: o } = this;
879
879
  !i || !o.pointsTextureSize || (this.vertexCoordBuffer || (this.vertexCoordBuffer = t.createBuffer({
@@ -887,7 +887,7 @@ class be extends w {
887
887
  }
888
888
  }
889
889
  })), this.runCommand || (this.runCommand = new x(t, {
890
- fs: Be,
890
+ fs: Xe,
891
891
  vs: D,
892
892
  topology: "triangle-strip",
893
893
  vertexCount: 4,
@@ -939,7 +939,7 @@ class be extends w {
939
939
  (t = this.runCommand) == null || t.destroy(), this.runCommand = void 0, (i = this.uniformStore) == null || i.destroy(), this.uniformStore = void 0, this.vertexCoordBuffer && !this.vertexCoordBuffer.destroyed && this.vertexCoordBuffer.destroy(), this.vertexCoordBuffer = void 0;
940
940
  }
941
941
  }
942
- function ze(e) {
942
+ function Ye(e) {
943
943
  return `#version 300 es
944
944
  precision highp float;
945
945
 
@@ -1035,7 +1035,7 @@ function A(e, t) {
1035
1035
  return !e || e.length !== 4 ? t : [e[0], e[1], e[2], e[3]];
1036
1036
  }
1037
1037
  var j = /* @__PURE__ */ ((e) => (e.OUTGOING = "outgoing", e.INCOMING = "incoming", e))(j || {});
1038
- class G extends w {
1038
+ class re extends w {
1039
1039
  constructor() {
1040
1040
  super(...arguments), this.linkFirstIndicesAndAmount = new Float32Array(), this.indices = new Float32Array(), this.maxPointDegree = 0;
1041
1041
  }
@@ -1119,7 +1119,7 @@ class G extends w {
1119
1119
  }
1120
1120
  }
1121
1121
  })), this.runCommand || (this.runCommand = new x(t, {
1122
- fs: ze(this.maxPointDegree),
1122
+ fs: Ye(this.maxPointDegree),
1123
1123
  vs: D,
1124
1124
  topology: "triangle-strip",
1125
1125
  vertexCount: 4,
@@ -1179,7 +1179,7 @@ class G extends w {
1179
1179
  (t = this.runCommand) == null || t.destroy(), this.runCommand = void 0, this.linkFirstIndicesAndAmountTexture && !this.linkFirstIndicesAndAmountTexture.destroyed && this.linkFirstIndicesAndAmountTexture.destroy(), this.linkFirstIndicesAndAmountTexture = void 0, this.indicesTexture && !this.indicesTexture.destroyed && this.indicesTexture.destroy(), this.indicesTexture = void 0, this.biasAndStrengthTexture && !this.biasAndStrengthTexture.destroyed && this.biasAndStrengthTexture.destroy(), this.biasAndStrengthTexture = void 0, this.randomDistanceTexture && !this.randomDistanceTexture.destroyed && this.randomDistanceTexture.destroy(), this.randomDistanceTexture = void 0, (i = this.uniformStore) == null || i.destroy(), this.uniformStore = void 0, this.vertexCoordBuffer && !this.vertexCoordBuffer.destroyed && this.vertexCoordBuffer.destroy(), this.vertexCoordBuffer = void 0;
1180
1180
  }
1181
1181
  }
1182
- const ke = `#version 300 es
1182
+ const Le = `#version 300 es
1183
1183
  precision highp float;
1184
1184
 
1185
1185
  in vec4 vColor;
@@ -1187,7 +1187,7 @@ out vec4 fragColor;
1187
1187
 
1188
1188
  void main() {
1189
1189
  fragColor = vColor;
1190
- }`, we = `#version 300 es
1190
+ }`, Ke = `#version 300 es
1191
1191
  precision highp float;
1192
1192
 
1193
1193
  uniform sampler2D positionsTexture;
@@ -1223,7 +1223,7 @@ void main() {
1223
1223
 
1224
1224
  gl_Position = vec4(levelPosition, 0.0, 1.0);
1225
1225
  gl_PointSize = 1.0;
1226
- }`, Ve = `#version 300 es
1226
+ }`, Ze = `#version 300 es
1227
1227
  precision highp float;
1228
1228
 
1229
1229
  uniform sampler2D positionsTexture;
@@ -1360,7 +1360,7 @@ void main() {
1360
1360
  }
1361
1361
 
1362
1362
  fragColor = velocity;
1363
- }`, He = `#version 300 es
1363
+ }`, je = `#version 300 es
1364
1364
  precision highp float;
1365
1365
 
1366
1366
  uniform sampler2D positionsTexture;
@@ -1421,7 +1421,7 @@ void main() {
1421
1421
 
1422
1422
  fragColor = velocity;
1423
1423
  }`;
1424
- class Xe extends w {
1424
+ class qe extends w {
1425
1425
  constructor() {
1426
1426
  super(...arguments), this.levels = 0, this.levelTargets = /* @__PURE__ */ new Map();
1427
1427
  }
@@ -1507,8 +1507,8 @@ class Xe extends w {
1507
1507
  }
1508
1508
  }
1509
1509
  })), this.calculateLevelsCommand || (this.calculateLevelsCommand = new x(t, {
1510
- fs: ke,
1511
- vs: we,
1510
+ fs: Le,
1511
+ vs: Ke,
1512
1512
  topology: "point-list",
1513
1513
  vertexCount: o.pointsNumber,
1514
1514
  attributes: {
@@ -1561,7 +1561,7 @@ class Xe extends w {
1561
1561
  })), this.forceVertexCoordBuffer || (this.forceVertexCoordBuffer = t.createBuffer({
1562
1562
  data: new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1])
1563
1563
  })), this.forceCommand || (this.forceCommand = new x(t, {
1564
- fs: Ve,
1564
+ fs: Ze,
1565
1565
  vs: D,
1566
1566
  topology: "triangle-strip",
1567
1567
  vertexCount: 4,
@@ -1605,7 +1605,7 @@ class Xe extends w {
1605
1605
  }
1606
1606
  }
1607
1607
  })), this.forceFromItsOwnCentermassCommand || (this.forceFromItsOwnCentermassCommand = new x(t, {
1608
- fs: He,
1608
+ fs: je,
1609
1609
  vs: D,
1610
1610
  topology: "triangle-strip",
1611
1611
  vertexCount: 4,
@@ -1716,7 +1716,7 @@ class Xe extends w {
1716
1716
  s.end();
1717
1717
  }
1718
1718
  }
1719
- const We = `#version 300 es
1719
+ const Qe = `#version 300 es
1720
1720
  precision highp float;
1721
1721
 
1722
1722
  uniform sampler2D positionsTexture;
@@ -1751,7 +1751,7 @@ void main() {
1751
1751
 
1752
1752
  fragColor = velocity;
1753
1753
  }`;
1754
- class Ye extends w {
1754
+ class $e extends w {
1755
1755
  initPrograms() {
1756
1756
  const { device: t, points: i } = this;
1757
1757
  i && (this.vertexCoordBuffer || (this.vertexCoordBuffer = t.createBuffer({
@@ -1764,7 +1764,7 @@ class Ye extends w {
1764
1764
  }
1765
1765
  }
1766
1766
  })), this.runCommand || (this.runCommand = new x(t, {
1767
- fs: We,
1767
+ fs: Qe,
1768
1768
  vs: D,
1769
1769
  topology: "triangle-strip",
1770
1770
  vertexCount: 4,
@@ -1815,7 +1815,7 @@ class Ye extends w {
1815
1815
  (t = this.runCommand) == null || t.destroy(), this.runCommand = void 0, (i = this.uniformStore) == null || i.destroy(), this.uniformStore = void 0, this.vertexCoordBuffer && !this.vertexCoordBuffer.destroyed && this.vertexCoordBuffer.destroy(), this.vertexCoordBuffer = void 0;
1816
1816
  }
1817
1817
  }
1818
- const Le = `#version 300 es
1818
+ const Je = `#version 300 es
1819
1819
  #ifdef GL_ES
1820
1820
  precision highp float;
1821
1821
  #endif
@@ -1826,7 +1826,7 @@ out vec4 fragColor;
1826
1826
 
1827
1827
  void main() {
1828
1828
  fragColor = rgba;
1829
- }`, Ke = `#version 300 es
1829
+ }`, Ge = `#version 300 es
1830
1830
  #ifdef GL_ES
1831
1831
  precision highp float;
1832
1832
  #endif
@@ -1864,7 +1864,7 @@ void main() {
1864
1864
  gl_Position = vec4(xy, 0.0, 1.0);
1865
1865
  gl_PointSize = 1.0;
1866
1866
  }
1867
- `, Ze = `#version 300 es
1867
+ `, et = `#version 300 es
1868
1868
  #ifdef GL_ES
1869
1869
  precision highp float;
1870
1870
  #endif
@@ -1919,7 +1919,7 @@ void main() {
1919
1919
 
1920
1920
  fragColor = velocity;
1921
1921
  }`;
1922
- class je extends w {
1922
+ class tt extends w {
1923
1923
  constructor() {
1924
1924
  super(...arguments), this.cachedCentroidPositions = null;
1925
1925
  }
@@ -2035,8 +2035,8 @@ class je extends w {
2035
2035
  }
2036
2036
  }
2037
2037
  })), this.calculateCentermassCommand || (this.calculateCentermassCommand = new x(t, {
2038
- fs: Le,
2039
- vs: Ke,
2038
+ fs: Je,
2039
+ vs: Ge,
2040
2040
  topology: "point-list",
2041
2041
  vertexCount: o.pointsNumber ?? 0,
2042
2042
  attributes: {
@@ -2083,7 +2083,7 @@ class je extends w {
2083
2083
  })), this.applyForcesVertexCoordBuffer || (this.applyForcesVertexCoordBuffer = t.createBuffer({
2084
2084
  data: new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1])
2085
2085
  })), this.applyForcesCommand || (this.applyForcesCommand = new x(t, {
2086
- fs: Ze,
2086
+ fs: et,
2087
2087
  vs: D,
2088
2088
  topology: "triangle-strip",
2089
2089
  vertexCount: 4,
@@ -2170,7 +2170,7 @@ class je extends w {
2170
2170
  this.cachedCentroidPositions = null, (t = this.calculateCentermassCommand) == null || t.destroy(), this.calculateCentermassCommand = void 0, (i = this.applyForcesCommand) == null || i.destroy(), this.applyForcesCommand = void 0, this.centermassFbo && !this.centermassFbo.destroyed && this.centermassFbo.destroy(), this.centermassFbo = void 0, this.clusterTexture && !this.clusterTexture.destroyed && this.clusterTexture.destroy(), this.clusterTexture = void 0, this.clusterPositionsTexture && !this.clusterPositionsTexture.destroyed && this.clusterPositionsTexture.destroy(), this.clusterPositionsTexture = void 0, this.clusterForceCoefficientTexture && !this.clusterForceCoefficientTexture.destroyed && this.clusterForceCoefficientTexture.destroy(), this.clusterForceCoefficientTexture = void 0, this.centermassTexture && !this.centermassTexture.destroyed && this.centermassTexture.destroy(), this.centermassTexture = void 0, (o = this.calculateCentermassUniformStore) == null || o.destroy(), this.calculateCentermassUniformStore = void 0, (s = this.applyForcesUniformStore) == null || s.destroy(), this.applyForcesUniformStore = void 0, this.pointIndices && !this.pointIndices.destroyed && this.pointIndices.destroy(), this.pointIndices = void 0, this.applyForcesVertexCoordBuffer && !this.applyForcesVertexCoordBuffer.destroyed && this.applyForcesVertexCoordBuffer.destroy(), this.applyForcesVertexCoordBuffer = void 0;
2171
2171
  }
2172
2172
  }
2173
- const qe = `
2173
+ const it = `
2174
2174
  #gl-bench {
2175
2175
  position:absolute;
2176
2176
  right:0;
@@ -2223,11 +2223,11 @@ const qe = `
2223
2223
  stroke: #8288e4;
2224
2224
  }
2225
2225
  `;
2226
- class ee {
2226
+ class ae {
2227
2227
  constructor(t) {
2228
2228
  this.destroy();
2229
2229
  const i = t.getContext("webgl") || t.getContext("experimental-webgl");
2230
- this.bench = new pe(i, { css: qe });
2230
+ this.bench = new xe(i, { css: it });
2231
2231
  }
2232
2232
  begin() {
2233
2233
  var t;
@@ -2241,7 +2241,7 @@ class ee {
2241
2241
  this.bench = void 0, b("#gl-bench").remove();
2242
2242
  }
2243
2243
  }
2244
- const Qe = (
2244
+ const ot = (
2245
2245
  /* glsl */
2246
2246
  `
2247
2247
  vec2 conicParametricCurve(vec2 A, vec2 B, vec2 ControlPoint, float t, float w) {
@@ -2250,10 +2250,10 @@ vec2 conicParametricCurve(vec2 A, vec2 B, vec2 ControlPoint, float t, float w) {
2250
2250
  return divident / divisor;
2251
2251
  }
2252
2252
  `
2253
- ), te = {
2253
+ ), de = {
2254
2254
  name: "conicParametricCurve",
2255
- vs: Qe
2256
- }, $e = `#version 300 es
2255
+ vs: ot
2256
+ }, st = `#version 300 es
2257
2257
  #ifdef GL_ES
2258
2258
  precision highp float;
2259
2259
  #endif
@@ -2311,7 +2311,7 @@ void main() {
2311
2311
  }
2312
2312
  } else fragColor = vec4(color, opacity);
2313
2313
 
2314
- }`, Je = `#version 300 es
2314
+ }`, nt = `#version 300 es
2315
2315
  #ifdef GL_ES
2316
2316
  precision highp float;
2317
2317
  #endif
@@ -2552,7 +2552,7 @@ void main() {
2552
2552
  #endif
2553
2553
 
2554
2554
  gl_Position = vec4(final.rg, 0, 1);
2555
- }`, Ge = `#version 300 es
2555
+ }`, rt = `#version 300 es
2556
2556
  #ifdef GL_ES
2557
2557
  precision highp float;
2558
2558
  #endif
@@ -2564,7 +2564,7 @@ out vec4 fragColor;
2564
2564
  void main() {
2565
2565
  fragColor = rgba;
2566
2566
  }
2567
- `, et = `#version 300 es
2567
+ `, at = `#version 300 es
2568
2568
  #ifdef GL_ES
2569
2569
  precision highp float;
2570
2570
  #endif
@@ -2645,7 +2645,7 @@ void main() {
2645
2645
 
2646
2646
  gl_PointSize = 1.0;
2647
2647
  }
2648
- `, tt = `#version 300 es
2648
+ `, dt = `#version 300 es
2649
2649
  #ifdef GL_ES
2650
2650
  precision highp float;
2651
2651
  #endif
@@ -2685,7 +2685,7 @@ void main() {
2685
2685
  // No link at this position, output -1 to indicate no hover
2686
2686
  fragColor = vec4(-1.0, 0.0, 0.0, 0.0);
2687
2687
  }
2688
- } `, it = `#version 300 es
2688
+ } `, lt = `#version 300 es
2689
2689
  #ifdef GL_ES
2690
2690
  precision highp float;
2691
2691
  #endif
@@ -2694,15 +2694,15 @@ in vec2 vertexCoord;
2694
2694
 
2695
2695
  void main() {
2696
2696
  gl_Position = vec4(vertexCoord, 0.0, 1.0);
2697
- } `, ot = (e) => {
2698
- const t = ue().exponent(2).range([0, 1]).domain([-1, 1]), i = _e(0, e).map((s) => -0.5 + s / e);
2697
+ } `, ct = (e) => {
2698
+ const t = Pe().exponent(2).range([0, 1]).domain([-1, 1]), i = ve(0, e).map((s) => -0.5 + s / e);
2699
2699
  i.push(0.5);
2700
2700
  const o = new Array(i.length * 2);
2701
2701
  return i.forEach((s, n) => {
2702
2702
  o[n * 2] = [t(s * 2), 0.5], o[n * 2 + 1] = [t(s * 2), -0.5];
2703
2703
  }), o;
2704
2704
  };
2705
- class st extends w {
2705
+ class ft extends w {
2706
2706
  initPrograms() {
2707
2707
  var r;
2708
2708
  const { device: t, config: i, store: o, data: s } = this;
@@ -2790,9 +2790,9 @@ class st extends w {
2790
2790
  }
2791
2791
  }
2792
2792
  })), this.drawCurveCommand || (this.drawCurveCommand = new x(t, {
2793
- vs: Je,
2794
- fs: $e,
2795
- modules: [te],
2793
+ vs: nt,
2794
+ fs: st,
2795
+ modules: [de],
2796
2796
  topology: "triangle-strip",
2797
2797
  vertexCount: ((r = this.curveLineGeometry) == null ? void 0 : r.length) ?? 0,
2798
2798
  attributes: {
@@ -2859,8 +2859,8 @@ class st extends w {
2859
2859
  }
2860
2860
  }
2861
2861
  })), this.hoveredLineIndexCommand || (this.hoveredLineIndexCommand = new x(t, {
2862
- vs: it,
2863
- fs: tt,
2862
+ vs: lt,
2863
+ fs: dt,
2864
2864
  topology: "triangle-strip",
2865
2865
  vertexCount: 4,
2866
2866
  attributes: {
@@ -2900,9 +2900,9 @@ class st extends w {
2900
2900
  }
2901
2901
  }
2902
2902
  })), this.fillSampledLinksFboCommand || (this.fillSampledLinksFboCommand = new x(t, {
2903
- fs: Ge,
2904
- vs: et,
2905
- modules: [te],
2903
+ fs: rt,
2904
+ vs: at,
2905
+ modules: [de],
2906
2906
  topology: "point-list",
2907
2907
  vertexCount: s.linksNumber ?? 0,
2908
2908
  attributes: {
@@ -3068,7 +3068,7 @@ class st extends w {
3068
3068
  }
3069
3069
  updateCurveLineGeometry() {
3070
3070
  const { device: t, config: { curvedLinks: i, curvedLinkSegments: o } } = this;
3071
- this.curveLineGeometry = ot(i ? o : 1);
3071
+ this.curveLineGeometry = ct(i ? o : 1);
3072
3072
  const s = new Float32Array(this.curveLineGeometry.length * 2);
3073
3073
  for (let n = 0; n < this.curveLineGeometry.length; n++)
3074
3074
  s[n * 2] = this.curveLineGeometry[n][0], s[n * 2 + 1] = this.curveLineGeometry[n][1];
@@ -3206,7 +3206,7 @@ class st extends w {
3206
3206
  (t = this.drawCurveCommand) == null || t.destroy(), this.drawCurveCommand = void 0, (i = this.hoveredLineIndexCommand) == null || i.destroy(), this.hoveredLineIndexCommand = void 0, (o = this.fillSampledLinksFboCommand) == null || o.destroy(), this.fillSampledLinksFboCommand = void 0, this.linkIndexFbo && !this.linkIndexFbo.destroyed && this.linkIndexFbo.destroy(), this.linkIndexFbo = void 0, this.sampledLinksFbo && !this.sampledLinksFbo.destroyed && this.sampledLinksFbo.destroy(), this.sampledLinksFbo = void 0, this.hoveredLineIndexFbo && !this.hoveredLineIndexFbo.destroyed && this.hoveredLineIndexFbo.destroy(), this.hoveredLineIndexFbo = void 0, this.linkIndexTexture && !this.linkIndexTexture.destroyed && this.linkIndexTexture.destroy(), this.linkIndexTexture = void 0, this.hoveredLineIndexTexture && !this.hoveredLineIndexTexture.destroyed && this.hoveredLineIndexTexture.destroy(), this.hoveredLineIndexTexture = void 0, (s = this.drawLineUniformStore) == null || s.destroy(), this.drawLineUniformStore = void 0, (n = this.hoveredLineIndexUniformStore) == null || n.destroy(), this.hoveredLineIndexUniformStore = void 0, (r = this.fillSampledLinksUniformStore) == null || r.destroy(), this.fillSampledLinksUniformStore = void 0, this.pointABuffer && !this.pointABuffer.destroyed && this.pointABuffer.destroy(), this.pointABuffer = void 0, this.pointBBuffer && !this.pointBBuffer.destroyed && this.pointBBuffer.destroy(), this.pointBBuffer = void 0, this.colorBuffer && !this.colorBuffer.destroyed && this.colorBuffer.destroy(), this.colorBuffer = void 0, this.widthBuffer && !this.widthBuffer.destroyed && this.widthBuffer.destroy(), this.widthBuffer = void 0, this.arrowBuffer && !this.arrowBuffer.destroyed && this.arrowBuffer.destroy(), this.arrowBuffer = void 0, this.curveLineBuffer && !this.curveLineBuffer.destroyed && this.curveLineBuffer.destroy(), this.curveLineBuffer = void 0, this.linkIndexBuffer && !this.linkIndexBuffer.destroyed && this.linkIndexBuffer.destroy(), this.linkIndexBuffer = void 0, this.quadBuffer && !this.quadBuffer.destroyed && this.quadBuffer.destroy(), this.quadBuffer = void 0;
3207
3207
  }
3208
3208
  }
3209
- const nt = `#version 300 es
3209
+ const ht = `#version 300 es
3210
3210
  #ifdef GL_ES
3211
3211
  precision highp float;
3212
3212
  #endif
@@ -3465,7 +3465,7 @@ void main() {
3465
3465
  finalPointAlpha
3466
3466
  );
3467
3467
  }
3468
- `, rt = `#version 300 es
3468
+ `, ut = `#version 300 es
3469
3469
  #ifdef GL_ES
3470
3470
  precision highp float;
3471
3471
  #endif
@@ -3667,7 +3667,7 @@ void main() {
3667
3667
  imageAtlasUV = atlasCoords;
3668
3668
  }
3669
3669
  #endif
3670
- } `, at = `#version 300 es
3670
+ } `, St = `#version 300 es
3671
3671
  #ifdef GL_ES
3672
3672
  precision highp float;
3673
3673
  #endif
@@ -3755,7 +3755,7 @@ void main() {
3755
3755
  }
3756
3756
  }
3757
3757
 
3758
- `, dt = `#version 300 es
3758
+ `, pt = `#version 300 es
3759
3759
  #ifdef GL_ES
3760
3760
  precision highp float;
3761
3761
  #endif
@@ -3843,7 +3843,7 @@ void main() {
3843
3843
  if (pointInPolygon(screenPos, polygonPathTexture, polygonPathLength)) {
3844
3844
  fragColor.r = 1.0;
3845
3845
  }
3846
- } `, lt = `#version 300 es
3846
+ } `, _t = `#version 300 es
3847
3847
  #ifdef GL_ES
3848
3848
  precision highp float;
3849
3849
  #endif
@@ -3886,7 +3886,7 @@ void main () {
3886
3886
  float opacity = smoothstep(r, r * smoothing, 1.0);
3887
3887
  float stroke = smoothstep(width, width * smoothing, r);
3888
3888
  fragColor = vec4(rgbColor, opacity * stroke * pointOpacity);
3889
- }`, ct = `#version 300 es
3889
+ }`, Tt = `#version 300 es
3890
3890
  #ifdef GL_ES
3891
3891
  precision highp float;
3892
3892
  #endif
@@ -4030,7 +4030,7 @@ void main () {
4030
4030
  #endif
4031
4031
 
4032
4032
  gl_Position = vec4(final.rg, 0, 1);
4033
- }`, ft = `#version 300 es
4033
+ }`, gt = `#version 300 es
4034
4034
  #ifdef GL_ES
4035
4035
  precision highp float;
4036
4036
  #endif
@@ -4044,7 +4044,7 @@ void main() {
4044
4044
  discard;
4045
4045
  }
4046
4046
  fragColor = rgba;
4047
- }`, ht = `#version 300 es
4047
+ }`, Ct = `#version 300 es
4048
4048
  #ifdef GL_ES
4049
4049
  precision highp float;
4050
4050
  #endif
@@ -4159,7 +4159,7 @@ void main() {
4159
4159
  }
4160
4160
 
4161
4161
  gl_PointSize = 1.0;
4162
- }`, ut = `#version 300 es
4162
+ }`, Pt = `#version 300 es
4163
4163
  #ifdef GL_ES
4164
4164
  precision highp float;
4165
4165
  #endif
@@ -4170,7 +4170,7 @@ out vec4 fragColor;
4170
4170
 
4171
4171
  void main() {
4172
4172
  fragColor = rgba;
4173
- }`, St = `#version 300 es
4173
+ }`, Rt = `#version 300 es
4174
4174
  #ifdef GL_ES
4175
4175
  precision highp float;
4176
4176
  #endif
@@ -4220,7 +4220,7 @@ void main() {
4220
4220
  gl_Position = vec4(2.0 * vec2(i, j) - 1.0, 0.0, 1.0);
4221
4221
 
4222
4222
  gl_PointSize = 1.0;
4223
- }`, pt = `#version 300 es
4223
+ }`, xt = `#version 300 es
4224
4224
  #ifdef GL_ES
4225
4225
  precision highp float;
4226
4226
  #endif
@@ -4270,7 +4270,7 @@ void main() {
4270
4270
  pointPosition.g = clamp(pointPosition.g, 0.0, spaceSize);
4271
4271
 
4272
4272
  fragColor = pointPosition;
4273
- }`, _t = `#version 300 es
4273
+ }`, vt = `#version 300 es
4274
4274
  #ifdef GL_ES
4275
4275
  precision highp float;
4276
4276
  #endif
@@ -4300,7 +4300,7 @@ void main() {
4300
4300
  fragColor = vec4(pointPosition.rg, 1.0, 1.0);
4301
4301
  }
4302
4302
 
4303
- `, Tt = `#version 300 es
4303
+ `, At = `#version 300 es
4304
4304
  #ifdef GL_ES
4305
4305
  precision highp float;
4306
4306
  #endif
@@ -4334,7 +4334,7 @@ void main() {
4334
4334
 
4335
4335
  fragColor = pointPosition;
4336
4336
  }`;
4337
- function gt(e, t = 16384) {
4337
+ function mt(e, t = 16384) {
4338
4338
  if (!(e != null && e.length))
4339
4339
  return null;
4340
4340
  let i = 0;
@@ -4369,7 +4369,7 @@ function gt(e, t = 16384) {
4369
4369
  atlasCoordsSize: s
4370
4370
  };
4371
4371
  }
4372
- class Ct extends w {
4372
+ class It extends w {
4373
4373
  constructor() {
4374
4374
  super(...arguments), this.imageCount = 0, this.areClusterCentroidsUpToDate = !1, this.isPositionsUpToDate = !1, this.polygonPathLength = 0;
4375
4375
  }
@@ -4511,7 +4511,7 @@ class Ct extends w {
4511
4511
  }
4512
4512
  }
4513
4513
  })), this.updatePositionCommand || (this.updatePositionCommand = new x(t, {
4514
- fs: pt,
4514
+ fs: xt,
4515
4515
  vs: D,
4516
4516
  topology: "triangle-strip",
4517
4517
  vertexCount: 4,
@@ -4545,7 +4545,7 @@ class Ct extends w {
4545
4545
  }
4546
4546
  }
4547
4547
  })), this.dragPointCommand || (this.dragPointCommand = new x(t, {
4548
- fs: Tt,
4548
+ fs: At,
4549
4549
  vs: D,
4550
4550
  topology: "triangle-strip",
4551
4551
  vertexCount: 4,
@@ -4647,8 +4647,8 @@ class Ct extends w {
4647
4647
  }
4648
4648
  }
4649
4649
  })), this.drawCommand || (this.drawCommand = new x(t, {
4650
- fs: nt,
4651
- vs: rt,
4650
+ fs: ht,
4651
+ vs: ut,
4652
4652
  topology: "point-list",
4653
4653
  vertexCount: s.pointsNumber ?? 0,
4654
4654
  attributes: {
@@ -4717,7 +4717,7 @@ class Ct extends w {
4717
4717
  }
4718
4718
  }
4719
4719
  })), this.findPointsOnAreaSelectionCommand || (this.findPointsOnAreaSelectionCommand = new x(t, {
4720
- fs: at,
4720
+ fs: St,
4721
4721
  vs: D,
4722
4722
  topology: "triangle-strip",
4723
4723
  vertexCount: 4,
@@ -4755,7 +4755,7 @@ class Ct extends w {
4755
4755
  }
4756
4756
  }
4757
4757
  })), this.findPointsOnPolygonSelectionCommand || (this.findPointsOnPolygonSelectionCommand = new x(t, {
4758
- fs: dt,
4758
+ fs: pt,
4759
4759
  vs: D,
4760
4760
  topology: "triangle-strip",
4761
4761
  vertexCount: 4,
@@ -4805,8 +4805,8 @@ class Ct extends w {
4805
4805
  }
4806
4806
  }
4807
4807
  })), this.findHoveredPointCommand || (this.findHoveredPointCommand = new x(t, {
4808
- fs: ft,
4809
- vs: ht,
4808
+ fs: gt,
4809
+ vs: Ct,
4810
4810
  topology: "point-list",
4811
4811
  vertexCount: s.pointsNumber ?? 0,
4812
4812
  attributes: {
@@ -4851,8 +4851,8 @@ class Ct extends w {
4851
4851
  }
4852
4852
  }
4853
4853
  })), this.fillSampledPointsFboCommand || (this.fillSampledPointsFboCommand = new x(t, {
4854
- fs: ut,
4855
- vs: St,
4854
+ fs: Pt,
4855
+ vs: Rt,
4856
4856
  topology: "point-list",
4857
4857
  vertexCount: s.pointsNumber ?? 0,
4858
4858
  attributes: {
@@ -4920,8 +4920,8 @@ class Ct extends w {
4920
4920
  }
4921
4921
  }
4922
4922
  })), this.drawHighlightedCommand || (this.drawHighlightedCommand = new x(t, {
4923
- fs: lt,
4924
- vs: ct,
4923
+ fs: _t,
4924
+ vs: Tt,
4925
4925
  topology: "triangle-strip",
4926
4926
  vertexCount: 4,
4927
4927
  attributes: {
@@ -4963,7 +4963,7 @@ class Ct extends w {
4963
4963
  }
4964
4964
  }
4965
4965
  })), this.trackPointsCommand || (this.trackPointsCommand = new x(t, {
4966
- fs: _t,
4966
+ fs: vt,
4967
4967
  vs: D,
4968
4968
  topology: "triangle-strip",
4969
4969
  vertexCount: 4,
@@ -5131,7 +5131,7 @@ class Ct extends w {
5131
5131
  }));
5132
5132
  return;
5133
5133
  }
5134
- const s = gt(i.inputImageData, o.webglMaxTextureSize);
5134
+ const s = mt(i.inputImageData, o.webglMaxTextureSize);
5135
5135
  if (!s) {
5136
5136
  console.warn("Failed to create atlas from image data");
5137
5137
  return;
@@ -5335,7 +5335,7 @@ class Ct extends w {
5335
5335
  const t = this.device.beginRenderPass({
5336
5336
  framebuffer: this.currentPositionFbo
5337
5337
  });
5338
- this.updatePositionCommand.draw(t), t.end(), this.swapFbo(), this.isPositionsUpToDate = !1;
5338
+ this.updatePositionCommand.draw(t), t.end(), this.isPositionsUpToDate = !1;
5339
5339
  }
5340
5340
  drag() {
5341
5341
  var i;
@@ -5351,7 +5351,7 @@ class Ct extends w {
5351
5351
  const t = this.device.beginRenderPass({
5352
5352
  framebuffer: this.currentPositionFbo
5353
5353
  });
5354
- this.dragPointCommand.draw(t), t.end(), this.swapFbo(), this.isPositionsUpToDate = !1;
5354
+ this.dragPointCommand.draw(t), t.end(), this.isPositionsUpToDate = !1;
5355
5355
  }
5356
5356
  findPointsOnAreaSelection() {
5357
5357
  var i, o;
@@ -5619,9 +5619,9 @@ class Ct extends w {
5619
5619
  this.data.pointPositions[C * 2] = this.scaleX(i[C * 2]), this.data.pointPositions[C * 2 + 1] = this.scaleY(i[C * 2 + 1]);
5620
5620
  }
5621
5621
  }
5622
- class Pt {
5622
+ class yt {
5623
5623
  constructor(t, i) {
5624
- this.eventTransform = W, this.behavior = Te().scaleExtent([1e-3, 1 / 0]).on("start", (o) => {
5624
+ this.eventTransform = W, this.behavior = Ae().scaleExtent([1e-3, 1 / 0]).on("start", (o) => {
5625
5625
  var n, r;
5626
5626
  this.isRunning = !0;
5627
5627
  const s = !!o.sourceEvent;
@@ -5659,7 +5659,7 @@ class Pt {
5659
5659
  }
5660
5660
  const f = [this.store.scaleX(a), this.store.scaleX(d)], u = [this.store.scaleY(l), this.store.scaleY(c)];
5661
5661
  f[0] === f[1] && (f[0] -= 0.5, f[1] += 0.5), u[0] === u[1] && (u[0] += 0.5, u[1] -= 0.5);
5662
- const h = n * (1 - o * 2) / (f[1] - f[0]), p = r * (1 - o * 2) / (u[0] - u[1]), P = me(i ?? Math.min(h, p), ...this.behavior.scaleExtent()), m = (f[1] + f[0]) / 2, C = (u[1] + u[0]) / 2, v = n / 2 - m * P, y = r / 2 - C * P;
5662
+ const h = n * (1 - o * 2) / (f[1] - f[0]), p = r * (1 - o * 2) / (u[0] - u[1]), P = Me(i ?? Math.min(h, p), ...this.behavior.scaleExtent()), m = (f[1] + f[0]) / 2, C = (u[1] + u[0]) / 2, v = n / 2 - m * P, y = r / 2 - C * P;
5663
5663
  return W.translate(v, y).scale(P);
5664
5664
  }
5665
5665
  getDistanceToPoint(t) {
@@ -5684,9 +5684,9 @@ class Pt {
5684
5684
  return i ? n *= s : n *= Math.min(5, Math.max(1, s * 0.01)), Math.min(n, o) / 2;
5685
5685
  }
5686
5686
  }
5687
- class Rt {
5687
+ class Ft {
5688
5688
  constructor(t, i) {
5689
- this.isActive = !1, this.behavior = ge().subject((o) => this.store.hoveredPoint && !this.store.isSpaceKeyPressed ? { x: o.x, y: o.y } : void 0).on("start", (o) => {
5689
+ this.isActive = !1, this.behavior = me().subject((o) => this.store.hoveredPoint && !this.store.isSpaceKeyPressed ? { x: o.x, y: o.y } : void 0).on("start", (o) => {
5690
5690
  var s, n;
5691
5691
  this.store.hoveredPoint && (this.store.draggingPointIndex = this.store.hoveredPoint.index, this.isActive = !0, (n = (s = this.config).onDragStart) == null || n.call(s, o));
5692
5692
  }).on("drag", (o) => {
@@ -5698,14 +5698,14 @@ class Rt {
5698
5698
  }), this.store = t, this.config = i;
5699
5699
  }
5700
5700
  }
5701
- class kt {
5701
+ class Lt {
5702
5702
  /**
5703
5703
  * Create a new Graph instance.
5704
5704
  * @param div - Container element for the graph canvas.
5705
5705
  * @param config - Optional configuration. Unset properties use default values.
5706
5706
  */
5707
5707
  constructor(t, i, o) {
5708
- if (this.config = se(), this.graph = new ye(this.config), this.isReady = !1, this.requestAnimationFrameId = 0, this.isRightClickMouse = !1, this.store = new Pe(), this.zoomInstance = new Pt(this.store, this.config), this.dragInstance = new Rt(this.store, this.config), this._findHoveredItemExecutionCount = 0, this._isMouseOnCanvas = !1, this._lastMouseX = 0, this._lastMouseY = 0, this._lastCheckedMouseX = 0, this._lastCheckedMouseY = 0, this._shouldForceHoverDetection = !1, this._isFirstRenderAfterInit = !0, this.isPointPositionsUpdateNeeded = !1, this.isPointColorUpdateNeeded = !1, this.isPointSizeUpdateNeeded = !1, this.isPointShapeUpdateNeeded = !1, this.isPointImageIndicesUpdateNeeded = !1, this.isLinksUpdateNeeded = !1, this.isLinkColorUpdateNeeded = !1, this.isLinkWidthUpdateNeeded = !1, this.isLinkArrowUpdateNeeded = !1, this.isPointClusterUpdateNeeded = !1, this.isForceManyBodyUpdateNeeded = !1, this.isForceLinkUpdateNeeded = !1, this.isForceCenterUpdateNeeded = !1, this.isPointImageSizesUpdateNeeded = !1, this._isDestroyed = !1, i && Y(this.config, i), o)
5708
+ if (this.config = fe(), this.graph = new Ue(this.config), this.isReady = !1, this.requestAnimationFrameId = 0, this.isRightClickMouse = !1, this.store = new ye(), this.zoomInstance = new yt(this.store, this.config), this.dragInstance = new Ft(this.store, this.config), this._findHoveredItemExecutionCount = 0, this._isMouseOnCanvas = !1, this._lastMouseX = 0, this._lastMouseY = 0, this._lastCheckedMouseX = 0, this._lastCheckedMouseY = 0, this._shouldForceHoverDetection = !1, this._isFirstRenderAfterInit = !0, this.isPointPositionsUpdateNeeded = !1, this.isPointColorUpdateNeeded = !1, this.isPointSizeUpdateNeeded = !1, this.isPointShapeUpdateNeeded = !1, this.isPointImageIndicesUpdateNeeded = !1, this.isLinksUpdateNeeded = !1, this.isLinkColorUpdateNeeded = !1, this.isLinkWidthUpdateNeeded = !1, this.isLinkArrowUpdateNeeded = !1, this.isPointClusterUpdateNeeded = !1, this.isForceManyBodyUpdateNeeded = !1, this.isForceLinkUpdateNeeded = !1, this.isForceCenterUpdateNeeded = !1, this.isPointImageSizesUpdateNeeded = !1, this._isDestroyed = !1, i && Y(this.config, i), o)
5709
5709
  this.deviceInitPromise = o, this.shouldDestroyDevice = !1;
5710
5710
  else {
5711
5711
  const n = document.createElement("canvas");
@@ -5742,7 +5742,7 @@ class kt {
5742
5742
  this.dragInstance.isActive && this.updateMousePosition(c), this.currentEvent = c;
5743
5743
  }).on("end.detect", (c) => {
5744
5744
  this.currentEvent = c, this.updateCanvasCursor();
5745
- }), this.canvasD3Selection.call(this.dragInstance.behavior).call(this.zoomInstance.behavior).on("click", this.onClick.bind(this)).on("mousemove", this.onMouseMove.bind(this)).on("contextmenu", this.onContextMenu.bind(this)), (!this.config.enableZoom || !this.config.enableDrag) && this.updateZoomDragBehaviors(), this.setZoomLevel(this.config.initialZoomLevel ?? 1), this.store.maxPointSize = J(n, this.config.pixelRatio), this.store.isSimulationRunning = this.config.enableSimulation, this.points = new Ct(n, this.config, this.store, this.graph), this.lines = new st(n, this.config, this.store, this.graph, this.points), this.config.enableSimulation && (this.forceGravity = new be(n, this.config, this.store, this.graph, this.points), this.forceCenter = new Ue(n, this.config, this.store, this.graph, this.points), this.forceManyBody = new Xe(n, this.config, this.store, this.graph, this.points), this.forceLinkIncoming = new G(n, this.config, this.store, this.graph, this.points), this.forceLinkOutgoing = new G(n, this.config, this.store, this.graph, this.points), this.forceMouse = new Ye(n, this.config, this.store, this.graph, this.points)), this.clusters = new je(n, this.config, this.store, this.graph, this.points), this.store.backgroundColor = z(this.config.backgroundColor), this.store.setHoveredPointRingColor(this.config.hoveredPointRingColor), this.store.setFocusedPointRingColor(this.config.focusedPointRingColor), this.config.focusedPointIndex !== void 0 && this.store.setFocusedPoint(this.config.focusedPointIndex), this.store.setGreyoutPointColor(this.config.pointGreyoutColor), this.store.setHoveredLinkColor(this.config.hoveredLinkColor), this.store.updateLinkHoveringEnabled(this.config), this.config.showFPSMonitor && (this.fpsMonitor = new ee(this.canvas)), this.config.randomSeed !== void 0 && this.store.addRandomSeed(this.config.randomSeed), n;
5745
+ }), this.canvasD3Selection.call(this.dragInstance.behavior).call(this.zoomInstance.behavior).on("click", this.onClick.bind(this)).on("mousemove", this.onMouseMove.bind(this)).on("contextmenu", this.onContextMenu.bind(this)), (!this.config.enableZoom || !this.config.enableDrag) && this.updateZoomDragBehaviors(), this.setZoomLevel(this.config.initialZoomLevel ?? 1), this.store.maxPointSize = ne(n, this.config.pixelRatio), this.store.isSimulationRunning = this.config.enableSimulation, this.points = new It(n, this.config, this.store, this.graph), this.lines = new ft(n, this.config, this.store, this.graph, this.points), this.config.enableSimulation && (this.forceGravity = new We(n, this.config, this.store, this.graph, this.points), this.forceCenter = new He(n, this.config, this.store, this.graph, this.points), this.forceManyBody = new qe(n, this.config, this.store, this.graph, this.points), this.forceLinkIncoming = new re(n, this.config, this.store, this.graph, this.points), this.forceLinkOutgoing = new re(n, this.config, this.store, this.graph, this.points), this.forceMouse = new $e(n, this.config, this.store, this.graph, this.points)), this.clusters = new tt(n, this.config, this.store, this.graph, this.points), this.store.backgroundColor = z(this.config.backgroundColor), this.store.setHoveredPointRingColor(this.config.hoveredPointRingColor), this.store.setFocusedPointRingColor(this.config.focusedPointRingColor), this.config.focusedPointIndex !== void 0 && this.store.setFocusedPoint(this.config.focusedPointIndex), this.store.setGreyoutPointColor(this.config.pointGreyoutColor), this.store.setHoveredLinkColor(this.config.hoveredLinkColor), this.store.updateLinkHoveringEnabled(this.config), this.config.showFPSMonitor && (this.fpsMonitor = new ae(this.canvas)), this.config.randomSeed !== void 0 && this.store.addRandomSeed(this.config.randomSeed), n;
5746
5746
  }).catch((n) => {
5747
5747
  throw this.device = void 0, this.isReady = !1, console.error("Device initialization failed:", n), n;
5748
5748
  });
@@ -5780,7 +5780,7 @@ class kt {
5780
5780
  setConfig(t) {
5781
5781
  if (this._isDestroyed || this.ensureDevice(() => this.setConfig(t))) return;
5782
5782
  const i = { ...this.config };
5783
- Ne(this.config), Y(this.config, t), this.preserveInitOnlyFields(i), this.updateStateFromConfig(i);
5783
+ ze(this.config), Y(this.config, t), this.preserveInitOnlyFields(i), this.updateStateFromConfig(i);
5784
5784
  }
5785
5785
  /**
5786
5786
  * Partially updates the graph configuration. Only the provided properties
@@ -6071,7 +6071,7 @@ class kt {
6071
6071
  else {
6072
6072
  this.zoomInstance.shouldEnableSimulationDuringZoomOverride = n;
6073
6073
  const u = this.zoomInstance.getTransform([d, l], f), h = this.zoomInstance.getMiddlePointTransform([d, l]);
6074
- this.canvasD3Selection.transition().ease(ne).duration(i / 2).call(this.zoomInstance.behavior.transform, h).transition().ease(re).duration(i / 2).call(this.zoomInstance.behavior.transform, u);
6074
+ this.canvasD3Selection.transition().ease(he).duration(i / 2).call(this.zoomInstance.behavior.transform, h).transition().ease(ue).duration(i / 2).call(this.zoomInstance.behavior.transform, u);
6075
6075
  }
6076
6076
  }
6077
6077
  /**
@@ -6168,7 +6168,7 @@ class kt {
6168
6168
  if (this._isDestroyed || this.ensureDevice(() => this.setZoomTransformByPointPositions(t, i, o, s, n))) return;
6169
6169
  this.zoomInstance.shouldEnableSimulationDuringZoomOverride = n, this.resizeCanvas();
6170
6170
  const r = this.zoomInstance.getTransform(t, o, s);
6171
- (a = this.canvasD3Selection) == null || a.transition().ease(ae).duration(i).call(this.zoomInstance.behavior.transform, r);
6171
+ (a = this.canvasD3Selection) == null || a.transition().ease(Se).duration(i).call(this.zoomInstance.behavior.transform, r);
6172
6172
  }
6173
6173
  /**
6174
6174
  * Get points indices inside a rectangular area.
@@ -6481,7 +6481,7 @@ class kt {
6481
6481
  */
6482
6482
  updateStateFromConfig(t) {
6483
6483
  var i, o, s, n, r, a, d, l, c, f;
6484
- t.pointDefaultColor !== this.config.pointDefaultColor && (this.graph.updatePointColor(), (i = this.points) == null || i.updateColor()), t.pointDefaultSize !== this.config.pointDefaultSize && (this.graph.updatePointSize(), (o = this.points) == null || o.updateSize()), t.pointDefaultShape !== this.config.pointDefaultShape && (this.graph.updatePointShape(), (s = this.points) == null || s.updateShape()), t.linkDefaultColor !== this.config.linkDefaultColor && (this.graph.updateLinkColor(), (n = this.lines) == null || n.updateColor()), t.linkDefaultWidth !== this.config.linkDefaultWidth && (this.graph.updateLinkWidth(), (r = this.lines) == null || r.updateWidth()), t.linkDefaultArrows !== this.config.linkDefaultArrows && (this.graph.updateArrows(), (a = this.lines) == null || a.updateArrow()), (t.curvedLinkSegments !== this.config.curvedLinkSegments || t.curvedLinks !== this.config.curvedLinks) && ((d = this.lines) == null || d.updateCurveLineGeometry()), t.backgroundColor !== this.config.backgroundColor && (this.store.backgroundColor = z(this.config.backgroundColor)), t.hoveredPointRingColor !== this.config.hoveredPointRingColor && this.store.setHoveredPointRingColor(this.config.hoveredPointRingColor), t.focusedPointRingColor !== this.config.focusedPointRingColor && this.store.setFocusedPointRingColor(this.config.focusedPointRingColor), t.pointGreyoutColor !== this.config.pointGreyoutColor && this.store.setGreyoutPointColor(this.config.pointGreyoutColor), t.hoveredLinkColor !== this.config.hoveredLinkColor && this.store.setHoveredLinkColor(this.config.hoveredLinkColor), t.focusedPointIndex !== this.config.focusedPointIndex && this.store.setFocusedPoint(this.config.focusedPointIndex), t.pixelRatio !== this.config.pixelRatio && (l = this.device) != null && l.canvasContext && (this.device.canvasContext.setProps({ useDevicePixels: this.config.pixelRatio }), this.store.maxPointSize = J(this.device, this.config.pixelRatio)), t.spaceSize !== this.config.spaceSize && (this.store.adjustSpaceSize(this.config.spaceSize, ((c = this.device) == null ? void 0 : c.limits.maxTextureDimension2D) ?? 4096), this.resizeCanvas(!0), this.update(this.store.isSimulationRunning ? this.store.alpha : 0)), t.showFPSMonitor !== this.config.showFPSMonitor && (this.config.showFPSMonitor ? this.fpsMonitor = new ee(this.canvas) : ((f = this.fpsMonitor) == null || f.destroy(), this.fpsMonitor = void 0)), (t.enableZoom !== this.config.enableZoom || t.enableDrag !== this.config.enableDrag) && this.updateZoomDragBehaviors(), (t.onLinkClick !== this.config.onLinkClick || t.onLinkContextMenu !== this.config.onLinkContextMenu || t.onLinkMouseOver !== this.config.onLinkMouseOver || t.onLinkMouseOut !== this.config.onLinkMouseOut) && this.store.updateLinkHoveringEnabled(this.config);
6484
+ t.pointDefaultColor !== this.config.pointDefaultColor && (this.graph.updatePointColor(), (i = this.points) == null || i.updateColor()), t.pointDefaultSize !== this.config.pointDefaultSize && (this.graph.updatePointSize(), (o = this.points) == null || o.updateSize()), t.pointDefaultShape !== this.config.pointDefaultShape && (this.graph.updatePointShape(), (s = this.points) == null || s.updateShape()), t.linkDefaultColor !== this.config.linkDefaultColor && (this.graph.updateLinkColor(), (n = this.lines) == null || n.updateColor()), t.linkDefaultWidth !== this.config.linkDefaultWidth && (this.graph.updateLinkWidth(), (r = this.lines) == null || r.updateWidth()), t.linkDefaultArrows !== this.config.linkDefaultArrows && (this.graph.updateArrows(), (a = this.lines) == null || a.updateArrow()), (t.curvedLinkSegments !== this.config.curvedLinkSegments || t.curvedLinks !== this.config.curvedLinks) && ((d = this.lines) == null || d.updateCurveLineGeometry()), t.backgroundColor !== this.config.backgroundColor && (this.store.backgroundColor = z(this.config.backgroundColor)), t.hoveredPointRingColor !== this.config.hoveredPointRingColor && this.store.setHoveredPointRingColor(this.config.hoveredPointRingColor), t.focusedPointRingColor !== this.config.focusedPointRingColor && this.store.setFocusedPointRingColor(this.config.focusedPointRingColor), t.pointGreyoutColor !== this.config.pointGreyoutColor && this.store.setGreyoutPointColor(this.config.pointGreyoutColor), t.hoveredLinkColor !== this.config.hoveredLinkColor && this.store.setHoveredLinkColor(this.config.hoveredLinkColor), t.focusedPointIndex !== this.config.focusedPointIndex && this.store.setFocusedPoint(this.config.focusedPointIndex), t.pixelRatio !== this.config.pixelRatio && (l = this.device) != null && l.canvasContext && (this.device.canvasContext.setProps({ useDevicePixels: this.config.pixelRatio }), this.store.maxPointSize = ne(this.device, this.config.pixelRatio)), t.spaceSize !== this.config.spaceSize && (this.store.adjustSpaceSize(this.config.spaceSize, ((c = this.device) == null ? void 0 : c.limits.maxTextureDimension2D) ?? 4096), this.resizeCanvas(!0), this.update(this.store.isSimulationRunning ? this.store.alpha : 0)), t.showFPSMonitor !== this.config.showFPSMonitor && (this.config.showFPSMonitor ? this.fpsMonitor = new ae(this.canvas) : ((f = this.fpsMonitor) == null || f.destroy(), this.fpsMonitor = void 0)), (t.enableZoom !== this.config.enableZoom || t.enableDrag !== this.config.enableDrag) && this.updateZoomDragBehaviors(), (t.onLinkClick !== this.config.onLinkClick || t.onLinkContextMenu !== this.config.onLinkContextMenu || t.onLinkMouseOver !== this.config.onLinkMouseOver || t.onLinkMouseOut !== this.config.onLinkMouseOut) && this.store.updateLinkHoveringEnabled(this.config);
6485
6485
  }
6486
6486
  /**
6487
6487
  * Ensures device is initialized before executing a method.
@@ -6515,9 +6515,9 @@ class kt {
6515
6515
  * Graph class decides what device to create with sensible defaults
6516
6516
  */
6517
6517
  async createDevice(t) {
6518
- return await le.createDevice({
6518
+ return await _e.createDevice({
6519
6519
  type: "webgl",
6520
- adapters: [ce],
6520
+ adapters: [Te],
6521
6521
  createCanvasContext: {
6522
6522
  canvas: t,
6523
6523
  // Provide existing canvas
@@ -6549,17 +6549,17 @@ class kt {
6549
6549
  * to respect pause/unpause state.
6550
6550
  */
6551
6551
  runSimulationStep(t = !1) {
6552
- var d, l, c, f, u, h, p, P, m, C, v, y, O, F, E, M, U, B, q;
6552
+ var d, l, c, f, u, h, p, P, m, C, v, y, O, F, E, M, U, B, q, Q, $, J, G, ee, te, ie;
6553
6553
  const { config: { simulationGravity: i, simulationCenter: o, enableSimulation: s }, store: { isSimulationRunning: n } } = this;
6554
6554
  if (!s) return;
6555
- this.isRightClickMouse && this.config.enableRightClickRepulsion && ((d = this.forceMouse) == null || d.run(), (l = this.points) == null || l.updatePosition());
6555
+ this.isRightClickMouse && this.config.enableRightClickRepulsion && ((d = this.points) == null || d.swapFbo(), (l = this.forceMouse) == null || l.run(), (c = this.points) == null || c.updatePosition());
6556
6556
  const r = this.zoomInstance.shouldEnableSimulationDuringZoomOverride ?? this.config.enableSimulationDuringZoom;
6557
- (t || n && !(this.zoomInstance.isRunning && !r)) && (i && ((c = this.forceGravity) == null || c.run(), (f = this.points) == null || f.updatePosition()), o && ((u = this.forceCenter) == null || u.run(), (h = this.points) == null || h.updatePosition()), (p = this.forceManyBody) == null || p.run(), (P = this.points) == null || P.updatePosition(), this.store.linksTextureSize && ((m = this.forceLinkIncoming) == null || m.run(), (C = this.points) == null || C.updatePosition(), (v = this.forceLinkOutgoing) == null || v.run(), (y = this.points) == null || y.updatePosition()), (this.graph.pointClusters || this.graph.clusterPositions) && ((O = this.clusters) == null || O.run(), (F = this.points) == null || F.updatePosition()), this.store.alpha += this.store.addAlpha(this.config.simulationDecay), this.isRightClickMouse && this.config.enableRightClickRepulsion && (this.store.alpha = Math.max(this.store.alpha, 0.1)), this.store.simulationProgress = Math.sqrt(Math.min(1, K / this.store.alpha)), (B = (U = this.config).onSimulationTick) == null || B.call(
6558
- U,
6557
+ (t || n && !(this.zoomInstance.isRunning && !r)) && (i && ((f = this.points) == null || f.swapFbo(), (u = this.forceGravity) == null || u.run(), (h = this.points) == null || h.updatePosition()), o && ((p = this.points) == null || p.swapFbo(), (P = this.forceCenter) == null || P.run(), (m = this.points) == null || m.updatePosition()), (C = this.points) == null || C.swapFbo(), (v = this.forceManyBody) == null || v.run(), (y = this.points) == null || y.updatePosition(), this.store.linksTextureSize && ((O = this.points) == null || O.swapFbo(), (F = this.forceLinkIncoming) == null || F.run(), (E = this.points) == null || E.updatePosition(), (M = this.points) == null || M.swapFbo(), (U = this.forceLinkOutgoing) == null || U.run(), (B = this.points) == null || B.updatePosition()), (this.graph.pointClusters || this.graph.clusterPositions) && ((q = this.points) == null || q.swapFbo(), (Q = this.clusters) == null || Q.run(), ($ = this.points) == null || $.updatePosition()), this.store.alpha += this.store.addAlpha(this.config.simulationDecay), this.isRightClickMouse && this.config.enableRightClickRepulsion && (this.store.alpha = Math.max(this.store.alpha, 0.1)), this.store.simulationProgress = Math.sqrt(Math.min(1, K / this.store.alpha)), (te = (ee = this.config).onSimulationTick) == null || te.call(
6558
+ ee,
6559
6559
  this.store.alpha,
6560
- (E = this.store.hoveredPoint) == null ? void 0 : E.index,
6561
- (M = this.store.hoveredPoint) == null ? void 0 : M.position
6562
- )), (q = this.points) == null || q.trackPoints();
6560
+ (J = this.store.hoveredPoint) == null ? void 0 : J.index,
6561
+ (G = this.store.hoveredPoint) == null ? void 0 : G.position
6562
+ )), (ie = this.points) == null || ie.trackPoints();
6563
6563
  }
6564
6564
  initPrograms() {
6565
6565
  var t, i, o, s, n, r;
@@ -6588,7 +6588,7 @@ class kt {
6588
6588
  clearDepth: 1,
6589
6589
  clearStencil: 0
6590
6590
  }), { config: { renderLinks: f } } = this;
6591
- f !== !1 && !!this.store.linksTextureSize && !!this.graph.linksNumber && this.graph.linksNumber > 0 && ((o = this.lines) == null || o.draw(c)), (s = this.points) == null || s.draw(c), this.dragInstance.isActive && ((n = this.points) == null || n.drag(), (r = this.points) == null || r.drag(), (a = this.points) == null || a.trackPoints()), c.end(), this.device.submit();
6591
+ f !== !1 && !!this.store.linksTextureSize && !!this.graph.linksNumber && this.graph.linksNumber > 0 && ((o = this.lines) == null || o.draw(c)), (s = this.points) == null || s.draw(c), this.dragInstance.isActive && ((n = this.points) == null || n.swapFbo(), (r = this.points) == null || r.drag(), (a = this.points) == null || a.trackPoints()), c.end(), this.device.submit();
6592
6592
  }
6593
6593
  (d = this.fpsMonitor) == null || d.end(t ?? performance.now()), this.currentEvent = void 0;
6594
6594
  }
@@ -6681,12 +6681,12 @@ class kt {
6681
6681
  }
6682
6682
  findHoveredItem() {
6683
6683
  if (this._isDestroyed || !this._isMouseOnCanvas) return;
6684
- if (this._findHoveredItemExecutionCount < Ce) {
6684
+ if (this._findHoveredItemExecutionCount < Ie) {
6685
6685
  this._findHoveredItemExecutionCount += 1;
6686
6686
  return;
6687
6687
  }
6688
6688
  const t = Math.abs(this._lastMouseX - this._lastCheckedMouseX), i = Math.abs(this._lastMouseY - this._lastCheckedMouseY);
6689
- if (!(!(t > $ || i > $) && !this._shouldForceHoverDetection)) {
6689
+ if (!(!(t > se || i > se) && !this._shouldForceHoverDetection)) {
6690
6690
  if (this._lastCheckedMouseX = this._lastMouseX, this._lastCheckedMouseY = this._lastMouseY, this._shouldForceHoverDetection = !1, this._findHoveredItemExecutionCount = 0, this.findHoveredPoint(), this.graph.linksNumber && this.store.isLinkHoveringEnabled)
6691
6691
  this.findHoveredLine();
6692
6692
  else if (this.store.hoveredLinkIndex !== void 0) {
@@ -6741,29 +6741,29 @@ class kt {
6741
6741
  margin: 0 0.6rem 0.6rem 0;
6742
6742
  font-size: 0.7rem;
6743
6743
  font-family: inherit;
6744
- `, this.attributionDivElement.innerHTML = Ie(this.config.attribution, {
6744
+ `, this.attributionDivElement.innerHTML = Oe(this.config.attribution, {
6745
6745
  ALLOWED_TAGS: ["a", "b", "i", "em", "strong", "span", "div", "p", "br", "img"],
6746
6746
  ALLOWED_ATTR: ["href", "target", "class", "id", "style", "src", "alt", "title"]
6747
6747
  }), (t = this.store.div) == null || t.appendChild(this.attributionDivElement));
6748
6748
  }
6749
6749
  }
6750
6750
  export {
6751
- kt as Graph,
6752
- oe as PointShape,
6753
- me as clamp,
6751
+ Lt as Graph,
6752
+ ce as PointShape,
6753
+ Me as clamp,
6754
6754
  k as defaultConfigValues,
6755
- Ee as focusedPointRingOpacity,
6756
- J as getMaxPointSize,
6755
+ be as focusedPointRingOpacity,
6756
+ ne as getMaxPointSize,
6757
6757
  z as getRgbaColor,
6758
- Fe as hoveredPointRingOpacity,
6759
- ve as isAClassInstance,
6760
- ie as isArray,
6761
- Re as isFunction,
6758
+ Be as hoveredPointRingOpacity,
6759
+ Ne as isAClassInstance,
6760
+ le as isArray,
6761
+ Fe as isFunction,
6762
6762
  N as isNumber,
6763
- xe as isObject,
6764
- zt as isPlainObject,
6763
+ Ee as isObject,
6764
+ Yt as isPlainObject,
6765
6765
  I as readPixels,
6766
- Ae as rgbToBrightness,
6767
- Ie as sanitizeHtml
6766
+ De as rgbToBrightness,
6767
+ Oe as sanitizeHtml
6768
6768
  };
6769
6769
  //# sourceMappingURL=index.js.map