QuickGraphLib 0.1.0a2__tar.gz → 0.1.0a3__tar.gz

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 (111) hide show
  1. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/CMakeLists.txt +25 -19
  2. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/LICENCE +20 -20
  3. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/MANIFEST.in +2 -2
  4. {quickgraphlib-0.1.0a2/QuickGraphLib.egg-info → quickgraphlib-0.1.0a3}/PKG-INFO +78 -78
  5. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/AntialiasingContainer.qml +18 -18
  6. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/Axis.qml +183 -183
  7. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/CMakeLists.txt +27 -27
  8. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphArea.qml +57 -57
  9. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/AxHLine.qml +34 -34
  10. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/AxHSpan.qml +46 -46
  11. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/AxVLine.qml +34 -34
  12. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/AxVSpan.qml +46 -46
  13. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/BasicLegend.qml +31 -31
  14. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/BasicLegendItem.qml +57 -57
  15. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/CMakeLists.txt +27 -27
  16. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/Contour.qml +34 -34
  17. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/GraphItemDragHandler.qml +39 -39
  18. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/Grid.qml +39 -39
  19. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/Histogram.qml +39 -39
  20. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/Line.qml +57 -57
  21. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/Marker.qml +30 -30
  22. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/helpers/GridHelper.cpp +26 -26
  23. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/helpers/GridHelper.hpp +58 -58
  24. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/helpers/HistogramHelper.cpp +45 -45
  25. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/GraphItems/helpers/HistogramHelper.hpp +59 -59
  26. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/PreFabs/CMakeLists.txt +21 -21
  27. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/PreFabs/XYAxes.qml +105 -105
  28. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/ScalingContainer.qml +38 -38
  29. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/ShapeRepeater.qml +22 -22
  30. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/TickLabel.qml +52 -52
  31. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/ZoomPanHandler.qml +78 -78
  32. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/AxesGridLayout.svg +2 -2
  33. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/export.qdoc +23 -23
  34. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/graphitems.qdoc +20 -20
  35. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/graphstructure.qdoc +139 -139
  36. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/index.qdoc +55 -55
  37. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/interaction.qdoc +12 -12
  38. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/module.qdoc +28 -28
  39. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/prefabs.qdoc +20 -20
  40. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/doc/python_helpers.qdoc +45 -45
  41. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/helpers/AxisHelper.cpp +139 -122
  42. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/helpers/AxisHelper.hpp +107 -103
  43. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/helpers/Foreign.hpp +13 -13
  44. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/helpers/Helpers.cpp +332 -332
  45. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib/helpers/Helpers.hpp +21 -21
  46. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3/QuickGraphLib.egg-info}/PKG-INFO +78 -78
  47. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib.egg-info/SOURCES.txt +0 -4
  48. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/README.md +25 -25
  49. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/AllTheAxes.qdoc +12 -12
  50. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/AllTheAxes.qml +94 -94
  51. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicHistogram.qdoc +12 -12
  52. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicHistogram.qml +67 -67
  53. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicSinGraph.qdoc +12 -12
  54. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicSinGraph.qml +34 -34
  55. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicSinGraphNoPrefabs.qdoc +16 -16
  56. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicSinGraphNoPrefabs.qml +76 -76
  57. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Complex.qdoc +12 -12
  58. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Complex.qml +219 -219
  59. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Contours.qdoc +12 -12
  60. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Contours.qml +71 -71
  61. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/DarkSinGraph.qdoc +12 -12
  62. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/DarkSinGraph.qml +45 -45
  63. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/DraggableRegion.qdoc +12 -12
  64. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/DraggableRegion.qml +88 -88
  65. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ExampleGallery.qml +150 -150
  66. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/InvertedAxes.qdoc +12 -12
  67. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/InvertedAxes.qml +23 -23
  68. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ReadoutLine.qdoc +12 -12
  69. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ReadoutLine.qml +53 -53
  70. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ScalingGraph.qdoc +12 -12
  71. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ScalingGraph.qml +84 -84
  72. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Scatter.qdoc +12 -12
  73. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Scatter.qml +28 -28
  74. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/SpansAndLines.qdoc +12 -12
  75. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/SpansAndLines.qml +59 -59
  76. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Subgraphs.qdoc +12 -12
  77. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Subgraphs.qml +83 -83
  78. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/TwinX.qdoc +12 -12
  79. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/TwinX.qml +90 -90
  80. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ZoomableAsImage.qdoc +12 -12
  81. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ZoomableAsImage.qml +46 -46
  82. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ZoomableAxes.qdoc +12 -12
  83. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ZoomableAxes.qml +119 -119
  84. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/pyproject.toml +63 -63
  85. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/quickgraphlib_helpers/__init__.py +8 -8
  86. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/quickgraphlib_helpers/consts.py +6 -6
  87. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/quickgraphlib_helpers/contours.py +79 -79
  88. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/setup.cfg +4 -4
  89. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/setup.py +74 -74
  90. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib.egg-info/dependency_links.txt +0 -0
  91. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib.egg-info/requires.txt +0 -0
  92. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/QuickGraphLib.egg-info/top_level.txt +0 -0
  93. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/AllTheAxes.png +0 -0
  94. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicHistogram.png +0 -0
  95. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicSinGraph.png +0 -0
  96. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/BasicSinGraphNoPrefabs.png +0 -0
  97. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Complex.png +0 -0
  98. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Contours.png +0 -0
  99. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/DarkSinGraph.png +0 -0
  100. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/DraggableRegion.png +0 -0
  101. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ExampleGallery.png +0 -0
  102. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/InvertedAxes.png +0 -0
  103. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ReadoutLine.png +0 -0
  104. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ScalingGraph.png +0 -0
  105. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Scatter.png +0 -0
  106. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/SpansAndLines.png +0 -0
  107. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/Subgraphs.png +0 -0
  108. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/TwinX.png +0 -0
  109. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ZoomableAsImage.png +0 -0
  110. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/examples/ZoomableAxes.png +0 -0
  111. {quickgraphlib-0.1.0a2 → quickgraphlib-0.1.0a3}/quickgraphlib_helpers/py.typed +0 -0
