mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor doc tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									6d34435fab
								
							
						
					
					
						commit
						0544ad5b05
					
				
							
								
								
									
										32
									
								
								ui/data4.js
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								ui/data4.js
									
									
									
									
									
								
							| @ -4,11 +4,7 @@ | |||||||
| * | * | ||||||
| **********************************************************************/ | **********************************************************************/ | ||||||
| 
 | 
 | ||||||
| //var DEBUG = DEBUG != null ? DEBUG : true
 | // General format info...
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| /*********************************************************************/ |  | ||||||
| // Format version...
 |  | ||||||
| //
 | //
 | ||||||
| // version format:
 | // version format:
 | ||||||
| // 	<major>.<minor>
 | // 	<major>.<minor>
 | ||||||
| @ -33,10 +29,10 @@ | |||||||
| // 			- has no explicit version set,
 | // 			- has no explicit version set,
 | ||||||
| // 			- not used for real data.
 | // 			- not used for real data.
 | ||||||
| // 	2.0 - Gen3 data format, still experimental,
 | // 	2.0 - Gen3 data format, still experimental,
 | ||||||
| // 			- completely and incompatibly new structure,
 | // 			- completely new and incompatible structure,
 | ||||||
| // 			- use convertDataGen1(..) to convert Gen1 to 2.0 
 | // 			- use convertDataGen1(..) to convert Gen1 to 2.0 
 | ||||||
| // 			- auto-convert form gen1 on load...
 |  | ||||||
| // 			- used for my archive, not public,
 | // 			- used for my archive, not public,
 | ||||||
|  | // 			- auto-convert form gen1 on load...
 | ||||||
| // 	2.1 - Minor update to format spec,	
 | // 	2.1 - Minor update to format spec,	
 | ||||||
| // 			- MARKED now maintained sorted, live,
 | // 			- MARKED now maintained sorted, live,
 | ||||||
| // 			- will auto-sort marks on load of 2.0 data and change 
 | // 			- will auto-sort marks on load of 2.0 data and change 
 | ||||||
| @ -55,16 +51,16 @@ | |||||||
| // 			  conversion of 2.0 data.
 | // 			  conversion of 2.0 data.
 | ||||||
| // 			  NOTE: TAGS gid sets are still compact lists, thus are 
 | // 			  NOTE: TAGS gid sets are still compact lists, thus are 
 | ||||||
| // 			  		actively maintained sorted.
 | // 			  		actively maintained sorted.
 | ||||||
| // 			  		...still thinking of whether making them sparse will 
 | // 			  		...still thinking of whether making them sparse is
 | ||||||
| // 			  		take up too much memory, and is it worth the work...
 | // 			  		worth the work...
 | ||||||
| // 	3.0	- Gen4 format, introduced several backwards incompatible cahnges:
 | // 	3.0	- Gen4 DATA format, introduced several backwards incompatible 
 | ||||||
|  | // 		cahnges:
 | ||||||
| // 			- added ribbon GIDs, .ribbons now is a gid indexed object
 | // 			- added ribbon GIDs, .ribbons now is a gid indexed object
 | ||||||
| // 			- added .ribbon_order
 | // 			- added .ribbon_order
 | ||||||
| // 			- added base ribbon
 | // 			- added base ribbon
 | ||||||
| // 			- ribbons are now sparse in memory but can be compact when
 | // 			- ribbons are now sparse in memory but can be compact when
 | ||||||
| // 			  serialized.
 | // 			  serialized.
 | ||||||
| // 		NOTE: these changes apply only to the DATA structure and 
 | // 			- auto-convert from gen1 (no version) and gen3 (2.*) on load
 | ||||||
| // 				serialization.
 |  | ||||||
| //
 | //
 | ||||||
| //
 | //
 | ||||||
| // NOTE: Gen1 and Gen3 refer to code generations rather than data format
 | // NOTE: Gen1 and Gen3 refer to code generations rather than data format
 | ||||||
| @ -72,6 +68,12 @@ | |||||||
| // 		(PortableMag) started on the same code base as ImageGrid.Viewer
 | // 		(PortableMag) started on the same code base as ImageGrid.Viewer
 | ||||||
| // 		generation 1 and advanced from there...
 | // 		generation 1 and advanced from there...
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | /*********************************************************************/ | ||||||
|  | 
 | ||||||
|  | // Data class methods and API...
 | ||||||
|  | //
 | ||||||
| var DataClassPrototype = { | var DataClassPrototype = { | ||||||
| 	// NOTE: we consider the input list sorted...
 | 	// NOTE: we consider the input list sorted...
 | ||||||
| 	fromList: function(list){ | 	fromList: function(list){ | ||||||
| @ -90,6 +92,9 @@ var DataClassPrototype = { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | // Data object methods and API...
 | ||||||
|  | //
 | ||||||
| var DataPrototype = { | var DataPrototype = { | ||||||
| 	// DATA structure:
 | 	// DATA structure:
 | ||||||
| 	// 	.current
 | 	// 	.current
 | ||||||
| @ -863,6 +868,9 @@ var DataPrototype = { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | // Main Data object...
 | ||||||
|  | //
 | ||||||
| function Data(json){ | function Data(json){ | ||||||
| 	if(this.constructor.name != 'Data'){ | 	if(this.constructor.name != 'Data'){ | ||||||
| 		obj = new Data | 		obj = new Data | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user