@sapui5/sap.ui.vbm 1.123.0 → 1.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/LICENSE.txt +13 -10
  2. package/README.md +1 -1
  3. package/package.json +1 -1
  4. package/src/sap/ui/vbm/.library +8 -1
  5. package/src/sap/ui/vbm/Adapter.js +1 -1
  6. package/src/sap/ui/vbm/Adapter3D.js +65 -15
  7. package/src/sap/ui/vbm/Viewport.js +1 -1
  8. package/src/sap/ui/vbm/adapter3d/ColladaBounds.js +123 -0
  9. package/src/sap/ui/vbm/adapter3d/DragDropHandler.js +1 -1
  10. package/src/sap/ui/vbm/adapter3d/ModelHandler.js +38 -2
  11. package/src/sap/ui/vbm/adapter3d/ObjectFactory.js +1 -1
  12. package/src/sap/ui/vbm/adapter3d/PolygonHandler.js +1 -1
  13. package/src/sap/ui/vbm/adapter3d/RectangleTracker.js +602 -0
  14. package/src/sap/ui/vbm/adapter3d/SceneBuilder.js +1 -1
  15. package/src/sap/ui/vbm/adapter3d/VBIJSONParser.js +1 -1
  16. package/src/sap/ui/vbm/i18n/messagebundle_ar.properties +1 -1
  17. package/src/sap/ui/vbm/i18n/messagebundle_bg.properties +14 -0
  18. package/src/sap/ui/vbm/i18n/messagebundle_ca.properties +5 -5
  19. package/src/sap/ui/vbm/i18n/messagebundle_cnr.properties +14 -0
  20. package/src/sap/ui/vbm/i18n/messagebundle_cs.properties +2 -2
  21. package/src/sap/ui/vbm/i18n/messagebundle_cy.properties +2 -2
  22. package/src/sap/ui/vbm/i18n/messagebundle_da.properties +5 -5
  23. package/src/sap/ui/vbm/i18n/messagebundle_de.properties +1 -1
  24. package/src/sap/ui/vbm/i18n/messagebundle_el.properties +3 -3
  25. package/src/sap/ui/vbm/i18n/messagebundle_en.properties +1 -0
  26. package/src/sap/ui/vbm/i18n/messagebundle_en_GB.properties +1 -1
  27. package/src/sap/ui/vbm/i18n/messagebundle_en_US_saprigi.properties +23 -23
  28. package/src/sap/ui/vbm/i18n/messagebundle_es.properties +5 -5
  29. package/src/sap/ui/vbm/i18n/messagebundle_es_MX.properties +1 -1
  30. package/src/sap/ui/vbm/i18n/messagebundle_et.properties +1 -1
  31. package/src/sap/ui/vbm/i18n/messagebundle_fr.properties +3 -3
  32. package/src/sap/ui/vbm/i18n/messagebundle_hi.properties +2 -2
  33. package/src/sap/ui/vbm/i18n/messagebundle_hr.properties +1 -1
  34. package/src/sap/ui/vbm/i18n/messagebundle_hu.properties +4 -4
  35. package/src/sap/ui/vbm/i18n/messagebundle_id.properties +1 -1
  36. package/src/sap/ui/vbm/i18n/messagebundle_it.properties +1 -1
  37. package/src/sap/ui/vbm/i18n/messagebundle_iw.properties +1 -1
  38. package/src/sap/ui/vbm/i18n/messagebundle_ja.properties +1 -1
  39. package/src/sap/ui/vbm/i18n/messagebundle_kk.properties +0 -1
  40. package/src/sap/ui/vbm/i18n/messagebundle_ko.properties +1 -1
  41. package/src/sap/ui/vbm/i18n/messagebundle_lt.properties +6 -6
  42. package/src/sap/ui/vbm/i18n/messagebundle_lv.properties +2 -2
  43. package/src/sap/ui/vbm/i18n/messagebundle_mk.properties +14 -0
  44. package/src/sap/ui/vbm/i18n/messagebundle_ms.properties +1 -1
  45. package/src/sap/ui/vbm/i18n/messagebundle_nl.properties +1 -1
  46. package/src/sap/ui/vbm/i18n/messagebundle_no.properties +1 -1
  47. package/src/sap/ui/vbm/i18n/messagebundle_pl.properties +1 -1
  48. package/src/sap/ui/vbm/i18n/messagebundle_pt.properties +3 -3
  49. package/src/sap/ui/vbm/i18n/messagebundle_pt_PT.properties +1 -1
  50. package/src/sap/ui/vbm/i18n/messagebundle_ro.properties +4 -4
  51. package/src/sap/ui/vbm/i18n/messagebundle_ru.properties +3 -3
  52. package/src/sap/ui/vbm/i18n/messagebundle_sh.properties +18 -4
  53. package/src/sap/ui/vbm/i18n/messagebundle_sk.properties +3 -3
  54. package/src/sap/ui/vbm/i18n/messagebundle_sl.properties +3 -3
  55. package/src/sap/ui/vbm/i18n/messagebundle_sr.properties +14 -0
  56. package/src/sap/ui/vbm/i18n/messagebundle_sv.properties +1 -1
  57. package/src/sap/ui/vbm/i18n/messagebundle_th.properties +1 -1
  58. package/src/sap/ui/vbm/i18n/messagebundle_tr.properties +5 -5
  59. package/src/sap/ui/vbm/i18n/messagebundle_uk.properties +1 -1
  60. package/src/sap/ui/vbm/i18n/messagebundle_vi.properties +3 -3
  61. package/src/sap/ui/vbm/i18n/messagebundle_zh_CN.properties +1 -1
  62. package/src/sap/ui/vbm/i18n/messagebundle_zh_TW.properties +2 -2
  63. package/src/sap/ui/vbm/library.js +2 -2
  64. package/src/sap/ui/vbm/themes/sap_belize/library.source.less +10 -1
  65. package/src/sap/ui/vbm/themes/sap_belize_base/AnalyticMap.less +8 -0
  66. package/src/sap/ui/vbm/themes/sap_belize_base/Cluster.less +136 -0
  67. package/src/sap/ui/vbm/themes/sap_belize_base/ContainerBase.less +45 -0
  68. package/src/sap/ui/vbm/themes/sap_belize_base/ContainerLegendItem.less +46 -0
  69. package/src/sap/ui/vbm/themes/sap_belize_base/DetailWindow.less +42 -0
  70. package/src/sap/ui/vbm/themes/sap_belize_base/GeoMap.less +8 -0
  71. package/src/sap/ui/vbm/themes/sap_belize_base/ListPanel.less +43 -0
  72. package/src/sap/ui/vbm/themes/sap_belize_base/ListPanelStack.less +30 -0
  73. package/src/sap/ui/vbm/themes/sap_belize_base/MapContainer.less +210 -0
  74. package/src/sap/ui/vbm/themes/sap_belize_base/VBI.less +829 -0
  75. package/src/sap/ui/vbm/themes/sap_belize_base/Viewport.less +17 -0
  76. package/src/sap/ui/vbm/themes/sap_belize_base/library.source.less +18 -0
  77. package/src/sap/ui/vbm/themes/sap_belize_base/shared.less +9 -0
  78. package/src/sap/ui/vbm/themes/sap_belize_hcb/library.source.less +10 -1
  79. package/src/sap/ui/vbm/themes/sap_belize_hcw/library.source.less +10 -1
  80. package/src/sap/ui/vbm/themes/sap_bluecrystal/library.source.less +10 -1
  81. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/AnalyticMap.less +8 -0
  82. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/Cluster.less +136 -0
  83. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/ContainerBase.less +45 -0
  84. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/ContainerLegendItem.less +46 -0
  85. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/DetailWindow.less +42 -0
  86. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/GeoMap.less +8 -0
  87. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/ListPanel.less +43 -0
  88. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/ListPanelStack.less +30 -0
  89. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/MapContainer.less +210 -0
  90. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/VBI.less +829 -0
  91. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/Viewport.less +17 -0
  92. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/library.source.less +18 -0
  93. package/src/sap/ui/vbm/themes/sap_bluecrystal_base/shared.less +9 -0
