bfg-common 1.5.512 → 1.5.514

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.
@@ -2257,17 +2257,17 @@ wdi.RedCursor = $.spcExtend(wdi.SpiceObject, {
2257
2257
 
2258
2258
 
2259
2259
  marshall: function () {
2260
- this.rawData = [];
2261
- this.rawData = this.rawData.concat(
2262
- this.numberTo16(this.flags)
2263
- );
2264
- if(!(this.flags & 1)){
2265
- this.rawData = this.rawData.concat(
2266
- this.header.marshall(),
2267
- this.data
2268
- );
2269
- }
2270
- return this.rawData;
2260
+ this.rawData = [];
2261
+ this.rawData = this.rawData.concat(
2262
+ this.numberTo16(this.flags)
2263
+ );
2264
+ if(!(this.flags & 1)){
2265
+ this.rawData = this.rawData.concat(
2266
+ this.header.marshall(),
2267
+ this.data
2268
+ );
2269
+ }
2270
+ return this.rawData;
2271
2271
  },
2272
2272
 
2273
2273
  demarshall: function (queue, expSize) {
@@ -2292,16 +2292,16 @@ wdi.RedCursorHeader = $.spcExtend(wdi.SpiceObject, {
2292
2292
 
2293
2293
 
2294
2294
  marshall: function () {
2295
- this.rawData = [];
2296
- this.rawData = this.rawData.concat(
2297
- this.numberTo64(this.unique),
2298
- this.numberTo8(this.type),
2299
- this.numberTo16(this.width),
2300
- this.numberTo16(this.height),
2301
- this.numberTo16(this.hot_spot_x),
2302
- this.numberTo16(this.hot_spot_y)
2303
- );
2304
- return this.rawData;
2295
+ this.rawData = [];
2296
+ this.rawData = this.rawData.concat(
2297
+ this.numberTo64(this.unique),
2298
+ this.numberTo8(this.type),
2299
+ this.numberTo16(this.width),
2300
+ this.numberTo16(this.height),
2301
+ this.numberTo16(this.hot_spot_x),
2302
+ this.numberTo16(this.hot_spot_y)
2303
+ );
2304
+ return this.rawData;
2305
2305
  },
2306
2306
 
2307
2307
  demarshall: function (queue, expSize) {
@@ -2323,13 +2323,13 @@ wdi.RedCursorSet = $.spcExtend(wdi.SpiceObject, {
2323
2323
  objectSize: 5,
2324
2324
 
2325
2325
  marshall: function () {
2326
- this.rawData = [];
2327
- this.rawData = this.rawData.concat(
2328
- this.position.marshall(),
2329
- this.numberTo8(this.visible),
2330
- this.cursor.marshall()
2331
- );
2332
- return this.rawData;
2326
+ this.rawData = [];
2327
+ this.rawData = this.rawData.concat(
2328
+ this.position.marshall(),
2329
+ this.numberTo8(this.visible),
2330
+ this.cursor.marshall()
2331
+ );
2332
+ return this.rawData;
2333
2333
  },
2334
2334
 
2335
2335
  demarshall: function (queue, expSize) {
@@ -2343,6 +2343,27 @@ wdi.RedCursorSet = $.spcExtend(wdi.SpiceObject, {
2343
2343
  }
2344
2344
  });
2345
2345
 
2346
+ // Custom code
2347
+ wdi.RedCursorMove = $.spcExtend(wdi.SpiceObject, {
2348
+ objectSize: 4,
2349
+
2350
+ marshall: function () {
2351
+ this.rawData = [];
2352
+ this.rawData = this.rawData.concat(
2353
+ this.position.marshall(),
2354
+ );
2355
+ return this.rawData;
2356
+ },
2357
+
2358
+ demarshall: function (queue, expSize) {
2359
+ this.expectedSize = expSize || this.objectSize;
2360
+ if (queue.getLength() < this.expectedSize) throw new wdi.Exception({message: 'Not enough queue to read', errorCode: 3});
2361
+ this.position = new wdi.SpicePoint16().demarshall(queue);
2362
+ return this;
2363
+ }
2364
+ });
2365
+ // Custom code end
2366
+
2346
2367
  wdi.RedCursorHide = $.spcExtend(wdi.SpiceObject, {
2347
2368
  objectSize: 5,
2348
2369