Skip to content

Releases: byteface/domonic

document

08 Aug 10:27
Compare
Choose a tag to compare

document is now a global to the dom module and updates whenever you create a html tag. it houses an empty html tag by default so that static methods are availabe.

from domonic.dom import document
print(document)

d3 selection class is started. but all d3 is undocumented so not officially supported yet. however check out the unit tests if you're interested in using selection and to see how the port is going.

They're not yet on d3 as a modules.. you have to import their methods directly. (see unit tests)

It doesn't appear to break anything... yet. but will mean you have to manually switch the reference if you have multiple documents (as extra libs d3 will rely on it.) The alternative is the dQuery method of having an init call... which may go away in favour of the global.

installer

05 Aug 19:04
Compare
Choose a tag to compare

python3 -m domonic --install

then you can do...

project mycoolproj

and

domonic -h

the docs will update with instructions...

https://domonic.readthedocs.io/

iife

05 Aug 14:07
Compare
Choose a tag to compare

need to focus on more assertions and unit tests around dom and parser.

test names were simplified

called

29 Jul 23:04
Compare
Choose a tag to compare

I'm naming this release after last nights flash of inspiration. the 'called' decorator. That baby should get it's own repo. lol.

anyways. copilot is a game changer right?... what now? We can make 20 dunders in 5 minutes.

we can create vec6,7,8!!!! infinte dimension vectors in 10 minutes. Are single module codebases useful when copilot can shit out 10 methods a second? We're already overwhelmed and behind on unit tests as it is. But now this thing is suggestng 10 million other functions.

I found it was great a creating dunders so have started to add all the dunders to the shapes in geom. This creates amazing affects where you can join shapes together etc.

Beyond that the port of d3 is happening in the background mainly to drive the development of the js class and the dom nodes etc. It's going ok but hard and it's not cos i'm avoiding the parser . lol. But that stuff is undocumented still as not for use realy. As I say it's a dev driver more than a focus.

Enjoy 0.4.0!

I've upgraded all the dev requirements and tested most examples. Seems all fine.

d3

21 Jul 01:20
Compare
Choose a tag to compare
d3

d3 started on path and format. seems to be going ok

svg changed to extend element

js methods updated to be more like js methods

few other fixes

matches

10 Jul 14:50
Compare
Choose a tag to compare

console now has the timer methods i.e
https://developer.mozilla.org/en-US/docs/Web/API/Console/time

matches added
https://developer.mozilla.org/en-US/docs/Web/API/Element/matches

outerHTML added

stubs for NodeList added

cmd

06 Jul 02:25
Compare
Choose a tag to compare
cmd

windows cmd class added.

wmacmillan bug fix

04 Jul 21:25
Compare
Choose a tag to compare

bug fix to a-tag thanks to wmacmillan

decorators

04 Jul 10:54
Compare
Choose a tag to compare

Array.at()
String.replaceAll()

and decorators!

mathml

03 Jul 01:27
Compare
Choose a tag to compare

mathml added.

changed behaviour of Math class to be able to convert strings to numbers.

i.e. Math.abs('-1') will now work