package/LICENSE.txt CHANGED
@@ -1,5 +1,7 @@
1
1
  SAP DEVELOPER LICENSE AGREEMENT
2
2
 
3
+ Version 3.2
4
+
3
5
  Please scroll down and read the following Developer License Agreement carefully ("Developer Agreement"). By clicking "I Accept" or by attempting to download, or install, or use the SAP software and other materials that accompany this Developer Agreement ("SAP Materials"), You agree that this Developer Agreement forms a legally binding agreement between You ("You" or "Your") and SAP SE, for and on behalf of itself and its subsidiaries and affiliates (as defined in Section 15 of the German Stock Corporation Act) and You agree to be bound by all of the terms and conditions stated in this Developer Agreement. If You are trying to access or download the SAP Materials on behalf of Your employer or as a consultant or agent of a third party (either "Your Company"), You represent and warrant that You have the authority to act on behalf of and bind Your Company to the terms of this Developer Agreement and everywhere in this Developer Agreement that refers to 'You' or 'Your' shall also include Your Company. If You do not agree to these terms, do not click "I Accept", and do not attempt to access or use the SAP Materials.
4
6
 
5
7
  1. LICENSE: SAP grants You a non-exclusive, non-transferable, non-sublicensable, revocable, limited use license to copy, reproduce and distribute the application programming interfaces ("API"), documentation, plug-ins, templates, scripts and sample code ("Tools") on a desktop, laptop, tablet, smart phone, or other appropriate computer device that You own or control (any, a "Computer") to create new applications ("Customer Applications"). You agree that the Customer Applications will not: (a) unreasonably impair, degrade or reduce the performance or security of any SAP software applications, services or related technology ("Software"); (b) enable the bypassing or circumventing of SAP's license restrictions and/or provide users with access to the Software to which such users are not licensed; (c) render or provide, without prior written consent from SAP, any information concerning SAP software license terms, Software, or any other information related to SAP products; or (d) permit mass data extraction from an SAP product to a non-SAP product, including use, modification, saving or other processing of such data in the non-SAP product. In exchange for the right to develop Customer Applications under this Agreement, You covenant not to assert any Intellectual Property Rights in Customer Applications created by You against any SAP product, service, or future SAP development.
@@ -7,29 +9,30 @@ Please scroll down and read the following Developer License Agreement carefully
7
9
  2. INTELLECTUAL PROPERTY: (a) SAP or its licensors retain all ownership and intellectual property rights in the APIs, Tools and Software. You may not: a) remove or modify any marks or proprietary notices of SAP, b) provide or make the APIs, Tools or Software available to any third party, c) assign this Developer Agreement or give or transfer the APIs, Tools or Software or an interest in them to another individual or entity, d) decompile, disassemble or reverse engineer (except to the extent permitted by applicable law) the APIs Tools or Software, (e) create derivative works of or based on the APIs, Tools or Software, (f) use any SAP name, trademark or logo, or (g) use the APIs or Tools to modify existing Software or other SAP product functionality or to access the Software or other SAP products' source code or metadata.
8
10
  (b) Subject to SAP's underlying rights in any part of the APIs, Tools or Software, You retain all ownership and intellectual property rights in Your Customer Applications.
9
11
 
