Skip to content

Commit

Permalink
fix up dom. add method calling to dQuery. and to return str for rende…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
byteface committed May 3, 2021
1 parent da4f5c6 commit 4ca864d
Show file tree
Hide file tree
Showing 44 changed files with 192 additions and 80 deletions.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: ebb5c1b9677fd45ee87361da350155bf
config: 3fb15be33d3bcf209a776cd67dd7ad29
tags: 645f666f9bcd5a90fca523b33c5a78b7
3 changes: 2 additions & 1 deletion docs/_build/html/_modules/domonic/CDN.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.CDN &#8212; domonic 0.3.0 documentation</title>
<title>domonic.CDN &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -178,6 +178,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/_modules/domonic/JSON.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.JSON &#8212; domonic 0.3.0 documentation</title>
<title>domonic.JSON &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -265,6 +265,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
43 changes: 35 additions & 8 deletions docs/_build/html/_modules/domonic/dQuery.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.dQuery &#8212; domonic 0.3.0 documentation</title>
<title>domonic.dQuery &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -437,21 +437,31 @@ <h1>Source code for domonic.dQuery</h1><div class="highlight"><pre>
<span class="n">dQuery_el</span><span class="o">.</span><span class="n">DOM</span> <span class="o">=</span> <span class="n">dom</span>
<span class="bp">self</span><span class="o">.</span><span class="n">dom</span> <span class="o">=</span> <span class="n">dom</span>

<span class="k">def</span> <span class="fm">__str__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="c1"># print(type(self.elements))</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">elements</span><span class="p">)</span> <span class="ow">is</span> <span class="nb">tuple</span><span class="p">:</span>
<span class="c1"># if isinstance(self.elements, (list, tuple)):</span>
<span class="c1"># print([str(el) for el in self.elements])</span>
<span class="k">return</span> <span class="s1">&#39;&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">([</span><span class="nb">str</span><span class="p">(</span><span class="n">el</span><span class="p">)</span> <span class="k">for</span> <span class="n">el</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">elements</span><span class="p">])</span>
<span class="k">else</span><span class="p">:</span>
<span class="c1"># print(&#39;asd&#39;)</span>
<span class="k">return</span> <span class="nb">str</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">elements</span><span class="p">)</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">dom</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;getting&#39;</span><span class="p">)</span>
<span class="c1"># print(&#39;getting&#39;)</span>
<span class="k">if</span> <span class="n">dQuery_el</span><span class="o">.</span><span class="n">DOM</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">return</span>
<span class="c1"># else:</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;GOT ONE&#39;</span><span class="p">)</span>
<span class="c1"># print(&#39;GOT ONE&#39;)</span>
<span class="k">return</span> <span class="n">dQuery_el</span><span class="o">.</span><span class="n">DOM</span>

<span class="nd">@dom</span><span class="o">.</span><span class="n">setter</span>
<span class="k">def</span> <span class="nf">dom</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">dom</span><span class="p">):</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;SETING&#39;</span><span class="p">)</span>
<span class="c1"># print(&#39;SETING&#39;)</span>
<span class="c1"># self.dom = dom</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">dom</span><span class="p">,</span> <span class="n">html</span><span class="p">)</span> <span class="ow">or</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">dom</span><span class="p">,</span> <span class="n">Document</span><span class="p">):</span>
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;setting new ROOT&#39;</span><span class="p">)</span>
<span class="c1"># print(&#39;setting new ROOT&#39;)</span>
<span class="n">dQuery_el</span><span class="o">.</span><span class="n">DOM</span> <span class="o">=</span> <span class="n">dom</span>

<span class="k">def</span> <span class="nf">init</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">q</span><span class="p">):</span>
Expand Down Expand Up @@ -518,9 +528,21 @@ <h1>Source code for domonic.dQuery</h1><div class="highlight"><pre>

<div class="viewcode-block" id="dQuery_el.append"><a class="viewcode-back" href="../../packages/dQuery.html#domonic.dQuery.dQuery_el.append">[docs]</a> <span class="k">def</span> <span class="nf">append</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">html</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot; Insert content, specified by the parameter, to the end of each element in the set of matched elements.&quot;&quot;&quot;</span>

<span class="c1"># print(&#39;running append&#39;)</span>
<span class="c1"># print(len(self.elements))</span>
<span class="c1"># print(&quot;:::::::::::&quot;, type(self.elements))</span>

