diff options
author | bobzel <zzzman@gmail.com> | 2024-10-28 20:07:51 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-28 20:07:51 -0400 |
commit | 63f9f9573dab9745d2f570e1917b325a474fdd93 (patch) | |
tree | 51083d4087aa2b86f8e8d18523e82fb41ce51a3f /src/client/views/PinFuncs.ts | |
parent | 050fe4fe0d9f9722a7a2a48ae3b446049f93775f (diff) |
reworked LabelBox's to be fully editable. gor rid of singleLine for label boxes. made a text_fitBox field to render text with a labelBox. fixed styleprovider in freeformview clusters to be untracked() to avoid invalidations. added a default text color to Settings panel. fixed clicking text buttons to not lose focus in labelBox.
Diffstat (limited to 'src/client/views/PinFuncs.ts')
-rw-r--r-- | src/client/views/PinFuncs.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/PinFuncs.ts b/src/client/views/PinFuncs.ts index bed473eec..ab02c2d07 100644 --- a/src/client/views/PinFuncs.ts +++ b/src/client/views/PinFuncs.ts @@ -1,4 +1,4 @@ -import { Doc, DocListCast } from '../../fields/Doc'; +import { Doc, DocListCast, Field } from '../../fields/Doc'; import { DocData } from '../../fields/DocSymbols'; import { Copy, Id } from '../../fields/FieldSymbols'; import { List } from '../../fields/List'; @@ -74,7 +74,7 @@ export function PinDocView(pinDocIn: Doc, pinProps: PinProps, targetDoc: Doc) { const fkey = Doc.LayoutFieldKey(targetDoc); if (pinProps.pinData.dataview) { pinDoc.config_usePath = targetDoc[fkey + '_usePath']; - pinDoc.config_data = targetDoc[fkey] instanceof ObjectField ? (targetDoc[fkey] as ObjectField)[Copy]() : targetDoc.data; + pinDoc.config_data = Field.Copy(targetDoc[fkey]); } if (pinProps.pinData.dataannos) { const fieldKey = Doc.LayoutFieldKey(targetDoc); |