10
- 3. FREE AND OPEN SOURCE COMPONENTS: The SAP Materials may include certain third party free or open source components ("FOSS Components"). You may have additional rights in such FOSS Components that are provided by the third party licensors of those components.
12
+ 3. ARTIFICIAL INTELLIGENCE TRAINING: You are expressly prohibited from using the Software, Tools or APIs as well as any Customer Applications or any part thereof for the purpose of training (developing) artificial intelligence models or systems (“AI Training”). Prohibition of AI Training includes, but is not limited to, using the Software, Tools, APIs and/or Customer Applications or part thereof in any training data set, algorithm development, model development or refinement (including language learning models) related to artificial intelligence, as well as text and data mining in accordance with §44b UrhG and Art. 4 of EU Directive 2019/790. For the avoidance of doubt, by accepting this Developer Agreement You agree that Your ownership of Customer Applications shall not create nor encompass any right to use Customer Applications for AI Training and, hence, You will not use Customer Applications or any part of it for AI Training.
11
13
 
12
- 4. THIRD PARTY DEPENDENCIES: The SAP Materials may require certain third party software dependencies ("Dependencies") for the use or operation of such SAP Materials. These dependencies may be identified by SAP in Maven POM files, product documentation or by other means. SAP does not grant You any rights in or to such Dependencies under this Developer Agreement. You are solely responsible for the acquisition, installation and use of Dependencies. SAP DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES IN RESPECT OF DEPENDENCIES, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND OF FITNESS FOR A PARTICULAR PURPOSE. IN PARTICULAR, SAP DOES NOT WARRANT THAT DEPENDENCIES WILL BE AVAILABLE, ERROR FREE, INTEROPERABLE WITH THE SAP MATERIALS, SUITABLE FOR ANY PARTICULAR PURPOSE OR NON-INFRINGING. YOU ASSUME ALL RISKS ASSOCIATED WITH THE USE OF DEPENDENCIES, INCLUDING WITHOUT LIMITATION RISKS RELATING TO QUALITY, AVAILABILITY, PERFORMANCE, DATA LOSS, UTILITY IN A PRODUCTION ENVIRONMENT, AND NON-INFRINGEMENT. IN NO EVENT WILL SAP BE LIABLE DIRECTLY OR INDIRECTLY IN RESPECT OF ANY USE OF DEPENDENCIES BY YOU.
14
+ 4. FREE AND OPEN SOURCE COMPONENTS: The SAP Materials may include certain third party free or open source components ("FOSS Components"). You may have additional rights in such FOSS Components that are provided by the third party licensors of those components.
13
15
 
16
+ 5. THIRD PARTY DEPENDENCIES: The SAP Materials may require certain third party software dependencies ("Dependencies") for the use or operation of such SAP Materials. These dependencies may be identified by SAP in Maven POM files, product documentation or by other means. SAP does not grant You any rights in or to such Dependencies under this Developer Agreement. You are solely responsible for the acquisition, installation and use of Dependencies. SAP DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES IN RESPECT OF DEPENDENCIES, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND OF FITNESS FOR A PARTICULAR PURPOSE. IN PARTICULAR, SAP DOES NOT WARRANT THAT DEPENDENCIES WILL BE AVAILABLE, ERROR FREE, INTEROPERABLE WITH THE SAP MATERIALS, SUITABLE FOR ANY PARTICULAR PURPOSE OR NON-INFRINGING. YOU ASSUME ALL RISKS ASSOCIATED WITH THE USE OF DEPENDENCIES, INCLUDING WITHOUT LIMITATION RISKS RELATING TO QUALITY, AVAILABILITY, PERFORMANCE, DATA LOSS, UTILITY IN A PRODUCTION ENVIRONMENT, AND NON-INFRINGEMENT. IN NO EVENT WILL SAP BE LIABLE DIRECTLY OR INDIRECTLY IN RESPECT OF ANY USE OF DEPENDENCIES BY YOU.
14
17
 
15
- 5. WARRANTY:
18
+ 6. WARRANTY:
16
19
  a) If You are located outside the US or Canada: AS THE API AND TOOLS ARE PROVIDED TO YOU FREE OF CHARGE, SAP DOES NOT GUARANTEE OR WARRANT ANY FEATURES OR QUALITIES OF THE TOOLS OR API OR GIVE ANY UNDERTAKING WITH REGARD TO ANY OTHER QUALITY. NO SUCH WARRANTY OR UNDERTAKING SHALL BE IMPLIED BY YOU FROM ANY DESCRIPTION IN THE API OR TOOLS OR ANY AVAILABLE DOCUMENTATION OR ANY OTHER COMMUNICATION OR ADVERTISEMENT. IN PARTICULAR, SAP DOES NOT WARRANT THAT THE SOFTWARE WILL BE AVAILABLE UNINTERRUPTED, ERROR FREE, OR PERMANENTLY AVAILABLE. FOR THE TOOLS AND API ALL WARRANTY CLAIMS ARE SUBJECT TO THE LIMITATION OF LIABILITY STIPULATED IN SECTION 4 BELOW.
17
20
  b) If You are located in the US or Canada: THE API AND TOOLS ARE LICENSED TO YOU "AS IS", WITHOUT ANY WARRANTY, ESCROW, TRAINING, MAINTENANCE, OR SERVICE OBLIGATIONS WHATSOEVER ON THE PART OF SAP. SAP MAKES NO EXPRESS OR IMPLIED WARRANTIES OR CONDITIONS OF SALE OF ANY TYPE WHATSOEVER, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND OF FITNESS FOR A PARTICULAR PURPOSE. IN PARTICULAR, SAP DOES NOT WARRANT THAT THE SOFTWARE WILL BE AVAILABLE UNINTERRUPTED, ERROR FREE, OR PERMANENTLY AVAILABLE. YOU ASSUME ALL RISKS ASSOCIATED WITH THE USE OF THE API AND TOOLS, INCLUDING WITHOUT LIMITATION RISKS RELATING TO QUALITY, AVAILABILITY, PERFORMANCE, DATA LOSS, AND UTILITY IN A PRODUCTION ENVIRONMENT.