@@ -1,19 +1,25 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
2
- # SPDX-License-Identifier: MIT
3
-
4
- cmake_minimum_required(VERSION 3.16)
5
- set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
6
-
7
- project(qmlmodule VERSION 1.0.0 LANGUAGES CXX)
8
-
9
- set(CMAKE_CXX_STANDARD 17)
10
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
11
-
12
- if(NOT INSTALL_SUBPATH)
13
- set(INSTALL_SUBPATH ${CMAKE_INSTALL_LIBDIR}/qml CACHE STRING "Install subpath (defaults to lib/qml)")
14
- endif()
15
-
16
- find_package(Qt6 REQUIRED COMPONENTS Quick Svg)
17
- qt_standard_project_setup(REQUIRES 6.5)
18
-
19
- add_subdirectory(QuickGraphLib)
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ cmake_minimum_required(VERSION 3.16)
5
+ set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
6
+
7
+ project(qmlmodule VERSION 1.0.0 LANGUAGES CXX)
8
+
9
+ set(CMAKE_CXX_STANDARD 17)
10
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
11
+
12
+ if(MSVC)
13
+ add_compile_options(/W4)
14
+ else()
15
+ add_compile_options(-Wextra -Wpedantic -Werror)
16
+ endif()
17
+
18
+ if(NOT INSTALL_SUBPATH)
19
+ set(INSTALL_SUBPATH ${CMAKE_INSTALL_LIBDIR}/qml CACHE STRING "Install subpath (defaults to lib/qml)")
20
+ endif()
21
+
22
+ find_package(Qt6 REQUIRED COMPONENTS Quick Svg)
23
+ qt_standard_project_setup(REQUIRES 6.5)
24
+
25
+ add_subdirectory(QuickGraphLib)
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
@@ -1,3 +1,3 @@
1
- recursive-include . CMakeLists.txt
2
- recursive-include QuickGraphLib *.qml *.svg *.qdoc *.cpp *.hpp
1
+ recursive-include . CMakeLists.txt
2
+ recursive-include QuickGraphLib *.qml *.svg *.qdoc *.cpp *.hpp
3
3
  recursive-include examples *.qml *.png *.qdoc
