pict 1.0.58 → 1.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/source/Pict.js +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Pict browser library.",
5
5
  "main": "source/Pict.js",
6
6
  "scripts": {
package/source/Pict.js CHANGED
@@ -48,6 +48,24 @@ class Pict extends libFable
48
48
  }
49
49
  }
50
50
 
51
+ // Just passing an options will construct one for us.
52
+ // Passing a hash will set the hash.
53
+ // Passing a prototype will use that!
54
+ addApplication(pOptions, pApplicationHash, pApplicationPrototype)
55
+ {
56
+ let tmpOptions = (typeof(pOptions) == 'object') ? pOptions : {};
57
+ let tmpApplicationHash = (typeof(pApplicationHash) == 'string') ? pApplicationHash : this.fable.getUUID();
58
+
59
+ if (typeof(pApplicationPrototype) != 'undefined')
60
+ {
61
+ return this.serviceManager.instantiateServiceProviderFromPrototype('PictView', tmpOptions, tmpApplicationHash, pApplicationPrototype);
62
+ }
63
+ else
64
+ {
65
+ return this.serviceManager.instantiateServiceProvider('PictView', tmpOptions, tmpApplicationHash);
66
+ }
67
+ }
68
+
51
69
  initializePictTemplates(fExtraTemplateMethods)
52
70
  {
53
71
  /*