18
21
 
19
- 6. LIMITATION OF LIABILITY:
22
+ 7. LIMITATION OF LIABILITY:
20
23
  a) If You are located outside the US or Canada: IRRESPECTIVE OF THE LEGAL REASONS, SAP SHALL ONLY BE LIABLE FOR DAMAGES UNDER THIS AGREEMENT IF SUCH DAMAGE (I) CAN BE CLAIMED UNDER THE GERMAN PRODUCT LIABILITY ACT OR (II) IS CAUSED BY INTENTIONAL MISCONDUCT OF SAP OR (III) CONSISTS OF PERSONAL INJURY. IN ALL OTHER CASES, NEITHER SAP NOR ITS EMPLOYEES, AGENTS AND SUBCONTRACTORS SHALL BE LIABLE FOR ANY KIND OF DAMAGE OR CLAIMS HEREUNDER.
21
24
  b) If You are located in the US or Canada: IN NO EVENT SHALL SAP BE LIABLE TO YOU, YOUR COMPANY OR TO ANY THIRD PARTY FOR ANY DAMAGES IN AN AMOUNT IN EXCESS OF $100 ARISING IN CONNECTION WITH YOUR USE OF OR INABILITY TO USE THE TOOLS OR API OR IN CONNECTION WITH SAP'S PROVISION OF OR FAILURE TO PROVIDE SERVICES PERTAINING TO THE TOOLS OR API, OR AS A RESULT OF ANY DEFECT IN THE API OR TOOLS. THIS DISCLAIMER OF LIABILITY SHALL APPLY REGARDLESS OF THE FORM OF ACTION THAT MAY BE BROUGHT AGAINST SAP, WHETHER IN CONTRACT OR TORT, INCLUDING WITHOUT LIMITATION ANY ACTION FOR NEGLIGENCE. YOUR SOLE REMEDY IN THE EVENT OF BREACH OF THIS DEVELOPER AGREEMENT BY SAP OR FOR ANY OTHER CLAIM RELATED TO THE API OR TOOLS SHALL BE TERMINATION OF THIS AGREEMENT. NOTWITHSTANDING ANYTHING TO THE CONTRARY HEREIN, UNDER NO CIRCUMSTANCES SHALL SAP AND ITS LICENSORS BE LIABLE TO YOU OR ANY OTHER PERSON OR ENTITY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR INDIRECT DAMAGES, LOSS OF GOOD WILL OR BUSINESS PROFITS, WORK STOPPAGE, DATA LOSS, COMPUTER FAILURE OR MALFUNCTION, ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSS, OR EXEMPLARY OR PUNITIVE DAMAGES.
22
25
 
23
- 7. INDEMNITY: You will fully indemnify, hold harmless and defend SAP against law suits based on any claim: (a) that any Customer Application created by You infringes or misappropriates any patent, copyright, trademark, trade secrets, or other proprietary rights of a third party, or (b) related to Your alleged violation of the terms of this Developer Agreement.
26
+ 8. INDEMNITY: You will fully indemnify, hold harmless and defend SAP against law suits based on any claim: (a) that any Customer Application created by You infringes or misappropriates any patent, copyright, trademark, trade secrets, or other proprietary rights of a third party, or (b) related to Your alleged violation of the terms of this Developer Agreement.
24
27
 
25
- 8. EXPORT: The Tools and API are subject to German, EU and US export control regulations. You confirm that: a) You will not use the Tools or API for, and will not allow the Tools or API to be used for, any purposes prohibited by German, EU and US law, including, without limitation, for the development, design, manufacture or production of nuclear, chemical or biological weapons of mass destruction; b) You are not located in Cuba, Iran, Sudan, Iraq, North Korea, Syria, nor any other country to which the United States has prohibited export or that has been designated by the U.S. Government as a "terrorist supporting" country (any, an "US Embargoed Country"); c) You are not a citizen, national or resident of, and are not under the control of, a US Embargoed Country; d) You will not download or otherwise export or re-export the API or Tools, directly or indirectly, to a US Embargoed Country nor to citizens, nationals or residents of a US Embargoed Country; e) You are not listed on the United States Department of Treasury lists of Specially Designated Nationals, Specially Designated Terrorists, and Specially Designated Narcotic Traffickers, nor listed on the United States Department of Commerce Table of Denial Orders or any other U.S. government list of prohibited or restricted parties and f) You will not download or otherwise export or re-export the API or Tools , directly or indirectly, to persons on the above-mentioned lists.
28
+ 9. EXPORT: The Tools and API are subject to German, EU and US export control regulations. You confirm that: a) You will not use the Tools or API for, and will not allow the Tools or API to be used for, any purposes prohibited by German, EU and US law, including, without limitation, for the development, design, manufacture or production of nuclear, chemical or biological weapons of mass destruction; b) You are not located in Cuba, Iran, Sudan, Iraq, North Korea, Syria, nor any other country to which the United States has prohibited export or that has been designated by the U.S. Government as a "terrorist supporting" country (any, an "US Embargoed Country"); c) You are not a citizen, national or resident of, and are not under the control of, a US Embargoed Country; d) You will not download or otherwise export or re-export the API or Tools, directly or indirectly, to a US Embargoed Country nor to citizens, nationals or residents of a US Embargoed Country; e) You are not listed on the United States Department of Treasury lists of Specially Designated Nationals, Specially Designated Terrorists, and Specially Designated Narcotic Traffickers, nor listed on the United States Department of Commerce Table of Denial Orders or any other U.S. government list of prohibited or restricted parties and f) You will not download or otherwise export or re-export the API or Tools , directly or indirectly, to persons on the above-mentioned lists.
26
29
 
