@antv/l7-component 2.17.2 → 2.17.4

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 (50) hide show
  1. package/es/assets/iconfont/iconfont.js +17 -10
  2. package/es/control/baseControl/buttonControl.js +42 -9
  3. package/es/control/baseControl/control.js +53 -24
  4. package/es/control/baseControl/index.d.ts +4 -4
  5. package/es/control/baseControl/index.js +4 -4
  6. package/es/control/baseControl/popperControl.js +24 -10
  7. package/es/control/baseControl/selectControl.js +45 -6
  8. package/es/control/exportImage.js +116 -76
  9. package/es/control/fullscreen.js +53 -20
  10. package/es/control/geoLocate.js +66 -36
  11. package/es/control/layerSwitch.js +31 -0
  12. package/es/control/logo.js +14 -2
  13. package/es/control/mapTheme.js +32 -7
  14. package/es/control/mouseLocation.js +23 -2
  15. package/es/control/scale.js +29 -6
  16. package/es/control/zoom.js +23 -0
  17. package/es/index.d.ts +11 -11
  18. package/es/index.js +23 -13
  19. package/es/marker-layer.js +75 -41
  20. package/es/marker.js +83 -29
  21. package/es/popup/layerPopup.js +82 -31
  22. package/es/popup/popup.js +127 -48
  23. package/es/utils/anchor.js +7 -3
  24. package/es/utils/popper.js +64 -15
  25. package/es/utils/screenfull.js +52 -23
  26. package/lib/assets/iconfont/iconfont.js +17 -10
  27. package/lib/control/baseControl/buttonControl.js +52 -9
  28. package/lib/control/baseControl/control.js +68 -24
  29. package/lib/control/baseControl/index.js +35 -41
  30. package/lib/control/baseControl/popperControl.js +29 -10
  31. package/lib/control/baseControl/selectControl.js +60 -6
  32. package/lib/control/exportImage.js +125 -76
  33. package/lib/control/fullscreen.js +60 -20
  34. package/lib/control/geoLocate.js +75 -36
  35. package/lib/control/layerSwitch.js +36 -0
  36. package/lib/control/logo.js +26 -2
  37. package/lib/control/mapTheme.js +42 -7
  38. package/lib/control/mouseLocation.js +33 -2
  39. package/lib/control/scale.js +40 -6
  40. package/lib/control/zoom.js +33 -0
  41. package/lib/index.js +108 -122
  42. package/lib/marker-layer.js +86 -39
  43. package/lib/marker.js +91 -29
  44. package/lib/popup/layerPopup.js +94 -29
  45. package/lib/popup/popup.js +139 -48
  46. package/lib/utils/anchor.js +9 -4
  47. package/lib/utils/icon.js +2 -0
  48. package/lib/utils/popper.js +71 -14
  49. package/lib/utils/screenfull.js +54 -23
  50. package/package.json +6 -6
