mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 02:17:52 +02:00
Update docs and HTML example project
This commit is contained in:
parent
b2643ebd26
commit
55cc1c713e
@ -5,3 +5,4 @@ date,sha,version,build_size,build_time,platform,mode,is_cache_using,commits_coun
|
||||
2022-02-28T19:19:46Z,3b329f9c25c9672e4030edb039b0225fa46f7ce1,0.8.521,4356,11,armv7-android,debug,true,521
|
||||
2022-02-28T19:22:51Z,3b329f9c25c9672e4030edb039b0225fa46f7ce1,0.8.521,4356,11,armv7-android,debug,true,521
|
||||
2022-03-12T10:01:30Z,d0f3d6641a08b0d6b719b13017aa85907d1667e5,0.8.564,2200,44,js-web,release,true,564
|
||||
2022-08-29T18:27:58Z,b2643ebd268b15884363efd17724e689279946f1,0.9.589,2316,45,js-web,release,true,589
|
||||
|
|
@ -1 +1 @@
|
||||
{"content":[{"name":"game.projectc","size":3808,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":17168,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":417873,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":17838,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]}
|
||||
{"content":[{"name":"game.projectc","size":3808,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":17728,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":421213,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":18513,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,12 +1,12 @@
|
||||
[project]
|
||||
title = druid
|
||||
version = 0.8.564
|
||||
version = 0.9.589
|
||||
write_log = 0
|
||||
compress_archive = 1
|
||||
publisher = Insality
|
||||
developer = Insality
|
||||
commit_sha = d0f3d6641a08b0d6b719b13017aa85907d1667e5
|
||||
build_date = 2022-03-12T10:01:30Z
|
||||
commit_sha = b2643ebd268b15884363efd17724e689279946f1
|
||||
build_date = 2022-08-29T18:27:58Z
|
||||
title_as_file_name = druid
|
||||
|
||||
[display]
|
||||
@ -120,7 +120,7 @@ default_language = en
|
||||
localizations = en
|
||||
|
||||
[android]
|
||||
version_code = 564
|
||||
version_code = 589
|
||||
minimum_sdk_version = 16
|
||||
target_sdk_version = 30
|
||||
package = com.insality.druid
|
||||
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 119 KiB |
@ -7,7 +7,7 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
|
||||
<title>druid 0.8.564</title>
|
||||
<title>druid 0.9.589</title>
|
||||
<style type='text/css'>
|
||||
/* Disable user selection to avoid strange bug in Chrome on Windows:
|
||||
* Selecting a text outside the canvas, then clicking+draging would
|
||||
|
@ -84,6 +84,18 @@
|
||||
<td class="summary">Clear the DataList and refresh visuals</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#get_created_components">get_created_components(self)</a></td>
|
||||
<td class="summary">Return all currenly created components in DataList</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#get_created_nodes">get_created_nodes(self)</a></td>
|
||||
<td class="summary">Return all currenly created nodes in DataList</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#get_data">get_data(self)</a></td>
|
||||
<td class="summary">Return current data from DataList component</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#get_first_index">get_first_index(self)</a></td>
|
||||
<td class="summary">Return first index from data.</td>
|
||||
</tr>
|
||||
@ -127,6 +139,14 @@
|
||||
<td class="summary">The current visual last data index</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#on_element_add">on_element_add</a></td>
|
||||
<td class="summary">On DataList visual element created Event callback(self, index, node, instance)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#on_element_remove">on_element_remove</a></td>
|
||||
<td class="summary">On DataList visual element created Event callback(self, index)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#on_scroll_progress_change">on_scroll_progress_change</a></td>
|
||||
<td class="summary">Event triggered when scroll progress is changed; event(self, progress_value)</td>
|
||||
</tr>
|
||||
@ -171,6 +191,87 @@
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "get_created_components"></a>
|
||||
<strong>get_created_components(self)</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Return all currenly created components in DataList
|
||||
|
||||
|
||||
<h3>Parameters:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">self</span>
|
||||
<span class="types"><span class="type">DataList</span></span>
|
||||
<a href="../modules/DataList.html#">DataList</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>Returns:</h3>
|
||||
<ol>
|
||||
|
||||
<span class="types"><span class="type">druid.base_component[]</span></span>
|
||||
List of created nodes
|
||||
</ol>
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "get_created_nodes"></a>
|
||||
<strong>get_created_nodes(self)</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Return all currenly created nodes in DataList
|
||||
|
||||
|
||||
<h3>Parameters:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">self</span>
|
||||
<span class="types"><span class="type">DataList</span></span>
|
||||
<a href="../modules/DataList.html#">DataList</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>Returns:</h3>
|
||||
<ol>
|
||||
|
||||
<span class="types"><span class="type">Node[]</span></span>
|
||||
List of created nodes
|
||||
</ol>
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "get_data"></a>
|
||||
<strong>get_data(self)</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Return current data from DataList component
|
||||
|
||||
|
||||
<h3>Parameters:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">self</span>
|
||||
<span class="types"><span class="type">DataList</span></span>
|
||||
<a href="../modules/DataList.html#">DataList</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>Returns:</h3>
|
||||
<ol>
|
||||
|
||||
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span>
|
||||
The current data array
|
||||
</ol>
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "get_first_index"></a>
|
||||
@ -413,6 +514,46 @@
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "on_element_add"></a>
|
||||
<strong>on_element_add</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
On DataList visual element created Event callback(self, index, node, instance)
|
||||
|
||||
|
||||
<ul>
|
||||
<li><span class="parameter">on_element_add</span>
|
||||
<span class="types"><span class="type">DruidEvent</span></span>
|
||||
<a href="../modules/DruidEvent.html#">DruidEvent</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "on_element_remove"></a>
|
||||
<strong>on_element_remove</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
On DataList visual element created Event callback(self, index)
|
||||
|
||||
|
||||
<ul>
|
||||
<li><span class="parameter">on_element_remove</span>
|
||||
<span class="types"><span class="type">DruidEvent</span></span>
|
||||
<a href="../modules/DruidEvent.html#">DruidEvent</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "on_scroll_progress_change"></a>
|
||||
|
@ -331,6 +331,8 @@ function druid__checkbox_group.set_state(self, indexes, is_instant) end
|
||||
---@class druid.data_list : druid.base_component
|
||||
---@field grid druid.static_grid|druid.dynamic_grid The Druid Grid component
|
||||
---@field last_index number The current visual last data index
|
||||
---@field on_element_add druid.event On DataList visual element created Event callback(self, index, node, instance)
|
||||
---@field on_element_remove druid.event On DataList visual element created Event callback(self, index)
|
||||
---@field on_scroll_progress_change druid.event Event triggered when scroll progress is changed; event(self, progress_value)
|
||||
---@field scroll druid.scroll The Druid scroll component
|
||||
---@field scroll_progress number The current progress of scroll posititon
|
||||
@ -341,6 +343,21 @@ local druid__data_list = {}
|
||||
---@param self druid.data_list @{DataList}
|
||||
function druid__data_list.clear(self) end
|
||||
|
||||
--- Return all currenly created components in DataList
|
||||
---@param self druid.data_list @{DataList}
|
||||
---@return druid.base_component[] List of created nodes
|
||||
function druid__data_list.get_created_components(self) end
|
||||
|
||||
--- Return all currenly created nodes in DataList
|
||||
---@param self druid.data_list @{DataList}
|
||||
---@return Node[] List of created nodes
|
||||
function druid__data_list.get_created_nodes(self) end
|
||||
|
||||
--- Return current data from DataList component
|
||||
---@param self druid.data_list @{DataList}
|
||||
---@return table The current data array
|
||||
function druid__data_list.get_data(self) end
|
||||
|
||||
--- Return first index from data.
|
||||
--- It not always equals to 1
|
||||
---@param self druid.data_list @{DataList}
|
||||
|
Loading…
x
Reference in New Issue
Block a user