-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more major refactoring on Mermaids class
wired up more ignored tests like test_Mermaid__Render refactored Mermaid__Render__Config into Schema__Mermaid__Render__Config
- Loading branch information
Showing
26 changed files
with
258 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
mgraph_ai/providers/mermaid/configs/Mermaid__Render__Config.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
from mgraph_ai.mgraph.domain.MGraph__Edge import MGraph__Edge | ||
from mgraph_ai.providers.mermaid.models.Model__Mermaid__Edge import Model__Mermaid__Edge | ||
from mgraph_ai.providers.mermaid.models.Model__Mermaid__Graph import Model__Mermaid__Graph | ||
from mgraph_ai.mgraph.domain.MGraph__Edge import MGraph__Edge | ||
from mgraph_ai.providers.mermaid.models.Model__Mermaid__Edge import Model__Mermaid__Edge | ||
from mgraph_ai.providers.mermaid.models.Model__Mermaid__Graph import Model__Mermaid__Graph | ||
from mgraph_ai.providers.mermaid.schemas.Schema__Mermaid__Edge__Config import Schema__Mermaid__Edge__Config | ||
from osbot_utils.type_safe.methods.type_safe_property import set_as_property | ||
|
||
|
||
class Mermaid__Edge(MGraph__Edge): | ||
edge : Model__Mermaid__Edge | ||
graph : Model__Mermaid__Graph | ||
label : str | ||
label = set_as_property('edge.data', 'label') | ||
|
||
|
||
def config(self) -> Schema__Mermaid__Edge__Config: | ||
return super().config() | ||
|
||
def edge_mode(self, edge_mode): | ||
self.config.edge_mode = edge_mode | ||
self.config().edge_mode = edge_mode | ||
return self | ||
|
||
def edge_mode__lr_using_pipe(self): | ||
return self.edge_mode('lr_using_pipe') | ||
|
||
def from_node_id(self): | ||
return self.edge.from_node_id() | ||
|
||
def output_node_from(self, value=True): | ||
self.config.output_node_from = value | ||
self.config().output_node_from = value | ||
return self | ||
|
||
def output_node_to(self, value=True): | ||
self.config.output_node_to = value | ||
return self | ||
self.config().output_node_to = value | ||
return self | ||
|
||
def to_node_id(self): | ||
return self.edge.to_node_id() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.