@@ -2,28 +2,32 @@
2
2
  window._iconfont_svg_string_3580659 = '<svg><symbol id="l7-icon-area1" viewBox="0 0 1024 1024"><path d="M796.444444 56.888889a113.777778 113.777778 0 0 1 43.064889 219.136l38.798223 466.261333a113.777778 113.777778 0 1 1-133.518223 145.237334H279.210667a113.777778 113.777778 0 1 1-60.302223-137.272889L697.856 227.555556A113.777778 113.777778 0 0 1 796.444444 56.888889z m56.888889 750.933333a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m-682.666666 0a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m577.592889-534.072889L269.198222 796.444444c4.152889 7.168 7.509333 14.791111 10.012445 22.812445h465.578666a114.119111 114.119111 0 0 1 65.479111-71.224889l-38.798222-466.261333a112.924444 112.924444 0 0 1-23.210666-7.964445zM796.444444 125.155556a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-area" viewBox="0 0 1024 1024"><path d="M796.444444 56.888889a113.777778 113.777778 0 0 1 43.008 219.136l38.855112 466.261333a113.777778 113.777778 0 0 1-16.497778 224.540445L853.333333 967.111111a113.777778 113.777778 0 0 1-108.544-79.644444H279.210667a113.834667 113.834667 0 0 1-100.067556 79.36L170.666667 967.111111a113.777778 113.777778 0 0 1-17.066667-226.304l30.492444-351.175111a113.777778 113.777778 0 0 1 34.986667-218.680889L227.555556 170.666667a113.777778 113.777778 0 0 1 99.896888 59.221333l355.84-71.395556a113.777778 113.777778 0 0 1 104.675556-101.262222L796.444444 56.888889z m56.888889 750.933333a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m-682.666666 0a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m526.051555-582.314666L340.650667 296.903111a113.891556 113.891556 0 0 1-88.462223 98.645333l-30.947555 355.84c27.477333 13.653333 48.64 38.115556 58.026667 67.754667h465.521777a114.119111 114.119111 0 0 1 65.536-71.168l-38.855111-466.261333a113.948444 113.948444 0 0 1-74.752-56.206222zM227.555556 238.933333a45.511111 45.511111 0 1 0 0 91.022223 45.511111 45.511111 0 0 0 0-91.022223z m568.888888-113.777777a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-delete" viewBox="0 0 1024 1024"><path d="M705.422222 85.333333a34.133333 34.133333 0 0 1 34.133334 34.133334V227.555556h136.533333a34.133333 34.133333 0 0 1 0 68.266666h-25.543111l-24.348445 610.076445a34.133333 34.133333 0 0 1-34.133333 32.768H231.936a34.133333 34.133333 0 0 1-34.076444-32.768L173.340444 295.822222H147.911111a34.133333 34.133333 0 1 1 0-68.266666H284.444444V119.466667a34.133333 34.133333 0 0 1 34.133334-34.133334h386.844444zM241.720889 295.822222l22.983111 574.577778h494.535111l23.04-574.577778H241.720889zM671.288889 153.6H352.711111V227.555556h318.577778V153.6z" ></path></symbol><symbol id="l7-icon-color" viewBox="0 0 1024 1024"><path d="M512 56.888889c9.841778 0 19.626667 0.341333 29.354667 0.910222 69.176889 4.437333 119.068444 62.577778 124.302222 131.072l0.455111 9.386667c0.739556 44.600889 15.303111 84.935111 44.999111 114.631111 27.022222 27.022222 62.805333 41.528889 102.570667 44.430222l12.060444 0.568889c72.476444 1.194667 135.793778 52.451556 140.458667 124.757333 1.137778 18.261333 1.251556 36.807111 0.170667 55.637334-13.198222 233.585778-211.399111 424.220444-445.326223 428.714666L512 967.111111a455.111111 455.111111 0 0 1-455.054222-464.156444c4.551111-233.927111 195.185778-432.128 428.771555-445.326223C494.535111 57.116444 503.296 56.888889 512 56.888889z m0 68.266667a385.706667 385.706667 0 0 0-22.414222 0.625777C291.726222 136.988444 129.080889 305.948444 125.155556 504.263111c-4.152889 212.366222 163.100444 387.185778 372.508444 394.353778l13.425778 0.227555 8.533333-0.113777c198.371556-3.811556 367.331556-166.456889 378.538667-364.373334a396.174222 396.174222 0 0 0-0.170667-47.331555c-1.991111-31.232-29.127111-56.604444-67.128889-60.472889l-8.248889-0.455111-14.051555-0.682667c-56.547556-4.209778-107.406222-25.884444-145.806222-64.284444-38.855111-38.798222-60.416-90.225778-64.284445-145.749334l-0.910222-21.333333c-2.901333-38.001778-28.785778-66.048-60.302222-68.096A433.891556 433.891556 0 0 0 512 125.155556zM438.044444 682.666667a68.266667 68.266667 0 1 1 0 136.533333 68.266667 68.266667 0 0 1 0-136.533333z m-170.666666-227.555556a68.266667 68.266667 0 1 1 0 136.533333 68.266667 68.266667 0 0 1 0-136.533333z m142.222222-227.555555a68.266667 68.266667 0 1 1 0 136.533333 68.266667 68.266667 0 0 1 0-136.533333z" ></path></symbol><symbol id="l7-icon-base-map" viewBox="0 0 1024 1024"><path d="M923.761778 115.029333A34.133333 34.133333 0 0 1 967.111111 147.911111v624.128a34.133333 34.133333 0 0 1-22.186667 32.028445l-278.755555 103.992888a34.133333 34.133333 0 0 1-23.665778 0.056889L381.724444 812.714667a34.133333 34.133333 0 0 0-23.665777 0.113777L102.968889 908.060444a34.133333 34.133333 0 0 1-45.738667-26.965333L56.888889 876.088889V251.960889a34.133333 34.133333 0 0 1 22.186667-32.028445l278.755555-103.992888a34.133333 34.133333 0 0 1 20.992-0.967112l266.183111 72.988445a34.133333 34.133333 0 0 0 18.204445 0zM403.911111 192.625778v555.576889l216.177778 79.075555V251.960889l-216.177778-59.335111z m-68.266667 4.380444L125.155556 275.569778v551.310222l210.432-78.506667V197.006222zM898.844444 192.853333l-210.545777 58.936889v575.089778l210.545777-78.563556V192.853333z" ></path></symbol><symbol id="l7-icon-dot" viewBox="0 0 1024 1024"><path d="M341.333333 739.555556a113.777778 113.777778 0 0 1 8.533334 227.271111L341.333333 967.111111a113.777778 113.777778 0 0 1-8.533333-227.271111L341.333333 739.555556z m0 68.266666a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222zM910.222222 341.333333a113.777778 113.777778 0 0 1 8.533334 227.271111L910.222222 568.888889a113.777778 113.777778 0 0 1-8.533333-227.271111L910.222222 341.333333z m0 68.266667a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222zM227.555556 56.888889a113.777778 113.777778 0 0 1 8.533333 227.271111L227.555556 284.444444a113.777778 113.777778 0 0 1-8.533334-227.271111L227.555556 56.888889z m0 68.266667a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-display" viewBox="0 0 1024 1024"><path d="M512 170.666667c284.444444 0 455.111111 227.555556 455.111111 341.333333s-170.666667 341.333333-455.111111 341.333333-455.111111-227.555556-455.111111-341.333333 170.666667-341.333333 455.111111-341.333333z m0 68.266666C303.729778 238.933333 125.155556 401.237333 125.155556 512c0 110.762667 178.574222 273.066667 386.844444 273.066667s386.844444-162.304 386.844444-273.066667c0-110.762667-178.574222-273.066667-386.844444-273.066667zM512 341.333333a170.666667 170.666667 0 1 1 0 341.333334 170.666667 170.666667 0 0 1 0-341.333334z m0 68.266667a102.4 102.4 0 1 0 0 204.8 102.4 102.4 0 0 0 0-204.8z" ></path></symbol><symbol id="l7-icon-enlarge" viewBox="0 0 1024 1024"><path d="M546.133333 147.911111l-0.056889 329.955556H876.088889a34.133333 34.133333 0 0 1 0 68.266666H546.076444v329.955556a34.133333 34.133333 0 0 1-68.266666 0V546.133333H147.911111a34.133333 34.133333 0 1 1 0-68.266666h329.898667V147.911111a34.133333 34.133333 0 0 1 68.266666 0z" ></path></symbol><symbol id="l7-icon-export-picture" viewBox="0 0 1024 1024"><path d="M883.873684 161.684211a32.336842 32.336842 0 0 1 32.336842 32.336842v582.063158a32.336842 32.336842 0 0 1-32.336842 32.336842H86.231579a32.336842 32.336842 0 0 1-32.336842-32.336842V194.021053a32.336842 32.336842 0 0 1 32.336842-32.336842h797.642105z m-32.336842 64.673684H118.568421v517.389473h170.792421a32.175158 32.175158 0 0 1 0.431158-0.646736l3.772632-4.473264 330.320842-330.374736a32.336842 32.336842 0 0 1 38.588631-5.389474l4.473263 3.018105 184.589474 147.725474V226.357895z m-202.428631 248.131368L379.850105 743.747368H851.536842v-107.304421l-202.428631-161.953684zM323.368421 323.368421a107.789474 107.789474 0 1 1 0 215.578947 107.789474 107.789474 0 0 1 0-215.578947z m0 64.673684a43.115789 43.115789 0 1 0 0 86.231579 43.115789 43.115789 0 0 0 0-86.231579z" ></path></symbol><symbol id="l7-icon-exit-fullscreen" viewBox="0 0 1024 1024"><path d="M841.955556 591.644444a34.133333 34.133333 0 0 1 5.518222 67.811556l-5.518222 0.455111h-133.745778l192 192.056889a34.133333 34.133333 0 0 1-38.343111 55.182222l-5.176889-2.958222-4.721778-3.982222L659.911111 708.266667V841.955556a34.133333 34.133333 0 0 1-28.615111 33.678222L625.777778 876.088889a34.133333 34.133333 0 0 1-33.678222-28.615111L591.644444 841.955556V625.777778a34.133333 34.133333 0 0 1 28.615112-33.678222L625.777778 591.644444h216.177778z m-443.733334 0a34.133333 34.133333 0 0 1 33.678222 28.615112L432.355556 625.777778v216.177778a34.133333 34.133333 0 0 1-67.811556 5.518222L364.088889 841.955556v-133.745778l-192.056889 192a34.133333 34.133333 0 0 1-52.224-43.52l3.982222-4.721778L315.847111 659.911111H182.044444a34.133333 34.133333 0 0 1-33.678222-28.615111L147.911111 625.777778a34.133333 34.133333 0 0 1 28.615111-33.678222L182.044444 591.644444H398.222222zM167.310222 119.808l4.721778 3.982222L364.088889 315.847111V182.044444a34.133333 34.133333 0 0 1 28.615111-33.678222L398.222222 147.911111a34.133333 34.133333 0 0 1 33.678222 28.615111L432.355556 182.044444V398.222222a34.133333 34.133333 0 0 1-28.615112 33.678222L398.222222 432.355556H182.044444a34.133333 34.133333 0 0 1-5.518222-67.811556L182.044444 364.088889h133.802667L123.790222 172.032a34.133333 34.133333 0 0 1 43.52-52.224z m732.899556 3.982222a34.133333 34.133333 0 0 1 3.982222 43.52l-3.982222 4.721778L708.266667 364.088889H841.955556a34.133333 34.133333 0 0 1 33.678222 28.615111L876.088889 398.222222a34.133333 34.133333 0 0 1-28.615111 33.678222L841.955556 432.355556H625.777778a34.133333 34.133333 0 0 1-33.678222-28.615112L591.644444 398.222222V182.044444a34.133333 34.133333 0 0 1 67.811556-5.518222l0.455111 5.518222v133.802667l192.056889-192.056889a34.133333 34.133333 0 0 1 48.241778 0z" ></path></symbol><symbol id="l7-icon-line" viewBox="0 0 1024 1024"><path d="M853.333333 56.888889a113.777778 113.777778 0 0 1 8.533334 227.271111L853.333333 284.444444c-19.000889 0-36.864-4.664889-52.622222-12.856888l-529.123555 529.066666a113.777778 113.777778 0 0 1-92.387556 166.115556L170.666667 967.111111a113.777778 113.777778 0 0 1-8.533334-227.271111L170.666667 739.555556c19.000889 0 36.864 4.664889 52.622222 12.856888l529.123555-529.066666a113.777778 113.777778 0 0 1 92.387556-166.115556L853.333333 56.888889zM170.666667 807.822222a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m682.666666-682.666666a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-layer" viewBox="0 0 1024 1024"><path d="M767.089778 625.777778l180.167111 82.773333a34.133333 34.133333 0 0 1 4.892444 59.278222l-4.892444 2.730667-420.977778 193.422222a34.133333 34.133333 0 0 1-22.983111 1.991111l-5.575111-1.991111-420.977778-193.422222a34.133333 34.133333 0 0 1-4.892444-59.278222l4.892444-2.730667L256.853333 625.777778l81.749334 37.546666L172.771556 739.555556 512 895.374222 851.171556 739.555556l-165.831112-76.231112 81.749334-37.546666z m0-227.555556l180.167111 82.773334a34.133333 34.133333 0 0 1 4.892444 59.278222l-4.892444 2.730666-420.977778 193.422223a34.133333 34.133333 0 0 1-22.983111 1.991111l-5.575111-1.991111-420.977778-193.422223a34.133333 34.133333 0 0 1-4.892444-59.278222l4.892444-2.730666L256.853333 398.222222l81.749334 37.546667-165.831111 76.174222L512 667.818667l339.171556-155.875556-165.831112-76.174222L767.089778 398.222222zM497.720889 60.017778a34.133333 34.133333 0 0 1 28.558222 0l420.977778 193.422222a34.133333 34.133333 0 0 1 0 62.008889l-420.977778 193.422222a34.133333 34.133333 0 0 1-28.558222 0l-420.977778-193.422222a34.133333 34.133333 0 0 1 0-62.008889zM512 128.568889L172.771556 284.387556 512 440.263111l339.171556-155.875555L512 128.568889z" ></path></symbol><symbol id="l7-icon-narrow" viewBox="0 0 1024 1024"><path d="M910.222222 512a34.133333 34.133333 0 0 1-34.133333 34.133333H147.911111a34.133333 34.133333 0 1 1 0-68.266666h728.177778a34.133333 34.133333 0 0 1 34.133333 34.133333z" ></path></symbol><symbol id="l7-icon-fullscreen" viewBox="0 0 1024 1024"><path d="M645.176889 597.674667l4.721778 3.982222L841.955556 793.6l0.056888-133.688889a34.133333 34.133333 0 0 1 28.615112-33.678222L876.088889 625.777778a34.133333 34.133333 0 0 1 33.678222 28.615111L910.222222 659.911111v216.177778a34.133333 34.133333 0 0 1-28.615111 33.678222L876.088889 910.222222h-216.177778a34.133333 34.133333 0 0 1-5.518222-67.811555l5.518222-0.455111h133.745778l-192-192.056889a34.133333 34.133333 0 0 1 43.52-52.224z m-222.833778 3.982222a34.133333 34.133333 0 0 1 3.982222 43.52l-3.982222 4.721778L230.286222 841.955556H364.088889a34.133333 34.133333 0 0 1 33.678222 28.615111L398.222222 876.088889a34.133333 34.133333 0 0 1-28.615111 33.678222L364.088889 910.222222H147.911111a34.133333 34.133333 0 0 1-33.678222-28.615111L113.777778 876.088889v-216.177778a34.133333 34.133333 0 0 1 67.811555-5.518222l0.455111 5.518222-0.056888 133.745778 192.113777-192a34.133333 34.133333 0 0 1 48.241778 0zM364.088889 113.777778a34.133333 34.133333 0 0 1 5.518222 67.811555L364.088889 182.044444H230.343111l192 192.056889a34.133333 34.133333 0 0 1-43.52 52.224l-4.721778-3.982222-192.113777-192.056889L182.044444 364.088889a34.133333 34.133333 0 0 1-28.615111 33.678222L147.911111 398.222222a34.133333 34.133333 0 0 1-33.678222-28.615111L113.777778 364.088889V147.911111a34.133333 34.133333 0 0 1 28.615111-33.678222L147.911111 113.777778h216.177778z m512 0a34.133333 34.133333 0 0 1 33.678222 28.615111L910.222222 147.911111v216.177778a34.133333 34.133333 0 0 1-67.811555 5.518222L841.955556 364.088889l-0.056889-133.745778-192 192a34.133333 34.133333 0 0 1-52.224-43.52l3.982222-4.721778L793.6 182.044444H659.911111a34.133333 34.133333 0 0 1-33.678222-28.615111L625.777778 147.911111a34.133333 34.133333 0 0 1 28.615111-33.678222L659.911111 113.777778h216.177778z" ></path></symbol><symbol id="l7-icon-hide" viewBox="0 0 1024 1024"><path d="M875.52 87.836444a34.133333 34.133333 0 0 1 7.281778 43.121778l-3.527111 5.006222-682.666667 796.444445a34.133333 34.133333 0 0 1-55.409778-39.367111l3.527111-5.006222 97.166223-113.379556C123.164444 697.969778 56.888889 582.940444 56.888889 512c0-113.777778 170.666667-341.333333 455.111111-341.333333a496.64 496.64 0 0 1 208.952889 45.112889l106.439111-124.188445a34.133333 34.133333 0 0 1 48.128-3.754667z m-38.684444 202.524445C921.031111 362.951111 967.111111 452.835556 967.111111 512c0 113.777778-170.666667 341.333333-455.111111 341.333333-50.631111 0-97.678222-7.224889-140.8-19.740444l50.232889-58.595556A417.393778 417.393778 0 0 0 512 785.066667c208.270222 0 386.844444-162.304 386.844444-273.066667 0-52.849778-40.675556-117.418667-105.813333-170.496l43.804445-51.2zM512 238.933333C303.729778 238.933333 125.155556 401.237333 125.155556 512c0 66.787556 64.853333 152.291556 162.133333 209.692444L377.173333 616.675556a170.666667 170.666667 0 0 1 217.713778-253.895112l78.620445-91.704888A432.924444 432.924444 0 0 0 512 238.933333z m166.684444 236.088889a170.666667 170.666667 0 0 1-177.664 207.303111l177.607112-207.303111zM512 409.6a102.4 102.4 0 0 0-88.746667 153.486222L548.864 416.426667A102.172444 102.172444 0 0 0 512 409.6z" ></path></symbol><symbol id="l7-icon-rectangle" viewBox="0 0 1024 1024"><path d="M170.666667 56.888889a113.777778 113.777778 0 0 1 108.544 79.644444H853.333333a34.133333 34.133333 0 0 1 33.678223 28.615111L887.466667 170.666667v574.122666a113.777778 113.777778 0 1 1-142.677334 142.734223L170.666667 887.466667a34.133333 34.133333 0 0 1-33.678223-28.615111L136.533333 853.333333V279.210667A113.777778 113.777778 0 0 1 170.666667 56.888889z m682.666666 750.933333a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m-34.133333-603.022222H279.210667a114.062222 114.062222 0 0 1-74.353778 74.410667L204.8 819.2h539.989333a114.062222 114.062222 0 0 1 74.410667-74.410667V204.8zM170.666667 125.155556a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-ranging" viewBox="0 0 1024 1024"><path d="M723.171556 50.403556l250.424888 250.424888a31.061333 31.061333 0 0 1 0 43.918223L344.746667 973.596444a31.061333 31.061333 0 0 1-43.918223 0L50.403556 723.171556a31.061333 31.061333 0 0 1 0-43.918223L679.253333 50.403556a31.061333 31.061333 0 0 1 43.918223 0z m-21.959112 74.524444l-39.765333 39.822222 98.986667 98.872889a34.133333 34.133333 0 0 1-44.088889 51.882667l-4.209778-3.640889-98.929778-98.929778-63.886222 63.886222 62.179556 62.122667a34.133333 34.133333 0 0 1-44.088889 51.882667L563.2 387.242667 501.077333 325.063111 437.191111 388.949333l98.986667 98.929778a34.133333 34.133333 0 0 1-44.088889 51.882667l-4.209778-3.640889-98.929778-98.929778-63.886222 63.886222L387.242667 563.2a34.133333 34.133333 0 0 1-44.088889 51.882667l-4.209778-3.584-62.122667-62.179556-63.886222 63.886222 98.986667 98.929778a34.133333 34.133333 0 0 1-44.088889 51.882667l-4.209778-3.640889-98.929778-98.929778-39.765333 39.822222 197.802667 197.745778 576.284444-576.284444-197.802667-197.745778z" ></path></symbol><symbol id="l7-icon-reposition" viewBox="0 0 1024 1024"><path d="M512 56.888889a34.133333 34.133333 0 0 1 34.133333 34.133333v24.177778A398.336 398.336 0 0 1 908.856889 477.866667h24.177778a34.133333 34.133333 0 0 1 0 68.266666h-24.177778A398.336 398.336 0 0 1 546.133333 908.856889L546.133333 932.977778a34.133333 34.133333 0 0 1-68.266666 0v-24.177778A398.336 398.336 0 0 1 115.2 546.133333L91.022222 546.133333a34.133333 34.133333 0 1 1 0-68.266666h24.177778A398.336 398.336 0 0 1 477.866667 115.2V91.022222A34.133333 34.133333 0 0 1 512 56.888889z m34.190222 126.862222L546.133333 193.422222a34.133333 34.133333 0 1 1-68.266666 0v-9.671111A330.069333 330.069333 0 0 0 183.751111 477.866667h9.671111a34.133333 34.133333 0 1 1 0 68.266666l-9.671111 0.056889A330.069333 330.069333 0 0 0 477.866667 840.248889V830.577778a34.133333 34.133333 0 0 1 68.266666 0l0.056889 9.671111A330.069333 330.069333 0 0 0 840.248889 546.133333L830.577778 546.133333a34.133333 34.133333 0 0 1 0-68.266666h9.671111A330.069333 330.069333 0 0 0 546.133333 183.751111zM512 341.333333a170.666667 170.666667 0 1 1 0 341.333334 170.666667 170.666667 0 0 1 0-341.333334z m0 68.266667a102.4 102.4 0 1 0 0 204.8 102.4 102.4 0 0 0 0-204.8z" ></path></symbol><symbol id="l7-icon-round" viewBox="0 0 1024 1024"><path d="M512 56.888889a455.111111 455.111111 0 0 1 391.395556 687.502222 113.777778 113.777778 0 0 1-159.061334 158.890667A455.111111 455.111111 0 0 1 120.604444 279.608889 113.777778 113.777778 0 0 1 279.608889 120.604444 452.835556 452.835556 0 0 1 512 56.888889z m0 68.266667a384.910222 384.910222 0 0 0-191.715556 50.744888A113.777778 113.777778 0 0 1 175.957333 320.284444a386.844444 386.844444 0 0 0 527.815111 527.758223 113.777778 113.777778 0 0 1 144.270223-144.440889A386.844444 386.844444 0 0 0 512 125.155556z m299.406222 640.739555a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222zM212.593778 167.082667a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-guanbi" viewBox="0 0 1024 1024"><path d="M576 512l277.333333 277.333333-64 64-277.333333-277.333333L234.666667 853.333333 170.666667 789.333333l277.333333-277.333333L170.666667 234.666667 234.666667 170.666667l277.333333 277.333333L789.333333 170.666667 853.333333 234.666667 576 512z" ></path></symbol></svg>', function (t) {
3
3
  try {
4
4
  var a = (a = document.getElementsByTagName('script'))[a.length - 1],
5
- l = a.getAttribute('data-injectcss'),
6
- a = a.getAttribute('data-disable-injectsvg');
5
+ l = a.getAttribute('data-injectcss'),
6
+ a = a.getAttribute('data-disable-injectsvg');
7
+
7
8
  if (!a) {
8
9
  var o,
9
- _e,
10
- i,
11
- n,
12
- m,
13
- c = function c(a, l) {
14
- l.parentNode.insertBefore(a, l);
15
- };
10
+ _e,
11
+ i,
12
+ n,
13
+ m,
14
+ c = function c(a, l) {
15
+ l.parentNode.insertBefore(a, l);
16
+ };
17
+
16
18
  if (l && !t.__iconfont__svg__cssinject__) {
17
19
  t.__iconfont__svg__cssinject__ = !0;
20
+
18
21
  try {
19
22
  document.write('<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>');
20
23
  } catch (a) {
21
24
  console && console.log(a);
22
25
  }
23
26
  }
27
+
24
28
  o = function o() {
25
29
  var a,
26
- l = document.createElement('div');
30
+ l = document.createElement('div');
27
31
  l.innerHTML = t._iconfont_svg_string_3580659, (l = l.getElementsByTagName('svg')[0]) && (l.setAttribute('aria-hidden', 'true'), l.style.position = 'absolute', l.style.width = 0, l.style.height = 0, l.style.overflow = 'hidden', l = l, (a = document.body).firstChild ? c(l, a.firstChild) : a.appendChild(l));
28
32
  }, document.addEventListener ? ~['complete', 'loaded', 'interactive'].indexOf(document.readyState) ? setTimeout(o, 0) : (_e = function e() {
29
33
  document.removeEventListener('DOMContentLoaded', _e, !1), o();
@@ -31,15 +35,18 @@ window._iconfont_svg_string_3580659 = '<svg><symbol id="l7-icon-area1" viewBox="
31
35
  'complete' == n.readyState && (n.onreadystatechange = null, d());
32
36
  });
33
37
  }
38
+
34
39
  function d() {
35
40
  m || (m = !0, i());
36
41
  }
42
+
37
43
  function L() {
38
44
  try {
39
45
  n.documentElement.doScroll('left');
40
46
  } catch (a) {
41
47
  return void setTimeout(L, 50);
42
48
  }
49
+
43
50
  d();
44
51
  }
45
52
  } catch (e) {}
@@ -6,24 +6,36 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
+
9
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
+
10
12
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
+
11
14
  import { DOM } from '@antv/l7-utils';
12
15
  import Control from "./control";
13
16
  export { ButtonControl };
17
+
14
18
  var ButtonControl = /*#__PURE__*/function (_Control) {
15
19
  _inherits(ButtonControl, _Control);
20
+
16
21
  var _super = _createSuper(ButtonControl);
22
+
17
23
  function ButtonControl() {
18
24
  var _this;
25
+
19
26
  _classCallCheck(this, ButtonControl);
27
+
20
28
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21
29
  args[_key] = arguments[_key];
22
30
  }
31
+
23
32
  _this = _super.call.apply(_super, [this].concat(args));
33
+
24
34
  _defineProperty(_assertThisInitialized(_this), "isDisable", false);
35
+
25
36
  return _this;
26
37
  }
38
+
27
39
  _createClass(ButtonControl, [{
28
40
  key: "setIsDisable",
29
41
  value:
@@ -33,11 +45,14 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
33
45
  */
34
46
  function setIsDisable(newIsDisable) {
35
47
  this.isDisable = newIsDisable;
48
+
36
49
  if (newIsDisable) {
37
50
  var _this$button;
51
+
38
52
  (_this$button = this.button) === null || _this$button === void 0 ? void 0 : _this$button.setAttribute('disabled', 'true');
39
53
  } else {
40
54
  var _this$button2;
55
+
41
56
  (_this$button2 = this.button) === null || _this$button2 === void 0 ? void 0 : _this$button2.removeAttribute('disabled');
42
57
  }
43
58
  }
@@ -53,9 +68,9 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
53
68
  this.button = this.createButton();
54
69
  this.isDisable = false;
55
70
  var _this$controlOption = this.controlOption,
56
- title = _this$controlOption.title,
57
- btnText = _this$controlOption.btnText,
58
- btnIcon = _this$controlOption.btnIcon;
71
+ title = _this$controlOption.title,
72
+ btnText = _this$controlOption.btnText,
73
+ btnIcon = _this$controlOption.btnIcon;
59
74
  this.setBtnTitle(title);
60
75
  this.setBtnText(btnText);
61
76
  this.setBtnIcon(btnIcon);
@@ -67,84 +82,100 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
67
82
  this.button = this.buttonIcon = this.buttonText = undefined;
68
83
  this.isDisable = false;
69
84
  }
70
-
71
85
  /**
72
86
  * 更新配置方法
73
87
  * @param newOptions
74
88
  */
89
+
75
90
  }, {
76
91
  key: "setOptions",
77
92
  value: function setOptions(newOptions) {
78
93
  var title = newOptions.title,
79
- btnText = newOptions.btnText,
80
- btnIcon = newOptions.btnIcon;
94
+ btnText = newOptions.btnText,
95
+ btnIcon = newOptions.btnIcon;
96
+
81
97
  if (this.checkUpdateOption(newOptions, ['title'])) {
82
98
  this.setBtnTitle(title);
83
99
  }
100
+
84
101
  if (this.checkUpdateOption(newOptions, ['btnIcon'])) {
85
102
  this.setBtnIcon(btnIcon);
86
103
  }
104
+
87
105
  if (this.checkUpdateOption(newOptions, ['btnText'])) {
88
106
  this.setBtnText(btnText);
89
107
  }
108
+
90
109
  _get(_getPrototypeOf(ButtonControl.prototype), "setOptions", this).call(this, newOptions);
91
110
  }
92
-
93
111
  /**
94
112
  * 设置按钮 title
95
113
  * @param title
96
114
  */
115
+
97
116
  }, {
98
117
  key: "setBtnTitle",
99
118
  value: function setBtnTitle(title) {
100
119
  var _this$button3;
120
+
101
121
  (_this$button3 = this.button) === null || _this$button3 === void 0 ? void 0 : _this$button3.setAttribute('title', title !== null && title !== void 0 ? title : '');
102
122
  }
103
-
104
123
  /**
105
124
  * 设置按钮 Icon
106
125
  * @param newIcon
107
126
  */
127
+
108
128
  }, {
109
129
  key: "setBtnIcon",
110
130
  value: function setBtnIcon(newIcon) {
111
131
  if (this.buttonIcon) {
112
132
  DOM.remove(this.buttonIcon);
113
133
  }
134
+
114
135
  if (newIcon) {
115
136
  var _this$button4;
137
+
116
138
  var firstChild = (_this$button4 = this.button) === null || _this$button4 === void 0 ? void 0 : _this$button4.firstChild;
139
+
117
140
  if (firstChild) {
118
141
  var _this$button5;
142
+
119
143
  (_this$button5 = this.button) === null || _this$button5 === void 0 ? void 0 : _this$button5.insertBefore(newIcon, firstChild);
120
144
  } else {
121
145
  var _this$button6;
146
+
122
147
  (_this$button6 = this.button) === null || _this$button6 === void 0 ? void 0 : _this$button6.appendChild(newIcon);
123
148
  }
149
+
124
150
  this.buttonIcon = newIcon;
125
151
  }
126
152
  }
127
-
128
153
  /**
129
154
  * 设置按钮文本
130
155
  * @param newText
131
156
  */
157
+
132
158
  }, {
133
159
  key: "setBtnText",
134
160
  value: function setBtnText(newText) {
135
161
  if (!this.button) {
136
162
  return;
137
163
  }
164
+
138
165
  DOM.removeClass(this.button, 'l7-button-control--row');
139
166
  DOM.removeClass(this.button, 'l7-button-control--column');
167
+
140
168
  if (newText) {
141
169
  var btnText = this.buttonText;
170
+
142
171
  if (!btnText) {
143
172
  var _this$button7;
173
+
144
174
  btnText = DOM.create('div', 'l7-button-control__text');
145
175
  (_this$button7 = this.button) === null || _this$button7 === void 0 ? void 0 : _this$button7.appendChild(btnText);
146
176
  this.buttonText = btnText;
147
177
  }
178
+
148
179
  btnText.innerText = newText;
149
180
  DOM.addClass(this.button, this.controlOption.vertical ? 'l7-button-control--column' : 'l7-button-control--row');
150
181
  } else if (!newText && this.buttonText) {
@@ -153,6 +184,8 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
153
184
  }
154
185
  }
155
186
  }]);
