@nvidia-elements/core 2.15.1 → 2.15.3

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.
Files changed (171) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/accordion/accordion2.js +4 -4
  3. package/dist/alert/alert-group2.js +1 -1
  4. package/dist/alert/alert2.js +1 -1
  5. package/dist/avatar/avatar-group2.js +1 -1
  6. package/dist/avatar/avatar2.js +1 -1
  7. package/dist/badge/badge2.js +1 -1
  8. package/dist/breadcrumb/breadcrumb2.js +1 -1
  9. package/dist/bundle.d.ts +0 -2
  10. package/dist/bundles/index.d.ts +0 -289
  11. package/dist/bundles/index.js +6 -6
  12. package/dist/button/button2.js +1 -1
  13. package/dist/button-group/button-group2.js +1 -1
  14. package/dist/card/card2.js +4 -4
  15. package/dist/chat-message/chat-message2.js +1 -1
  16. package/dist/checkbox/checkbox-group2.js +1 -1
  17. package/dist/checkbox/checkbox2.js +1 -1
  18. package/dist/color/color2.js +1 -1
  19. package/dist/combobox/combobox2.js +1 -1
  20. package/dist/copy-button/copy-button2.js +1 -1
  21. package/dist/custom-elements-jsx.d.ts +0 -157
  22. package/dist/custom-elements-vue.d.ts +0 -155
  23. package/dist/custom-elements.json +0 -3259
  24. package/dist/data.html.json +0 -119
  25. package/dist/data.snippets.json +45 -45
  26. package/dist/date/date2.js +1 -1
  27. package/dist/datetime/datetime2.js +1 -1
  28. package/dist/dialog/dialog-footer2.js +1 -1
  29. package/dist/dialog/dialog-header2.js +1 -1
  30. package/dist/dialog/dialog2.js +1 -1
  31. package/dist/divider/divider2.js +1 -1
  32. package/dist/dot/dot2.js +1 -1
  33. package/dist/drag-handle/drag-handle2.js +1 -1
  34. package/dist/drawer/drawer-content2.js +1 -1
  35. package/dist/drawer/drawer-footer2.js +1 -1
  36. package/dist/drawer/drawer-header2.js +1 -1
  37. package/dist/drawer/drawer2.js +1 -1
  38. package/dist/dropdown/dropdown-footer2.js +1 -1
  39. package/dist/dropdown/dropdown-header2.js +1 -1
  40. package/dist/dropdown/dropdown2.js +1 -1
  41. package/dist/dropdown-group/dropdown-group.js +1 -1
  42. package/dist/dropzone/dropzone2.js +1 -1
  43. package/dist/file/file2.js +1 -1
  44. package/dist/format-bytes/format-bytes2.js +1 -1
  45. package/dist/format-datetime/format-datetime2.js +1 -1
  46. package/dist/format-number/format-number2.js +1 -1
  47. package/dist/format-relative-time/format-relative-time2.js +1 -1
  48. package/dist/format-truncate/format-truncate2.js +1 -1
  49. package/dist/forms/control/control2.js +1 -1
  50. package/dist/forms/control/control2.js.map +1 -1
  51. package/dist/forms/control-group/control-group2.js +1 -1
  52. package/dist/forms/control-message/control-message2.js +1 -1
  53. package/dist/gauge/gauge2.js +1 -1
  54. package/dist/grid/cell/cell2.js +1 -1
  55. package/dist/grid/column/column2.js +1 -1
  56. package/dist/grid/footer/footer2.js +1 -1
  57. package/dist/grid/grid2.js +1 -1
  58. package/dist/grid/header/header2.js +1 -1
  59. package/dist/grid/placeholder/placeholder2.js +1 -1
  60. package/dist/grid/row/row2.js +1 -1
  61. package/dist/icon/icon2.js +2 -2
  62. package/dist/icon-button/icon-button2.js +1 -1
  63. package/dist/index.js +1 -1
  64. package/dist/input/input-group2.js +1 -1
  65. package/dist/input/input2.js +1 -1
  66. package/dist/internal/services/global.service.js +1 -1
  67. package/dist/logo/logo2.js +1 -1
  68. package/dist/menu/menu-group2.js +1 -1
  69. package/dist/menu/menu-item2.js +1 -1
  70. package/dist/menu/menu2.js +1 -1
  71. package/dist/month/month2.js +1 -1
  72. package/dist/notification/notification-group2.js +1 -1
  73. package/dist/notification/notification2.js +1 -1
  74. package/dist/page/page-panel/page-panel-content2.js +1 -1
  75. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  76. package/dist/page/page-panel/page-panel-header2.js +1 -1
  77. package/dist/page/page-panel/page-panel2.js +1 -1
  78. package/dist/page/page2.js +1 -1
  79. package/dist/page-header/page-header2.js +1 -1
  80. package/dist/page-loader/page-loader2.js +1 -1
  81. package/dist/pagination/pagination2.js +1 -1
  82. package/dist/panel/panel2.js +4 -4
  83. package/dist/password/password2.js +1 -1
  84. package/dist/preferences-input/preferences-input2.js +1 -1
  85. package/dist/progress-bar/progress-bar2.js +1 -1
  86. package/dist/progress-ring/progress-ring2.js +1 -1
  87. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  88. package/dist/pulse/pulse2.js +1 -1
  89. package/dist/radio/radio-group2.js +1 -1
  90. package/dist/radio/radio2.js +1 -1
  91. package/dist/range/range2.js +1 -1
  92. package/dist/resize-handle/resize-handle2.js +1 -1
  93. package/dist/search/search2.js +1 -1
  94. package/dist/select/select2.js +1 -1
  95. package/dist/skeleton/skeleton2.js +1 -1
  96. package/dist/sort-button/sort-button2.js +1 -1
  97. package/dist/sparkline/sparkline2.js +1 -1
  98. package/dist/star-rating/star-rating2.js +1 -1
  99. package/dist/steps/steps2.js +2 -2
  100. package/dist/switch/switch-group2.js +1 -1
  101. package/dist/switch/switch2.js +1 -1
  102. package/dist/tabs/tabs-group2.js +1 -1
  103. package/dist/tabs/tabs2.js +2 -2
  104. package/dist/tag/tag2.js +1 -1
  105. package/dist/textarea/textarea2.js +1 -1
  106. package/dist/time/time2.js +1 -1
  107. package/dist/toast/toast2.js +1 -1
  108. package/dist/toggletip/toggletip-footer2.js +1 -1
  109. package/dist/toggletip/toggletip-header2.js +1 -1
  110. package/dist/toggletip/toggletip2.js +1 -1
  111. package/dist/toolbar/toolbar2.js +1 -1
  112. package/dist/tooltip/tooltip2.js +1 -1
  113. package/dist/tree/tree-node.js +1 -1
  114. package/dist/tree/tree-node.js.map +1 -1
  115. package/dist/tree/tree-node2.js +1 -1
  116. package/dist/tree/tree.examples.js.map +1 -1
  117. package/dist/tree/tree.examples.json +11 -0
  118. package/dist/tree/tree.js +1 -1
  119. package/dist/tree/tree.js.map +1 -1
  120. package/dist/tree/tree2.js +1 -1
  121. package/dist/week/week2.js +1 -1
  122. package/package.json +2 -14
  123. package/dist/viewport/define.d.ts +0 -8
  124. package/dist/viewport/define.js +0 -8
  125. package/dist/viewport/define.js.map +0 -1
  126. package/dist/viewport/index.d.ts +0 -4
  127. package/dist/viewport/index.js +0 -4
  128. package/dist/viewport/viewport-animation.controller.d.ts +0 -21
  129. package/dist/viewport/viewport-animation.controller.js +0 -93
  130. package/dist/viewport/viewport-animation.controller.js.map +0 -1
  131. package/dist/viewport/viewport-autofit.controller.d.ts +0 -18
  132. package/dist/viewport/viewport-autofit.controller.js +0 -105
  133. package/dist/viewport/viewport-autofit.controller.js.map +0 -1
  134. package/dist/viewport/viewport-fitting.utils.d.ts +0 -36
  135. package/dist/viewport/viewport-fitting.utils.js +0 -35
  136. package/dist/viewport/viewport-fitting.utils.js.map +0 -1
  137. package/dist/viewport/viewport-gesture-navigation.controller.d.ts +0 -27
  138. package/dist/viewport/viewport-gesture-navigation.controller.js +0 -318
  139. package/dist/viewport/viewport-gesture-navigation.controller.js.map +0 -1
  140. package/dist/viewport/viewport-gridlines.d.ts +0 -42
  141. package/dist/viewport/viewport-gridlines.js +0 -6
  142. package/dist/viewport/viewport-gridlines.js.map +0 -1
  143. package/dist/viewport/viewport-gridlines.utils.d.ts +0 -11
  144. package/dist/viewport/viewport-gridlines.utils.js +0 -54
  145. package/dist/viewport/viewport-gridlines.utils.js.map +0 -1
  146. package/dist/viewport/viewport-gridlines2.js +0 -164
  147. package/dist/viewport/viewport-gridlines2.js.map +0 -1
  148. package/dist/viewport/viewport-minimap.d.ts +0 -36
  149. package/dist/viewport/viewport-minimap.js +0 -6
  150. package/dist/viewport/viewport-minimap.js.map +0 -1
  151. package/dist/viewport/viewport-minimap.utils.d.ts +0 -13
  152. package/dist/viewport/viewport-minimap.utils.js +0 -49
  153. package/dist/viewport/viewport-minimap.utils.js.map +0 -1
  154. package/dist/viewport/viewport-minimap2.js +0 -309
  155. package/dist/viewport/viewport-minimap2.js.map +0 -1
  156. package/dist/viewport/viewport-navigation.controller.d.ts +0 -21
  157. package/dist/viewport/viewport-navigation.controller.js +0 -136
  158. package/dist/viewport/viewport-navigation.controller.js.map +0 -1
  159. package/dist/viewport/viewport-navigation.types.d.ts +0 -1
  160. package/dist/viewport/viewport-projection.utils.d.ts +0 -7
  161. package/dist/viewport/viewport-projection.utils.js +0 -25
  162. package/dist/viewport/viewport-projection.utils.js.map +0 -1
  163. package/dist/viewport/viewport.d.ts +0 -122
  164. package/dist/viewport/viewport.examples.js +0 -6
  165. package/dist/viewport/viewport.examples.js.map +0 -1
  166. package/dist/viewport/viewport.examples.json +0 -87
  167. package/dist/viewport/viewport.js +0 -6
  168. package/dist/viewport/viewport.js.map +0 -1
  169. package/dist/viewport/viewport.types.d.ts +0 -93
  170. package/dist/viewport/viewport2.js +0 -440
  171. package/dist/viewport/viewport2.js.map +0 -1
@@ -3070,14 +3070,6 @@
3070
3070
  "package": "@nvidia-elements/core/tree"
3071
3071
  }
3072
3072
  },
3073
- {
3074
- "kind": "js",
3075
- "name": "*",
3076
- "declaration": {
3077
- "name": "*",
3078
- "package": "@nvidia-elements/core/viewport"
3079
- }
3080
- },
3081
3073
  {
3082
3074
  "kind": "js",
3083
3075
  "name": "*",
@@ -52146,3257 +52138,6 @@
52146
52138
  }
52147
52139
  ]
52148
52140
  },
