Arjan Molenaar
53ac9aec37
Provide connection properties directly to callback
...
This avoids stale data in the callback when the connection
is reconnected. Reconnect may use a different port.
2022-09-29 21:21:20 +02:00
Arjan Molenaar
a51f017179
Move gaphas.view.model to gaphas.model
...
Now more of Gaphas can be used without depending on Gtk. This is useful for,
for example, the Sphinx extension in Gaphor.
2021-12-08 20:37:08 +01:00
Arjan Molenaar
b3e737219f
Remove uses of gaphas.aspect internally
2021-12-08 11:24:16 +01:00
Arjan Molenaar
4e56050358
Move port selection into ConnectionSink
2021-01-10 17:13:14 +01:00
Arjan Molenaar
a6bdae9055
Add runtime test to ensure Canvas adheres to the GtkView model protocol
2020-11-07 17:45:53 +01:00
Arjan Molenaar
42cb56ce41
Canvas no longer forwards Connections methods
2020-11-03 09:11:14 +01:00
Arjan Molenaar
9ea1407955
Provide connection to lines
2020-11-01 22:43:58 +01:00
Arjan Molenaar
7594c1da87
Partially move matrix recalculation to GtkView
2020-10-24 21:45:03 +02:00
Arjan Molenaar
4e5d83ab96
Remove Item.canvas as public field
...
Canvas field is still set, though.
2020-10-23 21:59:13 +02:00
Arjan Molenaar
1709cebee5
Remove canvas from port.constraint()
2020-10-23 18:22:30 +02:00
Arjan Molenaar
b281b1fcdd
Merge branch 'separate-view-selection'
2020-10-23 18:01:11 +02:00
Arjan Molenaar
64250fe077
Move Connection management to a separate module
2020-10-21 21:50:48 +02:00
Arjan Molenaar
b37fc45886
Move examples out of the main library
2020-10-21 15:26:30 +02:00
Arjan Molenaar
3128bbf129
Matrix now produces only Matrix instances
...
Can do an explicit "cast" to cairo matrix.
2020-10-20 09:10:09 +02:00
Arjan Molenaar
891e86cbf2
Matrix can no longer be set
...
Only use methods to modify matrix.
2020-10-20 07:41:39 +02:00
Arjan Molenaar
ca9a0ae445
Remove Projection and friends
...
If you need to map coordinates from one system to another, use a
MatrixProjection with the correct mapping matrix.
2020-10-20 07:41:39 +02:00
Arjan Molenaar
9bf219d88e
Remove canvas-to-item matrix caching
2020-10-12 22:26:06 +02:00
Dan Yeaw
bdd954c2c5
Enable docformatter pre-commit hook
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-09-15 20:23:50 -04:00
Dan Yeaw
414d9e6f53
Fix flake8 F841 for unused local variables
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-08-18 21:31:50 -04:00
Dan Yeaw
ef0c9562ad
Sort imports
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-08-18 21:16:39 -04:00
Arjan Molenaar
422d561955
Remove variable sharing hack from Position
...
Now, resolve it with constraints.
2020-05-22 23:31:29 +02:00
Arjan Molenaar
68829b2e30
Fix deprecation warnings in tests
2019-05-23 22:15:37 +02:00
Dan Yeaw
5fda568c24
Restructure project, moved tests and docs
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-12-25 13:30:43 -05:00
Dan Yeaw
8fcd723f64
Revert "Restructure project to match modern standard"
...
This reverts commit ea298141
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-12-25 13:20:00 -05:00
Dan Yeaw
ea298141fc
Restructure project to match modern standard, move docs and tests
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-12-25 12:01:33 -05:00