187
+
156
188
  return ButtonControl;
157
189
  }(Control);
190
+
158
191
  export { ButtonControl as default };
@@ -6,67 +6,80 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
+
9
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
+
10
12
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
+
11
14
  import { PositionType, TYPES } from '@antv/l7-core';
12
15
  import { DOM } from '@antv/l7-utils';
13
16
  import EventEmitter from 'eventemitter3';
14
17
  export { PositionType } from '@antv/l7-core';
15
18
  export { Control };
19
+
16
20
  var Control = /*#__PURE__*/function (_ref) {
17
21
  _inherits(Control, _ref);
22
+
18
23
  var _super = _createSuper(Control);
24
+
19
25
  /**
20
26
  * 当前类型控件实例个数
21
27
  * @protected
22
28
  */
23
-
24
29
  function Control(option) {
25
30
  var _this;
31
+
26
32
  _classCallCheck(this, Control);
33
+
27
34
  _this = _super.call(this);
28
35
  Control.controlCount++;
29
36
  _this.controlOption = _objectSpread(_objectSpread({}, _this.getDefault(option)), option || {});
30
37
  return _this;
31
38
  }
39
+
32
40
  _createClass(Control, [{
33
41
  key: "getOptions",
34
42
  value: function getOptions() {
35
43
  return this.controlOption;
36
44
  }
37
-
38
45
  /**
39
46
  * 更新配置的方法,子类如果有自己的配置,也需要重写该方法
40
47
  * @param newOptions
41
48
  */
49
+
42
50
  }, {
43
51
  key: "setOptions",
44
52
  value: function setOptions(newOptions) {
45
53
  var defaultOptions = this.getDefault(newOptions);
46
54
  Object.entries(newOptions).forEach(function (_ref2) {
47
55
  var _ref3 = _slicedToArray(_ref2, 2),
48
- key = _ref3[0],
49
- value = _ref3[1];
56
+ key = _ref3[0],
57
+ value = _ref3[1];
58
+
50
59
  if (value === undefined) {
51
60
  newOptions[key] = defaultOptions[key];
52
61
  }
53
62
  });
63
+
54
64
  if ('position' in newOptions) {
55
65
  this.setPosition(newOptions.position);
56
66
  }
67
+
57
68
  if ('className' in newOptions) {
58
69
  this.setClassName(newOptions.className);
59
70
  }
71
+
60
72
  if ('style' in newOptions) {
61
73
  this.setStyle(newOptions.style);
62
74
  }
75
+
63
76
  this.controlOption = _objectSpread(_objectSpread({}, this.controlOption), newOptions);
64
77
  }
65
-
66
78
  /**
67
79
  * 当 Control 被添加至 Scene 中,被 controlService 调用的方法
68
80
  * @param sceneContainer
69
81
  */
82
+
70
83
  }, {
71
84
  key: "addTo",
72
85
  value: function addTo(sceneContainer) {
@@ -78,60 +91,63 @@ var Control = /*#__PURE__*/function (_ref) {
78
91
  this.configService = sceneContainer.get(TYPES.IGlobalConfigService);
79
92
  this.scene = sceneContainer.get(TYPES.ISceneService);
80
93
  this.sceneContainer = sceneContainer;
81
- this.isShow = true;
94
+ this.isShow = true; // 初始化 container
82
95
 
83
- // 初始化 container
84
96
  this.container = this.onAdd();
85
97
  DOM.addClass(this.container, 'l7-control');
86
98
  var _this$controlOption = this.controlOption,
87
- className = _this$controlOption.className,
88
- style = _this$controlOption.style;
99
+ className = _this$controlOption.className,
100
+ style = _this$controlOption.style;
101
+
89
102
  if (className) {
90
103
  this.setClassName(className);
91
104
  }
105
+
92
106
  if (style) {
93
107
  this.setStyle(style);
94
- }
95
- // 将 container 插入容器中
108
+ } // 将 container 插入容器中
109
+
110
+
96
111
  this.insertContainer();
97
112
  this.emit('add', this);
98
113
  return this;
99
114
  }
100
-
101
115
  /**
102
116
  * 将控件移除时触发
103
117
  */
118
+
104
119
  }, {
105
120
  key: "remove",
106
121
  value: function remove() {
107
122
  if (!this.mapsService) {
108
123
  return this;
109
124
  }
125
+
110
126
  DOM.remove(this.container);
111
127
  this.onRemove();
112
128
  this.emit('remove', this);
113
129
  }
114
-
115
130
  /**
116
131
  * Control 被添加的时候被调用,返回 Control 对应的 DOM 容器
117
132
  */
133
+
118
134
  }, {
119
135
  key: "onAdd",
120
136
  value: function onAdd() {
121
137
  return DOM.create('div');
122
138
  }
123
-
124
139
  /**
125
140
  * Control 被移除时调用
126
141
  */
127
142
  // tslint:disable-next-line:no-empty
143
+
128
144
  }, {
129
145
  key: "onRemove",
130
146
  value: function onRemove() {}
131
-
132
147
  /**
133
148
  * 显示控件时触发
134
149
  */
150
+
135
151
  }, {
136
152
  key: "show",
137
153
  value: function show() {
@@ -140,10 +156,10 @@ var Control = /*#__PURE__*/function (_ref) {
140
156
  this.isShow = true;
141
157
  this.emit('show', this);
142
158
  }
143
-
144
159
  /**
145
160
  * 隐藏控件时触发
146
161
  */
162
+
147
163
  }, {
148
164
  key: "hide",
149
165
  value: function hide() {
@@ -152,11 +168,11 @@ var Control = /*#__PURE__*/function (_ref) {
152
168
  this.isShow = false;
153
169
  this.emit('hide', this);
154
170
  }
155
-
156
171
  /**
157
172
  * 获取默认构造器参数
158
173
  */
159
174
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
175
+
160
176
  }, {
161
177
  key: "getDefault",
162
178
  value: function getDefault(option) {
@@ -166,19 +182,19 @@ var Control = /*#__PURE__*/function (_ref) {
166
182
  name: "".concat(Control.controlCount)
167
183
  };
168
184
  }
169
-
170
185
  /**
171
186
  * 获取当前控件对应的 DOM 容器
172
187
  */
188
+
173
189
  }, {
174
190
  key: "getContainer",
175
191
  value: function getContainer() {
176
192
  return this.container;
177
193
  }
178
-
179
194
  /**
180
195
  * 获取当前 Control 是否展示
181
196
  */
197
+
182
198
  }, {
183
199
  key: "getIsShow",
184
200
  value: function getIsShow() {
@@ -190,77 +206,87 @@ var Control = /*#__PURE__*/function (_ref) {
190
206
  // if map exists and event is not a keyboard event
191
207
  if (this.mapsService && e && e.screenX > 0 && e.screenY > 0) {
192
208
  var container = this.mapsService.getContainer();
209
+
193
210
  if (container !== null) {
194
211
  container.focus();
195
212
  }
196
213
  }
197
214
  }
198
-
199
215
  /**
200
216
  * 设置当前控件位置
201
217
  * @param position
202
218
  */
219
+
203
220
  }, {
204
221
  key: "setPosition",
205
222
  value: function setPosition() {
206
223
  var position = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PositionType.TOPLEFT;
207
224
  // 考虑组件的自动布局,需要销毁重建
208
225
  var controlService = this.controlService;
226
+
209
227
  if (controlService) {
210
228
  controlService.removeControl(this);
211
229
  }
230
+
212
231
  this.controlOption.position = position;
232
+
213
233
  if (controlService) {
214
234
  controlService.addControl(this, this.sceneContainer);
215
235
  }
236
+
216
237
  return this;
217
238
  }
218
-
219
239
  /**
220
240
  * 设置容器 container 的样式相关位置,包含 className
221
241
  * @param className
222
242
  */
243
+
223
244
  }, {
224
245
  key: "setClassName",
225
246
  value: function setClassName(className) {
226
247
  var container = this.container;
227
248
  var oldClassName = this.controlOption.className;
249
+
228
250
  if (oldClassName) {
229
251
  DOM.removeClass(container, oldClassName);
230
252
  }
253
+
231
254
  if (className) {
232
255
  DOM.addClass(container, className);
233
256
  }
234
257
  }
235
-
236
258
  /**
237
259
  * 设置容器 container 的样式相关位置,包含 style
238
260
  * @param style
239
261
  */
262
+
240
263
  }, {
241
264
  key: "setStyle",
242
265
  value: function setStyle(style) {
243
266
  var container = this.container;
267
+
244
268
  if (style) {
245
269
  container.setAttribute('style', style);
246
270
  } else {
247
271
  container.removeAttribute('style');
248
272
  }
249
273
  }
250
-
251
274
  /**
252
275
  * 将控件 DOM 插入到对应 position 的容器中
253
276
  * @protected
254
277
  */
278
+
255
279
  }, {
256
280
  key: "insertContainer",
257
281
  value: function insertContainer() {
258
282
  var position = this.controlOption.position;
259
283
  var container = this.container;
284
+
260
285
  if (position instanceof Element) {
261
286
  position.appendChild(container);
262
287
  } else {
263
288
  var corner = this.controlService.controlCorners[position];
289
+
264
290
  if (['bottomleft', 'bottomright', 'righttop', 'rightbottom'].includes(position)) {
265
291
  corner.insertBefore(container, corner.firstChild);
266
292
  } else {
@@ -268,13 +294,13 @@ var Control = /*#__PURE__*/function (_ref) {
268
294
  }
269
295
  }
270
296
  }
271
-
272
297
  /**
273
298
  * 检查当前传入 option 是否包含 keys 字段
274
299
  * @param option
275
300
  * @param keys
276
301
  * @protected
277
302
  */
303
+
278
304
  }, {
279
305
  key: "checkUpdateOption",
280
306
  value: function checkUpdateOption(option, keys) {
@@ -283,7 +309,10 @@ var Control = /*#__PURE__*/function (_ref) {
283
309
  });
284
310
  }
285
311
  }]);
312
+
286
313
  return Control;
287
314
  }(EventEmitter);
315
+
288
316
  _defineProperty(Control, "controlCount", 0);
317
+
289
318
  export { Control as default };
@@ -1,4 +1,4 @@
1
- export * from './buttonControl';
2
- export * from './control';
3
- export * from './popperControl';
4
- export * from './selectControl';
1
+ export { ButtonControl, type IButtonControlOption } from './buttonControl';
2
+ export { Control, PositionType, type IControlOption } from './control';
3
+ export { PopperControl, type IPopperControlOption } from './popperControl';
4
+ export { SelectControl, type ControlOptionItem, type ISelectControlOption, } from './selectControl';
@@ -1,4 +1,4 @@
1
- export * from "./buttonControl";
2
- export * from "./control";
3
- export * from "./popperControl";
4
- export * from "./selectControl";
1
+ export { ButtonControl } from "./buttonControl";
2
+ export { Control, PositionType } from "./control";
3
+ export { PopperControl } from "./popperControl";
4
+ export { SelectControl } from "./selectControl";