<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">elements</span><span class="p">)</span> <span class="ow">is</span> <span class="ow">not</span> <span class="nb">tuple</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">elements</span><span class="o">.</span><span class="n">innerHTML</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">elements</span><span class="o">.</span><span class="n">innerHTML</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">html</span><span class="p">)</span>
<span class="k">return</span> <span class="bp">self</span>

<span class="k">for</span> <span class="n">el</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">elements</span><span class="p">:</span>
<span class="n">el</span><span class="o">.</span><span class="n">innerHTML</span> <span class="o">=</span> <span class="n">el</span><span class="o">.</span><span class="n">innerHTML</span> <span class="o">+</span> <span class="n">html</span>
<span class="k">return</span> <span class="bp">self</span></div>
<span class="c1"># print(&#39;EL!!&#39;)</span>
<span class="n">el</span><span class="o">.</span><span class="n">innerHTML</span> <span class="o">=</span> <span class="n">el</span><span class="o">.</span><span class="n">innerHTML</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">html</span><span class="p">)</span></div>

<span class="c1"># print(&#39;APPEND SAYS:&#39;, self.elements)</span>
<span class="c1"># return self</span>

<div class="viewcode-block" id="dQuery_el.appendTo"><a class="viewcode-back" href="../../packages/dQuery.html#domonic.dQuery.dQuery_el.appendTo">[docs]</a> <span class="k">def</span> <span class="nf">appendTo</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot; Insert every element in the set of matched elements to the end of the target.&quot;&quot;&quot;</span>
Expand Down Expand Up @@ -1580,8 +1602,12 @@ <h1>Source code for domonic.dQuery</h1><div class="highlight"><pre>
<span class="n">º</span><span class="o">.</span><span class="n">uniqueSort</span> <span class="o">=</span> <span class="n">el</span><span class="o">.</span><span class="n">uniqueSort</span>
<span class="n">º</span><span class="o">.</span><span class="n">when</span> <span class="o">=</span> <span class="n">el</span><span class="o">.</span><span class="n">when</span>

<span class="k">return</span> <span class="n">el</span><span class="o">.</span><span class="n">elements</span>
<span class="c1"># º().append = el.append(q)</span>

<span class="c1"># if type(q) is not str:</span>
<span class="k">return</span> <span class="n">el</span>
<span class="c1"># else:</span>
<span class="c1"># return el.elements</span>
<span class="c1"># def __str__(self):</span>
<span class="c1"># return self.elements</span>

Expand Down Expand Up @@ -1621,6 +1647,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/_modules/domonic/decorators.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.decorators &#8212; domonic 0.3.0 documentation</title>
<title>domonic.decorators &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -177,6 +177,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/_modules/domonic/dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.dom &#8212; domonic 0.3.0 documentation</title>
<title>domonic.dom &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -1470,6 +1470,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
9 changes: 7 additions & 2 deletions docs/_build/html/_modules/domonic/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.events &#8212; domonic 0.3.0 documentation</title>
<title>domonic.events &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -321,7 +321,11 @@ <h1>Source code for domonic.events</h1><div class="highlight"><pre>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">metaKey</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_metaKey</span></div>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_metaKey</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">unicode</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">key</span></div>

<span class="c1"># KeyboardEvent</span>
<span class="c1"># isComposing Returns whether the state of the event is composing or not InputEvent, KeyboardEvent</span>
Expand Down Expand Up @@ -894,6 +898,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/_modules/domonic/html.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.html &#8212; domonic 0.3.0 documentation</title>
<title>domonic.html &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -445,6 +445,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/_modules/domonic/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.javascript &#8212; domonic 0.3.0 documentation</title>
<title>domonic.javascript &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -1593,6 +1593,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/_modules/domonic/lerpy/tween.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>domonic.lerpy.tween &#8212; domonic 0.3.0 documentation</title>
<title>domonic.lerpy.tween &#8212; domonic 0.3.1 documentation</title>
<link rel="stylesheet" href="../../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -302,6 +302,7 @@ <h3>Navigation</h3>
<li class="toctree-l1"><a class="reference internal" href="../../../packages/components.html">Domonic: templates and components</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../packages/tween.html">Domonic: tween</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../packages/x3d.html">Domonic: x3d</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../packages/dQuery.html">Domonic: dQuery</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../packages/autodocs.html">Domonic: autodocs</a></li>
</ul>

Expand Down
Loading

0 comments on commit 4ca864d

Please sign in to comment.