@nativescript-community/ui-collectionview-alignedflowlayout 5.3.46 → 6.0.1

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.0.1](https://github.com/nativescript-community/ui-collectionview/compare/v6.0.0...v6.0.1) (2024-11-08)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-collectionview-alignedflowlayout
9
+
10
+ ## [6.0.0](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.46...v6.0.0) (2024-11-07)
11
+
12
+ **Note:** Version bump only for package @nativescript-community/ui-collectionview-alignedflowlayout
13
+
6
14
  ## [5.3.46](https://github.com/nativescript-community/ui-collectionview/compare/v5.3.45...v5.3.46) (2024-10-25)
7
15
 
8
16
  **Note:** Version bump only for package @nativescript-community/ui-collectionview-alignedflowlayout
package/index.ios.js CHANGED
@@ -1,4 +1,3 @@
1
- import { Length, Utils } from '@nativescript/core';
2
1
  import { CollectionView } from '@nativescript-community/ui-collectionview';
3
2
  var AlignedCollectionViewFlowLayoutImpl = /** @class */ (function (_super) {
4
3
  __extends(AlignedCollectionViewFlowLayoutImpl, _super);
@@ -22,17 +21,7 @@ var AlignedCollectionViewFlowLayoutImpl = /** @class */ (function (_super) {
22
21
  var _a;
23
22
  var attributesArray = _super.prototype.layoutAttributesForElementsInRect.call(this, rect);
24
23
  var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
25
- if (owner === null || owner === void 0 ? void 0 : owner.itemOverlap) {
26
- var itemOverlap = owner.itemOverlap;
27
- for (var index = 0; index < attributesArray.count; index++) {
28
- var attributes = attributesArray.objectAtIndex(index);
29
- if (attributes.representedElementCategory === UICollectionElementCategory.Cell) {
30
- var xPosition = attributes.center.x + Utils.layout.toDeviceIndependentPixels(Length.toDevicePixels(itemOverlap[1], 0) + Length.toDevicePixels(itemOverlap[2], 0)) * attributes.indexPath.row;
31
- var yPosition = attributes.center.y + Utils.layout.toDeviceIndependentPixels(Length.toDevicePixels(itemOverlap[0], 0) + Length.toDevicePixels(itemOverlap[2], 0)) * attributes.indexPath.row;
32
- attributes.center = CGPointMake(xPosition, yPosition);
33
- }
34
- }
35
- }
24
+ owner === null || owner === void 0 ? void 0 : owner.layoutAttributesForElementsInRect(attributesArray, rect);
36
25
  return attributesArray;
37
26
  };
38
27
  AlignedCollectionViewFlowLayoutImpl.prototype.shouldInvalidateLayoutForBoundsChange = function (newBounds) {
@@ -48,7 +37,7 @@ var AlignedCollectionViewFlowLayoutImpl = /** @class */ (function (_super) {
48
37
  export default function install() {
49
38
  CollectionView.registerLayoutStyle('align', {
50
39
  createLayout: (collectionview) => {
51
- const layout = AlignedCollectionViewFlowLayoutImpl.new();
40
+ const layout = AlignedCollectionViewFlowLayoutImpl.initWithOwner(collectionview);
52
41
  switch (collectionview['layoutHorizontalAlignment']) {
53
42
  case 'left':
54
43
  layout.horizontalAlignment = 0 /* HorizontalAlignment.Left */;
package/index.ios.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../src/alignedflowlayout/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuD3E,MAAM,CAAC,OAAO,UAAU,OAAO;IAC3B,cAAc,CAAC,mBAAmB,CAAC,OAAO,EAAE;QACxC,YAAY,EAAE,CAAC,cAA8B,EAAE,EAAE;YAC7C,MAAM,MAAM,GAAG,mCAAmC,CAAC,GAAG,EAAE,CAAC;YACzD,QAAQ,cAAc,CAAC,2BAA2B,CAAC,EAAE,CAAC;gBAClD,KAAK,M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,CAAC,mBAAmB,oCAA4B,CAAC;oBACvD,MAAM;gBACV,KAAK,WAAW;oBACZ,MAAM,CAAC,mBAAmB,wCAAgC,CAAC;oBAC3D,MAAM;gBACV,KAAK,SAAS;oBACV,MAAM,CAAC,mBAAmB,sCAA8B,CAAC;oBACzD,MAAM;gBACV,KAAK,UAAU;oBACX,MAAM,CAAC,mBAAmB,uCAA+B,CAAC;oBAC1D,MAAM;YACd,CAAC;YACD,QAAQ,cAAc,CAAC,yBAAyB,CAAC,EAAE,CAAC;gBAChD,KAAK,KAAK;oBACN,MAAM,CAAC,iBAAiB,gCAAwB,CAAC;oBACjD,MAAM;gBACV,KAAK,QAAQ;oBACT,MAAM,CAAC,iBAAiB,mCAA2B,CAAC;oBACpD,MAAM;gBACV,KAAK,QAAQ;oBACT,MAAM,CAAC,iBAAiB,mCAA2B,CAAC;oBACpD,MAAM;YACd,CAAC;YACD,OAAO,MAAM,CAAC;QAClB,CAAC;KACJ,CAAC,CAAC;AACP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-collectionview-alignedflowlayout",
3
- "version": "5.3.46",
3
+ "version": "6.0.1",
4
4
  "description": "A NativeScript CollectionView For Custom aligned Layout Plugin.",
5
5
  "main": "./index",
6
6
  "funding": "https://github.com/sponsors/farfromrefug",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://github.com/nativescript-community/ui-collectionview#readme",
41
41
  "dependencies": {
42
- "@nativescript-community/ui-collectionview": "^5.3.46"
42
+ "@nativescript-community/ui-collectionview": "^6.0.1"
43
43
  },
44
- "gitHead": "ec36aedc84f339684036e52af03dc884296b4908"
44
+ "gitHead": "f367f6f8c527b69d888e99347bf591509e522b95"
45
45
  }