@@ -1,78 +1,78 @@
1
- Metadata-Version: 2.1
2
- Name: QuickGraphLib
3
- Version: 0.1.0a2
4
- Summary: A scientific graphing library for QtQuick
5
- Author-email: Matthew Joyce <matthew.joyce@refeyn.com>
6
- License: MIT License
7
-
8
- Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
- Project-URL: Homepage, https://github.com/refeyn/QuickGraphLib
28
- Project-URL: Issues, https://github.com/refeyn/QuickGraphLib/issues
29
- Project-URL: Documentation, https://refeyn.github.io/QuickGraphLib
30
- Project-URL: Source, https://github.com/refeyn/QuickGraphLib
31
- Classifier: Development Status :: 3 - Alpha
32
- Classifier: Environment :: X11 Applications :: Qt
33
- Classifier: Intended Audience :: Science/Research
34
- Classifier: License :: OSI Approved :: MIT License
35
- Classifier: Operating System :: OS Independent
36
- Classifier: Programming Language :: Python
37
- Classifier: Topic :: Multimedia :: Graphics :: Presentation
38
- Classifier: Topic :: Scientific/Engineering :: Visualization
39
- Classifier: Topic :: Software Development :: User Interfaces
40
- Classifier: Typing :: Typed
41
- Description-Content-Type: text/markdown
42
- License-File: LICENCE
43
- Requires-Dist: PySide6
44
- Requires-Dist: contourpy
45
- Provides-Extra: analyse
46
- Requires-Dist: black; extra == "analyse"
47
- Requires-Dist: pylint; extra == "analyse"
48
- Requires-Dist: mypy; extra == "analyse"
49
- Requires-Dist: pre-commit; extra == "analyse"
50
- Requires-Dist: lxml; extra == "analyse"
51
- Requires-Dist: pytest; extra == "analyse"
52
- Requires-Dist: pytest-cov; extra == "analyse"
53
-
54
- # QuickGraphLib
55
-
56
- A scientific graphing library for [QtQuick](https://doc.qt.io/qt-6/qtquick-index.html) using Qt6.
57
-
58
- Links:
59
- - [Online documentation](https://refeyn.github.io/QuickGraphLib)
60
- - [PyPI page](https://pypi.org/project/QuickGraphLib/)
61
-
62
- Key advantages:
63
-
64
- - Written in C++ and QML (with some optional Python helpers), so it can be used in both C++ and Python projects
65
- - QtQuick's hardware-based rendering makes this library render very fast
66
- - Support for line graphs, histograms, contour plots and more
67
- - Interactivity supported natively though declarative bindings and QtQuick
68
- - Support for PNG and SVG export
69
-
70
- ## Examples
71
-
72
- The example gallery can be run using (provided the Python environment has [PySide6](https://pypi.org/project/PySide6/) and [contourpy](https://pypi.org/project/contourpy/) installed):
73
-
74
- ```bash
75
- python examples\gallery.py
76
- ```
77
-
78
- <p align="center"><img src="https://github.com/refeyn/QuickGraphLib/assets/103422031/56fdff62-ef77-4184-9f43-59a76b92d728" width="80%"></p>
1
+ Metadata-Version: 2.1
2
+ Name: QuickGraphLib
3
+ Version: 0.1.0a3
4
+ Summary: A scientific graphing library for QtQuick
5
+ Author-email: Matthew Joyce <matthew.joyce@refeyn.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ Project-URL: Homepage, https://github.com/refeyn/QuickGraphLib
28
+ Project-URL: Issues, https://github.com/refeyn/QuickGraphLib/issues
29
+ Project-URL: Documentation, https://refeyn.github.io/QuickGraphLib
30
+ Project-URL: Source, https://github.com/refeyn/QuickGraphLib
31
+ Classifier: Development Status :: 3 - Alpha
32
+ Classifier: Environment :: X11 Applications :: Qt
33
+ Classifier: Intended Audience :: Science/Research
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Operating System :: OS Independent
36
+ Classifier: Programming Language :: Python
37
+ Classifier: Topic :: Multimedia :: Graphics :: Presentation
38
+ Classifier: Topic :: Scientific/Engineering :: Visualization
39
+ Classifier: Topic :: Software Development :: User Interfaces
40
+ Classifier: Typing :: Typed
41
+ Description-Content-Type: text/markdown
42
+ License-File: LICENCE
43
+ Requires-Dist: PySide6
44
+ Requires-Dist: contourpy
45
+ Provides-Extra: analyse
46
+ Requires-Dist: black; extra == "analyse"
47
+ Requires-Dist: pylint; extra == "analyse"
48
+ Requires-Dist: mypy; extra == "analyse"
49
+ Requires-Dist: pre-commit; extra == "analyse"
50
+ Requires-Dist: lxml; extra == "analyse"
51
+ Requires-Dist: pytest; extra == "analyse"
52
+ Requires-Dist: pytest-cov; extra == "analyse"
53
+
54
+ # QuickGraphLib
55
+
56
+ A scientific graphing library for [QtQuick](https://doc.qt.io/qt-6/qtquick-index.html) using Qt6.
57
+
58
+ Links:
59
+ - [Online documentation](https://refeyn.github.io/QuickGraphLib)
60
+ - [PyPI page](https://pypi.org/project/QuickGraphLib/)
61
+
62
+ Key advantages:
63
+
64
+ - Written in C++ and QML (with some optional Python helpers), so it can be used in both C++ and Python projects
65
+ - QtQuick's hardware-based rendering makes this library render very fast
66
+ - Support for line graphs, histograms, contour plots and more
67
+ - Interactivity supported natively though declarative bindings and QtQuick
68
+ - Support for PNG and SVG export
69
+
70
+ ## Examples
71
+
72
+ The example gallery can be run using (provided the Python environment has [PySide6](https://pypi.org/project/PySide6/) and [contourpy](https://pypi.org/project/contourpy/) installed):
73
+
74
+ ```bash
75
+ python examples\gallery.py
76
+ ```
77
+
78
+ <p align="center"><img src="https://github.com/refeyn/QuickGraphLib/assets/103422031/56fdff62-ef77-4184-9f43-59a76b92d728" width="80%"></p>
@@ -1,18 +1,18 @@
1
- // SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
2
- // SPDX-License-Identifier: MIT
3
-
4
- import QtQuick
5
-
6
- /*!
7
- \qmltype AntialiasingContainer
8
- \inqmlmodule QuickGraphLib
9
- \inherits QtQuick::Item
10
- \brief Enables antialiasing for it's contents.
11
- */
12
-
13
- Item {
14
- implicitHeight: 100
15
- implicitWidth: 100
16
- layer.enabled: true // Improves rendering of fractional DPIs
17
- layer.samples: 2
18
- }
1
+ // SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
2
+ // SPDX-License-Identifier: MIT
3
+
4
+ import QtQuick
5
+
6
+ /*!
7
+ \qmltype AntialiasingContainer
8
+ \inqmlmodule QuickGraphLib
9
+ \inherits QtQuick::Item
10
+ \brief Enables antialiasing for it's contents.
11
+ */
12
+
13
+ Item {
14
+ implicitHeight: 100
15
+ implicitWidth: 100
16
+ layer.enabled: true // Improves rendering of fractional DPIs
17
+ layer.samples: 2
18
+ }
@@ -1,183 +1,183 @@
1
- // SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
2
- // SPDX-License-Identifier: MIT
3
-
4
- pragma ComponentBehavior: Bound
5
- import QtQuick
6
- import QtQuick.Shapes as QQS
7
- import QuickGraphLib as QuickGraphLib
8
-
9
- /*!
10
- \qmltype Axis
11
- \inqmlmodule QuickGraphLib
12
- \inherits QtQuick::Item
13
- \brief Displays an Axis.
14
- */
15
-
16
- Item {
17
- id: root
18
-
19
- enum Direction {
20
- Left,
21
- Right,
22
- Top,
23
- Bottom
24
- }
25
-
26
- /*!
27
- TODO
28
- \sa {GraphArea::dataTransform}
29
- */
30
- property alias dataTransform: helper.dataTransform
31
- /*! TODO */
32
- property int decimalPoints: 2
33
- /*! TODO
34
-
35
-
36
- \value Axis.Direction.Left Axis to the left of the GraphArea
37
- \value Axis.Direction.Right Axis to the right of the GraphArea
38
- \value Axis.Direction.Top Axis above of the GraphArea
39
- \value Axis.Direction.Bottom Axis below of the GraphArea
40
- */
41
- property alias direction: helper.direction
42
- /*! TODO */
43
- property alias label: labelText.text
44
- /*! TODO */
45
- property alias labelColor: labelText.color
46
- /*! TODO */
47
- property alias labelFont: labelText.font
48
- /*! TODO */
49
- property bool showTickLabels: true
50
- /*! TODO */
51
- property double spacing: 4
52
- /*! TODO */
53
- property alias strokeColor: myPath.strokeColor
54
- /*! TODO */
55
- property alias strokeWidth: myPath.strokeWidth
56
- /*! TODO */
57
- property Component tickDelegate: TickLabel {
58
- color: root.labelColor
59
- decimalPoints: root.decimalPoints
60
- direction: root.direction
61
- font: root.labelFont
62
- }
63
- /*! TODO */
64
- property color tickLabelColor: labelColor
65
- /*! TODO */
66
- property font tickLabelFont: labelFont
67
- /*! TODO */
68
- property alias tickLength: helper.tickLength
69
- /*! TODO */
70
- property alias ticks: helper.ticks
71
-
72
- implicitHeight: {
73
- switch (root.direction) {
74
- case Axis.Direction.Left:
75
- case Axis.Direction.Right:
76
- return 100;
77
- case Axis.Direction.Top:
78
- case Axis.Direction.Bottom:
79
- let height = 0;
80
- if (ticks.length > 0) {
81
- height += root.tickLength + Math.max(0, ...[...Array(tickLabels.count).keys()].map(i => tickLabels.itemAt(i)?.height));
82
- }
83
- if (label !== "") {
84
- height += labelText.height + root.spacing;
85
- }
86
- return height;
87
- }
88
- }
89
- implicitWidth: {
90
- switch (root.direction) {
91
- case Axis.Direction.Left:
92
- case Axis.Direction.Right:
93
- let width = 0;
94
- if (ticks.length > 0) {
95
- width += root.tickLength + Math.max(0, ...[...Array(tickLabels.count).keys()].map(i => tickLabels.itemAt(i)?.width));
96
- }
97
- if (label !== "") {
98
- width += labelText.height + root.spacing;
99
- }
100
- return width;
101
- case Axis.Direction.Top:
102
- case Axis.Direction.Bottom:
103
- return 100;
104
- }
105
- }
106
- z: 1
107
-
108
- QuickGraphLib.AxisHelper {
109
- id: helper
110
-
111
- height: root.height
112
- tickLength: 10
113
- width: root.width
114
- }
115
- QQS.Shape {
116
- id: shape
117
-
118
- anchors.fill: parent
119
-
120
- QQS.ShapePath {
121
- id: myPath
122
-
123
- strokeColor: "black"
124
- strokeWidth: 1
125
-
126
- PathPolyline {
127
- path: helper.path
128
- }
129
- }
130
- }
131
- Repeater {
132
- id: tickLabels
133
-
134
- delegate: root.tickDelegate
135
- model: root.showTickLabels ? helper.tickModel : null
136
- }
137
- Text {
138
- id: labelText
139
-
140
- x: {
141
- switch (root.direction) {
142
- case Axis.Direction.Left:
143
- return height / 2;
144
- case Axis.Direction.Right:
145
- return root.width - height / 2;
146
- case Axis.Direction.Top:
147
- case Axis.Direction.Bottom:
148
- return root.width / 2;
149
- }
150
- }
151
- y: {
152
- switch (root.direction) {
153
- case Axis.Direction.Left:
154
- case Axis.Direction.Right:
155
- return root.height / 2;
156
- case Axis.Direction.Top:
157
- return height / 2;
158
- case Axis.Direction.Bottom:
159
- return root.height - height / 2;
160
- }
161
- }
162
-
163
- transform: [
164
- Translate {
165
- x: -labelText.width / 2
166
- y: -labelText.height / 2
167
- },
168
- Rotation {
169
- angle: {
170
- switch (root.direction) {
171
- case Axis.Direction.Left:
172
- return -90;
173
- case Axis.Direction.Right:
174
- return 90;
175
- case Axis.Direction.Top:
176
- case Axis.Direction.Bottom:
177
- return 0;
178
- }
179
- }
180
- }
181
- ]
182
- }
183
- }
1
+ // SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
2
+ // SPDX-License-Identifier: MIT
3
+
4
+ pragma ComponentBehavior: Bound
5
+ import QtQuick
6
+ import QtQuick.Shapes as QQS
7
+ import QuickGraphLib as QuickGraphLib
8
+
9
+ /*!
10
+ \qmltype Axis
11
+ \inqmlmodule QuickGraphLib
12
+ \inherits QtQuick::Item
13
+ \brief Displays an Axis.
14
+ */
15
+
16
+ Item {
17
+ id: root
18
+
19
+ enum Direction {
20
+ Left,
21
+ Right,
22
+ Top,
23
+ Bottom
24
+ }
25
+
26
+ /*!
27
+ TODO
28
+ \sa {GraphArea::dataTransform}
29
+ */
30
+ property alias dataTransform: helper.dataTransform
31
+ /*! TODO */
32
+ property int decimalPoints: 2
33
+ /*! TODO
34
+
35
+
36
+ \value Axis.Direction.Left Axis to the left of the GraphArea
37
+ \value Axis.Direction.Right Axis to the right of the GraphArea
38
+ \value Axis.Direction.Top Axis above of the GraphArea
39
+ \value Axis.Direction.Bottom Axis below of the GraphArea
40
+ */
41
+ property alias direction: helper.direction
42
+ /*! TODO */
43
+ property alias label: labelText.text
44
+ /*! TODO */
45
+ property alias labelColor: labelText.color
46
+ /*! TODO */
47
+ property alias labelFont: labelText.font
48
+ /*! TODO */
49
+ property bool showTickLabels: true
50
+ /*! TODO */
51
+ property double spacing: 4
52
+ /*! TODO */
53
+ property alias strokeColor: myPath.strokeColor
54
+ /*! TODO */
55
+ property alias strokeWidth: myPath.strokeWidth
56
+ /*! TODO */
57
+ property Component tickDelegate: TickLabel {
58
+ color: root.labelColor
59
+ decimalPoints: root.decimalPoints
60
+ direction: root.direction
61
+ font: root.labelFont
62
+ }
63
+ /*! TODO */
64
+ property color tickLabelColor: labelColor
65
+ /*! TODO */
66
+ property font tickLabelFont: labelFont
67
+ /*! TODO */
68
+ property alias tickLength: helper.tickLength
69
+ /*! TODO */
70
+ property alias ticks: helper.ticks
71
+
72
+ implicitHeight: {
73
+ switch (root.direction) {
74
+ case Axis.Direction.Left:
75
+ case Axis.Direction.Right:
76
+ return 100;
77
+ case Axis.Direction.Top:
78
+ case Axis.Direction.Bottom:
79
+ let height = 0;
80
+ if (ticks.length > 0) {
81
+ height += root.tickLength + Math.max(0, ...[...Array(tickLabels.count).keys()].map(i => tickLabels.itemAt(i)?.height));
82
+ }
83
+ if (label !== "") {
84
+ height += labelText.height + root.spacing;
85
+ }
86
+ return height;
87
+ }
88
+ }
89
+ implicitWidth: {
90
+ switch (root.direction) {
91
+ case Axis.Direction.Left:
92
+ case Axis.Direction.Right:
93
+ let width = 0;
94
+ if (ticks.length > 0) {
95
+ width += root.tickLength + Math.max(0, ...[...Array(tickLabels.count).keys()].map(i => tickLabels.itemAt(i)?.width));
96
+ }
97
+ if (label !== "") {
98
+ width += labelText.height + root.spacing;
99
+ }
100
+ return width;
101
+ case Axis.Direction.Top:
102
+ case Axis.Direction.Bottom:
103
+ return 100;
104
+ }
105
+ }
106
+ z: 1
107
+
108
+ QuickGraphLib.AxisHelper {
109
+ id: helper
110
+
111
+ height: root.height
112
+ tickLength: 10
113
+ width: root.width
114
+ }
115
+ QQS.Shape {
116
+ id: shape
117
+
118
+ anchors.fill: parent
119
+
120
+ QQS.ShapePath {
121
+ id: myPath
122
+
123
+ strokeColor: "black"
124
+ strokeWidth: 1
125
+
126
+ PathPolyline {
127
+ path: helper.path
128
+ }
129
+ }
130
+ }
131
+ Repeater {
132
+ id: tickLabels
133
+
134
+ delegate: root.tickDelegate
135
+ model: root.showTickLabels ? helper.tickModel : null
136
+ }
137
+ Text {
138
+ id: labelText
139
+
140
+ x: {
141
+ switch (root.direction) {
142
+ case Axis.Direction.Left:
143
+ return height / 2;
144
+ case Axis.Direction.Right:
145
+ return root.width - height / 2;
146
+ case Axis.Direction.Top:
147
+ case Axis.Direction.Bottom:
148
+ return root.width / 2;
149
+ }
150
+ }
151
+ y: {
152
+ switch (root.direction) {
153
+ case Axis.Direction.Left:
154
+ case Axis.Direction.Right:
155
+ return root.height / 2;
156
+ case Axis.Direction.Top:
157
+ return height / 2;
158
+ case Axis.Direction.Bottom:
159
+ return root.height - height / 2;
160
+ }
161
+ }
162
+
163
+ transform: [
164
+ Translate {
165
+ x: -labelText.width / 2
166
+ y: -labelText.height / 2
167
+ },
168
+ Rotation {
169
+ angle: {
170
+ switch (root.direction) {
171
+ case Axis.Direction.Left:
172
+ return -90;
173
+ case Axis.Direction.Right:
174
+ return 90;
175
+ case Axis.Direction.Top:
176
+ case Axis.Direction.Bottom:
177
+ return 0;
178
+ }
179
+ }
180
+ }
181
+ ]
182
+ }
183
+ }