Skip to content

Commit

Permalink
Path conflict still needs resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
byteface committed Jun 28, 2022
1 parent 9d8fced commit dc5fc8f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_d3.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import time
import unittest

from domonic.dom import *
from domonic.html import *
from domonic.svg import * # lowercase path is in here

import domonic.d3 as d3
# from mock import patch
# from domonic.javascript import Math
Expand All @@ -16,13 +20,11 @@
from domonic.d3.dispatch import Dispatch, dispatch
from domonic.d3.format import *
from domonic.d3.format import format
from domonic.d3.path import Path
# from domonic.d3.path import Path
from domonic.d3.polygon import *
from domonic.d3.selection import *
from domonic.decorators import silence
from domonic.dom import *
from domonic.html import *
from domonic.svg import * # lowercase path is in here


# from domonic.d3.timer import *

Expand All @@ -38,12 +40,15 @@ class TestCase(unittest.TestCase):
# print(doc)

def test_d3_path(self):

from domonic.d3.path import Path
p = Path()
p.moveTo(1, 2)
p.lineTo(3, 4)
p.closePath()
print(p)

from domonic.svg import path
# context = d3.path()
# drawCircle(context, 40);
# mypath = path(_d="", _fill="red", _stroke="blue", **{"_stroke-width": "3"})
Expand Down

0 comments on commit dc5fc8f

Please sign in to comment.