Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jailln committed Dec 10, 2024
1 parent f926f77 commit 226514c
Show file tree
Hide file tree
Showing 22 changed files with 62 additions and 2,691 deletions.
2 changes: 1 addition & 1 deletion itowns/dev/dist/debug.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion itowns/dev/dist/itowns.js

Large diffs are not rendered by default.

177 changes: 0 additions & 177 deletions itowns/dev/docs/api/Layer/Atmosphere.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,119 +258,6 @@ <h4>Parameters</h4>



</div>

<hr/>



<div class="method">
<h3>
<span class="method-name">defineLayerProperty</span>
(




propertyName:
<span class="type">string</span>,

defaultValue:
<span class="type">*</span>,

onChange:
<span class="type">function</span>


)

</h3>



<div class="description">
<p>Defines a property for this layer, with a default value and a callback
executed when the property changes.
<br><br>
When changing the property, it also emits an event, named following this
convention: <code>${propertyName}-property-changed</code>, with <code>${propertyName}</code>
being replaced by the name of the property. For example, if the added
property name is <code>frozen</code>, it will emit a <code>frozen-property-changed</code>.
<br><br></p>
</div>






<h4>Parameters</h4>


<ul class="params">

<li>
<code>propertyName</code>


&mdash; <span><p>The name of the property, also used in
the emitted event name.</p></span>



</li>

<li>
<code>defaultValue</code>


&mdash; <span><p>The default set value.</p></span>



</li>

<li>
<code>onChange</code>
(optional)

&mdash; <span><p>The function executed when the property is
changed. Parameters are the layer the property is defined on, and the
name of the property.</p></span>



</li>

</ul>





<h4>Example</h4>




<caption>The emitted event has some properties assigned to it</caption>



<pre class="prettyprint source lang-js"><code>event = {
new: {
${propertyName}: * // the new value of the property
},
previous: {
${propertyName}: * // the previous value of the property
},
target: Layer // the layer it has been dispatched from
type: string // the name of the emitted event
}</code></pre>




</div>

<hr/>
Expand Down Expand Up @@ -491,70 +378,6 @@ <h4>Parameters</h4>



</div>

<hr/>



<div class="method">
<h3>
<span class="method-name">isValidData</span>
(




feature:
<span class="type"><a onclick="window.parent.goTo('api/Base/Feature.html','api/Base/Feature')" title="Feature">Feature</a></span>


)
:

<span class="type"><a onclick="window.parent.goTo('api/Base/Feature.html','api/Base/Feature')" title="Feature">Feature</a></span>



</h3>



<div class="description">
<p>Determines whether the specified feature is valid data.</p>
</div>




<h4>Returns</h4>

<p>the feature is returned if it's valided</p>



<h4>Parameters</h4>


<ul class="params">

<li>
<code>feature</code>


&mdash; <span><p>The feature</p></span>



</li>

</ul>






</div>

<hr/>
Expand Down
177 changes: 0 additions & 177 deletions itowns/dev/docs/api/Layer/C3DTilesLayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,119 +316,6 @@ <h4>Parameters</h4>



</div>

<hr/>



<div class="method">
<h3>
<span class="method-name">defineLayerProperty</span>
(




propertyName:
<span class="type">string</span>,

defaultValue:
<span class="type">*</span>,

onChange:
<span class="type">function</span>


)

</h3>



<div class="description">
<p>Defines a property for this layer, with a default value and a callback
executed when the property changes.
<br><br>
When changing the property, it also emits an event, named following this
convention: <code>${propertyName}-property-changed</code>, with <code>${propertyName}</code>
being replaced by the name of the property. For example, if the added
property name is <code>frozen</code>, it will emit a <code>frozen-property-changed</code>.
<br><br></p>
</div>






<h4>Parameters</h4>


<ul class="params">

<li>
<code>propertyName</code>


&mdash; <span><p>The name of the property, also used in
the emitted event name.</p></span>



</li>

<li>
<code>defaultValue</code>


&mdash; <span><p>The default set value.</p></span>



</li>

<li>
<code>onChange</code>
(optional)

&mdash; <span><p>The function executed when the property is
changed. Parameters are the layer the property is defined on, and the
name of the property.</p></span>



</li>

</ul>





<h4>Example</h4>




<caption>The emitted event has some properties assigned to it</caption>



<pre class="prettyprint source lang-js"><code>event = {
new: {
${propertyName}: * // the new value of the property
},
previous: {
${propertyName}: * // the previous value of the property
},
target: Layer // the layer it has been dispatched from
type: string // the name of the emitted event
}</code></pre>




</div>

<hr/>
Expand Down Expand Up @@ -673,70 +560,6 @@ <h4>Parameters</h4>



</div>

<hr/>



<div class="method">
<h3>
<span class="method-name">isValidData</span>
(




feature:
<span class="type"><a onclick="window.parent.goTo('api/Base/Feature.html','api/Base/Feature')" title="Feature">Feature</a></span>


)
:

<span class="type"><a onclick="window.parent.goTo('api/Base/Feature.html','api/Base/Feature')" title="Feature">Feature</a></span>



</h3>



<div class="description">
<p>Determines whether the specified feature is valid data.</p>
</div>




<h4>Returns</h4>

<p>the feature is returned if it's valided</p>



<h4>Parameters</h4>


<ul class="params">

<li>
<code>feature</code>


&mdash; <span><p>The feature</p></span>



</li>

</ul>






</div>

<hr/>
Expand Down
Loading

0 comments on commit 226514c

Please sign in to comment.