dytools-capture-engine 2.0.0 → 2.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/dist/index.cjs +5 -3
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -594,7 +594,7 @@ var CaptureZoneBase = class {
|
|
|
594
594
|
};
|
|
595
595
|
var StaticZone = class extends CaptureZoneBase {
|
|
596
596
|
constructor(name, dataType = null, value = null, featureFlags, opts = {}) {
|
|
597
|
-
super(name, new import_dytools_geometry.Rectangle(0, 0, 10, 10),
|
|
597
|
+
super(name, new import_dytools_geometry.Rectangle(0, 0, 10, 10), false, null, false, false, null, null, null, false, dataType, false, value, featureFlags, opts);
|
|
598
598
|
this.type = "static";
|
|
599
599
|
}
|
|
600
600
|
get defaultOptions() {
|
|
@@ -603,7 +603,9 @@ var StaticZone = class extends CaptureZoneBase {
|
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
605
|
handleInternalZoneEvent(type, payload) {
|
|
606
|
-
|
|
606
|
+
if (type === CaptureZoneEventType.ZoneNameChanged || type === CaptureZoneEventType.ZoneDataTypeChanged || type === CaptureZoneEventType.ZoneDefaultValueIfEmptyChanged || type === CaptureZoneEventType.ZoneFeatureFlagsChanged) {
|
|
607
|
+
super.handleInternalZoneEvent(type, payload);
|
|
608
|
+
}
|
|
607
609
|
if (this.canvasManager === null) {
|
|
608
610
|
this.emitToEngine(CaptureToEngineEventType.ZoneError, { zone: this, message: "Missing CanvasManager" });
|
|
609
611
|
return;
|
|
@@ -1628,7 +1630,7 @@ var CaptureEngine = class {
|
|
|
1628
1630
|
if (z.GroupChildrenInSubRecord !== void 0) anchor.groupChildren = z.GroupChildrenInSubRecord;
|
|
1629
1631
|
if (z.HasColumnHeaders) anchor.hasColumnHeaders = z.HasColumnHeaders;
|
|
1630
1632
|
if (z.ExcludeColumnHeaders) anchor.excludeColumnHeaders = z.ExcludeColumnHeaders;
|
|
1631
|
-
|
|
1633
|
+
anchor.isAnchorPerLine = z.IsAnchorPerLine ?? true;
|
|
1632
1634
|
const anchorPoint = anchor.rect.origin;
|
|
1633
1635
|
for (const childDto of z.ChildZones ?? []) {
|
|
1634
1636
|
const child = this.zoneFromExternal(childDto, docW, docH, anchorPoint);
|
package/dist/index.js
CHANGED
|
@@ -578,7 +578,7 @@ var CaptureZoneBase = class {
|
|
|
578
578
|
};
|
|
579
579
|
var StaticZone = class extends CaptureZoneBase {
|
|
580
580
|
constructor(name, dataType = null, value = null, featureFlags, opts = {}) {
|
|
581
|
-
super(name, new Rectangle(0, 0, 10, 10),
|
|
581
|
+
super(name, new Rectangle(0, 0, 10, 10), false, null, false, false, null, null, null, false, dataType, false, value, featureFlags, opts);
|
|
582
582
|
this.type = "static";
|
|
583
583
|
}
|
|
584
584
|
get defaultOptions() {
|
|
@@ -587,7 +587,9 @@ var StaticZone = class extends CaptureZoneBase {
|
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
589
|
handleInternalZoneEvent(type, payload) {
|
|
590
|
-
|
|
590
|
+
if (type === CaptureZoneEventType.ZoneNameChanged || type === CaptureZoneEventType.ZoneDataTypeChanged || type === CaptureZoneEventType.ZoneDefaultValueIfEmptyChanged || type === CaptureZoneEventType.ZoneFeatureFlagsChanged) {
|
|
591
|
+
super.handleInternalZoneEvent(type, payload);
|
|
592
|
+
}
|
|
591
593
|
if (this.canvasManager === null) {
|
|
592
594
|
this.emitToEngine(CaptureToEngineEventType.ZoneError, { zone: this, message: "Missing CanvasManager" });
|
|
593
595
|
return;
|
|
@@ -1612,7 +1614,7 @@ var CaptureEngine = class {
|
|
|
1612
1614
|
if (z.GroupChildrenInSubRecord !== void 0) anchor.groupChildren = z.GroupChildrenInSubRecord;
|
|
1613
1615
|
if (z.HasColumnHeaders) anchor.hasColumnHeaders = z.HasColumnHeaders;
|
|
1614
1616
|
if (z.ExcludeColumnHeaders) anchor.excludeColumnHeaders = z.ExcludeColumnHeaders;
|
|
1615
|
-
|
|
1617
|
+
anchor.isAnchorPerLine = z.IsAnchorPerLine ?? true;
|
|
1616
1618
|
const anchorPoint = anchor.rect.origin;
|
|
1617
1619
|
for (const childDto of z.ChildZones ?? []) {
|
|
1618
1620
|
const child = this.zoneFromExternal(childDto, docW, docH, anchorPoint);
|