From e373e66f8ed06f4501e00af8348f15ad113c7424 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 21 Dec 2022 11:11:39 -0500 Subject: cleaning up ACLs for performance and clarity --- src/client/views/nodes/formattedText/FormattedTextBox.scss | 2 +- src/client/views/nodes/trails/PresBox.tsx | 4 ++-- src/client/views/nodes/trails/PresEnums.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/client/views/nodes') diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.scss b/src/client/views/nodes/formattedText/FormattedTextBox.scss index 93dc0b2a1..cbe0a465d 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.scss +++ b/src/client/views/nodes/formattedText/FormattedTextBox.scss @@ -15,7 +15,7 @@ audiotag { position: absolute; cursor: pointer; border-radius: 10px; - width: 10px; + width: 12px; margin-top: -2px; font-size: 4px; background: lightblue; diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index 39328ae4a..abaa3b373 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -1383,11 +1383,11 @@ export class PresBox extends ViewBoxBaseComponent() { {presEffect(PresEffect.Roll)} -
+
Effect direction
{StrCast(this.activeItem.presEffectDirection)}
-
+
{presDirection(PresEffectDirection.Left, 'angle-right', 1, 2, {})} {presDirection(PresEffectDirection.Right, 'angle-left', 3, 2, {})} {presDirection(PresEffectDirection.Top, 'angle-down', 2, 1, {})} diff --git a/src/client/views/nodes/trails/PresEnums.ts b/src/client/views/nodes/trails/PresEnums.ts index 8c8b83fbf..564829d54 100644 --- a/src/client/views/nodes/trails/PresEnums.ts +++ b/src/client/views/nodes/trails/PresEnums.ts @@ -23,6 +23,7 @@ export enum PresEffectDirection { Center = 'Enter from center', Top = 'Enter from Top', Bottom = 'Enter from bottom', + None = 'None', } export enum PresStatus { -- cgit v1.2.3-70-g09d2 From da9aef9e4cda036264801191361c1ecfacd9ba0b Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 23 Dec 2022 18:05:02 -0500 Subject: fixed pinning items at frame 0 of an animated collection. --- src/client/views/ContextMenuItem.tsx | 1 + src/client/views/nodes/trails/PresBox.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/views/nodes') diff --git a/src/client/views/ContextMenuItem.tsx b/src/client/views/ContextMenuItem.tsx index dc9c2eb6c..e87d2046b 100644 --- a/src/client/views/ContextMenuItem.tsx +++ b/src/client/views/ContextMenuItem.tsx @@ -29,6 +29,7 @@ export class ContextMenuItem extends React.Component = []; @observable private overItem = false; + @action componentDidMount() { this._items.length = 0; if ((this.props as SubmenuProps)?.subitems) { diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index abaa3b373..b26f485be 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -280,7 +280,7 @@ export class PresBox extends ViewBoxBaseComponent() { const activeFrame = activeItem.presActiveFrame ?? activeItem.presCurrentFrame; if (activeFrame !== undefined) { const transTime = NumCast(activeItem.presTransition, 500); - const context = activeItem.presActiveFrame ? DocCast(DocCast(activeItem.presentationTargetDoc).context) : DocCast(activeItem.presentationTargetDoc); + const context = activeItem.presActiveFrame !== undefined ? DocCast(DocCast(activeItem.presentationTargetDoc).context) : DocCast(activeItem.presentationTargetDoc); if (context) { const ffview = DocumentManager.Instance.getFirstDocumentView(context)?.ComponentView as CollectionFreeFormView; if (ffview) { -- cgit v1.2.3-70-g09d2