27
- 9. SUPPORT: Other than what is made available on the SAP Community Website (SCN) by SAP at its sole discretion and by SCN members, SAP does not offer support for the API or Tools which are the subject of this Developer Agreement.
30
+ 10. SUPPORT: Other than what is made available on the SAP Community Website (SCN) by SAP at its sole discretion and by SCN members, SAP does not offer support for the API or Tools which are the subject of this Developer Agreement.
28
31
 
29
- 10. TERM AND TERMINATION: You may terminate this Developer Agreement by destroying all copies of the API and Tools on Your Computer(s). SAP may terminate Your license to use the API and Tools immediately if You fail to comply with any of the terms of this Developer Agreement, or, for SAP's convenience by providing you with ten (10) day's written notice of termination (including email). In case of termination or expiration of this Developer Agreement, You must destroy all copies of the API and Tools immediately. In the event Your Company or any of the intellectual property you create using the API, Tools or Software are acquired (by merger, purchase of stock, assets or intellectual property or exclusive license), or You become employed, by a direct competitor of SAP, then this Development Agreement and all licenses granted in this Developer Agreement shall immediately terminate upon the date of such acquisition.
32
+ 11. TERM AND TERMINATION: You may terminate this Developer Agreement by destroying all copies of the API and Tools on Your Computer(s). SAP may terminate Your license to use the API and Tools immediately if You fail to comply with any of the terms of this Developer Agreement, or, for SAP's convenience by providing you with ten (10) day's written notice of termination (including by public notice). In case of termination or expiration of this Developer Agreement, You must destroy all copies of the API and Tools immediately. In the event Your Company or any of the intellectual property you create using the API, Tools or Software are acquired (by merger, purchase of stock, assets or intellectual property or exclusive license), or You become employed, by a direct competitor of SAP, then this Development Agreement and all licenses granted in this Developer Agreement shall immediately terminate upon the date of such acquisition.
30
33
 
31
- 11. LAW/VENUE:
34
+ 12. LAW/VENUE:
32
35
  a) If You are located outside the US or Canada: This Developer Agreement is governed by and construed in accordance with the laws of the Germany. You and SAP agree to submit to the exclusive jurisdiction of, and venue in, the courts of Karlsruhe in Germany in any dispute arising out of or relating to this Developer Agreement.
33
36
  b) If You are located in the US or Canada: This Developer Agreement shall be governed by and construed under the Commonwealth of Pennsylvania law without reference to its conflicts of law principles. In the event of any conflicts between foreign law, rules, and regulations, and United States of America law, rules, and regulations, United States of America law, rules, and regulations shall prevail and govern. The United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Developer Agreement. The Uniform Computer Information Transactions Act as enacted shall not apply.
34
37
 
