Releases: byteface/domonic
document
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
python3 -m domonic --install
then you can do...
project mycoolproj
and
domonic -h
the docs will update with instructions...
iife
called
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
matches
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
wmacmillan bug fix
bug fix to a-tag thanks to wmacmillan
decorators
Array.at()
String.replaceAll()
and decorators!