52149
- {
52150
- "kind": "javascript-module",
52151
- "path": "/src/viewport/define.js",
52152
- "declarations": [],
52153
- "exports": []
52154
- },
52155
- {
52156
- "kind": "javascript-module",
52157
- "path": "/src/viewport/index.js",
52158
- "declarations": [],
52159
- "exports": [
52160
- {
52161
- "kind": "js",
52162
- "name": "*",
52163
- "declaration": {
52164
- "name": "*",
52165
- "module": "home/runner/work/elements/elements/projects/core/src/viewport/viewport.js"
52166
- }
52167
- },
52168
- {
52169
- "kind": "js",
52170
- "name": "*",
52171
- "declaration": {
52172
- "name": "*",
52173
- "module": "home/runner/work/elements/elements/projects/core/src/viewport/viewport-gridlines.js"
52174
- }
52175
- },
52176
- {
52177
- "kind": "js",
52178
- "name": "*",
52179
- "declaration": {
52180
- "name": "*",
52181
- "module": "home/runner/work/elements/elements/projects/core/src/viewport/viewport-minimap.js"
52182
- }
52183
- },
52184
- {
52185
- "kind": "js",
52186
- "name": "ViewportAnimationOptions",
52187
- "declaration": {
52188
- "name": "ViewportAnimationOptions",
52189
- "module": "./viewport.types.js"
52190
- }
52191
- },
52192
- {
52193
- "kind": "js",
52194
- "name": "ViewportDiscretePanDetail",
52195
- "declaration": {
52196
- "name": "ViewportDiscretePanDetail",
52197
- "module": "./viewport.types.js"
52198
- }
52199
- },
52200
- {
52201
- "kind": "js",
52202
- "name": "ViewportPanBehavior",
52203
- "declaration": {
52204
- "name": "ViewportPanBehavior",
52205
- "module": "./viewport.types.js"
52206
- }
52207
- },
52208
- {
52209
- "kind": "js",
52210
- "name": "ViewportPanDetail",
52211
- "declaration": {
52212
- "name": "ViewportPanDetail",
52213
- "module": "./viewport.types.js"
52214
- }
52215
- },
52216
- {
52217
- "kind": "js",
52218
- "name": "ViewportPanEndDetail",
52219
- "declaration": {
52220
- "name": "ViewportPanEndDetail",
52221
- "module": "./viewport.types.js"
52222
- }
52223
- },
52224
- {
52225
- "kind": "js",
52226
- "name": "ViewportPanEndReason",
52227
- "declaration": {
52228
- "name": "ViewportPanEndReason",
52229
- "module": "./viewport.types.js"
52230
- }
52231
- },
52232
- {
52233
- "kind": "js",
52234
- "name": "ViewportNavigationSource",
52235
- "declaration": {
52236
- "name": "ViewportNavigationSource",
52237
- "module": "./viewport.types.js"
52238
- }
52239
- },
52240
- {
52241
- "kind": "js",
52242
- "name": "ViewportPanProposal",
52243
- "declaration": {
52244
- "name": "ViewportPanProposal",
52245
- "module": "./viewport.types.js"
52246
- }
52247
- },
52248
- {
52249
- "kind": "js",
52250
- "name": "ViewportPanUpdateProposal",
52251
- "declaration": {
52252
- "name": "ViewportPanUpdateProposal",
52253
- "module": "./viewport.types.js"
52254
- }
52255
- },
52256
- {
52257
- "kind": "js",
52258
- "name": "ViewportPanEndRequest",
52259
- "declaration": {
52260
- "name": "ViewportPanEndRequest",
52261
- "module": "./viewport.types.js"
52262
- }
52263
- },
52264
- {
52265
- "kind": "js",
52266
- "name": "ViewportPanSession",
52267
- "declaration": {
52268
- "name": "ViewportPanSession",
52269
- "module": "./viewport.types.js"
52270
- }
52271
- },
52272
- {
52273
- "kind": "js",
52274
- "name": "ViewportZoomProposal",
52275
- "declaration": {
52276
- "name": "ViewportZoomProposal",
52277
- "module": "./viewport.types.js"
52278
- }
52279
- },
52280
- {
52281
- "kind": "js",
52282
- "name": "ViewportZoomRequestOptions",
52283
- "declaration": {
52284
- "name": "ViewportZoomRequestOptions",
52285
- "module": "./viewport.types.js"
52286
- }
52287
- },
52288
- {
52289
- "kind": "js",
52290
- "name": "ViewportPoint",
52291
- "declaration": {
52292
- "name": "ViewportPoint",
52293
- "module": "./viewport.types.js"
52294
- }
52295
- },
52296
- {
52297
- "kind": "js",
52298
- "name": "ViewportPointerPanDetail",
52299
- "declaration": {
52300
- "name": "ViewportPointerPanDetail",
52301
- "module": "./viewport.types.js"
52302
- }
52303
- },
52304
- {
52305
- "kind": "js",
52306
- "name": "ViewportRect",
52307
- "declaration": {
52308
- "name": "ViewportRect",
52309
- "module": "./viewport.types.js"
52310
- }
52311
- },
52312
- {
52313
- "kind": "js",
52314
- "name": "ViewportRevealOptions",
52315
- "declaration": {
52316
- "name": "ViewportRevealOptions",
52317
- "module": "./viewport.types.js"
52318
- }
52319
- },
52320
- {
52321
- "kind": "js",
52322
- "name": "ViewportTransform",
52323
- "declaration": {
52324
- "name": "ViewportTransform",
52325
- "module": "./viewport.types.js"
52326
- }
52327
- },
52328
- {
52329
- "kind": "js",
52330
- "name": "ViewportWheelPanDetail",
52331
- "declaration": {
52332
- "name": "ViewportWheelPanDetail",
52333
- "module": "./viewport.types.js"
52334
- }
52335
- },
52336
- {
52337
- "kind": "js",
52338
- "name": "ViewportZoomDetail",
52339
- "declaration": {
52340
- "name": "ViewportZoomDetail",
52341
- "module": "./viewport.types.js"
52342
- }
52343
- }
52344
- ]
52345
- },
52346
- {
52347
- "kind": "javascript-module",
52348
- "path": "/src/viewport/viewport-animation.controller.js",
52349
- "declarations": [
52350
- {
52351
- "kind": "class",
52352
- "description": "",
52353
- "name": "ViewportAnimationController",
52354
- "members": [
52355
- {
52356
- "kind": "field",
52357
- "name": "#delegate",
52358
- "privacy": "private",
52359
- "type": {
52360
- "text": "ViewportAnimationDelegate",
52361
- "_sourceAliases": [],
52362
- "values": []
52363
- },
52364
- "readonly": true,
52365
- "default": "delegate"
52366
- },
52367
- {
52368
- "kind": "field",
52369
- "name": "#animation",
52370
- "privacy": "private",
52371
- "type": {
52372
- "text": "ViewportAnimation | undefined",
52373
- "_sourceAliases": [],
52374
- "values": []
52375
- }
52376
- },
52377
- {
52378
- "kind": "field",
52379
- "name": "destinationScale",
52380
- "type": {
52381
- "text": "number | undefined",
52382
- "_sourceAliases": [],
52383
- "values": [
52384
- {
52385
- "value": "number",
52386
- "description": ""
52387
- }
52388
- ]
52389
- },
52390
- "readonly": true
52391
- },
52392
- {
52393
- "kind": "method",
52394
- "name": "animateTo",
52395
- "return": {
52396
- "type": {
52397
- "text": "void"
52398
- }
52399
- },
52400
- "parameters": [
52401
- {
52402
- "name": "target",
52403
- "type": {
52404
- "text": "Partial<ViewportTransform>"
52405
- }
52406
- },
52407
- {
52408
- "name": "options",
52409
- "default": "{}",
52410
- "type": {
52411
- "text": "ViewportAnimationOptions"
52412
- }
52413
- }
52414
- ]
52415
- },
52416
- {
52417
- "kind": "method",
52418
- "name": "cancel",
52419
- "return": {
52420
- "type": {
52421
- "text": "void"
52422
- }
52423
- }
52424
- },
52425
- {
52426
- "kind": "method",
52427
- "name": "hostDisconnected",
52428
- "return": {
52429
- "type": {
52430
- "text": "void"
52431
- }
52432
- }
52433
- },
52434
- {
52435
- "kind": "field",
52436
- "name": "#animateFrame",
52437
- "privacy": "private"
52438
- },
52439
- {
52440
- "kind": "method",
52441
- "name": "#startAnimation",
52442
- "privacy": "private",
52443
- "return": {
52444
- "type": {
52445
- "text": "void"
52446
- }
52447
- },
52448
- "parameters": [
52449
- {
52450
- "name": "animation",
52451
- "type": {
52452
- "text": "ViewportAnimation"
52453
- }
52454
- },
52455
- {
52456
- "name": "time",
52457
- "type": {
52458
- "text": "number"
52459
- }
52460
- }
52461
- ]
52462
- }
52463
- ]
52464
- },
52465
- {
52466
- "kind": "variable",
52467
- "name": "start"
52468
- },
52469
- {
52470
- "kind": "variable",
52471
- "name": "duration"
52472
- }
52473
- ],
52474
- "exports": [
52475
- {
52476
- "kind": "js",
52477
- "name": "ViewportAnimationController",
52478
- "declaration": {
52479
- "name": "ViewportAnimationController",
52480
- "module": "/src/viewport/viewport-animation.controller.js"
52481
- }
52482
- }
52483
- ]
52484
- },
52485
- {
52486
- "kind": "javascript-module",
52487
- "path": "/src/viewport/viewport-autofit.controller.js",
52488
- "declarations": [
52489
- {
52490
- "kind": "class",
52491
- "description": "Coordinates one initial fit once default-slot children have definitions and measurable layout.",
52492
- "name": "ViewportAutoFitController",
52493
- "members": [
52494
- {
52495
- "kind": "field",
52496
- "name": "#applyInitialFit",
52497
- "privacy": "private",
52498
- "type": {
52499
- "text": "ApplyInitialFit",
52500
- "_sourceAliases": [],
52501
- "values": []
52502
- },
52503
- "readonly": true,
52504
- "default": "applyInitialFit"
52505
- },
52506
- {
52507
- "kind": "field",
52508
- "name": "#host",
52509
- "privacy": "private",
52510
- "type": {
52511
- "text": "ViewportAutoFitHost",
52512
- "_sourceAliases": [],
52513
- "values": []
52514
- },
52515
- "readonly": true,
52516
- "default": "host"
52517
- },
52518
- {
52519
- "kind": "field",
52520
- "name": "#children",
52521
- "privacy": "private",
52522
- "type": {
52523
- "text": "readonly Element[] | undefined",
52524
- "_sourceAliases": [],
52525
- "values": [
52526
- {
52527
- "value": "readonly Element[]",
52528
- "description": ""
52529
- }
52530
- ]
52531
- }
52532
- },
52533
- {
52534
- "kind": "field",
52535
- "name": "#consumed",
52536
- "privacy": "private",
52537
- "type": {
52538
- "text": "boolean",
52539
- "_sourceAliases": [],
52540
- "values": [
52541
- {
52542
- "value": "boolean",
52543
- "description": ""
52544
- }
52545
- ]
52546
- },
52547
- "default": "false"
52548
- },
52549
- {
52550
- "kind": "field",
52551
- "name": "#frame",
52552
- "privacy": "private",
52553
- "type": {
52554
- "text": "number | undefined",
52555
- "_sourceAliases": [],
52556
- "values": [
52557
- {
52558
- "value": "number",
52559
- "description": ""
52560
- }
52561
- ]
52562
- }
52563
- },
52564
- {
52565
- "kind": "field",
52566
- "name": "#generation",
52567
- "privacy": "private",
52568
- "type": {
52569
- "text": "number",
52570
- "_sourceAliases": [],
52571
- "values": [
52572
- {
52573
- "value": "number",
52574
- "description": ""
52575
- }
52576
- ]
52577
- },
52578
- "default": "0"
52579
- },
52580
- {
52581
- "kind": "field",
52582
- "name": "#observer",
52583
- "privacy": "private",
52584
- "type": {
52585
- "text": "ResizeObserver | undefined",
52586
- "_sourceAliases": [],
52587
- "values": []
52588
- }
52589
- },
52590
- {
52591
- "kind": "method",
52592
- "name": "hostConnected",
52593
- "return": {
52594
- "type": {
52595
- "text": "void"
52596
- }
52597
- }
52598
- },
52599
- {
52600
- "kind": "method",
52601
- "name": "hostDisconnected",
52602
- "return": {
52603
- "type": {
52604
- "text": "void"
52605
- }
52606
- }
52607
- },
52608
- {
52609
- "kind": "method",
52610
- "name": "hostUpdated",
52611
- "return": {
52612
- "type": {
52613
- "text": "void"
52614
- }
52615
- }
52616
- },
52617
- {
52618
- "kind": "field",
52619
- "name": "contentChanged"
52620
- },
52621
- {
52622
- "kind": "method",
52623
- "name": "consume",
52624
- "return": {
52625
- "type": {
52626
- "text": "void"
52627
- }
52628
- }
52629
- },
52630
- {
52631
- "kind": "method",
52632
- "name": "#cancelPending",
52633
- "privacy": "private",
52634
- "return": {
52635
- "type": {
52636
- "text": "void"
52637
- }
52638
- }
52639
- },
52640
- {
52641
- "kind": "method",
52642
- "name": "#start",
52643
- "privacy": "private",
52644
- "return": {
52645
- "type": {
52646
- "text": "void"
52647
- }
52648
- },
52649
- "parameters": [
52650
- {
52651
- "name": "slot",
52652
- "optional": true,
52653
- "type": {
52654
- "text": "HTMLSlotElement"
52655
- }
52656
- }
52657
- ]
52658
- },
52659
- {
52660
- "kind": "method",
52661
- "name": "#waitForDefinitions",
52662
- "privacy": "private",
52663
- "return": {
52664
- "type": {
52665
- "text": "Promise<void>"
52666
- }
52667
- },
52668
- "parameters": [
52669
- {
52670
- "name": "children",
52671
- "type": {
52672
- "text": "readonly Element[]"
52673
- }
52674
- }
52675
- ]
52676
- },
52677
- {
52678
- "kind": "method",
52679
- "name": "#waitForLayout",
52680
- "privacy": "private",
52681
- "return": {
52682
- "type": {
52683
- "text": "void"
52684
- }
52685
- },
52686
- "parameters": [
52687
- {
52688
- "name": "generation",
52689
- "type": {
52690
- "text": "number"
52691
- }
52692
- }
52693
- ]
52694
- },
52695
- {
52696
- "kind": "method",
52697
- "name": "#scheduleFit",
52698
- "privacy": "private",
52699
- "return": {
52700
- "type": {
52701
- "text": "void"
52702
- }
52703
- },
52704
- "parameters": [
52705
- {
52706
- "name": "generation",
52707
- "type": {
52708
- "text": "number"
52709
- }
52710
- }
52711
- ]
52712
- },
52713
- {
52714
- "kind": "method",
52715
- "name": "#fit",
52716
- "privacy": "private",
52717
- "return": {
52718
- "type": {
52719
- "text": "void"
52720
- }
52721
- },
52722
- "parameters": [
52723
- {
52724
- "name": "generation",
52725
- "type": {
52726
- "text": "number"
52727
- }
52728
- }
52729
- ]
52730
- },
52731
- {
52732
- "kind": "method",
52733
- "name": "#measurableClientRects",
52734
- "privacy": "private",
52735
- "return": {
52736
- "type": {
52737
- "text": "ViewportClientRect[]"
52738
- }
52739
- },
52740
- "parameters": [
52741
- {
52742
- "name": "children",
52743
- "type": {
52744
- "text": "readonly Element[]"
52745
- }
52746
- }
52747
- ]
52748
- },
52749
- {
52750
- "kind": "method",
52751
- "name": "#isCurrent",
52752
- "privacy": "private",
52753
- "return": {
52754
- "type": {
52755
- "text": "boolean"
52756
- }
52757
- },
52758
- "parameters": [
52759
- {
52760
- "name": "generation",
52761
- "type": {
52762
- "text": "number"
52763
- }
52764
- }
52765
- ]
52766
- }
52767
- ]
52768
- }
52769
- ],
52770
- "exports": [
52771
- {
52772
- "kind": "js",
52773
- "name": "ViewportAutoFitController",
52774
- "declaration": {
52775
- "name": "ViewportAutoFitController",
52776
- "module": "/src/viewport/viewport-autofit.controller.js"
52777
- }
52778
- }
52779
- ]
52780
- },
52781
- {
52782
- "kind": "javascript-module",
52783
- "path": "/src/viewport/viewport-fitting.utils.js",
52784
- "declarations": [
52785
- {
52786
- "kind": "function",
52787
- "name": "contentBoundsFromClientRects",
52788
- "return": {
52789
- "type": {
52790
- "text": "ViewportRect | undefined"
52791
- }
52792
- },
52793
- "parameters": [
52794
- {
52795
- "name": "clientRects",
52796
- "type": {
52797
- "text": "Iterable<ViewportClientRect>",
52798
- "_sourceAliases": []
52799
- }
52800
- },
52801
- {
52802
- "name": "viewportFrame",
52803
- "type": {
52804
- "text": "ViewportClientFrame",
52805
- "_sourceAliases": []
52806
- }
52807
- },
52808
- {
52809
- "name": "transform",
52810
- "type": {
52811
- "text": "ViewportTransform",
52812
- "_sourceAliases": []
52813
- }
52814
- }
52815
- ],
52816
- "description": "Converts measurable client-space rectangles into their single content-space union."
52817
- },
52818
- {
52819
- "kind": "function",
52820
- "name": "revealTarget",
52821
- "return": {
52822
- "type": {
52823
- "text": "ViewportTransform"
52824
- }
52825
- },
52826
- "parameters": [
52827
- {
52828
- "name": "region",
52829
- "type": {
52830
- "text": "{ x: number; y: number; width?: number; height?: number }",
52831
- "_sourceAliases": []
52832
- }
52833
- },
52834
- {
52835
- "name": "configuration",
52836
- "type": {
52837
- "text": "{\n options: ViewportFitOptions;\n scaleRange: { min: number; max: number };\n transform: ViewportTransform;\n viewport: { width: number; height: number };\n }",
52838
- "_sourceAliases": []
52839
- }
52840
- }
52841
- ],
52842
- "description": "Calculates the viewport transform that centers or fits a content-space region."
52843
- }
52844
- ],
52845
- "exports": [
52846
- {
52847
- "kind": "js",
52848
- "name": "contentBoundsFromClientRects",
52849
- "declaration": {
52850
- "name": "contentBoundsFromClientRects",
52851
- "module": "/src/viewport/viewport-fitting.utils.js"
52852
- }
52853
- },
52854
- {
52855
- "kind": "js",
52856
- "name": "revealTarget",
52857
- "declaration": {
52858
- "name": "revealTarget",
52859
- "module": "/src/viewport/viewport-fitting.utils.js"
52860
- }
52861
- }
52862
- ]
52863
- },
52864
- {
52865
- "kind": "javascript-module",
52866
- "path": "/src/viewport/viewport-gesture-navigation.controller.js",
52867
- "declarations": [
52868
- {
52869
- "kind": "class",
52870
- "description": "",
52871
- "name": "ViewportGestureNavigationController",
52872
- "members": [
52873
- {
52874
- "kind": "field",
52875
- "name": "#host",
52876
- "privacy": "private",
52877
- "type": {
52878
- "text": "ViewportGestureNavigationHost",
52879
- "_sourceAliases": [],
52880
- "values": []
52881
- },
52882
- "readonly": true,
52883
- "default": "host"
52884
- },
52885
- {
52886
- "kind": "field",
52887
- "name": "#delegate",
52888
- "privacy": "private",
52889
- "type": {
52890
- "text": "ViewportGestureNavigationDelegate",
52891
- "_sourceAliases": [],
52892
- "values": []
52893
- },
52894
- "readonly": true,
52895
- "default": "delegate"
52896
- },
52897
- {
52898
- "kind": "field",
52899
- "name": "#gestureController",
52900
- "privacy": "private",
52901
- "type": {
52902
- "text": "GestureController<PinchContext>",
52903
- "_sourceAliases": [],
52904
- "values": [
52905
- {
52906
- "value": "GestureController<PinchContext>",
52907
- "description": ""
52908
- }
52909
- ]
52910
- },
52911
- "readonly": true,
52912
- "default": "new GestureController(host, { beginPinch: this.#beginPinch, claimPriority: 'descendant-first', shouldIgnoreEvent: this.#shouldIgnoreEvent, shouldPreventContextMenu: this.#shouldPreventContextMenu, shouldReservePointerDown: this.#shouldReservePointerDown, suppressNativeDrag: true, touchAction: this.#getTouchAction })"
52913
- },
52914
- {
52915
- "kind": "field",
52916
- "name": "#keyStateController",
52917
- "privacy": "private",
52918
- "type": {
52919
- "text": "KeyStateController",
52920
- "_sourceAliases": [],
52921
- "values": []
52922
- },
52923
- "readonly": true,
52924
- "default": "new KeyStateController(host, { watchedCodes: ['Space'] })"
52925
- },
52926
- {
52927
- "kind": "field",
52928
- "name": "#pointerPanSessions",
52929
- "privacy": "private",
52930
- "readonly": true,
52931
- "default": "new Map<number, PointerPanSession>()"
52932
- },
52933
- {
52934
- "kind": "field",
52935
- "name": "#suppressedClicks",
52936
- "privacy": "private",
52937
- "readonly": true,
52938
- "default": "new Map< number, { eventType: 'auxclick' | 'click'; timer: ReturnType<typeof setTimeout> } >()"
52939
- },
52940
- {
52941
- "kind": "field",
52942
- "name": "#connected",
52943
- "privacy": "private",
52944
- "type": {
52945
- "text": "boolean",
52946
- "_sourceAliases": [],
52947
- "values": [
52948
- {
52949
- "value": "boolean",
52950
- "description": ""
52951
- }
52952
- ]
52953
- },
52954
- "default": "false"
52955
- },
52956
- {
52957
- "kind": "field",
52958
- "name": "#clickListenersActive",
52959
- "privacy": "private",
52960
- "type": {
52961
- "text": "boolean",
52962
- "_sourceAliases": [],
52963
- "values": [
52964
- {
52965
- "value": "boolean",
52966
- "description": ""
52967
- }
52968
- ]
52969
- },
52970
- "default": "false"
52971
- },
52972
- {
52973
- "kind": "field",
52974
- "name": "#spaceKeyListenerTarget",
52975
- "privacy": "private",
52976
- "type": {
52977
- "text": "Window | undefined",
52978
- "_sourceAliases": [],
52979
- "values": []
52980
- }
52981
- },
52982
- {
52983
- "kind": "field",
52984
- "name": "#nativeInteractionHovered",
52985
- "privacy": "private",
52986
- "type": {
52987
- "text": "boolean",
52988
- "_sourceAliases": [],
52989
- "values": [
52990
- {
52991
- "value": "boolean",
52992
- "description": ""
52993
- }
52994
- ]
52995
- },
52996
- "default": "false"
52997
- },
52998
- {
52999
- "kind": "field",
53000
- "name": "#pinchPointerIds",
53001
- "privacy": "private",
53002
- "type": {
53003
- "text": "ReadonlySet<number> | undefined",
53004
- "_sourceAliases": [],
53005
- "values": [
53006
- {
53007
- "value": "ReadonlySet<number>",
53008
- "description": ""
53009
- }
53010
- ]
53011
- }
53012
- },
53013
- {
53014
- "kind": "method",
53015
- "name": "hostConnected",
53016
- "return": {
53017
- "type": {
53018
- "text": "void"
53019
- }
53020
- }
53021
- },
53022
- {
53023
- "kind": "method",
53024
- "name": "hostDisconnected",
53025
- "return": {
53026
- "type": {
53027
- "text": "void"
53028
- }
53029
- }
53030
- },
53031
- {
53032
- "kind": "method",
53033
- "name": "hostUpdated",
53034
- "return": {
53035
- "type": {
53036
- "text": "void"
53037
- }
53038
- }
53039
- },
53040
- {
53041
- "kind": "method",
53042
- "name": "rebasePointerSessions",
53043
- "return": {
53044
- "type": {
53045
- "text": "void"
53046
- }
53047
- }
53048
- },
53049
- {
53050
- "kind": "method",
53051
- "name": "#syncBehaviorPolicy",
53052
- "privacy": "private",
53053
- "return": {
53054
- "type": {
53055
- "text": "void"
53056
- }
53057
- }
53058
- },
53059
- {
53060
- "kind": "method",
53061
- "name": "#syncDisabledPanEligibility",
53062
- "privacy": "private",
53063
- "return": {
53064
- "type": {
53065
- "text": "void"
53066
- }
53067
- }
53068
- },
53069
- {
53070
- "kind": "field",
53071
- "name": "#handleGestureInput",
53072
- "privacy": "private"
53073
- },
53074
- {
53075
- "kind": "method",
53076
- "name": "#handlePointerDown",
53077
- "privacy": "private",
53078
- "return": {
53079
- "type": {
53080
- "text": "void"
53081
- }
53082
- },
53083
- "parameters": [
53084
- {
53085
- "name": "input",
53086
- "type": {
53087
- "text": "Extract<GestureInput, { kind: 'pointerdown' }>"
53088
- }
53089
- }
53090
- ]
53091
- },
53092
- {
53093
- "kind": "method",
53094
- "name": "#focusSpaceViewportFromUnclaimedPointer",
53095
- "privacy": "private",
53096
- "return": {
53097
- "type": {
53098
- "text": "void"
53099
- }
53100
- },
53101
- "parameters": [
53102
- {
53103
- "name": "event",
53104
- "type": {
53105
- "text": "PointerEvent"
53106
- }
53107
- }
53108
- ]
53109
- },
53110
- {
53111
- "kind": "method",
53112
- "name": "#handlePointerEnd",
53113
- "privacy": "private",
53114
- "return": {
53115
- "type": {
53116
- "text": "void"
53117
- }
53118
- },
53119
- "parameters": [
53120
- {
53121
- "name": "input",
53122
- "type": {
53123
- "text": "PointerEndGesture"
53124
- }
53125
- }
53126
- ]
53127
- },
53128
- {
53129
- "kind": "method",
53130
- "name": "#endPinchIfNeeded",
53131
- "privacy": "private",
53132
- "return": {
53133
- "type": {
53134
- "text": "boolean"
53135
- }
53136
- },
53137
- "parameters": [
53138
- {
53139
- "name": "pointerId",
53140
- "type": {
53141
- "text": "number"
53142
- }
53143
- }
53144
- ]
53145
- },
53146
- {
53147
- "kind": "method",
53148
- "name": "#finishPointerPan",
53149
- "privacy": "private",
53150
- "return": {
53151
- "type": {
53152
- "text": "void"
53153
- }
53154
- },
53155
- "parameters": [
53156
- {
53157
- "name": "input",
53158
- "type": {
53159
- "text": "PointerEndGesture"
53160
- }
53161
- },
53162
- {
53163
- "name": "session",
53164
- "type": {
53165
- "text": "PointerPanSession"
53166
- }
53167
- },
53168
- {
53169
- "name": "endedPinch",
53170
- "type": {
53171
- "text": "boolean"
53172
- }
53173
- }
53174
- ]
53175
- },
53176
- {
53177
- "kind": "method",
53178
- "name": "#handleWheel",
53179
- "privacy": "private",
53180
- "return": {
53181
- "type": {
53182
- "text": "void"
53183
- }
53184
- },
53185
- "parameters": [
53186
- {
53187
- "name": "input",
53188
- "type": {
53189
- "text": "WheelGestureInput"
53190
- }
53191
- }
53192
- ]
53193
- },
53194
- {
53195
- "kind": "method",
53196
- "name": "#handleWheelZoom",
53197
- "privacy": "private",
53198
- "return": {
53199
- "type": {
53200
- "text": "void"
53201
- }
53202
- },
53203
- "parameters": [
53204
- {
53205
- "name": "input",
53206
- "type": {
53207
- "text": "WheelGestureInput"
53208
- }
53209
- }
53210
- ]
53211
- },
53212
- {
53213
- "kind": "method",
53214
- "name": "#handleWheelPan",
53215
- "privacy": "private",
53216
- "return": {
53217
- "type": {
53218
- "text": "void"
53219
- }
53220
- },
53221
- "parameters": [
53222
- {
53223
- "name": "input",
53224
- "type": {
53225
- "text": "WheelGestureInput"
53226
- }
53227
- }
53228
- ]
53229
- },
53230
- {
53231
- "kind": "field",
53232
- "name": "#handleGesture",
53233
- "privacy": "private"
53234
- },
53235
- {
53236
- "kind": "method",
53237
- "name": "#handlePointerPan",
53238
- "privacy": "private",
53239
- "return": {
53240
- "type": {
53241
- "text": "void"
53242
- }
53243
- },
53244
- "parameters": [
53245
- {
53246
- "name": "gesture",
53247
- "type": {
53248
- "text": "PointerMovementGesture & { readonly kind: 'pan' }"
53249
- }
53250
- }
53251
- ]
53252
- },
53253
- {
53254
- "kind": "method",
53255
- "name": "#pointerPanProposal",
53256
- "privacy": "private",
53257
- "return": {
53258
- "type": {
53259
- "text": "ViewportPanUpdateProposal"
53260
- }
53261
- },
53262
- "parameters": [
53263
- {
53264
- "name": "gesture",
53265
- "type": {
53266
- "text": "PointerMovementGesture & { readonly kind: 'pan' }"
53267
- }
53268
- },
53269
- {
53270
- "name": "session",
53271
- "type": {
53272
- "text": "PointerPanSession"
53273
- }
53274
- }
53275
- ]
53276
- },
53277
- {
53278
- "kind": "method",
53279
- "name": "#activatePointerPan",
53280
- "privacy": "private",
53281
- "return": {
53282
- "type": {
53283
- "text": "void"
53284
- }
53285
- },
53286
- "parameters": [
53287
- {
53288
- "name": "gesture",
53289
- "type": {
53290
- "text": "PointerMovementGesture & { readonly kind: 'pan' }"
53291
- }
53292
- },
53293
- {
53294
- "name": "session",
53295
- "type": {
53296
- "text": "PointerPanSession"
53297
- }
53298
- },
53299
- {
53300
- "name": "proposal",
53301
- "type": {
53302
- "text": "ViewportPanUpdateProposal"
53303
- }
53304
- }
53305
- ]
53306
- },
53307
- {
53308
- "kind": "method",
53309
- "name": "#getAuthoritativePointerPanLifecycle",
53310
- "privacy": "private",
53311
- "return": {
53312
- "type": {
53313
- "text": "PointerPanLifecycle | undefined"
53314
- }
53315
- },
53316
- "parameters": [
53317
- {
53318
- "name": "pointerId",
53319
- "type": {
53320
- "text": "number"
53321
- }
53322
- },
53323
- {
53324
- "name": "session",
53325
- "type": {
53326
- "text": "PointerPanSession"
53327
- }
53328
- }
53329
- ]
53330
- },
53331
- {
53332
- "kind": "method",
53333
- "name": "#handlePinchGesture",
53334
- "privacy": "private",
53335
- "return": {
53336
- "type": {
53337
- "text": "void"
53338
- }
53339
- },
53340
- "parameters": [
53341
- {
53342
- "name": "gesture",
53343
- "type": {
53344
- "text": "Extract<Gesture<PinchContext>, { kind: 'pinch' }>"
53345
- }
53346
- }
53347
- ]
53348
- },
53349
- {
53350
- "kind": "field",
53351
- "name": "#beginPinch",
53352
- "privacy": "private"
53353
- },
53354
- {
53355
- "kind": "method",
53356
- "name": "#interruptPointerPansForPinch",
53357
- "privacy": "private",
53358
- "return": {
53359
- "type": {
53360
- "text": "void"
53361
- }
53362
- },
53363
- "parameters": [
53364
- {
53365
- "name": "event",
53366
- "type": {
53367
- "text": "PointerEvent"
53368
- }
53369
- }
53370
- ]
53371
- },
53372
- {
53373
- "kind": "method",
53374
- "name": "#interruptPointerPan",
53375
- "privacy": "private",
53376
- "return": {
53377
- "type": {
53378
- "text": "void"
53379
- }
53380
- },
53381
- "parameters": [
53382
- {
53383
- "name": "end",
53384
- "type": {
53385
- "text": "{ readonly event: PointerEvent; readonly reason: ViewportPanEndReason }"
53386
- }
53387
- },
53388
- {
53389
- "name": "session",
53390
- "type": {
53391
- "text": "PointerPanSession"
53392
- }
53393
- }
53394
- ]
53395
- },
53396
- {
53397
- "kind": "method",
53398
- "name": "#suppressPointerPan",
53399
- "privacy": "private",
53400
- "return": {
53401
- "type": {
53402
- "text": "void"
53403
- }
53404
- },
53405
- "parameters": [
53406
- {
53407
- "name": "session",
53408
- "type": {
53409
- "text": "PointerPanSession"
53410
- }
53411
- }
53412
- ]
53413
- },
53414
- {
53415
- "kind": "method",
53416
- "name": "#dispatchPanEnd",
53417
- "privacy": "private",
53418
- "return": {
53419
- "type": {
53420
- "text": "void"
53421
- }
53422
- },
53423
- "parameters": [
53424
- {
53425
- "name": "end",
53426
- "type": {
53427
- "text": "{ readonly event: PointerEvent; readonly reason: ViewportPanEndReason }"
53428
- }
53429
- },
53430
- {
53431
- "name": "session",
53432
- "type": {
53433
- "text": "PointerPanSession"
53434
- }
53435
- },
53436
- {
53437
- "name": "interrupted",
53438
- "type": {
53439
- "text": "boolean"
53440
- }
53441
- }
53442
- ]
53443
- },
53444
- {
53445
- "kind": "field",
53446
- "name": "#handleSpaceKeyDown",
53447
- "privacy": "private"
53448
- },
53449
- {
53450
- "kind": "field",
53451
- "name": "#handleFocus",
53452
- "privacy": "private"
53453
- },
53454
- {
53455
- "kind": "field",
53456
- "name": "#handleBlur",
53457
- "privacy": "private"
53458
- },
53459
- {
53460
- "kind": "field",
53461
- "name": "#handlePointerOver",
53462
- "privacy": "private"
53463
- },
53464
- {
53465
- "kind": "method",
53466
- "name": "#acceptsPointerPan",
53467
- "privacy": "private",
53468
- "return": {
53469
- "type": {
53470
- "text": "boolean"
53471
- }
53472
- },
53473
- "parameters": [
53474
- {
53475
- "name": "event",
53476
- "type": {
53477
- "text": "PointerEvent"
53478
- }
53479
- }
53480
- ]
53481
- },
53482
- {
53483
- "kind": "method",
53484
- "name": "#isSpacePanEligible",
53485
- "privacy": "private",
53486
- "return": {
53487
- "type": {
53488
- "text": "boolean"
53489
- }
53490
- }
53491
- },
53492
- {
53493
- "kind": "field",
53494
- "name": "#shouldIgnoreEvent",
53495
- "privacy": "private"
53496
- },
53497
- {
53498
- "kind": "field",
53499
- "name": "#shouldPreventContextMenu",
53500
- "privacy": "private"
53501
- },
53502
- {
53503
- "kind": "field",
53504
- "name": "#shouldReservePointerDown",
53505
- "privacy": "private"
53506
- },
53507
- {
53508
- "kind": "field",
53509
- "name": "#getTouchAction",
53510
- "privacy": "private"
53511
- },
53512
- {
53513
- "kind": "method",
53514
- "name": "#rebasePointerPans",
53515
- "privacy": "private",
53516
- "return": {
53517
- "type": {
53518
- "text": "void"
53519
- }
53520
- }
53521
- },
53522
- {
53523
- "kind": "method",
53524
- "name": "#rebaseEligiblePointerPan",
53525
- "privacy": "private",
53526
- "return": {
53527
- "type": {
53528
- "text": "void"
53529
- }
53530
- },
53531
- "parameters": [
53532
- {
53533
- "name": "session",
53534
- "type": {
53535
- "text": "PointerPanSession"
53536
- }
53537
- },
53538
- {
53539
- "name": "transformStart",
53540
- "type": {
53541
- "text": "ViewportTransform"
53542
- }
53543
- }
53544
- ]
53545
- },
53546
- {
53547
- "kind": "field",
53548
- "name": "#handleClickCapture",
53549
- "privacy": "private"
53550
- },
53551
- {
53552
- "kind": "method",
53553
- "name": "#queueClickSuppression",
53554
- "privacy": "private",
53555
- "return": {
53556
- "type": {
53557
- "text": "void"
53558
- }
53559
- },
53560
- "parameters": [
53561
- {
53562
- "name": "pointerId",
53563
- "type": {
53564
- "text": "number"
53565
- }
53566
- },
53567
- {
53568
- "name": "session",
53569
- "type": {
53570
- "text": "PointerPanSession"
53571
- }
53572
- }
53573
- ]
53574
- },
53575
- {
53576
- "kind": "method",
53577
- "name": "#clearSuppressedClick",
53578
- "privacy": "private",
53579
- "return": {
53580
- "type": {
53581
- "text": "void"
53582
- }
53583
- },
53584
- "parameters": [
53585
- {
53586
- "name": "pointerId",
53587
- "type": {
53588
- "text": "number"
53589
- }
53590
- }
53591
- ]
53592
- },
53593
- {
53594
- "kind": "method",
53595
- "name": "#clearPointerState",
53596
- "privacy": "private",
53597
- "return": {
53598
- "type": {
53599
- "text": "void"
53600
- }
53601
- }
53602
- },
53603
- {
53604
- "kind": "method",
53605
- "name": "#syncPanningState",
53606
- "privacy": "private",
53607
- "return": {
53608
- "type": {
53609
- "text": "void"
53610
- }
53611
- }
53612
- },
53613
- {
53614
- "kind": "method",
53615
- "name": "#syncPanEligibleState",
53616
- "privacy": "private",
53617
- "return": {
53618
- "type": {
53619
- "text": "void"
53620
- }
53621
- }
53622
- },
53623
- {
53624
- "kind": "method",
53625
- "name": "#setSpaceKeyListener",
53626
- "privacy": "private",
53627
- "return": {
53628
- "type": {
53629
- "text": "void"
53630
- }
53631
- },
53632
- "parameters": [
53633
- {
53634
- "name": "enabled",
53635
- "type": {
53636
- "text": "boolean"
53637
- }
53638
- }
53639
- ]
53640
- },
53641
- {
53642
- "kind": "method",
53643
- "name": "#setClickListeners",
53644
- "privacy": "private",
53645
- "return": {
53646
- "type": {
53647
- "text": "void"
53648
- }
53649
- },
53650
- "parameters": [
53651
- {
53652
- "name": "enabled",
53653
- "type": {
53654
- "text": "boolean"
53655
- }
53656
- }
53657
- ]
53658
- }
53659
- ]
53660
- },
53661
- {
53662
- "kind": "variable",
53663
- "name": "start"
53664
- },
53665
- {
53666
- "kind": "variable",
53667
- "name": "anchor"
53668
- },
53669
- {
53670
- "kind": "variable",
53671
- "name": "factor"
53672
- },
53673
- {
53674
- "kind": "variable",
53675
- "name": "next"
53676
- }
53677
- ],
53678
- "exports": [
53679
- {
53680
- "kind": "js",
53681
- "name": "ViewportGestureNavigationController",
53682
- "declaration": {
53683
- "name": "ViewportGestureNavigationController",
53684
- "module": "/src/viewport/viewport-gesture-navigation.controller.js"
53685
- }
53686
- }
53687
- ]
53688
- },
53689
- {
53690
- "kind": "javascript-module",
53691
- "path": "/src/viewport/viewport-gridlines.js",
53692
- "declarations": [
53693
- {
53694
- "kind": "class",
53695
- "description": "Renders origin-stable, zoom-adaptive gridline patterns behind viewport content.",
53696
- "name": "ViewportGridlines",
53697
- "cssProperties": [
53698
- {
53699
- "description": "Sets the gridline pattern color. [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color)",
53700
- "name": "--color"
53701
- },
53702
- {
53703
- "description": "Sets the approximate stroke width in CSS pixels.",
53704
- "name": "--line-width"
53705
- },
53706
- {
53707
- "description": "Sets the approximate dot radius in CSS pixels.",
53708
- "name": "--dot-radius"
53709
- },
53710
- {
53711
- "description": "Sets the approximate full width and height of each cross in CSS pixels.",
53712
- "name": "--cross-size"
53713
- }
53714
- ],
53715
- "members": [
53716
- {
53717
- "kind": "field",
53718
- "name": "pattern",
53719
- "type": {
53720
- "text": "'lines' | 'dots' | 'crosses'",
53721
- "_sourceAliases": [],
53722
- "values": [
53723
- {
53724
- "value": "lines",
53725
- "description": ""
53726
- },
53727
- {
53728
- "value": "dots",
53729
- "description": ""
53730
- },
53731
- {
53732
- "value": "crosses",
53733
- "description": ""
53734
- }
53735
- ]
53736
- },
53737
- "default": "'lines'",
53738
- "description": "Grid pattern to render.",
53739
- "attribute": "pattern",
53740
- "reflects": true
53741
- },
53742
- {
53743
- "kind": "field",
53744
- "name": "step",
53745
- "type": {
53746
- "text": "number",
53747
- "_sourceAliases": [],
53748
- "values": [
53749
- {
53750
- "value": "number",
53751
- "description": ""
53752
- }
53753
- ]
53754
- },
53755
- "description": "Smallest gridline interval in content-space units.",
53756
- "attribute": "step",
53757
- "reflects": true
53758
- },
53759
- {
53760
- "kind": "field",
53761
- "name": "originX",
53762
- "type": {
53763
- "text": "number",
53764
- "_sourceAliases": [],
53765
- "values": [
53766
- {
53767
- "value": "number",
53768
- "description": ""
53769
- }
53770
- ]
53771
- },
53772
- "description": "Content-space x coordinate of the grid origin.",
53773
- "attribute": "origin-x",
53774
- "reflects": true
53775
- },
53776
- {
53777
- "kind": "field",
53778
- "name": "originY",
53779
- "type": {
53780
- "text": "number",
53781
- "_sourceAliases": [],
53782
- "values": [
53783
- {
53784
- "value": "number",
53785
- "description": ""
53786
- }
53787
- ]
53788
- },
53789
- "description": "Content-space y coordinate of the grid origin.",
53790
- "attribute": "origin-y",
53791
- "reflects": true
53792
- },
53793
- {
53794
- "kind": "field",
53795
- "name": "targetSpacing",
53796
- "type": {
53797
- "text": "number",
53798
- "_sourceAliases": [],
53799
- "values": [
53800
- {
53801
- "value": "number",
53802
- "description": ""
53803
- }
53804
- ]
53805
- },
53806
- "description": "Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels.",
53807
- "attribute": "target-spacing",
53808
- "reflects": true
53809
- }
53810
- ],
53811
- "attributes": [
53812
- {
53813
- "name": "pattern",
53814
- "type": {
53815
- "text": "'lines' | 'dots' | 'crosses'",
53816
- "_sourceAliases": [],
53817
- "values": [
53818
- {
53819
- "value": "lines",
53820
- "description": ""
53821
- },
53822
- {
53823
- "value": "dots",
53824
- "description": ""
53825
- },
53826
- {
53827
- "value": "crosses",
53828
- "description": ""
53829
- }
53830
- ]
53831
- },
53832
- "default": "'lines'",
53833
- "description": "Grid pattern to render.",
53834
- "fieldName": "pattern"
53835
- },
53836
- {
53837
- "name": "step",
53838
- "type": {
53839
- "text": "number",
53840
- "_sourceAliases": [],
53841
- "values": [
53842
- {
53843
- "value": "number",
53844
- "description": ""
53845
- }
53846
- ]
53847
- },
53848
- "description": "Smallest gridline interval in content-space units.",
53849
- "fieldName": "step"
53850
- },
53851
- {
53852
- "name": "origin-x",
53853
- "type": {
53854
- "text": "number",
53855
- "_sourceAliases": [],
53856
- "values": [
53857
- {
53858
- "value": "number",
53859
- "description": ""
53860
- }
53861
- ]
53862
- },
53863
- "description": "Content-space x coordinate of the grid origin.",
53864
- "fieldName": "originX"
53865
- },
53866
- {
53867
- "name": "origin-y",
53868
- "type": {
53869
- "text": "number",
53870
- "_sourceAliases": [],
53871
- "values": [
53872
- {
53873
- "value": "number",
53874
- "description": ""
53875
- }
53876
- ]
53877
- },
53878
- "description": "Content-space y coordinate of the grid origin.",
53879
- "fieldName": "originY"
53880
- },
53881
- {
53882
- "name": "target-spacing",
53883
- "type": {
53884
- "text": "number",
53885
- "_sourceAliases": [],
53886
- "values": [
53887
- {
53888
- "value": "number",
53889
- "description": ""
53890
- }
53891
- ]
53892
- },
53893
- "description": "Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels.",
53894
- "fieldName": "targetSpacing"
53895
- }
53896
- ],
53897
- "superclass": {
53898
- "name": "LitElement",
53899
- "package": "lit"
53900
- },
53901
- "tagName": "nve-viewport-gridlines",
53902
- "customElement": true,
53903
- "metadata": {
53904
- "unitTests": true,
53905
- "apiReview": true,
53906
- "performance": true,
53907
- "stable": true,
53908
- "vqa": true,
53909
- "responsive": true,
53910
- "themes": true,
53911
- "aria": "#",
53912
- "entrypoint": "@nvidia-elements/core/viewport",
53913
- "example": "",
53914
- "package": true,
53915
- "documentation": "https://nvidia.github.io/elements/docs/elements/viewport/",
53916
- "since": "0.0.0",
53917
- "status": "beta",
53918
- "behavior": "content",
53919
- "markdown": "## nve-viewport-gridlines\n\nRenders origin-stable, zoom-adaptive gridline patterns behind viewport content.\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/viewport/define.js';\n```\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| originX (origin-x) | `number` | Content-space x coordinate of the grid origin. |\n| originY (origin-y) | `number` | Content-space y coordinate of the grid origin. |\n| pattern | `'lines' \\| 'dots' \\| 'crosses'` | Grid pattern to render. |\n| step | `number` | Smallest gridline interval in content-space units. |\n| targetSpacing (target-spacing) | `number` | Target on-screen separation used to choose the adaptive gridline interval, in CSS pixels. |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --color | `string` | Sets the gridline pattern color. [MDN](https://mdn.dev/CSS/color) |\n| --cross-size | `string` | Sets the approximate full width and height of each cross in CSS pixels. |\n| --dot-radius | `string` | Sets the approximate dot radius in CSS pixels. |\n| --line-width | `string` | Sets the approximate stroke width in CSS pixels. |"
53920
- }
53921
- }
53922
- ],
53923
- "exports": [
53924
- {
53925
- "kind": "js",
53926
- "name": "ViewportGridlines",
53927
- "declaration": {
53928
- "name": "ViewportGridlines",
53929
- "module": "/src/viewport/viewport-gridlines.js"
53930
- }
53931
- }
53932
- ]
53933
- },
53934
- {
53935
- "kind": "javascript-module",
53936
- "path": "/src/viewport/viewport-gridlines.utils.js",
53937
- "declarations": [
53938
- {
53939
- "kind": "function",
53940
- "name": "selectGridlineInterval",
53941
- "return": {
53942
- "type": {
53943
- "text": "number"
53944
- }
53945
- },
53946
- "parameters": [
53947
- {
53948
- "name": "options",
53949
- "type": {
53950
- "text": "GridlineIntervalOptions",
53951
- "_sourceAliases": []
53952
- }
53953
- }
53954
- ]
53955
- },
53956
- {
53957
- "kind": "function",
53958
- "name": "createGridlineCoverage",
53959
- "return": {
53960
- "type": {
53961
- "text": "ViewportRect"
53962
- }
53963
- },
53964
- "parameters": [
53965
- {
53966
- "name": "visible",
53967
- "type": {
53968
- "text": "ViewportRect",
53969
- "_sourceAliases": []
53970
- }
53971
- }
53972
- ]
53973
- },
53974
- {
53975
- "kind": "function",
53976
- "name": "gridlineCoverageNeedsUpdate",
53977
- "return": {
53978
- "type": {
53979
- "text": "boolean"
53980
- }
53981
- },
53982
- "parameters": [
53983
- {
53984
- "name": "coverage",
53985
- "type": {
53986
- "text": "ViewportRect | undefined",
53987
- "_sourceAliases": []
53988
- }
53989
- },
53990
- {
53991
- "name": "visible",
53992
- "type": {
53993
- "text": "ViewportRect",
53994
- "_sourceAliases": []
53995
- }
53996
- }
53997
- ]
53998
- }
53999
- ],
54000
- "exports": [
54001
- {
54002
- "kind": "js",
54003
- "name": "selectGridlineInterval",
54004
- "declaration": {
54005
- "name": "selectGridlineInterval",
54006
- "module": "/src/viewport/viewport-gridlines.utils.js"
54007
- }
54008
- },
54009
- {
54010
- "kind": "js",
54011
- "name": "createGridlineCoverage",
54012
- "declaration": {
54013
- "name": "createGridlineCoverage",
54014
- "module": "/src/viewport/viewport-gridlines.utils.js"
54015
- }
54016
- },
54017
- {
54018
- "kind": "js",
54019
- "name": "gridlineCoverageNeedsUpdate",
54020
- "declaration": {
54021
- "name": "gridlineCoverageNeedsUpdate",
54022
- "module": "/src/viewport/viewport-gridlines.utils.js"
54023
- }
54024
- }
54025
- ]
54026
- },
54027
- {
54028
- "kind": "javascript-module",
54029
- "path": "/src/viewport/viewport-minimap.js",
54030
- "declarations": [
54031
- {
54032
- "kind": "class",
54033
- "description": "Provides a simplified overview and direct navigation for its parent viewport.",
54034
- "name": "ViewportMinimap",
54035
- "cssProperties": [
54036
- {
54037
- "description": "Color of the surface behind preview geometry. [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background)",
54038
- "name": "--background"
54039
- },
54040
- {
54041
- "description": "Color of automatically drawn root rectangles. [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color)",
54042
- "name": "--color"
54043
- },
54044
- {
54045
- "description": "Color of the current visible-region indicator.",
54046
- "name": "--indicator-color"
54047
- },
54048
- {
54049
- "description": "Corner radius of the minimap. [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius)",
54050
- "name": "--border-radius"
54051
- },
54052
- {
54053
- "description": "Cursor for clicking the background to center the viewport.",
54054
- "name": "--recenter-cursor"
54055
- },
54056
- {
54057
- "description": "Cursor over a draggable visible region.",
54058
- "name": "--pan-cursor"
54059
- },
54060
- {
54061
- "description": "Cursor during a visible-region drag.",
54062
- "name": "--panning-cursor"
54063
- }
54064
- ],
54065
- "slots": [
54066
- {
54067
- "description": "Optional simplified content drawn in viewport content coordinates. Replaces automatic root rectangles.",
54068
- "name": "preview"
54069
- }
54070
- ],
54071
- "members": [
54072
- {
54073
- "kind": "method",
54074
- "name": "refresh",
54075
- "return": {
54076
- "type": {
54077
- "text": "void"
54078
- }
54079
- },
54080
- "description": "Remeasures content bounds after preview or viewport roots move without resizing."
54081
- }
54082
- ],
54083
- "superclass": {
54084
- "name": "LitElement",
54085
- "package": "lit"
54086
- },
54087
- "tagName": "nve-viewport-minimap",
54088
- "customElement": true,
54089
- "metadata": {
54090
- "unitTests": true,
54091
- "apiReview": true,
54092
- "performance": true,
54093
- "stable": true,
54094
- "vqa": true,
54095
- "responsive": true,
54096
- "themes": true,
54097
- "aria": "#",
54098
- "entrypoint": "@nvidia-elements/core/viewport",
54099
- "example": "",
54100
- "package": true,
54101
- "documentation": "https://nvidia.github.io/elements/docs/elements/viewport/",
54102
- "since": "0.0.0",
54103
- "status": "beta",
54104
- "behavior": "content",
54105
- "markdown": "## nve-viewport-minimap\n\nProvides a simplified overview and direct navigation for its parent viewport.\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/viewport/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| preview | `string` | Optional simplified content drawn in viewport content coordinates. Replaces automatic root rectangles. |\n\n### Methods\n\n| method | signatures | description |\n| ------ | ---------- | ----------- |\n| refresh | `refresh(): void` | Remeasures content bounds after preview or viewport roots move without resizing. |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --background | `string` | Color of the surface behind preview geometry. [MDN](https://mdn.dev/CSS/background) |\n| --border-radius | `string` | Corner radius of the minimap. [MDN](https://mdn.dev/CSS/border-radius) |\n| --color | `string` | Color of automatically drawn root rectangles. [MDN](https://mdn.dev/CSS/color) |\n| --indicator-color | `string` | Color of the current visible-region indicator. |\n| --pan-cursor | `string` | Cursor over a draggable visible region. |\n| --panning-cursor | `string` | Cursor during a visible-region drag. |\n| --recenter-cursor | `string` | Cursor for clicking the background to center the viewport. |"
54106
- }
54107
- }
54108
- ],
54109
- "exports": [
54110
- {
54111
- "kind": "js",
54112
- "name": "ViewportMinimap",
54113
- "declaration": {
54114
- "name": "ViewportMinimap",
54115
- "module": "/src/viewport/viewport-minimap.js"
54116
- }
54117
- }
54118
- ]
54119
- },
54120
- {
54121
- "kind": "javascript-module",
54122
- "path": "/src/viewport/viewport-minimap.utils.js",
54123
- "declarations": [
54124
- {
54125
- "kind": "function",
54126
- "name": "hasPositiveFiniteRect",
54127
- "return": {
54128
- "type": {
54129
- "text": "boolean"
54130
- }
54131
- },
54132
- "parameters": [
54133
- {
54134
- "name": "rect",
54135
- "type": {
54136
- "text": "ViewportRect",
54137
- "_sourceAliases": []
54138
- }
54139
- }
54140
- ]
54141
- },
54142
- {
54143
- "kind": "function",
54144
- "name": "createViewportMinimapProjection",
54145
- "return": {
54146
- "type": {
54147
- "text": "ViewportMinimapProjection | undefined"
54148
- }
54149
- },
54150
- "parameters": [
54151
- {
54152
- "name": "content",
54153
- "type": {
54154
- "text": "readonly ViewportRect[]",
54155
- "_sourceAliases": []
54156
- }
54157
- },
54158
- {
54159
- "name": "visible",
54160
- "type": {
54161
- "text": "ViewportRect",
54162
- "_sourceAliases": []
54163
- }
54164
- },
54165
- {
54166
- "name": "size",
54167
- "type": {
54168
- "text": "{ readonly width: number; readonly height: number }",
54169
- "_sourceAliases": []
54170
- }
54171
- }
54172
- ]
54173
- },
54174
- {
54175
- "kind": "function",
54176
- "name": "projectViewportMinimapRect",
54177
- "return": {
54178
- "type": {
54179
- "text": "ViewportRect"
54180
- }
54181
- },
54182
- "parameters": [
54183
- {
54184
- "name": "rect",
54185
- "type": {
54186
- "text": "ViewportRect",
54187
- "_sourceAliases": []
54188
- }
54189
- },
54190
- {
54191
- "name": "projection",
54192
- "type": {
54193
- "text": "ViewportMinimapProjection",
54194
- "_sourceAliases": []
54195
- }
54196
- }
54197
- ]
54198
- },
54199
- {
54200
- "kind": "function",
54201
- "name": "unprojectViewportMinimapPoint",
54202
- "return": {
54203
- "type": {
54204
- "text": "ViewportPoint"
54205
- }
54206
- },
54207
- "parameters": [
54208
- {
54209
- "name": "point",
54210
- "type": {
54211
- "text": "ViewportPoint",
54212
- "_sourceAliases": []
54213
- }
54214
- },
54215
- {
54216
- "name": "projection",
54217
- "type": {
54218
- "text": "ViewportMinimapProjection",
54219
- "_sourceAliases": []
54220
- }
54221
- }
54222
- ]
54223
- }
54224
- ],
54225
- "exports": [
54226
- {
54227
- "kind": "js",
54228
- "name": "hasPositiveFiniteRect",
54229
- "declaration": {
54230
- "name": "hasPositiveFiniteRect",
54231
- "module": "/src/viewport/viewport-minimap.utils.js"
54232
- }
54233
- },
54234
- {
54235
- "kind": "js",
54236
- "name": "createViewportMinimapProjection",
54237
- "declaration": {
54238
- "name": "createViewportMinimapProjection",
54239
- "module": "/src/viewport/viewport-minimap.utils.js"
54240
- }
54241
- },
54242
- {
54243
- "kind": "js",
54244
- "name": "projectViewportMinimapRect",
54245
- "declaration": {
54246
- "name": "projectViewportMinimapRect",
54247
- "module": "/src/viewport/viewport-minimap.utils.js"
54248
- }
54249
- },
54250
- {
54251
- "kind": "js",
54252
- "name": "unprojectViewportMinimapPoint",
54253
- "declaration": {
54254
- "name": "unprojectViewportMinimapPoint",
54255
- "module": "/src/viewport/viewport-minimap.utils.js"
54256
- }
54257
- }
54258
- ]
54259
- },
54260
- {
54261
- "kind": "javascript-module",
54262
- "path": "/src/viewport/viewport-navigation.controller.js",
54263
- "declarations": [
54264
- {
54265
- "kind": "class",
54266
- "description": "",
54267
- "name": "ViewportNavigationController",
54268
- "members": [
54269
- {
54270
- "kind": "field",
54271
- "name": "#host",
54272
- "privacy": "private",
54273
- "type": {
54274
- "text": "ViewportNavigationHost",
54275
- "_sourceAliases": [],
54276
- "values": []
54277
- },
54278
- "readonly": true,
54279
- "default": "host"
54280
- },
54281
- {
54282
- "kind": "field",
54283
- "name": "#delegate",
54284
- "privacy": "private",
54285
- "type": {
54286
- "text": "ViewportNavigationDelegate",
54287
- "_sourceAliases": [],
54288
- "values": []
54289
- },
54290
- "readonly": true,
54291
- "default": "delegate"
54292
- },
54293
- {
54294
- "kind": "field",
54295
- "name": "#managesTabIndex",
54296
- "privacy": "private",
54297
- "type": {
54298
- "text": "boolean",
54299
- "_sourceAliases": [],
54300
- "values": [
54301
- {
54302
- "value": "boolean",
54303
- "description": ""
54304
- }
54305
- ]
54306
- },
54307
- "default": "false"
54308
- },
54309
- {
54310
- "kind": "method",
54311
- "name": "hostConnected",
54312
- "return": {
54313
- "type": {
54314
- "text": "void"
54315
- }
54316
- }
54317
- },
54318
- {
54319
- "kind": "method",
54320
- "name": "hostDisconnected",
54321
- "return": {
54322
- "type": {
54323
- "text": "void"
54324
- }
54325
- }
54326
- },
54327
- {
54328
- "kind": "method",
54329
- "name": "hostUpdated",
54330
- "return": {
54331
- "type": {
54332
- "text": "void"
54333
- }
54334
- }
54335
- },
54336
- {
54337
- "kind": "field",
54338
- "name": "#handleCommand",
54339
- "privacy": "private"
54340
- },
54341
- {
54342
- "kind": "field",
54343
- "name": "#handleSpatialKey",
54344
- "privacy": "private"
54345
- },
54346
- {
54347
- "kind": "method",
54348
- "name": "#requestDiscretePan",
54349
- "privacy": "private",
54350
- "return": {
54351
- "type": {
54352
- "text": "void"
54353
- }
54354
- },
54355
- "parameters": [
54356
- {
54357
- "name": "event",
54358
- "type": {
54359
- "text": "CommandEvent | KeyboardEvent"
54360
- }
54361
- },
54362
- {
54363
- "name": "request",
54364
- "type": {
54365
- "text": "DiscretePanRequest"
54366
- }
54367
- }
54368
- ]
54369
- },
54370
- {
54371
- "kind": "field",
54372
- "name": "#handleViewportKeyDown",
54373
- "privacy": "private"
54374
- },
54375
- {
54376
- "kind": "method",
54377
- "name": "#requestZoom",
54378
- "privacy": "private",
54379
- "return": {
54380
- "type": {
54381
- "text": "void"
54382
- }
54383
- },
54384
- "parameters": [
54385
- {
54386
- "name": "event",
54387
- "type": {
54388
- "text": "CommandEvent | KeyboardEvent"
54389
- }
54390
- },
54391
- {
54392
- "name": "next",
54393
- "type": {
54394
- "text": "ViewportTransform"
54395
- }
54396
- },
54397
- {
54398
- "name": "source",
54399
- "type": {
54400
- "text": "'command' | 'keyboard'"
54401
- }
54402
- }
54403
- ]
54404
- },
54405
- {
54406
- "kind": "method",
54407
- "name": "#acceptsKeyboardZoom",
54408
- "privacy": "private",
54409
- "return": {
54410
- "type": {
54411
- "text": "boolean"
54412
- }
54413
- },
54414
- "parameters": [
54415
- {
54416
- "name": "event",
54417
- "type": {
54418
- "text": "KeyboardEvent"
54419
- }
54420
- }
54421
- ]
54422
- },
54423
- {
54424
- "kind": "method",
54425
- "name": "#acceptsKeyboardPan",
54426
- "privacy": "private",
54427
- "return": {
54428
- "type": {
54429
- "text": "boolean"
54430
- }
54431
- },
54432
- "parameters": [
54433
- {
54434
- "name": "event",
54435
- "type": {
54436
- "text": "KeyboardEvent"
54437
- }
54438
- }
54439
- ]
54440
- },
54441
- {
54442
- "kind": "method",
54443
- "name": "#syncFocusability",
54444
- "privacy": "private",
54445
- "return": {
54446
- "type": {
54447
- "text": "void"
54448
- }
54449
- },
54450
- "parameters": [
54451
- {
54452
- "name": "behaviorEnabled",
54453
- "type": {
54454
- "text": "boolean"
54455
- }
54456
- }
54457
- ]
54458
- }
54459
- ]
54460
- },
54461
- {
54462
- "kind": "variable",
54463
- "name": "next"
54464
- }
54465
- ],
54466
- "exports": [
54467
- {
54468
- "kind": "js",
54469
- "name": "ViewportNavigationController",
54470
- "declaration": {
54471
- "name": "ViewportNavigationController",
54472
- "module": "/src/viewport/viewport-navigation.controller.js"
54473
- }
54474
- }
54475
- ]
54476
- },
54477
- {
54478
- "kind": "javascript-module",
54479
- "path": "/src/viewport/viewport-navigation.types.js",
54480
- "declarations": [],
54481
- "exports": []
54482
- },
54483
- {
54484
- "kind": "javascript-module",
54485
- "path": "/src/viewport/viewport-projection.utils.js",
54486
- "declarations": [
54487
- {
54488
- "kind": "function",
54489
- "name": "anchoredTransform",
54490
- "return": {
54491
- "type": {
54492
- "text": "ViewportTransform"
54493
- }
54494
- },
54495
- "parameters": [
54496
- {
54497
- "name": "anchor",
54498
- "type": {
54499
- "text": "ViewportPoint",
54500
- "_sourceAliases": []
54501
- }
54502
- },
54503
- {
54504
- "name": "viewport",
54505
- "type": {
54506
- "text": "ViewportPoint",
54507
- "_sourceAliases": []
54508
- }
54509
- },
54510
- {
54511
- "name": "scale",
54512
- "type": {
54513
- "text": "number",
54514
- "_sourceAliases": []
54515
- }
54516
- }
54517
- ]
54518
- },
54519
- {
54520
- "kind": "function",
54521
- "name": "contentPointFromViewport",
54522
- "return": {
54523
- "type": {
54524
- "text": "ViewportPoint"
54525
- }
54526
- },
54527
- "parameters": [
54528
- {
54529
- "name": "viewportX",
54530
- "type": {
54531
- "text": "number",
54532
- "_sourceAliases": []
54533
- }
54534
- },
54535
- {
54536
- "name": "viewportY",
54537
- "type": {
54538
- "text": "number",
54539
- "_sourceAliases": []
54540
- }
54541
- },
54542
- {
54543
- "name": "transform",
54544
- "type": {
54545
- "text": "ViewportTransform",
54546
- "_sourceAliases": []
54547
- }
54548
- }
54549
- ]
54550
- },
54551
- {
54552
- "kind": "function",
54553
- "name": "centeredScaleTransform",
54554
- "return": {
54555
- "type": {
54556
- "text": "ViewportTransform"
54557
- }
54558
- },
54559
- "parameters": [
54560
- {
54561
- "name": "scale",
54562
- "type": {
54563
- "text": "number",
54564
- "_sourceAliases": []
54565
- }
54566
- },
54567
- {
54568
- "name": "transform",
54569
- "type": {
54570
- "text": "ViewportTransform",
54571
- "_sourceAliases": []
54572
- }
54573
- },
54574
- {
54575
- "name": "viewportSize",
54576
- "type": {
54577
- "text": "{ width: number; height: number }",
54578
- "_sourceAliases": []
54579
- }
54580
- }
54581
- ]
54582
- }
54583
- ],
54584
- "exports": [
54585
- {
54586
- "kind": "js",
54587
- "name": "anchoredTransform",
54588
- "declaration": {
54589
- "name": "anchoredTransform",
54590
- "module": "/src/viewport/viewport-projection.utils.js"
54591
- }
54592
- },
54593
- {
54594
- "kind": "js",
54595
- "name": "contentPointFromViewport",
54596
- "declaration": {
54597
- "name": "contentPointFromViewport",
54598
- "module": "/src/viewport/viewport-projection.utils.js"
54599
- }
54600
- },
54601
- {
54602
- "kind": "js",
54603
- "name": "centeredScaleTransform",
54604
- "declaration": {
54605
- "name": "centeredScaleTransform",
54606
- "module": "/src/viewport/viewport-projection.utils.js"
54607
- }
54608
- }
54609
- ]
54610
- },
54611
- {
54612
- "kind": "javascript-module",
54613
- "path": "/src/viewport/viewport.js",
54614
- "declarations": [
54615
- {
54616
- "kind": "class",
54617
- "description": "A viewport provides a spatial surface for arbitrary content, with optional pan and zoom navigation.",
54618
- "name": "Viewport",
54619
- "cssProperties": [
54620
- {
54621
- "description": "Background color of the fixed viewport area. [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background)",
54622
- "name": "--background"
54623
- },
54624
- {
54625
- "name": "--min-height",
54626
- "description": "[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/min-height)"
54627
- },
54628
- {
54629
- "description": "Cursor shown over a background eligible for primary-pointer panning.",
54630
- "name": "--pan-cursor"
54631
- },
54632
- {
54633
- "description": "Cursor shown while a pointer pan is active.",
54634
- "name": "--panning-cursor"
54635
- }
54636
- ],
54637
- "slots": [
54638
- {
54639
- "description": "Content positioned in the viewport's infinite content space.",
54640
- "name": ""
54641
- },
54642
- {
54643
- "description": "Custom content rendered behind viewport content and excluded from content fitting",
54644
- "name": "background"
54645
- },
54646
- {
54647
- "description": "Interactive content fixed above the transformed plane and excluded from content fitting",
54648
- "name": "overlay"
54649
- }
54650
- ],
54651
- "members": [
54652
- {
54653
- "kind": "field",
54654
- "name": "x",
54655
- "type": {
54656
- "text": "number",
54657
- "_sourceAliases": [],
54658
- "values": [
54659
- {
54660
- "value": "number",
54661
- "description": ""
54662
- }
54663
- ]
54664
- },
54665
- "description": "Horizontal content-space coordinate at the viewport origin.",
54666
- "attribute": "x"
54667
- },
54668
- {
54669
- "kind": "field",
54670
- "name": "y",
54671
- "type": {
54672
- "text": "number",
54673
- "_sourceAliases": [],
54674
- "values": [
54675
- {
54676
- "value": "number",
54677
- "description": ""
54678
- }
54679
- ]
54680
- },
54681
- "description": "Vertical content-space coordinate at the viewport origin.",
54682
- "attribute": "y"
54683
- },
54684
- {
54685
- "kind": "field",
54686
- "name": "scale",
54687
- "type": {
54688
- "text": "number",
54689
- "_sourceAliases": [],
54690
- "values": [
54691
- {
54692
- "value": "number",
54693
- "description": ""
54694
- }
54695
- ]
54696
- },
54697
- "description": "Content-to-viewport CSS-pixel scale.",
54698
- "attribute": "scale"
54699
- },
54700
- {
54701
- "kind": "field",
54702
- "name": "minScale",
54703
- "type": {
54704
- "text": "number",
54705
- "_sourceAliases": [],
54706
- "values": [
54707
- {
54708
- "value": "number",
54709
- "description": ""
54710
- }
54711
- ]
54712
- },
54713
- "description": "Inclusive lower scale limit.",
54714
- "attribute": "min-scale",
54715
- "reflects": true
54716
- },
54717
- {
54718
- "kind": "field",
54719
- "name": "maxScale",
54720
- "type": {
54721
- "text": "number",
54722
- "_sourceAliases": [],
54723
- "values": [
54724
- {
54725
- "value": "number",
54726
- "description": ""
54727
- }
54728
- ]
54729
- },
54730
- "description": "Inclusive upper scale limit.",
54731
- "attribute": "max-scale",
54732
- "reflects": true
54733
- },
54734
- {
54735
- "kind": "field",
54736
- "name": "zoomStops",
54737
- "type": {
54738
- "text": "readonly number[] | undefined",
54739
- "_sourceAliases": [],
54740
- "values": [
54741
- {
54742
- "value": "readonly number[]",
54743
- "description": ""
54744
- }
54745
- ]
54746
- },
54747
- "description": "Scale stops for keyboard and command zoom, clamped to the scale bounds.\nDefaults to built-in stops; an empty array uses only the bounds.",
54748
- "attribute": "zoom-stops"
54749
- },
54750
- {
54751
- "kind": "field",
54752
- "name": "behaviorPan",
54753
- "type": {
54754
- "text": "boolean | 'space'",
54755
- "_sourceAliases": [
54756
- "ViewportPanBehavior"
54757
- ],
54758
- "values": [
54759
- {
54760
- "value": "boolean",
54761
- "description": ""
54762
- },
54763
- {
54764
- "value": "space",
54765
- "description": ""
54766
- }
54767
- ]
54768
- },
54769
- "description": "Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space.",
54770
- "attribute": "behavior-pan",
54771
- "reflects": true
54772
- },
54773
- {
54774
- "kind": "field",
54775
- "name": "behaviorZoom",
54776
- "type": {
54777
- "text": "boolean",
54778
- "_sourceAliases": [],
54779
- "values": [
54780
- {
54781
- "value": "true",
54782
- "description": ""
54783
- },
54784
- {
54785
- "value": "false",
54786
- "description": ""
54787
- }
54788
- ]
54789
- },
54790
- "default": "false",
54791
- "description": "Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands.",
54792
- "attribute": "behavior-zoom",
54793
- "reflects": true
54794
- },
54795
- {
54796
- "kind": "field",
54797
- "name": "pannable",
54798
- "type": {
54799
- "text": "boolean",
54800
- "_sourceAliases": [],
54801
- "values": [
54802
- {
54803
- "value": "true",
54804
- "description": ""
54805
- },
54806
- {
54807
- "value": "false",
54808
- "description": ""
54809
- }
54810
- ]
54811
- },
54812
- "description": "Whether the viewport may admit new user-input panning.",
54813
- "readonly": true
54814
- },
54815
- {
54816
- "kind": "field",
54817
- "name": "zoomable",
54818
- "type": {
54819
- "text": "boolean",
54820
- "_sourceAliases": [],
54821
- "values": [
54822
- {
54823
- "value": "true",
54824
- "description": ""
54825
- },
54826
- {
54827
- "value": "false",
54828
- "description": ""
54829
- }
54830
- ]
54831
- },
54832
- "description": "Whether the viewport may admit new user-input zooming.",
54833
- "readonly": true
54834
- },
54835
- {
54836
- "kind": "field",
54837
- "name": "autoFit",
54838
- "type": {
54839
- "text": "boolean",
54840
- "_sourceAliases": [],
54841
- "values": [
54842
- {
54843
- "value": "true",
54844
- "description": ""
54845
- },
54846
- {
54847
- "value": "false",
54848
- "description": ""
54849
- }
54850
- ]
54851
- },
54852
- "default": "false",
54853
- "description": "Fits measurable direct default-slot content once after initial layout.",
54854
- "attribute": "autoFit",
54855
- "reflects": true
54856
- },
54857
- {
54858
- "kind": "field",
54859
- "name": "fitInset",
54860
- "type": {
54861
- "text": "number",
54862
- "_sourceAliases": [],
54863
- "values": [
54864
- {
54865
- "value": "number",
54866
- "description": ""
54867
- }
54868
- ]
54869
- },
54870
- "description": "Default uniform CSS-pixel inset reserved around bounds when fitting content.",
54871
- "attribute": "fit-inset",
54872
- "reflects": true
54873
- },
54874
- {
54875
- "kind": "field",
54876
- "name": "dragThreshold",
54877
- "type": {
54878
- "text": "number",
54879
- "_sourceAliases": [],
54880
- "values": [
54881
- {
54882
- "value": "number",
54883
- "description": ""
54884
- }
54885
- ]
54886
- },
54887
- "description": "CSS-pixel pointer movement required before a pointer pan begins.",
54888
- "attribute": "drag-threshold",
54889
- "reflects": true
54890
- },
54891
- {
54892
- "kind": "method",
54893
- "name": "toViewportCoords",
54894
- "return": {
54895
- "type": {
54896
- "text": "ViewportPoint"
54897
- }
54898
- },
54899
- "parameters": [
54900
- {
54901
- "name": "contentX",
54902
- "type": {
54903
- "text": "number"
54904
- }
54905
- },
54906
- {
54907
- "name": "contentY",
54908
- "type": {
54909
- "text": "number"
54910
- }
54911
- }
54912
- ],
54913
- "description": "Converts a content-space point to viewport CSS pixels."
54914
- },
54915
- {
54916
- "kind": "method",
54917
- "name": "toContentCoords",
54918
- "return": {
54919
- "type": {
54920
- "text": "ViewportPoint"
54921
- }
54922
- },
54923
- "parameters": [
54924
- {
54925
- "name": "viewportX",
54926
- "type": {
54927
- "text": "number"
54928
- }
54929
- },
54930
- {
54931
- "name": "viewportY",
54932
- "type": {
54933
- "text": "number"
54934
- }
54935
- }
54936
- ],
54937
- "description": "Converts a viewport CSS-pixel point to content space."
54938
- },
54939
- {
54940
- "kind": "method",
54941
- "name": "getTransform",
54942
- "return": {
54943
- "type": {
54944
- "text": "ViewportTransform"
54945
- }
54946
- },
54947
- "description": "Returns the current content-space origin and CSS-pixel scale."
54948
- },
54949
- {
54950
- "kind": "method",
54951
- "name": "getVisibleRect",
54952
- "return": {
54953
- "type": {
54954
- "text": "ViewportRect"
54955
- }
54956
- },
54957
- "description": "Returns the visible content-space rectangle."
54958
- },
54959
- {
54960
- "kind": "method",
54961
- "name": "requestPan",
54962
- "return": {
54963
- "type": {
54964
- "text": "boolean"
54965
- }
54966
- },
54967
- "parameters": [
54968
- {
54969
- "name": "proposal",
54970
- "type": {
54971
- "text": "ViewportPanProposal"
54972
- }
54973
- }
54974
- ],
54975
- "description": "Requests one discrete user-originated pan. When pannable, the viewport dispatches\na cancelable `pan` and applies the default transform if no listener cancels the event.\nReturns true only when that default changes the transform."
54976
- },
54977
- {
54978
- "kind": "method",
54979
- "name": "requestZoom",
54980
- "return": {
54981
- "type": {
54982
- "text": "boolean"
54983
- }
54984
- },
54985
- "parameters": [
54986
- {
54987
- "name": "proposal",
54988
- "type": {
54989
- "text": "ViewportZoomProposal"
54990
- }
54991
- },
54992
- {
54993
- "name": "options",
54994
- "default": "{}",
54995
- "type": {
54996
- "text": "ViewportZoomRequestOptions"
54997
- }
54998
- }
54999
- ],
55000
- "description": "Requests one discrete user-originated zoom. When zoomable, the viewport dispatches\na cancelable `zoom` and applies the default transform if no listener cancels the event.\nSet `options.animated` to animate the uncanceled default; the option is absent from the `zoom` detail.\nReturns true when the default changes or schedules a change to the transform."
55001
- },
55002
- {
55003
- "kind": "method",
55004
- "name": "startPan",
55005
- "return": {
55006
- "type": {
55007
- "text": "ViewportPanSession | undefined"
55008
- }
55009
- },
55010
- "parameters": [
55011
- {
55012
- "name": "proposal",
55013
- "type": {
55014
- "text": "ViewportPanProposal"
55015
- }
55016
- }
55017
- ],
55018
- "description": "Starts a sustained semantic pan after the caller crosses its activation threshold.\nDispatches `panstart`, performs the initial `pan` update, and returns a session for later updates\nand one terminal `panend`. Returns undefined when pannable is false."
55019
- },
55020
- {
55021
- "kind": "method",
55022
- "name": "animateTo",
55023
- "return": {
55024
- "type": {
55025
- "text": "void"
55026
- }
55027
- },
55028
- "parameters": [
55029
- {
55030
- "name": "target",
55031
- "type": {
55032
- "text": "Partial<ViewportTransform>"
55033
- }
55034
- },
55035
- {
55036
- "name": "options",
55037
- "default": "{}",
55038
- "type": {
55039
- "text": "ViewportAnimationOptions"
55040
- }
55041
- }
55042
- ],
55043
- "description": "Animates the viewport to the requested partial transform."
55044
- },
55045
- {
55046
- "kind": "method",
55047
- "name": "reveal",
55048
- "return": {
55049
- "type": {
55050
- "text": "void"
55051
- }
55052
- },
55053
- "parameters": [
55054
- {
55055
- "name": "region",
55056
- "type": {
55057
- "text": "{ x: number; y: number; width?: number; height?: number }"
55058
- }
55059
- },
55060
- {
55061
- "name": "options",
55062
- "default": "{}",
55063
- "type": {
55064
- "text": "ViewportRevealOptions"
55065
- }
55066
- }
55067
- ],
55068
- "description": "Centers or fits a content-space region within the viewport."
55069
- },
55070
- {
55071
- "kind": "method",
55072
- "name": "fitContents",
55073
- "return": {
55074
- "type": {
55075
- "text": "void"
55076
- }
55077
- },
55078
- "parameters": [
55079
- {
55080
- "name": "options",
55081
- "default": "{}",
55082
- "type": {
55083
- "text": "ViewportRevealOptions"
55084
- }
55085
- }
55086
- ],
55087
- "description": "Fits the union of direct default-slot element boxes within the viewport."
55088
- }
55089
- ],
55090
- "events": [
55091
- {
55092
- "name": "capabilitieschange",
55093
- "type": {
55094
- "text": "Event"
55095
- },
55096
- "description": "Dispatched after effective user-input pan or zoom admission changes."
55097
- },
55098
- {
55099
- "name": "viewportchange",
55100
- "type": {
55101
- "text": "CustomEvent"
55102
- },
55103
- "description": "Dispatched once after a render that commits one or more viewport transform changes."
55104
- },
55105
- {
55106
- "name": "type",
55107
- "type": {
55108
- "text": "CustomEvent"
55109
- }
55110
- },
55111
- {
55112
- "description": "Dispatched when a sustained pointer or control pan begins. Cancel to suppress the default for its session.",
55113
- "name": "panstart"
55114
- },
55115
- {
55116
- "description": "Dispatched for admitted user pan proposals. Cancel to skip the proposed transform mutation.",
55117
- "name": "pan"
55118
- },
55119
- {
55120
- "description": "Dispatched once when a sustained pan ends, including its terminal reason.",
55121
- "name": "panend"
55122
- },
55123
- {
55124
- "description": "Dispatched for admitted user zoom proposals. Cancel to skip the proposed transform mutation.",
55125
- "name": "zoom"
55126
- }
55127
- ],
55128
- "attributes": [
55129
- {
55130
- "name": "x",
55131
- "type": {
55132
- "text": "number",
55133
- "_sourceAliases": [],
55134
- "values": [
55135
- {
55136
- "value": "number",
55137
- "description": ""
55138
- }
55139
- ]
55140
- },
55141
- "description": "Horizontal content-space coordinate at the viewport origin.",
55142
- "fieldName": "x"
55143
- },
55144
- {
55145
- "name": "y",
55146
- "type": {
55147
- "text": "number",
55148
- "_sourceAliases": [],
55149
- "values": [
55150
- {
55151
- "value": "number",
55152
- "description": ""
55153
- }
55154
- ]
55155
- },
55156
- "description": "Vertical content-space coordinate at the viewport origin.",
55157
- "fieldName": "y"
55158
- },
55159
- {
55160
- "name": "scale",
55161
- "type": {
55162
- "text": "number",
55163
- "_sourceAliases": [],
55164
- "values": [
55165
- {
55166
- "value": "number",
55167
- "description": ""
55168
- }
55169
- ]
55170
- },
55171
- "description": "Content-to-viewport CSS-pixel scale.",
55172
- "fieldName": "scale"
55173
- },
55174
- {
55175
- "name": "min-scale",
55176
- "type": {
55177
- "text": "number",
55178
- "_sourceAliases": [],
55179
- "values": [
55180
- {
55181
- "value": "number",
55182
- "description": ""
55183
- }
55184
- ]
55185
- },
55186
- "description": "Inclusive lower scale limit.",
55187
- "fieldName": "minScale"
55188
- },
55189
- {
55190
- "name": "max-scale",
55191
- "type": {
55192
- "text": "number",
55193
- "_sourceAliases": [],
55194
- "values": [
55195
- {
55196
- "value": "number",
55197
- "description": ""
55198
- }
55199
- ]
55200
- },
55201
- "description": "Inclusive upper scale limit.",
55202
- "fieldName": "maxScale"
55203
- },
55204
- {
55205
- "name": "zoom-stops",
55206
- "type": {
55207
- "text": "readonly number[] | undefined",
55208
- "_sourceAliases": [],
55209
- "values": [
55210
- {
55211
- "value": "readonly number[]",
55212
- "description": ""
55213
- }
55214
- ]
55215
- },
55216
- "description": "Scale stops for keyboard and command zoom, clamped to the scale bounds.\nDefaults to built-in stops; an empty array uses only the bounds.",
55217
- "fieldName": "zoomStops"
55218
- },
55219
- {
55220
- "name": "behavior-pan",
55221
- "type": {
55222
- "text": "boolean | 'space'",
55223
- "_sourceAliases": [
55224
- "ViewportPanBehavior"
55225
- ],
55226
- "values": [
55227
- {
55228
- "value": "boolean",
55229
- "description": ""
55230
- },
55231
- {
55232
- "value": "space",
55233
- "description": ""
55234
- }
55235
- ]
55236
- },
55237
- "description": "Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space.",
55238
- "fieldName": "behaviorPan"
55239
- },
55240
- {
55241
- "name": "behavior-zoom",
55242
- "type": {
55243
- "text": "boolean",
55244
- "_sourceAliases": [],
55245
- "values": [
55246
- {
55247
- "value": "true",
55248
- "description": ""
55249
- },
55250
- {
55251
- "value": "false",
55252
- "description": ""
55253
- }
55254
- ]
55255
- },
55256
- "default": "false",
55257
- "description": "Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands.",
55258
- "fieldName": "behaviorZoom"
55259
- },
55260
- {
55261
- "name": "autoFit",
55262
- "type": {
55263
- "text": "boolean",
55264
- "_sourceAliases": [],
55265
- "values": [
55266
- {
55267
- "value": "true",
55268
- "description": ""
55269
- },
55270
- {
55271
- "value": "false",
55272
- "description": ""
55273
- }
55274
- ]
55275
- },
55276
- "default": "false",
55277
- "description": "Fits measurable direct default-slot content once after initial layout.",
55278
- "fieldName": "autoFit"
55279
- },
55280
- {
55281
- "name": "fit-inset",
55282
- "type": {
55283
- "text": "number",
55284
- "_sourceAliases": [],
55285
- "values": [
55286
- {
55287
- "value": "number",
55288
- "description": ""
55289
- }
55290
- ]
55291
- },
55292
- "description": "Default uniform CSS-pixel inset reserved around bounds when fitting content.",
55293
- "fieldName": "fitInset"
55294
- },
55295
- {
55296
- "name": "drag-threshold",
55297
- "type": {
55298
- "text": "number",
55299
- "_sourceAliases": [],
55300
- "values": [
55301
- {
55302
- "value": "number",
55303
- "description": ""
55304
- }
55305
- ]
55306
- },
55307
- "description": "CSS-pixel pointer movement required before a pointer pan begins.",
55308
- "fieldName": "dragThreshold"
55309
- }
55310
- ],
55311
- "superclass": {
55312
- "name": "LitElement",
55313
- "package": "lit"
55314
- },
55315
- "tagName": "nve-viewport",
55316
- "customElement": true,
55317
- "metadata": {
55318
- "unitTests": true,
55319
- "apiReview": true,
55320
- "performance": true,
55321
- "stable": false,
55322
- "vqa": true,
55323
- "responsive": true,
55324
- "themes": true,
55325
- "aria": "#",
55326
- "entrypoint": "@nvidia-elements/core/viewport",
55327
- "example": "<nve-viewport autofit fit-inset=\"24\" behavior-pan behavior-zoom style=\"height: 420px\">\n <nve-viewport-gridlines></nve-viewport-gridlines>\n\n <svg role=\"img\" aria-label=\"Three geometric forms in a spatial field\" width=\"900\" height=\"600\" viewBox=\"0 0 900 600\" style=\"position: absolute; left: 0; top: 0\">\n <circle cx=\"200\" cy=\"400\" r=\"100\" fill=\"var(--nve-ref-color-green-jade-600)\"></circle>\n <rect x=\"350\" y=\"100\" width=\"200\" height=\"200\" rx=\"50\" fill=\"var(--nve-ref-color-blue-cobalt-600)\"></rect>\n <path d=\"M 700 290 L 810 400 L 700 510 L 590 400 Z\" fill=\"var(--nve-ref-color-purple-lavender-600)\"></path>\n <rect x=\"1\" y=\"1\" width=\"898\" height=\"598\" rx=\"24\" fill=\"none\" stroke=\"var(--nve-ref-border-color-emphasis)\" stroke-width=\"2\" stroke-dasharray=\"32 20\" vector-effect=\"non-scaling-stroke\"></rect>\n </svg>\n\n <nve-viewport-minimap></nve-viewport-minimap>\n</nve-viewport>",
55328
- "package": true,
55329
- "documentation": "https://nvidia.github.io/elements/docs/elements/viewport/",
55330
- "since": "0.0.0",
55331
- "status": "beta",
55332
- "behavior": "content",
55333
- "markdown": "## nve-viewport\n\nA viewport provides a spatial surface for arbitrary content, with optional pan and zoom navigation.\n\n### Example\n\n```html\n<nve-viewport autofit fit-inset=\"24\" behavior-pan behavior-zoom style=\"height: 420px\">\n <nve-viewport-gridlines></nve-viewport-gridlines>\n\n <svg role=\"img\" aria-label=\"Three geometric forms in a spatial field\" width=\"900\" height=\"600\" viewBox=\"0 0 900 600\" style=\"position: absolute; left: 0; top: 0\">\n <circle cx=\"200\" cy=\"400\" r=\"100\" fill=\"var(--nve-ref-color-green-jade-600)\"></circle>\n <rect x=\"350\" y=\"100\" width=\"200\" height=\"200\" rx=\"50\" fill=\"var(--nve-ref-color-blue-cobalt-600)\"></rect>\n <path d=\"M 700 290 L 810 400 L 700 510 L 590 400 Z\" fill=\"var(--nve-ref-color-purple-lavender-600)\"></path>\n <rect x=\"1\" y=\"1\" width=\"898\" height=\"598\" rx=\"24\" fill=\"none\" stroke=\"var(--nve-ref-border-color-emphasis)\" stroke-width=\"2\" stroke-dasharray=\"32 20\" vector-effect=\"non-scaling-stroke\"></rect>\n </svg>\n\n <nve-viewport-minimap></nve-viewport-minimap>\n</nve-viewport>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/viewport/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | Content positioned in the viewport's infinite content space. |\n| background | `string` | Custom content rendered behind viewport content and excluded from content fitting |\n| overlay | `string` | Interactive content fixed above the transformed plane and excluded from content fitting |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| autoFit | `boolean` | Fits measurable direct default-slot content once after initial layout. |\n| behaviorPan (behavior-pan) | `boolean \\| 'space'` | Enables panning by pointer, focused wheel, focused keyboard, and Invoker commands; requires Space for primary-pointer dragging when set to space. |\n| behaviorZoom (behavior-zoom) | `boolean` | Enables zooming by pinch, focused modified wheel, focused keyboard, and Invoker commands. |\n| dragThreshold (drag-threshold) | `number` | CSS-pixel pointer movement required before a pointer pan begins. |\n| fitInset (fit-inset) | `number` | Default uniform CSS-pixel inset reserved around bounds when fitting content. |\n| maxScale (max-scale) | `number` | Inclusive upper scale limit. |\n| minScale (min-scale) | `number` | Inclusive lower scale limit. |\n| pannable | `boolean` | Whether the viewport may admit new user-input panning. |\n| scale | `number` | Content-to-viewport CSS-pixel scale. |\n| x | `number` | Horizontal content-space coordinate at the viewport origin. |\n| y | `number` | Vertical content-space coordinate at the viewport origin. |\n| zoomable | `boolean` | Whether the viewport may admit new user-input zooming. |\n| zoomStops (zoom-stops) | `readonly number[] \\| undefined` | Scale stops for keyboard and command zoom, clamped to the scale bounds. Defaults to built-in stops; an empty array uses only the bounds. |\n\n### Events\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| capabilitieschange | `CustomEvent` | Dispatched after effective user-input pan or zoom admission changes. |\n| pan | `CustomEvent` | Dispatched for admitted user pan proposals. Cancel to skip the proposed transform mutation. |\n| panend | `CustomEvent` | Dispatched once when a sustained pan ends, including its terminal reason. |\n| panstart | `CustomEvent` | Dispatched when a sustained pointer or control pan begins. Cancel to suppress the default for its session. |\n| type | `CustomEvent` | |\n| viewportchange | `CustomEvent` | Dispatched once after a render that commits one or more viewport transform changes. |\n| zoom | `CustomEvent` | Dispatched for admitted user zoom proposals. Cancel to skip the proposed transform mutation. |\n\n### Invoker Commands\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --pan-down | `CommandEvent` | With behavior-pan enabled, pans down by one discrete step. |\n| --pan-left | `CommandEvent` | With behavior-pan enabled, pans left by one discrete step. |\n| --pan-right | `CommandEvent` | With behavior-pan enabled, pans right by one discrete step. |\n| --pan-up | `CommandEvent` | With behavior-pan enabled, pans up by one discrete step. |\n| --zoom-in | `CommandEvent` | With behavior-zoom enabled, animates to the next permitted scale step. |\n| --zoom-out | `CommandEvent` | With behavior-zoom enabled, animates to the previous permitted scale step. |\n| --zoom-reset | `CommandEvent` | With behavior-zoom enabled, animates to 100% scale. |\n| --zoom-to-fit | `CommandEvent` | With behavior-zoom enabled, animates to fit direct default-slot element boxes. |\n\n### Methods\n\n| method | signatures | description |\n| ------ | ---------- | ----------- |\n| animateTo | `animateTo(target: Partial<ViewportTransform>, options?: ViewportAnimationOptions): void` | Animates the viewport to the requested partial transform. |\n| fitContents | `fitContents(options?: ViewportRevealOptions): void` | Fits the union of direct default-slot element boxes within the viewport. |\n| getTransform | `getTransform(): ViewportTransform` | Returns the current content-space origin and CSS-pixel scale. |\n| getVisibleRect | `getVisibleRect(): ViewportRect` | Returns the visible content-space rectangle. |\n| requestPan | `requestPan(proposal: ViewportPanProposal): boolean` | Requests one discrete user-originated pan. When pannable, the viewport dispatches a cancelable `pan` and applies the default transform if no listener cancels the event. Returns true only when that default changes the transform. |\n| requestZoom | `requestZoom(proposal: ViewportZoomProposal, options?: ViewportZoomRequestOptions): boolean` | Requests one discrete user-originated zoom. When zoomable, the viewport dispatches a cancelable `zoom` and applies the default transform if no listener cancels the event. Set `options.animated` to animate the uncanceled default; the option is absent from the `zoom` detail. Returns true when the default changes or schedules a change to the transform. |\n| reveal | `reveal(region: { x: number; y: number; width?: number; height?: number }, options?: ViewportRevealOptions): void` | Centers or fits a content-space region within the viewport. |\n| startPan | `startPan(proposal: ViewportPanProposal): ViewportPanSession \\| undefined` | Starts a sustained semantic pan after the caller crosses its activation threshold. Dispatches `panstart`, performs the initial `pan` update, and returns a session for later updates and one terminal `panend`. Returns undefined when pannable is false. |\n| toContentCoords | `toContentCoords(viewportX: number, viewportY: number): ViewportPoint` | Converts a viewport CSS-pixel point to content space. |\n| toViewportCoords | `toViewportCoords(contentX: number, contentY: number): ViewportPoint` | Converts a content-space point to viewport CSS pixels. |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --background | `string` | Background color of the fixed viewport area. [MDN](https://mdn.dev/CSS/background) |\n| --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) |\n| --pan-cursor | `string` | Cursor shown over a background eligible for primary-pointer panning. |\n| --panning-cursor | `string` | Cursor shown while a pointer pan is active. |"
55334
- },
55335
- "commands": [
55336
- {
55337
- "name": "--pan-left",
55338
- "description": "With behavior-pan enabled, pans left by one discrete step."
55339
- },
55340
- {
55341
- "name": "--pan-right",
55342
- "description": "With behavior-pan enabled, pans right by one discrete step."
55343
- },
55344
- {
55345
- "name": "--pan-up",
55346
- "description": "With behavior-pan enabled, pans up by one discrete step."
55347
- },
55348
- {
55349
- "name": "--pan-down",
55350
- "description": "With behavior-pan enabled, pans down by one discrete step."
55351
- },
55352
- {
55353
- "name": "--zoom-in",
55354
- "description": "With behavior-zoom enabled, animates to the next permitted scale step."
55355
- },
55356
- {
55357
- "name": "--zoom-out",
55358
- "description": "With behavior-zoom enabled, animates to the previous permitted scale step."
55359
- },
55360
- {
55361
- "name": "--zoom-reset",
55362
- "description": "With behavior-zoom enabled, animates to 100% scale."
55363
- },
55364
- {
55365
- "name": "--zoom-to-fit",
55366
- "description": "With behavior-zoom enabled, animates to fit direct default-slot element boxes."
55367
- }
55368
- ]
55369
- },
55370
- {
55371
- "kind": "variable",
55372
- "name": "next"
55373
- },
55374
- {
55375
- "kind": "variable",
55376
- "name": "source"
55377
- },
55378
- {
55379
- "kind": "variable",
55380
- "name": "stops"
55381
- }
55382
- ],
55383
- "exports": [
55384
- {
55385
- "kind": "js",
55386
- "name": "Viewport",
55387
- "declaration": {
55388
- "name": "Viewport",
55389
- "module": "/src/viewport/viewport.js"
55390
- }
55391
- }
55392
- ]
55393
- },
55394
- {
55395
- "kind": "javascript-module",
55396
- "path": "/src/viewport/viewport.types.js",
55397
- "declarations": [],
55398
- "exports": []
55399
- },
55400
52141
  {
55401
52142
  "kind": "javascript-module",
55402
52143
  "path": "/src/week/define.js",