35
- 12. MISCELLANEOUS: This Developer Agreement is the complete agreement for the API and Tools licensed (including reference to information/documentation contained in a URL). This Developer Agreement supersedes all prior or contemporaneous agreements or representations with regards to the subject matter of this Developer Agreement. If any term of this Developer Agreement is found to be invalid or unenforceable, the surviving provisions shall remain effective. SAP's failure to enforce any right or provisions stipulated in this Developer Agreement will not constitute a waiver of such provision, or any other provision of this Developer Agreement.
38
+ 13. MISCELLANEOUS: This Developer Agreement is the complete agreement for the API and Tools licensed (including reference to information/documentation contained in a URL). This Developer Agreement supersedes all prior or contemporaneous agreements or representations with regards to the subject matter of this Developer Agreement. If any term of this Developer Agreement is found to be invalid or unenforceable, the surviving provisions shall remain effective. SAP's failure to enforce any right or provisions stipulated in this Developer Agreement will not constitute a waiver of such provision, or any other provision of this Developer Agreement.
package/README.md CHANGED
@@ -9,4 +9,4 @@ It is meant to be consumed using the [UI5 Tooling](https://sap.github.io/ui5-too
9
9
  For details please refer to our documentation on [Consuming SAPUI5 Libraries](https://sap.github.io/ui5-tooling/pages/SAPUI5/).
10
10
 
11
11
  ## License
12
- This package is provided under the terms of the [SAP Developer License Agreement](https://tools.hana.ondemand.com/developer-license-3.1.txt).
12
+ This package is provided under the terms of the [SAP Developer License Agreement](https://tools.hana.ondemand.com/developer-license-3_2.txt).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ui.vbm",
3
- "version": "1.123.0",
3
+ "version": "1.125.0",
4
4
  "description": "SAPUI5 Library sap.ui.vbm",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -3,7 +3,7 @@
3
3
  <name>sap.ui.vbm</name>
4
4
  <vendor>SAP SE</vendor>
5
5
  <copyright>SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved</copyright>
6
- <version>1.123.0</version>
6
+ <version>1.125.0</version>
7
7
 
8
8
  <documentation>SAP UI library: sap.ui.vbm</documentation>
9
9
 
@@ -22,6 +22,13 @@
22
22
  </dependencies>
23
23
 
24
24
  <appData>
25
+ <manifest xmlns="http://www.sap.com/ui5/buildext/manifest">
26
+ <sap.ui5>
27
+ <library>
28
+ <i18n>i18n/messagebundle.properties</i18n>
29
+ </library>
30
+ </sap.ui5>
31
+ </manifest>
25
32
  <!-- package name for selenium -->
26
33
  <selenium xmlns="http://www.sap.com/ui5/buildext/selenium"
27
34
  package="com.sap.ui5.selenium.vbm"
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @param {string} [sId] id for the new control, generated automatically if no id is given
23
23
  * @param {object} [mSettings] initial settings for the new object
24
24
  * @author SAP SE
25
- * @version 1.123.0
25
+ * @version 1.125.0
26
26
  * @extends sap.ui.core.Element
27
27
  * @constructor
28
28
  * @public
@@ -15,6 +15,8 @@ sap.ui.define([
15
15
  "./adapter3d/SceneBuilder",
16
16
  "./adapter3d/Utilities",
17
17
  "./adapter3d/DragDropHandler",
18
+ "./adapter3d/RectangleTracker",
19
+ "./adapter3d/ColladaBounds",
18
20
  "sap/m/HBox",
19
21
  "sap/m/VBox",
20
22
  "sap/m/Link",
@@ -25,7 +27,7 @@ sap.ui.define([
25
27
  "sap/base/Log",
26
28
  "jquery.sap.global",
27
29
  "./library"
28
- ], function(Element, Observer, Menu, MenuItem, Popover, Viewport, ObjectFactory, Parser, SceneBuilder, Utilities, DragDropHandler, HBox, VBox, Link, Button, Text, Image, THREE, Log, jQuery, library) {
30
+ ], function(Element, Observer, Menu, MenuItem, Popover, Viewport, ObjectFactory, Parser, SceneBuilder, Utilities, DragDropHandler, RectangleTracker,ColladaBounds, HBox, VBox, Link, Button, Text, Image, THREE, Log, jQuery, library) {
29
31
  "use strict";
30
32
 
31
33
  var Vector2 = THREE.Vector2;
@@ -45,7 +47,7 @@ sap.ui.define([
45
47
  * @param {string} [sId] id for the new control, generated automatically if no id is given
46
48
  * @param {object} [mSettings] initial settings for the new object
47
49
  * @author SAP SE
48
- * @version 1.123.0
50
+ * @version 1.125.0
49
51
  * @extends sap.ui.core.Element
50
52
  * @constructor
51
53
  * @public
@@ -231,6 +233,13 @@ sap.ui.define([
231
233
 
232
234
  // Drag and drop handler
233
235
  this._dragDropHandler = null;
236
+
237
+ this._rectangleTracker = null;
238
+
239
+ this._colladaBounds = null;
240
+
241
+
242
+ // this._lassoTracker = null;
234
243
  };
235
244
 
236
245
  Adapter3D.prototype.exit = function() {
@@ -255,6 +264,15 @@ sap.ui.define([
255
264
  this._dragDropHandler = null;
256
265
  }
257
266
 
267
+ if (this._rectangleTracker) {
268
+ this._rectangleTracker = null;
269
+ }
270
+
271
+ if (this._colladaBounds) {
272
+ this._colladaBounds.destroy();
273
+ this._colladaBounds = null;
274
+ }
275
+
258
276
  if (this._sceneBuilder) {
259
277
  this._sceneBuilder.destroy();
260
278
  this._sceneBuilder = null;
@@ -308,6 +326,16 @@ sap.ui.define([
308
326
  this._viewportObserver.observe(this._viewport, { destroy: true });
309
327
  this._viewport.addEventDelegate(viewportEventDelegate, this);
310
328
  this._dragDropHandler = new DragDropHandler(this);
329
+ this._colladaBounds = new ColladaBounds(this);
330
+ this._rectangleTracker = new RectangleTracker(this);
331
+ // // this._lassoTracker = new LassoTracker(this);
332
+ // if(rectangleSelect)
333
+
334
+ // if(lassoSelect && !rectangleSelect)
335
+ // {
336
+ // this._lassoSelect = "created";
337
+ // console.log(this._lassoSelect);
338
+ // }
311
339
  }
312
340
  };
313
341
 
@@ -319,7 +347,9 @@ sap.ui.define([
319
347
  if (this._viewport) {
320
348
  this._dragDropHandler.destroy();
321
349
  this._dragDropHandler = null;
322
-
350
+ this._colladaBounds = null;
351
+ this._rectangleTracker = null;
352
+ // this._lassoTracker = null;
323
353
  this._viewport.removeEventDelegate(viewportEventDelegate);
324
354
  // onBeforeRendering unsubscribes from DOM events.
325
355
  viewportEventDelegate.onBeforeRendering.call(this);
@@ -393,13 +423,14 @@ sap.ui.define([
393
423
  that._update = that._update
394
424
  .then(function() {
395
425
  that._parser.loadVBIJSON(payload);
426
+
396
427
  return that._sceneBuilder.synchronize();
397
428
  })
398
429
  .then(function() {
399
430
  // further processing after scene(s) has been updated
400
431
  that._processAutomation(payload);
401
432
  that._processDetailWindow();
402
-
433
+ // that._createCollada(payload);
403
434
  // check if last hover instance is still exist (it may be erased during update)
404
435
  that._context.voQueues.toRemove.forEach(function(instances) {
405
436
  instances.forEach(function(instance) {
@@ -409,11 +440,16 @@ sap.ui.define([
409
440
  }, that);
410
441
  }, that);
411
442
 
443
+
444
+ if (that._colladaBounds) {
445
+ that._colladaBounds.initialize();
446
+ }
447
+
412
448
  // update drag and drop handler
413
449
  if (that._dragDropHandler) {
414
450
  that._dragDropHandler.update();
415
451
  }
416
-
452
+
417
453
  // scene has changed -> adjust camera clipping planes
418
454
  that._viewport._resetBBox();
419
455
  that._viewport._updateCamera();
@@ -426,9 +462,10 @@ sap.ui.define([
426
462
  that._viewport.setBusy(false);
427
463
  });
428
464
  // return last promise in chain
465
+
429
466
  return that._update;
430
467
  };
431
-
468
+
432
469
  Adapter3D.prototype._processDetailWindow = function(payload) {
433
470
  // show first only detail window from toAdd queue
434
471
  // ignore all other detail windows as we can show only one at a time in compare to ActiveX implementation
@@ -935,14 +972,14 @@ sap.ui.define([
935
972
 
936
973
  Adapter3D.prototype._handleHover = function(event) {
937
974
  var tooltip;
938
- var instance = event.instance || null;
939
- Log.trace("hover", "x: " + event.cursor.x + ", y: " + event.cursor.y + ", instance: " + (instance ? instance.id : "") + ", tooltip: " + (instance ? instance.tooltip : ""), thisModule);
940
- if (instance) {
941
- tooltip = instance.tooltip;
942
- if (!tooltip) {
943
- tooltip = instance.text;
944
- }
945
- }
975
+ var instance = event || null;
976
+ // Log.trace("hover", "x: " + event.cursor.x + ", y: " + event.cursor.y + ", instance: " + (instance ? instance.id : "") + ", tooltip: " + (instance ? instance.tooltip : ""), thisModule);
977
+ // if (instance) {
978
+ // tooltip = instance.tooltip;
979
+ // if (!tooltip) {
980
+ // tooltip = instance.text;
981
+ // }
982
+ // }
946
983
  var domRef = this._viewport.getDomRef();
947
984
  if (domRef) {
948
985
  if (tooltip) {
@@ -961,7 +998,9 @@ sap.ui.define([
961
998
  }.bind(this), 500);
962
999
 
963
1000
  this._hoverInstance = instance;
964
- this._sceneBuilder.updateHotInstance(this._hoverInstance);
1001
+ if (this._sceneBuilder) {
1002
+ this._sceneBuilder.updateHotInstance(this._hoverInstance);
1003
+ }
965
1004
  }
966
1005
  };
967
1006
 
@@ -1245,7 +1284,18 @@ sap.ui.define([
1245
1284
  return {
1246
1285
  selected: selected,
1247
1286
  deselected: deselected
1287
+ }
1248
1288
  };
1289
+
1290
+
1291
+ Adapter3D.prototype.enableRectangularSelection = function() {
1292
+ this._rectangleTracker = new RectangleTracker(this);
1293
+ this._rectangleTracker._createEvent();
1294
+
1295
+ };
1296
+
1297
+ Adapter3D.prototype.disableRectangularSelection = function() {
1298
+ this._rectangleTracker._destroy();
1249
1299
  };
1250
1300
 
1251
1301
  return Adapter3D;
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  *
24
24
  * @public
25
25
  * @author SAP SE
26
- * @version 1.123.0
26
+ * @version 1.125.0
27
27
  * @extends sap.ui.core.Control
28
28
  * @alias sap.ui.vbm.Viewport
29
29
  */
@@ -0,0 +1,123 @@
1
+ /*
2
+ * ! SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2012 SAP AG. All rights reserved
3
+ */
4
+
5
+ // Provides class sap.ui.vbm.adapter3d.DragDropHandler
6
+ sap.ui.define([
7
+ "sap/ui/base/Object",
8
+ "./Utilities",
9
+ "./thirdparty/three",
10
+ "sap/base/Log"
11
+ ], function (BaseObject, Utilities, THREE, Log) {
12
+ "use strict";
13
+
14
+ var instances = {}, objects = {};
15
+ var count = 0;
16
+
17
+ /**
18
+ * Constructor for a new ColladaBounds.
19
+ *
20
+ * @class
21
+ * Provides a class for creating Bounding Box for Collada Objects.
22
+ *
23
+ * @private
24
+ * @author SAP SE
25
+ * @version 1.125.0
26
+ * @alias sap.ui.vbm.adapter3d.ColladaBounds
27
+ */
28
+ var ColladaBounds = BaseObject.extend("sap.ui.vbm.adapter3d.ColladaBounds", /** @lends sap.ui.vbm.adapter3d.ColladaBounds.prototype */ {
29
+
30
+ constructor: function (adapter) {
31
+ BaseObject.call(this);
32
+
33
+ this._adapter = adapter; // fire submit event
34
+ this._context = adapter._context; // access evaluated data
35
+ this._viewport = adapter._viewport; // events
36
+ this._root = this._viewport._root;
37
+ this._scene = this._viewport._scene;
38
+ this._camera = this._viewport._camera;
39
+ this._cameraControls = this._viewport._cameraController;
40
+ this._bbox = new THREE.Box3();
41
+ this._colladaBoundingBoxes = [];
42
+ this._adapter._colladaBoundingBoxMesh = [];
43
+
44
+ }
45
+
46
+ });
47
+
48
+
49
+ ColladaBounds.prototype.initialize = function () {
50
+ var that = this;
51
+ this._scene._cm.forEach(function (array, key) {
52
+ for (var i = 0; i < array.length; i++) {
53
+ var a = array[i];
54
+ instances = Array.from(a.instances);
55
+ objects = Array.from(a.objects3D);
56
+ count = a.hitInfo[0].matrices.length;
57
+ that.transform(instances, objects, count);
58
+ }
59
+ });
60
+ };
61
+
62
+ ColladaBounds.prototype.transform = function (instances, objects, count) {
63
+ var i, j, id;
64
+ var _matrix = new THREE.Matrix4();
65
+
66
+ for (j = 0; j < instances.length; j++) {
67
+ for (i = 0; i < objects.length; i++) {
68
+ var object = objects[i];
69
+ var geometry = object.geometry;
70
+ object.updateMatrixWorld(false, false);
71
+ if (object.visible && geometry) {
72
+ if (!geometry.boundingBox) {
73
+ geometry.computeBoundingBox();
74
+ }
75
+ // if instanced mesh -> take all instances into account
76
+ if (object.isInstancedMesh) {
77
+ geometry = object.geometry.clone();
78
+ object.getMatrixAt(j, _matrix);
79
+ id = instances[j].instance;
80
+ geometry.applyMatrix4(_matrix);
81
+ this.createBBoxMeshes(geometry, object, count, id);
82
+ }
83
+ }
84
+ }
85
+ }
86
+ };
87
+
88
+ ColladaBounds.prototype.createBBoxMeshes = function (geometry, object, count, id) {
89
+ if (id["VB:c"] == "true" && object.userData._sapInstance != undefined) {
90
+ var _sapInstance = id;
91
+ var material = new THREE.MeshBasicMaterial({ color: 0x808080, transparent: true, wireframe: true, opacity: 1, visible: false });
92
+
93
+ // Create the mesh using the geometry and material
94
+ var boundingBoxMesh = new THREE.Mesh(geometry, material);
95
+ var world = this._root.matrixWorld.clone();
96
+ boundingBoxMesh.applyMatrix4(world);
97
+ boundingBoxMesh.scale.set(1, 1, 1);
98
+ boundingBoxMesh.rotation.set(0, 0, 0);
99
+ boundingBoxMesh.updateMatrixWorld();
100
+ boundingBoxMesh.userData = { name: "ColladaBounds", _sapInstance: _sapInstance, id: _sapInstance.id, count: count };
101
+ this._adapter._colladaBoundingBoxMesh.push(boundingBoxMesh);
102
+ // Add the bounding box mesh to the scene
103
+ this._scene.add(boundingBoxMesh);
104
+
105
+ }
106
+ };
107
+
108
+ ColladaBounds.prototype._destroy = function () {
109
+ this._adapter = null; // fire submit event
110
+ this._context = null; // access evaluated data
111
+ this._viewport = null; // events
112
+ this._root = null;
113
+ this._scene = null;
114
+ this._camera = null;
115
+ this._cameraControls =null;
116
+ this._bbox = null;
117
+ this._colladaBoundingBoxes = null;
118
+ this._adapter._colladaBoundingBoxMesh = null;
119
+ };
120
+
121
+ return ColladaBounds;
122
+ })
123
+
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  *
84
84
  * @private
85
85
  * @author SAP SE
86
- * @version 1.123.0
86
+ * @version 1.125.0
87
87
  * @alias sap.ui.vbm.adapter3d.DragDropHandler
88
88
  */
89
89
  var DragDropHandler = BaseObject.extend("sap.ui.vbm.adapter3d.DragDropHandler", /** @lends sap.ui.vbm.adapter3d.DragDropHandler.prototype */ {
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  *
30
30
  * @private
31
31
  * @author SAP SE
32
- * @version 1.123.0
32
+ * @version 1.125.0
33
33
  * @alias sap.ui.vbm.adapter3d.ModelHandler
34
34
  */
35
35
  var ModelHandler = BaseObject.extend("sap.ui.vbm.adapter3d.ModelHandler", /** @lends sap.ui.vbm.adapter3d.ModelHandler.prototype */ {
@@ -76,6 +76,8 @@ sap.ui.define([
76
76
  // key(instance resource + instance color) -> 'meta' mesh data
77
77
  this._meshes = new Map();
78
78
 
79
+ this._scene._cm = new Map();
80
+
79
81
  // These objects are created on first use
80
82
  this._colladaLoader = null;
81
83
  this._glTFLoader = null;
@@ -286,7 +288,8 @@ sap.ui.define([
286
288
  for (var i = 0; i < array.length;) {
287
289
  if (array[i].dirty) {
288
290
  var j, instance, index = 0, data = array[i];
289
-
291
+ // var _matrix = new THREE.Matrix4();
292
+ var _matrix = [];
290
293
  // delete current instanced meshes from scene
291
294
  data.objects3D.forEach(function(object) {
292
295
  this._deleteObject3D(object);
@@ -301,10 +304,43 @@ sap.ui.define([
301
304
  mesh.matrixAutoUpdate = false;
302
305
  mesh.layers.set(0); // put it to layer #0 to enable raycasting
303
306
  mesh._instanceHitTest = this._instanceHitTest.bind(data); // helper function to return instance based on hit test info
307
+ // mesh.userData = {_sapInstance : data.instance};
304
308
  this._scene.add(mesh);
305
309
  data.objects3D.push(mesh);
306
310
  }, this);
307
311
 
312
+
313
+ var val = this._meshes.get(key);
314
+ delete val.model;
315
+ this._scene._cm.set(key,val);
316
+
317
+ var _sapInstance = [], matrix = [];
318
+ data.instances.forEach(function(value) {
319
+ instance = value.instance;
320
+ // _matrix = value.world;
321
+ _matrix = value.matrices.length
322
+ _sapInstance.push(instance);
323
+ matrix.push(_matrix);
324
+ });
325
+
326
+ //commmented earlier
327
+ // data.instances.forEach(function(value){
328
+ // data.objects3D[0].userData = {_sapInstance : _sapInstance ,
329
+ // matrix : matrix};
330
+ // })
331
+
332
+ data.objects3D.forEach(function(value) {
333
+ value.userData = {_sapInstance : _sapInstance,
334
+ matrix : matrix
335
+ };
336
+ })
337
+
338
+ // data.objects3D.forEach(function(value){
339
+
340
+ // value.userData = {_sapInstance : _sapInstance,
341
+ // matrix : matrix};
342
+ // })
343
+
308
344
  data.instances.forEach(function(value) {
309
345
  instance = value;
310
346
  data.hitInfo.push(instance);
@@ -377,7 +377,7 @@ sap.ui.define([
377
377
  *
378
378
  * @private
379
379
  * @author SAP SE
380
- * @version 1.123.0
380
+ * @version 1.125.0
381
381
  * @alias sap.ui.vbm.adapter3d.ObjectFactory
382
382
  */
383
383
  var ObjectFactory = BaseObject.extend("sap.ui.vbm.adapter3d.ObjectFactory", /** @lends sap.ui.vbm.adapter3d.ObjectFactory.prototype */ {});
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  *
33
33
  * @private
34
34
  * @author SAP SE
35
- * @version 1.123.0
35
+ * @version 1.125.0
36
36
  * @alias sap.ui.vbm.adapter3d.PolygonHandler
37
37
  */
38
38
  var PolygonHandler = BaseObject.extend("sap.ui.vbm.adapter3d.PolygonHandler", /** @lends sap.ui.vbm.adapter3d.PolygonHandler.prototype */ {