@motifx-community/ui 0.1.0-beta.6 → 0.1.0-beta.9
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 +324 -0
- package/dist/components/accordion/Accordion.d.ts +3 -0
- package/dist/components/accordion/AccordionItem.d.ts +9 -7
- package/dist/components/appbar/AppBar.d.ts +9 -3
- package/dist/components/appbar/app-bar-props.d.ts +2 -2
- package/dist/components/appmenu/AppMenu.d.ts +204 -0
- package/dist/components/appmenu/app-menu-item-click-event-args.d.ts +11 -0
- package/dist/components/appmenu/app-menu-item.d.ts +46 -0
- package/dist/components/appmenu/app-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/appmenu/app-menu-props.d.ts +38 -0
- package/dist/components/appmenu/app-menu-search-text-changed-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selecting-event-args.d.ts +5 -0
- package/dist/components/appmenu/app-menu-selection-changed-event-args.d.ts +13 -0
- package/dist/components/appmenu/index.d.ts +8 -0
- package/dist/components/avatar/Avatar.d.ts +2 -0
- package/dist/components/avatar/AvatarGroup.d.ts +18 -2
- package/dist/components/badge/Badge.d.ts +4 -1
- package/dist/components/barcode/Barcode.d.ts +7 -1
- package/dist/components/bargauge/BarGauge.d.ts +35 -22
- package/dist/components/bottomnavigation/BottomNavigation.d.ts +44 -12
- package/dist/components/bottomnavigation/bottom-navigation-item.d.ts +1 -1
- package/dist/components/bottomnavigation/bottom-navigation-props.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.d.ts +12 -8
- package/dist/components/button/Button.d.ts +24 -3
- package/dist/components/button/button-props.d.ts +1 -0
- package/dist/components/button/menu-item-of.d.ts +4 -0
- package/dist/components/buttongroup/ButtonGroup.d.ts +2 -1
- package/dist/components/calendar/Calendar.d.ts +11 -3
- package/dist/components/calendar/calendar-props.d.ts +2 -0
- package/dist/components/card/Card.d.ts +10 -0
- package/dist/components/card/card-props.d.ts +1 -1
- package/dist/components/chart/Chart.d.ts +30 -17
- package/dist/components/chart/ChartLegend.d.ts +10 -7
- package/dist/components/chart/ChartPlot.d.ts +40 -31
- package/dist/components/chart/ChartTable.d.ts +0 -1
- package/dist/components/chart/ChartTooltip.d.ts +23 -4
- package/dist/components/chart/PartsPlot.d.ts +19 -7
- package/dist/components/chart/RadarPlot.d.ts +23 -9
- package/dist/components/chart/chart-export.d.ts +3 -3
- package/dist/components/chart/chart-look.d.ts +7 -5
- package/dist/components/chart/chart-tooltip-options.d.ts +3 -2
- package/dist/components/chart/plot-room.d.ts +9 -0
- package/dist/components/chart/plot-view.d.ts +12 -2
- package/dist/components/chart/text-parts.d.ts +12 -0
- package/dist/components/checkbox/ToggleField.d.ts +6 -4
- package/dist/components/chip/Chip.d.ts +16 -7
- package/dist/components/chip/ChipGroup.d.ts +14 -1
- package/dist/components/chip/chip-props.d.ts +1 -1
- package/dist/components/colorbox/ColorBox.d.ts +5 -3
- package/dist/components/colorpicker/ColorPicker.d.ts +3 -0
- package/dist/components/combobox/ComboBox.d.ts +8 -4
- package/dist/components/combobox/combo-box-props.d.ts +2 -2
- package/dist/components/contextmenu/ContextMenu.d.ts +26 -15
- package/dist/components/contextmenu/attach-context-menu.d.ts +3 -3
- package/dist/components/contextmenu/context-menu-opening-event-args.d.ts +8 -4
- package/dist/components/contextmenu/context-menu-props.d.ts +2 -2
- package/dist/components/contextmenu/context-menu-target.d.ts +2 -2
- package/dist/components/datagrid/DataGrid.d.ts +104 -31
- package/dist/components/datagrid/filter-editor-context.d.ts +22 -0
- package/dist/components/datagrid/grid-action.d.ts +2 -2
- package/dist/components/datagrid/grid-cell-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-cell-prepared-event-args.d.ts +6 -4
- package/dist/components/datagrid/grid-column.d.ts +10 -2
- package/dist/components/datagrid/grid-editor-prepared-event-args.d.ts +2 -2
- package/dist/components/datagrid/grid-lookup.d.ts +4 -4
- package/dist/components/datagrid/grid-master-detail.d.ts +1 -1
- package/dist/components/datagrid/grid-row-click-event-args.d.ts +3 -3
- package/dist/components/datagrid/grid-row-drag-event-args.d.ts +3 -2
- package/dist/components/datagrid/grid-row-dragging.d.ts +8 -8
- package/dist/components/datagrid/grid-row-prepared-event-args.d.ts +4 -2
- package/dist/components/datagrid/grid-visible-row.d.ts +3 -1
- package/dist/components/datagrid/index.d.ts +1 -0
- package/dist/components/datagrid/model/CellFormatter.d.ts +8 -1
- package/dist/components/datagrid/model/ChoiceListAdapter.d.ts +23 -0
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +5 -0
- package/dist/components/datagrid/model/ListChoices.d.ts +28 -0
- package/dist/components/datagrid/model/row-dragging-values.d.ts +3 -2
- package/dist/components/datagrid/view/ActionWidths.d.ts +16 -4
- package/dist/components/datagrid/view/BandRows.d.ts +12 -14
- package/dist/components/datagrid/view/CellEditor.d.ts +3 -5
- package/dist/components/datagrid/view/CellTip.d.ts +20 -8
- package/dist/components/datagrid/view/ColumnMenu.d.ts +4 -2
- package/dist/components/datagrid/view/ColumnStyles.d.ts +3 -2
- package/dist/components/datagrid/view/DetailRow.d.ts +9 -4
- package/dist/components/datagrid/view/DragSelect.d.ts +19 -7
- package/dist/components/datagrid/view/EditForm.d.ts +4 -0
- package/dist/components/datagrid/view/FilterCell.d.ts +30 -7
- package/dist/components/datagrid/view/FilterPanel.d.ts +1 -1
- package/dist/components/datagrid/view/FilterRow.d.ts +10 -6
- package/dist/components/datagrid/view/GridBody.d.ts +87 -43
- package/dist/components/datagrid/view/GridPager.d.ts +8 -1
- package/dist/components/datagrid/view/GridRow.d.ts +32 -17
- package/dist/components/datagrid/view/GridToolbar.d.ts +6 -5
- package/dist/components/datagrid/view/GroupFooterRow.d.ts +7 -1
- package/dist/components/datagrid/view/GroupPanel.d.ts +26 -8
- package/dist/components/datagrid/view/GroupRow.d.ts +17 -10
- package/dist/components/datagrid/view/HeaderFilter.d.ts +2 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +18 -3
- package/dist/components/datagrid/view/MenuPopup.d.ts +3 -2
- package/dist/components/datagrid/view/RowActions.d.ts +13 -5
- package/dist/components/datagrid/view/RowDrag.d.ts +24 -10
- package/dist/components/datagrid/view/TotalRow.d.ts +4 -2
- package/dist/components/datagrid/view/action-button.d.ts +11 -5
- package/dist/components/datagrid/view/cell-tip-target.d.ts +11 -0
- package/dist/components/datagrid/view/check-mark.d.ts +4 -3
- package/dist/components/datagrid/view/column-fit.d.ts +9 -0
- package/dist/components/datagrid/view/drag-handle.d.ts +3 -2
- package/dist/components/datagrid/view/drag-select-host.d.ts +5 -5
- package/dist/components/datagrid/view/expand-button.d.ts +4 -3
- package/dist/components/datagrid/view/group-drop.d.ts +7 -0
- package/dist/components/datagrid/view/group-panel-host.d.ts +7 -4
- package/dist/components/datagrid/view/header-host.d.ts +3 -2
- package/dist/components/datagrid/view/row-drag-host.d.ts +5 -3
- package/dist/components/datagrid/view/summary-cell.d.ts +5 -3
- package/dist/components/datagrid/view/toolbar-host.d.ts +3 -2
- package/dist/components/datebox/DateBox.d.ts +5 -3
- package/dist/components/daterangebox/DateRangeBox.d.ts +12 -9
- package/dist/components/draggable/Draggable.d.ts +24 -11
- package/dist/components/draggable/draggable-props.d.ts +3 -3
- package/dist/components/drawer/Drawer.d.ts +18 -10
- package/dist/components/drawer/drawer-props.d.ts +2 -2
- package/dist/components/dropdown/DropDown.d.ts +12 -3
- package/dist/components/dropdown/drop-down-props.d.ts +3 -3
- package/dist/components/fileuploader/FileUploader.d.ts +9 -6
- package/dist/components/filterbuilder/FilterBuilder.d.ts +42 -13
- package/dist/components/form/MxForm.d.ts +33 -12
- package/dist/components/form/form-props.d.ts +1 -1
- package/dist/components/form/message-box-options.d.ts +1 -1
- package/dist/components/formlayout/FormLayout.d.ts +26 -5
- package/dist/components/gallery/Gallery.d.ts +30 -17
- package/dist/components/gauge/Gauge.d.ts +51 -37
- package/dist/components/layout/ChildSettings.d.ts +2 -2
- package/dist/components/layout/GroupBox.d.ts +7 -5
- package/dist/components/layout/Panel.d.ts +1 -0
- package/dist/components/layout/SplitContainer.d.ts +8 -8
- package/dist/components/layout/set-padding.d.ts +2 -1
- package/dist/components/layout/set-space.d.ts +2 -1
- package/dist/components/listbox/ListBox.d.ts +7 -5
- package/dist/components/listbox/item-template.d.ts +7 -2
- package/dist/components/listbox/list-rows.d.ts +2 -0
- package/dist/components/loadpanel/LoadPanel.d.ts +7 -3
- package/dist/components/loadpanel/load-panel-props.d.ts +1 -1
- package/dist/components/loadpanel/load-panel-target.d.ts +2 -2
- package/dist/components/lookup/Lookup.d.ts +1 -1
- package/dist/components/menubar/MenuBar.d.ts +115 -5
- package/dist/components/menubar/index.d.ts +7 -0
- package/dist/components/menubar/menu-bar-added-item.d.ts +11 -0
- package/dist/components/menubar/menu-bar-custom-menu-opening-event-args.d.ts +19 -0
- package/dist/components/menubar/menu-bar-customization.d.ts +18 -0
- package/dist/components/menubar/menu-bar-customized-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-items-changed-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-merge-when.d.ts +5 -0
- package/dist/components/menubar/menu-bar-merged-event-args.d.ts +7 -0
- package/dist/components/menubar/menu-bar-props.d.ts +43 -1
- package/dist/components/menubar/menu-merge.d.ts +10 -0
- package/dist/components/menubar/menu-node.d.ts +4 -0
- package/dist/components/menubar/merge-hosts.d.ts +9 -0
- package/dist/components/menubar/merged-item.d.ts +18 -0
- package/dist/components/numberbox/NumberBox.d.ts +13 -4
- package/dist/components/numberbox/number-box-props.d.ts +1 -1
- package/dist/components/otpinput/OtpInput.d.ts +19 -8
- package/dist/components/pagination/Pagination.d.ts +9 -4
- package/dist/components/popover/Popover.d.ts +24 -7
- package/dist/components/popover/popover-props.d.ts +1 -1
- package/dist/components/progress/ProgressBar.d.ts +1 -0
- package/dist/components/progress/ProgressWave.d.ts +13 -12
- package/dist/components/progress/Spinner.d.ts +5 -5
- package/dist/components/progress/progress-bar-props.d.ts +1 -1
- package/dist/components/qrcode/QRCode.d.ts +5 -1
- package/dist/components/radiogroup/RadioGroup.d.ts +8 -6
- package/dist/components/rating/Rating.d.ts +2 -2
- package/dist/components/resizable/Resizable.d.ts +19 -17
- package/dist/components/resizable/resizable-props.d.ts +3 -3
- package/dist/components/resizable/resize-start.d.ts +11 -0
- package/dist/components/ribbonmenu/RibbonGallery.d.ts +32 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +61 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +419 -0
- package/dist/components/ribbonmenu/index.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-app-button-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-command-click-event-args.d.ts +15 -0
- package/dist/components/ribbonmenu/ribbon-command-size.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-command-type.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-command.d.ts +63 -0
- package/dist/components/ribbonmenu/ribbon-gallery-item.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-group-more-event-args.d.ts +12 -0
- package/dist/components/ribbonmenu/ribbon-group.d.ts +31 -0
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +22 -0
- package/dist/components/ribbonmenu/ribbon-menu-customization.d.ts +18 -0
- package/dist/components/ribbonmenu/ribbon-menu-customized-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-display-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-display.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-menu-items-changed-event-args.d.ts +7 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout-changed-event-args.d.ts +8 -0
- package/dist/components/ribbonmenu/ribbon-menu-layout.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +79 -0
- package/dist/components/ribbonmenu/ribbon-quick-bar-position.d.ts +2 -0
- package/dist/components/ribbonmenu/ribbon-tab-selecting-event-args.d.ts +5 -0
- package/dist/components/ribbonmenu/ribbon-tab-selection-changed-event-args.d.ts +10 -0
- package/dist/components/ribbonmenu/ribbon-tab.d.ts +24 -0
- package/dist/components/scheduler/AppointmentEditor.d.ts +16 -7
- package/dist/components/scheduler/Scheduler.d.ts +23 -9
- package/dist/components/scheduler/view/AgendaView.d.ts +7 -2
- package/dist/components/scheduler/view/AppointmentDrag.d.ts +26 -3
- package/dist/components/scheduler/view/CellAttributes.d.ts +1 -0
- package/dist/components/scheduler/view/CellWriter.d.ts +6 -3
- package/dist/components/scheduler/view/KeyedParts.d.ts +2 -0
- package/dist/components/scheduler/view/MonthView.d.ts +18 -7
- package/dist/components/scheduler/view/SchedulerTouch.d.ts +8 -2
- package/dist/components/scheduler/view/TimeView.d.ts +23 -11
- package/dist/components/scheduler/view/TimelineLine.d.ts +19 -2
- package/dist/components/scheduler/view/TimelineView.d.ts +27 -16
- package/dist/components/scheduler/view/scheduler-host.d.ts +4 -4
- package/dist/components/scheduler/view/shown-view.d.ts +11 -0
- package/dist/components/scheduler/view/touch-host.d.ts +6 -2
- package/dist/components/scrollview/ScrollView.d.ts +27 -8
- package/dist/components/sheet/BottomSheet.d.ts +13 -6
- package/dist/components/shortcuteditor/ShortcutEditor.d.ts +82 -0
- package/dist/components/shortcuteditor/index.d.ts +3 -0
- package/dist/components/shortcuteditor/shortcut-editor-keys-changed-event-args.d.ts +9 -0
- package/dist/components/shortcuteditor/shortcut-editor-props.d.ts +21 -0
- package/dist/components/signature/Signature.d.ts +18 -13
- package/dist/components/slider/Slider.d.ts +7 -6
- package/dist/components/slider/slider-props.d.ts +1 -1
- package/dist/components/sortable/Sortable.d.ts +24 -12
- package/dist/components/sortable/sortable-props.d.ts +1 -1
- package/dist/components/sparkline/Sparkline.d.ts +17 -19
- package/dist/components/speeddial/SpeedDial.d.ts +8 -2
- package/dist/components/speeddial/speed-dial-action.d.ts +1 -1
- package/dist/components/splitter/SplitPane.d.ts +3 -0
- package/dist/components/splitter/Splitter.d.ts +11 -5
- package/dist/components/stepper/Stepper.d.ts +30 -12
- package/dist/components/tabdocs/AutoHideStrip.d.ts +10 -4
- package/dist/components/tabdocs/DockGuides.d.ts +6 -4
- package/dist/components/tabdocs/DocumentList.d.ts +19 -7
- package/dist/components/tabdocs/DocumentTab.d.ts +12 -9
- package/dist/components/tabdocs/DropMarks.d.ts +8 -3
- package/dist/components/tabdocs/MoveByKeys.d.ts +2 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +2 -1
- package/dist/components/tabdocs/PhoneList.d.ts +14 -4
- package/dist/components/tabdocs/PhoneTools.d.ts +8 -1
- package/dist/components/tabdocs/SplitSash.d.ts +3 -5
- package/dist/components/tabdocs/TabBrowserWindow.d.ts +3 -2
- package/dist/components/tabdocs/TabDockArea.d.ts +5 -2
- package/dist/components/tabdocs/TabDocumentManager.d.ts +51 -25
- package/dist/components/tabdocs/TabDrag.d.ts +27 -12
- package/dist/components/tabdocs/TabGroup.d.ts +30 -16
- package/dist/components/tabdocs/TabMenus.d.ts +11 -4
- package/dist/components/tabdocs/TabPresenter.d.ts +21 -5
- package/dist/components/tabdocs/TabSplit.d.ts +10 -4
- package/dist/components/tabdocs/TabWindow.d.ts +7 -4
- package/dist/components/tabdocs/item-part.d.ts +4 -0
- package/dist/components/tabdocs/layout-item.d.ts +4 -1
- package/dist/components/tabdocs/place-node.d.ts +11 -4
- package/dist/components/tabdocs/strip-room.d.ts +13 -0
- package/dist/components/tabdocs/tab-header.d.ts +3 -0
- package/dist/components/tabs/PanelContent.d.ts +1 -1
- package/dist/components/tabs/Tab.d.ts +4 -4
- package/dist/components/tabs/Tabs.d.ts +11 -6
- package/dist/components/tagbox/TagBox.d.ts +24 -6
- package/dist/components/textarea/TextArea.d.ts +9 -5
- package/dist/components/textbox/TextBox.d.ts +13 -4
- package/dist/components/tileview/TileView.d.ts +15 -5
- package/dist/components/timeline/Timeline.d.ts +11 -0
- package/dist/components/toast/Toaster.d.ts +9 -2
- package/dist/components/toolbar/Toolbar.d.ts +18 -5
- package/dist/components/toolbar/toolbar-item.d.ts +5 -0
- package/dist/components/tooltip/Tooltip.d.ts +10 -2
- package/dist/components/tooltip/add-tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip-hub.d.ts +5 -3
- package/dist/components/tooltip/tooltip-props.d.ts +1 -1
- package/dist/components/tooltip/tooltip-target.d.ts +2 -2
- package/dist/components/treeview/TreeView.d.ts +34 -9
- package/dist/components/treeview/tree-row-parts.d.ts +13 -0
- package/dist/components/treeview/tree-view-item-template.d.ts +7 -2
- package/dist/components/treeview/tree-view-props.d.ts +1 -1
- package/dist/components/validationsummary/ValidationSummary.d.ts +1 -1
- package/dist/core/access-key-entry.d.ts +10 -0
- package/dist/core/access-key.d.ts +24 -12
- package/dist/core/chord.d.ts +9 -0
- package/dist/core/command-fields.d.ts +17 -0
- package/dist/core/command-registry.d.ts +37 -0
- package/dist/core/command-run-event-args.d.ts +11 -0
- package/dist/core/command.d.ts +41 -0
- package/dist/core/commands-changed-event-args.d.ts +4 -0
- package/dist/core/component-tree.d.ts +10 -0
- package/dist/core/container.d.ts +8 -5
- package/dist/core/control.d.ts +44 -15
- package/dist/core/cover-record.d.ts +9 -0
- package/dist/core/cover.d.ts +11 -0
- package/dist/core/draw-parts.d.ts +12 -20
- package/dist/core/flow-home.d.ts +7 -4
- package/dist/core/focus-mark.d.ts +8 -0
- package/dist/core/focus.d.ts +109 -10
- package/dist/core/glyphs.d.ts +42 -40
- package/dist/core/icon-source.d.ts +15 -2
- package/dist/core/key-windows.d.ts +8 -0
- package/dist/core/keyboard.d.ts +25 -30
- package/dist/core/keymap-changed-event-args.d.ts +7 -0
- package/dist/core/keymap.d.ts +6 -0
- package/dist/core/language-look.d.ts +20 -7
- package/dist/core/live-controls.d.ts +12 -0
- package/dist/core/look-watch.d.ts +4 -1
- package/dist/core/measure/box.d.ts +21 -0
- package/dist/core/measure/element-of.d.ts +12 -0
- package/dist/core/measure/every-frame.d.ts +8 -0
- package/dist/core/measure/hit-cover.d.ts +8 -0
- package/dist/core/measure/hit-options.d.ts +12 -0
- package/dist/core/measure/hits.d.ts +18 -0
- package/dist/core/measure/index.d.ts +27 -0
- package/dist/core/measure/job.d.ts +9 -0
- package/dist/core/measure/layout-change.d.ts +2 -0
- package/dist/core/measure/layout-options.d.ts +11 -0
- package/dist/core/measure/lengths.d.ts +13 -0
- package/dist/core/measure/look.d.ts +11 -0
- package/dist/core/measure/loop.d.ts +10 -0
- package/dist/core/measure/media.d.ts +8 -0
- package/dist/core/measure/motion.d.ts +10 -0
- package/dist/core/measure/observers.d.ts +13 -0
- package/dist/core/measure/on-layout.d.ts +23 -0
- package/dist/core/measure/page-events.d.ts +6 -0
- package/dist/core/measure/page.d.ts +11 -0
- package/dist/core/measure/pending-scroll.d.ts +9 -0
- package/dist/core/measure/pending-scrolls.d.ts +7 -0
- package/dist/core/measure/point.d.ts +5 -0
- package/dist/core/measure/probe-set.d.ts +35 -0
- package/dist/core/measure/read.d.ts +54 -0
- package/dist/core/measure/rect.d.ts +9 -0
- package/dist/core/measure/reveal-options.d.ts +20 -0
- package/dist/core/measure/reveal-range.d.ts +7 -0
- package/dist/core/measure/round-reads.d.ts +14 -0
- package/dist/core/measure/rounds.d.ts +36 -0
- package/dist/core/measure/scroll-motion.d.ts +5 -0
- package/dist/core/measure/scroll-place.d.ts +5 -0
- package/dist/core/measure/scroll.d.ts +41 -0
- package/dist/core/measure/size-box.d.ts +2 -0
- package/dist/core/measure/size.d.ts +5 -0
- package/dist/core/measure/text-probes.d.ts +19 -0
- package/dist/core/measure/text-widths.d.ts +14 -0
- package/dist/core/measure/view.d.ts +2 -0
- package/dist/core/measure/viewport-rect.d.ts +10 -0
- package/dist/core/measure/viewport.d.ts +12 -0
- package/dist/core/measure/watch.d.ts +35 -0
- package/dist/core/measure/watcher.d.ts +41 -0
- package/dist/core/measure/window-bound.d.ts +11 -0
- package/dist/core/measure/window-frame.d.ts +25 -0
- package/dist/core/order-controls.d.ts +7 -0
- package/dist/core/page-documents.d.ts +13 -0
- package/dist/core/page-layer.d.ts +18 -0
- package/dist/core/parsed-access-key.d.ts +9 -0
- package/dist/core/part-writes.d.ts +25 -0
- package/dist/core/press-origin.d.ts +3 -0
- package/dist/core/shortcut-conflict.d.ts +12 -0
- package/dist/core/shortcut-handler.d.ts +2 -0
- package/dist/core/shortcut-info.d.ts +19 -0
- package/dist/core/shortcut-options.d.ts +33 -0
- package/dist/core/shortcut-registration.d.ts +21 -0
- package/dist/core/shortcut-registry.d.ts +46 -0
- package/dist/core/shortcut-text.d.ts +2 -0
- package/dist/core/show-icon.d.ts +7 -0
- package/dist/core/stacked-window.d.ts +9 -0
- package/dist/core/ui-locale.d.ts +2 -2
- package/dist/core/ui-strings.d.ts +128 -0
- package/dist/core/window-events.d.ts +14 -0
- package/dist/core/window-stack.d.ts +11 -11
- package/dist/generated/tokens.d.ts +1391 -11
- package/dist/index.d.ts +16 -1
- package/dist/index.js +35277 -22566
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +121 -2
- package/dist/locales/tr.json +121 -2
- package/dist/parts/chart/chart-text.d.ts +29 -5
- package/dist/parts/chart/svg-parts.d.ts +11 -7
- package/dist/parts/chart/value-motion.d.ts +3 -2
- package/dist/parts/code/code-image.d.ts +6 -9
- package/dist/parts/customizer/Customizer.d.ts +64 -0
- package/dist/parts/customizer/NameForm.d.ts +10 -0
- package/dist/parts/customizer/customizer-command.d.ts +5 -0
- package/dist/parts/customizer/customizer-names.d.ts +9 -0
- package/dist/parts/customizer/customizer-node.d.ts +15 -0
- package/dist/parts/customizer/customizer-source.d.ts +27 -0
- package/dist/parts/data/DataItems.d.ts +2 -0
- package/dist/parts/data/KeyedItems.d.ts +2 -1
- package/dist/parts/data/empty-key.d.ts +2 -0
- package/dist/parts/drag/DragGhost.d.ts +23 -16
- package/dist/parts/drag/auto-scroll-options.d.ts +19 -0
- package/dist/parts/drag/auto-scroll.d.ts +11 -0
- package/dist/parts/drag/drag-boxes.d.ts +33 -0
- package/dist/parts/drag/stack-cover.d.ts +7 -0
- package/dist/parts/field/Field.d.ts +37 -9
- package/dist/parts/field/pressed-focusable.d.ts +3 -0
- package/dist/parts/item-layout/ItemLayout.d.ts +61 -0
- package/dist/parts/item-layout/item-layout-options.d.ts +17 -0
- package/dist/parts/item-layout/layout-added-item.d.ts +13 -0
- package/dist/parts/item-layout/layout-customization.d.ts +13 -0
- package/dist/parts/item-layout/layout-node.d.ts +24 -0
- package/dist/parts/item-tree/ItemTree.d.ts +34 -0
- package/dist/parts/item-tree/children-at.d.ts +2 -0
- package/dist/parts/item-tree/item-paths.d.ts +18 -0
- package/dist/parts/item-tree/ordered.d.ts +2 -0
- package/dist/parts/list/OptionList.d.ts +73 -17
- package/dist/parts/list/item-source.d.ts +4 -0
- package/dist/parts/list/option-parts.d.ts +10 -0
- package/dist/parts/mask/InputMask.d.ts +11 -4
- package/dist/parts/menu/MenuList.d.ts +35 -11
- package/dist/parts/menu/menu-item-merge-at.d.ts +6 -0
- package/dist/parts/menu/menu-item-merge.d.ts +6 -0
- package/dist/parts/menu/menu-item.d.ts +17 -2
- package/dist/parts/overlay/OverlayPanel.d.ts +21 -12
- package/dist/parts/overlay/inert-around.d.ts +6 -3
- package/dist/parts/overlay/overlay-container.d.ts +2 -2
- package/dist/parts/overlay/overlay-panel-props.d.ts +2 -2
- package/dist/parts/popup/Popup.d.ts +17 -2
- package/dist/parts/popup/place-near.d.ts +10 -0
- package/dist/parts/popup/place-options.d.ts +10 -0
- package/dist/parts/popup/place-popup.d.ts +4 -1
- package/dist/parts/popup/placed.d.ts +7 -0
- package/dist/parts/popup/popup-anchor.d.ts +4 -0
- package/dist/parts/popup/popup-open-options.d.ts +9 -4
- package/dist/parts/slide/slide-track-host.d.ts +3 -2
- package/dist/parts/slide/slide-track.d.ts +10 -4
- package/dist/parts/validation/validate-fields.d.ts +6 -2
- package/dist/parts/validation/validation-target.d.ts +3 -1
- package/dist/parts/window/follow-pointer.d.ts +2 -1
- package/dist/parts/window/resize-frame-parts.d.ts +7 -0
- package/dist/parts/window/resize-frame.d.ts +3 -2
- package/dist/styles.css +2144 -12
- package/dist/tokens/index.d.ts +14836 -13454
- package/dist/tokens/index.js +1397 -12
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-DhIFcH3c.js → tr-BvKE8jSF.js} +241 -3
- package/dist/tr-BvKE8jSF.js.map +1 -0
- package/docs/accordion.md +2 -2
- package/docs/actionsheet.md +4 -3
- package/docs/appbar.md +3 -3
- package/docs/appmenu-api.md +83 -0
- package/docs/appmenu-programmatic.md +76 -0
- package/docs/appmenu-search.md +66 -0
- package/docs/appmenu.md +150 -0
- package/docs/avatar.md +2 -2
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +3 -3
- package/docs/bottomsheet.md +3 -3
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +4 -4
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +2 -2
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/checkbox.md +2 -2
- package/docs/chip.md +7 -8
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/control.md +2 -2
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +7 -4
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +4 -4
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +106 -1
- package/docs/datagrid-forms.md +2 -2
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +7 -7
- package/docs/datagrid-lookups.md +3 -3
- package/docs/datagrid-master-detail.md +3 -3
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +2 -2
- package/docs/daterangebox.md +2 -2
- package/docs/display.md +1 -1
- package/docs/draggable.md +4 -4
- package/docs/drawer.md +2 -2
- package/docs/dropdown.md +5 -5
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +2 -2
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +2 -4
- package/docs/language.md +2 -2
- package/docs/layout.md +3 -3
- package/docs/listbox.md +5 -5
- package/docs/loadpanel.md +4 -4
- package/docs/lookup.md +1 -1
- package/docs/menus.md +17 -16
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +5 -4
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/popover.md +10 -9
- package/docs/progress.md +5 -5
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +3 -3
- package/docs/rating.md +1 -1
- package/docs/resizable.md +4 -4
- package/docs/ribbonmenu-api.md +130 -0
- package/docs/ribbonmenu-commands.md +118 -0
- package/docs/ribbonmenu-customization.md +93 -0
- package/docs/ribbonmenu-display.md +96 -0
- package/docs/ribbonmenu-layouts.md +59 -0
- package/docs/ribbonmenu-programmatic.md +91 -0
- package/docs/ribbonmenu.md +233 -0
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +7 -6
- package/docs/showcase-home.md +1 -1
- package/docs/showcase.md +2 -2
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +4 -4
- package/docs/sortable.md +2 -2
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +2 -2
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +6 -8
- package/docs/switch.md +2 -2
- package/docs/tabdocs-dock.md +2 -2
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -2
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +2 -2
- package/docs/tagbox.md +9 -10
- package/docs/textarea.md +2 -2
- package/docs/textbox.md +6 -3
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +265 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +3 -3
- package/docs/treeview.md +15 -24
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +3 -3
- package/docs/wizard.md +1 -1
- package/llms-full.txt +1904 -290
- package/llms.txt +18 -1
- package/package.json +4 -4
- package/dist/components/datagrid/view/next-frame.d.ts +0 -4
- package/dist/components/datagrid/view/place-in-order.d.ts +0 -6
- package/dist/components/tabdocs/keep-scroll.d.ts +0 -6
- package/dist/core/control-map.d.ts +0 -7
- package/dist/core/document-watch.d.ts +0 -10
- package/dist/core/enable.d.ts +0 -16
- package/dist/core/fonts-loaded.d.ts +0 -2
- package/dist/core/icon-node.d.ts +0 -10
- package/dist/core/next-frame.d.ts +0 -6
- package/dist/core/resize-watch.d.ts +0 -21
- package/dist/core/scroll-watch.d.ts +0 -13
- package/dist/parts/chart/token-lengths.d.ts +0 -16
- package/dist/parts/overlay/css-length.d.ts +0 -2
- package/dist/tr-DhIFcH3c.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Bind, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
1
|
+
import { type Bind, type ComponentBase, type Event as MotifEvent, type IBaseProp } from '@motifx/core';
|
|
2
2
|
import { Control } from '../../core/control';
|
|
3
3
|
import type { ValueChangedEventArgs } from '../../parts/field/value-changed-event-args';
|
|
4
4
|
import type { CalendarProps } from './calendar-props';
|
|
@@ -44,32 +44,40 @@ export declare class Calendar extends Control<HTMLDivElement, CalendarProps> {
|
|
|
44
44
|
/** Occurs when the pointer moves over a day in the month view, or leaves the days (`null`). */
|
|
45
45
|
get onDayPointed(): MotifEvent<Date | null>;
|
|
46
46
|
get onValueChanged(): MotifEvent<ValueChangedEventArgs<Date | null>>;
|
|
47
|
+
/** Occurs when the Tab stop moves to another date, by the user or by `goTo`, so the month or year on screen may be another. */
|
|
48
|
+
get onFocusedDateChanged(): MotifEvent<Date>;
|
|
47
49
|
/** Shows the month of `date` and places the Tab stop on it. */
|
|
48
50
|
goTo(date: Date): void;
|
|
49
51
|
/** Sets focus on the cell with the Tab stop. */
|
|
50
52
|
focus(): boolean;
|
|
51
53
|
/** Indicates whether `date` can be selected: within min and max, and not one of the disabled dates. */
|
|
52
54
|
canChoose(date: Date): boolean;
|
|
53
|
-
|
|
55
|
+
get focusPart(): ComponentBase;
|
|
54
56
|
private get parts();
|
|
55
57
|
private createParts;
|
|
56
58
|
private get firstDay();
|
|
57
59
|
private get currentLocale();
|
|
58
|
-
private get rtl();
|
|
59
60
|
private render;
|
|
60
61
|
/** The first and last day of what is on screen. */
|
|
61
62
|
private shownRange;
|
|
62
63
|
private renderMonth;
|
|
64
|
+
/** The grid's parts for a shape (`view|weeks`): the month's heads and 42 cells, or the 12 cells of a year or decade. */
|
|
65
|
+
private buildGrid;
|
|
66
|
+
/** A cell of another month, when those are not shown: kept, with nothing in it. */
|
|
67
|
+
private emptyCell;
|
|
63
68
|
/** The range's ends in order, as days. */
|
|
64
69
|
private rangeOf;
|
|
65
70
|
/** Where a day stands in the range drawn: its start, its end, one day of both, or between. */
|
|
66
71
|
private rangeMark;
|
|
67
72
|
private pointedOver;
|
|
73
|
+
/** The drawn cell of a date an event came from. */
|
|
74
|
+
private cellFrom;
|
|
68
75
|
private point;
|
|
69
76
|
/** The year view (twelve months) and the decade view (twelve years, one on each side). */
|
|
70
77
|
private renderBlock;
|
|
71
78
|
/** A month or a year can be chosen when one of its days can. */
|
|
72
79
|
private canChooseIn;
|
|
80
|
+
/** Marks the cell of a date and keeps it, with the Tab stop when it is the focused one. */
|
|
73
81
|
private markCell;
|
|
74
82
|
private renderToday;
|
|
75
83
|
private page;
|
|
@@ -28,4 +28,6 @@ export interface CalendarProps extends ControlProps {
|
|
|
28
28
|
onValueChanged?: (e: ValueChangedEventArgs<Date | null>) => void;
|
|
29
29
|
/** Occurs when the pointer moves over a day, or leaves the days (`null`). */
|
|
30
30
|
onDayPointed?: (day: Date | null) => void;
|
|
31
|
+
/** Occurs when the Tab stop moves to another date; its month or year is the one on screen. */
|
|
32
|
+
onFocusedDateChanged?: (date: Date) => void;
|
|
31
33
|
}
|
|
@@ -24,6 +24,8 @@ export declare class Card extends Control<HTMLDivElement, CardProps> {
|
|
|
24
24
|
private readonly mediaPart;
|
|
25
25
|
private readonly headerPart;
|
|
26
26
|
private readonly titlePart;
|
|
27
|
+
/** The id of the title, which names the card. */
|
|
28
|
+
private readonly titleId;
|
|
27
29
|
/** The title as text, or as the link of a link card. */
|
|
28
30
|
private readonly titleText;
|
|
29
31
|
private readonly titleLink;
|
|
@@ -32,6 +34,8 @@ export declare class Card extends Control<HTMLDivElement, CardProps> {
|
|
|
32
34
|
private checkBox;
|
|
33
35
|
private readonly selectedChanged;
|
|
34
36
|
private byUser;
|
|
37
|
+
/** The click going on started on one of its own buttons, links or fields. */
|
|
38
|
+
private ownPress;
|
|
35
39
|
private ready;
|
|
36
40
|
private readonly slots;
|
|
37
41
|
private readonly placed;
|
|
@@ -78,15 +82,21 @@ export declare class Card extends Control<HTMLDivElement, CardProps> {
|
|
|
78
82
|
/** The avatar before the titles, if there is one. */
|
|
79
83
|
get avatarControl(): Avatar | null;
|
|
80
84
|
onMounted(): void;
|
|
85
|
+
/** Enter and Space on the card itself, not on a control inside it, press a clickable card. */
|
|
81
86
|
private keyDown;
|
|
82
87
|
/** A component given in a prop goes into its part; the one it replaces leaves it (it stays yours). */
|
|
83
88
|
private place;
|
|
84
89
|
/** A click on a selectable card turns it on and off, unless it was on one of its own buttons, links or fields. */
|
|
85
90
|
private pressed;
|
|
91
|
+
/** Whether an event came from something inside `from` that takes focus: a button, a link, a field. */
|
|
92
|
+
private fromFocusable;
|
|
86
93
|
private toggle;
|
|
87
94
|
private renderSelect;
|
|
88
95
|
private renderHeader;
|
|
89
96
|
private renderAvatar;
|
|
97
|
+
/** The picture given is taken in once; a new one takes its place. */
|
|
90
98
|
private renderMedia;
|
|
99
|
+
/** The text of a picture drawn from an address; a component given has its own. */
|
|
100
|
+
private renderMediaAlt;
|
|
91
101
|
private renderLook;
|
|
92
102
|
}
|
|
@@ -16,7 +16,7 @@ export interface CardProps extends ControlProps {
|
|
|
16
16
|
avatar?: Bind<AvatarProps | null>;
|
|
17
17
|
/** Content at the end of the header, such as a menu button or a badge. */
|
|
18
18
|
action?: Bind<ComponentBase | null>;
|
|
19
|
-
/** An image that extends to the card edges: an image address
|
|
19
|
+
/** An image that extends to the card edges: an image address or a component. */
|
|
20
20
|
media?: Bind<IconSource | null>;
|
|
21
21
|
/** Alternative text for the image when `media` is an image address. Without it, the image is decorative. */
|
|
22
22
|
mediaAlt?: Bind<string>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Emitter, type Bind, type Component, type Event as MotifEvent, type IBaseProp, type IDisposable } from "@motifx/core";
|
|
1
|
+
import { Emitter, type Bind, type Component, type ComponentBase, type Event as MotifEvent, type IBaseProp, type IDisposable } from "@motifx/core";
|
|
2
2
|
import type { data } from "@motifx-community/data";
|
|
3
3
|
import { Control } from "../../core/control";
|
|
4
|
-
import {
|
|
5
|
-
import { TokenLengths } from "../../parts/chart/token-lengths";
|
|
4
|
+
import { DrawnTexts } from "../../parts/chart/chart-text";
|
|
6
5
|
import { Button } from "../button/Button";
|
|
7
6
|
import type { ChartAxis } from "./chart-axis";
|
|
8
7
|
import type { ChartDataErrorEventArgs } from "./chart-data-error-event-args";
|
|
@@ -29,6 +28,7 @@ import { ChartPlot } from "./ChartPlot";
|
|
|
29
28
|
import { ChartTable } from "./ChartTable";
|
|
30
29
|
import { ChartTooltip } from "./ChartTooltip";
|
|
31
30
|
import type { LegendEntry } from "./legend-entry";
|
|
31
|
+
import type { PlotRoom } from "./plot-room";
|
|
32
32
|
import type { PlotView } from "./plot-view";
|
|
33
33
|
/**
|
|
34
34
|
* A chart of lines, areas, bars, dots and bubbles. Each series says how it draws, and they share one axis of values.
|
|
@@ -78,26 +78,24 @@ export declare class Chart<T = any> extends Control<HTMLDivElement, ChartProps<T
|
|
|
78
78
|
plots: Map<ChartFamily, PlotView>;
|
|
79
79
|
hiddenParts: Set<number>;
|
|
80
80
|
legendEntries: LegendEntry[];
|
|
81
|
+
legendOn: boolean;
|
|
81
82
|
legendPart: ChartLegend;
|
|
82
83
|
tooltipPart: ChartTooltip;
|
|
83
84
|
tablePart: ChartTable;
|
|
84
85
|
model: ChartModel | null;
|
|
85
86
|
look: ChartLook | null;
|
|
87
|
+
/** The plot's texts, measured in the chart's font; one that comes out another size than estimated draws again. */
|
|
88
|
+
readonly texts: DrawnTexts;
|
|
86
89
|
hidden: Set<number>;
|
|
87
90
|
activeSlot: ModelSlot | null;
|
|
88
91
|
activePoint: ModelPoint | null;
|
|
89
|
-
queued: boolean;
|
|
90
92
|
placed: boolean;
|
|
91
93
|
drawnOnce: boolean;
|
|
92
|
-
watch: ResizeWatch | null;
|
|
93
|
-
stopLook: (() => void) | null;
|
|
94
|
-
stopFonts: (() => void) | null;
|
|
95
|
-
tokens: TokenLengths;
|
|
96
94
|
listening: IDisposable | null;
|
|
97
95
|
source: data.DataSource<T, any> | null;
|
|
98
96
|
failedWith: unknown;
|
|
99
97
|
constructor(props?: IBaseProp<ChartProps<T>>);
|
|
100
|
-
|
|
98
|
+
get focusPart(): ComponentBase;
|
|
101
99
|
onMounted(): void;
|
|
102
100
|
get data(): readonly T[] | null;
|
|
103
101
|
set data(value: Bind<readonly T[] | null>);
|
|
@@ -178,11 +176,11 @@ export declare class Chart<T = any> extends Control<HTMLDivElement, ChartProps<T
|
|
|
178
176
|
followSource(): void;
|
|
179
177
|
sourceChanged(): void;
|
|
180
178
|
again(): void;
|
|
179
|
+
readonly readLookNow: () => ChartLook;
|
|
180
|
+
readonly drawWithLook: (look: ChartLook) => void;
|
|
181
181
|
draw(): void;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
to: number;
|
|
185
|
-
} | null): void;
|
|
182
|
+
readonly readPlot: () => PlotRoom | null;
|
|
183
|
+
readonly drawPlot: (room: PlotRoom | null) => void;
|
|
186
184
|
drawTable(): void;
|
|
187
185
|
/** The plot of a family, made the first time it is needed; the others step aside. */
|
|
188
186
|
usePlot(family: ChartFamily): void;
|
|
@@ -192,11 +190,16 @@ export declare class Chart<T = any> extends Control<HTMLDivElement, ChartProps<T
|
|
|
192
190
|
toggleSeries(index: number): void;
|
|
193
191
|
changeMode(mode: ChartMode): void;
|
|
194
192
|
pointOf(p: ModelPoint): ChartPoint<T>;
|
|
193
|
+
/** Where the pointer is on the plot: a handler reads it first, before it writes anything. */
|
|
195
194
|
localPlace(e: MouseEvent): {
|
|
196
195
|
x: number;
|
|
197
196
|
y: number;
|
|
198
197
|
};
|
|
199
198
|
pointerMoved(e: PointerEvent): void;
|
|
199
|
+
pointerAt(e: PointerEvent, place: {
|
|
200
|
+
x: number;
|
|
201
|
+
y: number;
|
|
202
|
+
}): void;
|
|
200
203
|
plotClick(e: MouseEvent): void;
|
|
201
204
|
/** A click or Enter chooses a value, when the chart is asked to. */
|
|
202
205
|
choose(p: ModelPoint): void;
|
|
@@ -215,15 +218,25 @@ export declare class Chart<T = any> extends Control<HTMLDivElement, ChartProps<T
|
|
|
215
218
|
zoomAround(center: number, factor: number): void;
|
|
216
219
|
/** Moves the zoomed part along by a share of its width. */
|
|
217
220
|
pan(share: number): void;
|
|
218
|
-
along(
|
|
221
|
+
along(place: {
|
|
222
|
+
x: number;
|
|
223
|
+
y: number;
|
|
224
|
+
}): number;
|
|
219
225
|
pressed(e: PointerEvent): void;
|
|
220
226
|
released(e: PointerEvent): void;
|
|
221
227
|
wheeled(e: WheelEvent): void;
|
|
222
|
-
|
|
228
|
+
/** `place`: where the pointer is on the plot, read before anything was written; null puts the tooltip at the value. */
|
|
229
|
+
setActive(slot: ModelSlot, point: ModelPoint | null, e: Event | null, place?: {
|
|
230
|
+
x: number;
|
|
231
|
+
y: number;
|
|
232
|
+
} | null): void;
|
|
223
233
|
clearActive(): void;
|
|
224
234
|
showTooltip(slot: ModelSlot, point: ModelPoint | null): void;
|
|
225
|
-
placeTooltip(
|
|
226
|
-
|
|
235
|
+
placeTooltip(pointer: {
|
|
236
|
+
x: number;
|
|
237
|
+
y: number;
|
|
238
|
+
} | null): void;
|
|
239
|
+
plotFocused(e?: Event): void;
|
|
227
240
|
moveTo(slot: ModelSlot, point: ModelPoint): void;
|
|
228
241
|
plotKeyDown(e: KeyboardEvent): void;
|
|
229
242
|
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { LegendEntry } from './legend-entry';
|
|
2
3
|
interface LegendItem {
|
|
3
|
-
button: HTMLButtonElement
|
|
4
|
-
key: HTMLSpanElement
|
|
5
|
-
name: HTMLSpanElement
|
|
4
|
+
button: Component<HTMLButtonElement>;
|
|
5
|
+
key: Component<HTMLSpanElement>;
|
|
6
|
+
name: Component<HTMLSpanElement>;
|
|
6
7
|
id: string;
|
|
8
|
+
pressable: boolean;
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* The legend: a key that mirrors the mark and a name for each entry, so identity never rests on color alone. An entry
|
|
10
12
|
* that can be hidden is a button; one Tab stop, and the arrow keys walk the legend.
|
|
11
13
|
*/
|
|
12
14
|
export declare class ChartLegend {
|
|
13
|
-
|
|
15
|
+
part: Component<HTMLDivElement>;
|
|
14
16
|
items: LegendItem[];
|
|
15
17
|
toggled: (id: string) => void;
|
|
16
18
|
current: number;
|
|
17
|
-
|
|
19
|
+
/** The legend is a part of `parent` (the chart). */
|
|
20
|
+
constructor(parent: ComponentBase, toggled: (id: string) => void);
|
|
18
21
|
draw(entries: readonly LegendEntry[], toggle: boolean): void;
|
|
19
|
-
addItem(
|
|
22
|
+
addItem(): LegendItem;
|
|
20
23
|
drawStops(): void;
|
|
21
|
-
|
|
24
|
+
press(item: LegendItem): void;
|
|
22
25
|
keyDown(e: KeyboardEvent): void;
|
|
23
26
|
}
|
|
24
27
|
export {};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
1
2
|
import { type Place } from '../../parts/chart/chart-paths';
|
|
2
3
|
import { type ChartScale } from '../../parts/chart/chart-scale';
|
|
3
|
-
import { TextPool } from '../../parts/chart/svg-parts';
|
|
4
4
|
import type { ChartModel, ModelPoint, ModelSeries, ModelSlot } from './chart-model';
|
|
5
5
|
import type { HeatClass, PlotInput, PlotView, Rect } from './plot-view';
|
|
6
|
+
import { TextParts } from './text-parts';
|
|
6
7
|
export type { PlotInput } from './plot-view';
|
|
7
8
|
interface SeriesPart {
|
|
8
|
-
|
|
9
|
-
area: SVGPathElement
|
|
10
|
-
bars: SVGPathElement
|
|
11
|
-
rise: SVGPathElement
|
|
12
|
-
fall: SVGPathElement
|
|
13
|
-
cells: SVGGElement
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
groupPart: Component<SVGGElement>;
|
|
10
|
+
area: Component<SVGPathElement>;
|
|
11
|
+
bars: Component<SVGPathElement>;
|
|
12
|
+
rise: Component<SVGPathElement>;
|
|
13
|
+
fall: Component<SVGPathElement>;
|
|
14
|
+
cells: Component<SVGGElement>;
|
|
15
|
+
cellPaths: Component<SVGPathElement>[];
|
|
16
|
+
linePart: Component<SVGPathElement>;
|
|
17
|
+
dotsPart: Component<SVGPathElement>;
|
|
16
18
|
}
|
|
17
19
|
interface Tick {
|
|
18
20
|
value: number;
|
|
@@ -26,31 +28,37 @@ interface Was {
|
|
|
26
28
|
}
|
|
27
29
|
/** The SVG of a chart: grid, marks, axes and what shows the value under the pointer. It reads a model and writes paths. */
|
|
28
30
|
export declare class ChartPlot implements PlotView {
|
|
29
|
-
|
|
30
|
-
clip: SVGRectElement
|
|
31
|
-
grid: SVGPathElement
|
|
32
|
-
|
|
33
|
-
axis: SVGPathElement
|
|
34
|
-
xLabels:
|
|
35
|
-
yLabels:
|
|
36
|
-
titles:
|
|
37
|
-
dataLabels:
|
|
38
|
-
cross: SVGPathElement
|
|
39
|
-
activeBar: SVGPathElement
|
|
40
|
-
activeDots: SVGGElement
|
|
31
|
+
svgPart: Component<SVGSVGElement>;
|
|
32
|
+
clip: Component<SVGRectElement>;
|
|
33
|
+
grid: Component<SVGPathElement>;
|
|
34
|
+
marksPart: Component<SVGGElement>;
|
|
35
|
+
axis: Component<SVGPathElement>;
|
|
36
|
+
xLabels: TextParts;
|
|
37
|
+
yLabels: TextParts;
|
|
38
|
+
titles: TextParts;
|
|
39
|
+
dataLabels: TextParts;
|
|
40
|
+
cross: Component<SVGPathElement>;
|
|
41
|
+
activeBar: Component<SVGPathElement>;
|
|
42
|
+
activeDots: Component<SVGGElement>;
|
|
43
|
+
activeDotPaths: Component<SVGPathElement>[];
|
|
41
44
|
parts: SeriesPart[];
|
|
42
45
|
input: PlotInput | null;
|
|
46
|
+
/** The size of the last drawing. */
|
|
47
|
+
size: {
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
};
|
|
43
51
|
box: Rect;
|
|
44
52
|
bars: Map<ModelPoint, Rect>;
|
|
45
53
|
order: ModelSlot[];
|
|
46
54
|
xFormat: Intl.DateTimeFormatOptions | undefined;
|
|
47
55
|
/** The colors of a heat map, low to high, for its legend. */
|
|
48
56
|
heatClasses: HeatClass[];
|
|
49
|
-
refBands: SVGPathElement
|
|
50
|
-
refLines: SVGPathElement
|
|
51
|
-
refLabels:
|
|
52
|
-
selectedMarks: SVGPathElement
|
|
53
|
-
brush: SVGPathElement
|
|
57
|
+
refBands: Component<SVGPathElement>;
|
|
58
|
+
refLines: Component<SVGPathElement>;
|
|
59
|
+
refLabels: TextParts;
|
|
60
|
+
selectedMarks: Component<SVGPathElement>;
|
|
61
|
+
brush: Component<SVGPathElement>;
|
|
54
62
|
/** The model of the last drawing: where a change moves its values from. The chart may hand over the next one early, for its texts. */
|
|
55
63
|
drawn: ChartModel | null;
|
|
56
64
|
scales: {
|
|
@@ -60,10 +68,11 @@ export declare class ChartPlot implements PlotView {
|
|
|
60
68
|
value: ChartScale;
|
|
61
69
|
measure: (text: string) => number;
|
|
62
70
|
} | null;
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
/** Stops the move of the values under way, if one is. */
|
|
72
|
+
stopMove: (() => void) | null;
|
|
73
|
+
constructor(host: ComponentBase);
|
|
65
74
|
/** The group whose style gives the font of the axis labels. */
|
|
66
|
-
get
|
|
75
|
+
get labelPart(): Component<SVGGElement>;
|
|
67
76
|
/** The position of a slot, as it reads. */
|
|
68
77
|
xText(key: unknown, tick?: boolean): string;
|
|
69
78
|
/** A value of a series, as it reads. */
|
|
@@ -129,11 +138,11 @@ export declare class ChartPlot implements PlotView {
|
|
|
129
138
|
yLabelsOn: boolean;
|
|
130
139
|
}): void;
|
|
131
140
|
drawTitles(xTitle: string, yTitle: string): void;
|
|
132
|
-
|
|
141
|
+
seriesPart(s: ModelSeries): SeriesPart;
|
|
133
142
|
drawSeries(position: ChartScale, value: ChartScale, measure: (text: string) => number): void;
|
|
134
143
|
drawSeriesMarks(s: ModelSeries, part: SeriesPart, value: ChartScale): void;
|
|
135
144
|
/** One path for each color of a heat map. */
|
|
136
|
-
drawCells(
|
|
145
|
+
drawCells(part: SeriesPart, cells: Map<number, string>): void;
|
|
137
146
|
/** A candle: its body from the first price to the last, and its wick from the lowest to the highest. An OHLC bar: ticks for the first and the last. */
|
|
138
147
|
candlePath(p: ModelPoint, rect: Rect, value: ChartScale, ticks: boolean): string;
|
|
139
148
|
pathOf(s: ModelSeries, places: readonly Place[], sideways: boolean): string;
|
|
@@ -57,7 +57,6 @@ export declare class ChartTable {
|
|
|
57
57
|
}[];
|
|
58
58
|
};
|
|
59
59
|
constructor(owner: ComponentBase);
|
|
60
|
-
get element(): HTMLDivElement;
|
|
61
60
|
draw(model: ChartModel, plot: PlotView, name: string, position: string): void;
|
|
62
61
|
/** The texts of the first rows, as the table shows them. */
|
|
63
62
|
texts(count?: number): string[][];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Component, type ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { ChartPoint } from './chart-point';
|
|
2
3
|
import type { ChartTooltipContext } from './chart-tooltip-context';
|
|
3
4
|
/** A row of the tooltip. */
|
|
@@ -11,12 +12,30 @@ interface TooltipRow {
|
|
|
11
12
|
* reaches them too. Names are written as text, since they come from data.
|
|
12
13
|
*/
|
|
13
14
|
export declare class ChartTooltip {
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
part: Component<HTMLDivElement>;
|
|
16
|
+
/** Where the last `place` asked for it, until its size is read. */
|
|
17
|
+
at: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
gap: number;
|
|
23
|
+
} | null;
|
|
24
|
+
/** The parts of the tooltip, made the first time they are needed and written in place after. */
|
|
25
|
+
private title;
|
|
26
|
+
private lines;
|
|
27
|
+
/** Where the app's format shows, and the component it gave last. */
|
|
28
|
+
private custom;
|
|
29
|
+
private given;
|
|
30
|
+
/** The tooltip is a part of `parent` (the plot). */
|
|
31
|
+
constructor(parent: ComponentBase);
|
|
16
32
|
hide(): void;
|
|
17
|
-
show(context: ChartTooltipContext, rows: readonly TooltipRow[], format: ((context: ChartTooltipContext) => string |
|
|
33
|
+
show(context: ChartTooltipContext, rows: readonly TooltipRow[], format: ((context: ChartTooltipContext) => string | ComponentBase) | undefined): void;
|
|
34
|
+
/** The title and one row per point, written into the parts the tooltip has; rows are added or taken away at the end. */
|
|
18
35
|
write(title: string, rows: readonly TooltipRow[]): void;
|
|
19
|
-
/** Beside the position, on the side with room, and always inside the plot. */
|
|
36
|
+
/** Beside the position, on the side with room, and always inside the plot: placed with the next frame, once its size is read. */
|
|
20
37
|
place(x: number, y: number, width: number, height: number, gap: number): void;
|
|
38
|
+
private readonly readSize;
|
|
39
|
+
private readonly writePlace;
|
|
21
40
|
}
|
|
22
41
|
export {};
|
|
@@ -1,33 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { ModelPoint, ModelSeries, ModelSlot } from './chart-model';
|
|
3
3
|
import type { PlotInput, PlotView, Rect } from './plot-view';
|
|
4
|
+
import { TextParts } from './text-parts';
|
|
4
5
|
/**
|
|
5
6
|
* One whole and its parts: the slices of a pie or a donut, or the stages of a funnel. Each part keeps the color of its
|
|
6
7
|
* row when others are hidden. A share is written on a part only where it fits; the legend names them.
|
|
7
8
|
*/
|
|
8
9
|
export declare class PartsPlot implements PlotView {
|
|
9
10
|
svg: SVGSVGElement;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
svgPart: Component<SVGSVGElement>;
|
|
12
|
+
marksPart: Component<SVGGElement>;
|
|
13
|
+
names: TextParts;
|
|
14
|
+
labels: TextParts;
|
|
15
|
+
center: TextParts;
|
|
16
|
+
active: Component<SVGPathElement>;
|
|
15
17
|
input: PlotInput | null;
|
|
18
|
+
/** The size of the last drawing. */
|
|
19
|
+
size: {
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
16
23
|
box: Rect;
|
|
17
24
|
order: ModelSlot[];
|
|
18
25
|
/** Each part's angles, or its rectangle for a funnel. */
|
|
19
26
|
angles: Map<ModelPoint, [number, number]>;
|
|
20
27
|
rects: Map<ModelPoint, Rect>;
|
|
28
|
+
/** The parts drawn, by their row's key, and those the drawing under way has taken. */
|
|
29
|
+
slices: Map<string, Component<SVGPathElement, any>>;
|
|
30
|
+
used: Map<string, Component<SVGPathElement, any>>;
|
|
21
31
|
cx: number;
|
|
22
32
|
cy: number;
|
|
23
33
|
radius: number;
|
|
24
34
|
hole: number;
|
|
25
|
-
constructor(host:
|
|
35
|
+
constructor(host: ComponentBase);
|
|
26
36
|
get whole(): ModelSeries | undefined;
|
|
27
37
|
xText(key: unknown): string;
|
|
28
38
|
valueText(point: ModelPoint): string;
|
|
29
39
|
markOfPoint(point: ModelPoint): string;
|
|
30
40
|
draw(input: PlotInput): void;
|
|
41
|
+
/** The part of a row, by its key: the one it had, else a new one. A key given twice has one part each time. */
|
|
42
|
+
sliceOf(p: ModelPoint): Component<SVGPathElement>;
|
|
31
43
|
drawPie(series: ModelSeries): void;
|
|
32
44
|
drawFunnel(series: ModelSeries): void;
|
|
33
45
|
find(x: number, y: number): {
|
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
2
|
import type { ModelPoint, ModelSlot } from './chart-model';
|
|
3
3
|
import type { PlotInput, PlotView, Rect } from './plot-view';
|
|
4
|
+
import { TextParts } from './text-parts';
|
|
4
5
|
/** Values around a center: a spoke for each category, rings for the values, and a shape for each series. */
|
|
5
6
|
export declare class RadarPlot implements PlotView {
|
|
6
7
|
svg: SVGSVGElement;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
svgPart: Component<SVGSVGElement>;
|
|
9
|
+
grid: Component<SVGPathElement>;
|
|
10
|
+
axis: Component<SVGPathElement>;
|
|
11
|
+
marksPart: Component<SVGGElement>;
|
|
12
|
+
/** Each series' shape, by its place among the series. */
|
|
13
|
+
shapes: {
|
|
14
|
+
group: Component<SVGGElement>;
|
|
15
|
+
area: Component<SVGPathElement>;
|
|
16
|
+
line: Component<SVGPathElement>;
|
|
17
|
+
dots: Component<SVGPathElement>;
|
|
18
|
+
}[];
|
|
19
|
+
ticks: TextParts;
|
|
20
|
+
names: TextParts;
|
|
21
|
+
cross: Component<SVGPathElement>;
|
|
22
|
+
activeDots: Component<SVGPathElement>;
|
|
14
23
|
input: PlotInput | null;
|
|
24
|
+
/** The size of the last drawing. */
|
|
25
|
+
size: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
};
|
|
15
29
|
box: Rect;
|
|
16
30
|
order: ModelSlot[];
|
|
17
31
|
cx: number;
|
|
@@ -19,7 +33,7 @@ export declare class RadarPlot implements PlotView {
|
|
|
19
33
|
radius: number;
|
|
20
34
|
min: number;
|
|
21
35
|
max: number;
|
|
22
|
-
constructor(host:
|
|
36
|
+
constructor(host: ComponentBase);
|
|
23
37
|
xText(key: unknown): string;
|
|
24
38
|
valueText(point: ModelPoint): string;
|
|
25
39
|
markOfPoint(point: ModelPoint): string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Chart } from './Chart';
|
|
2
2
|
import type { ChartExportOptions } from './chart-export-options';
|
|
3
|
-
/** The chart as an SVG
|
|
3
|
+
/** The chart as an SVG document, with its title and its legend, ready to stand alone. It is written as text: nothing is put on the page. */
|
|
4
4
|
export declare function chartImage(chart: Chart, options: ChartExportOptions): {
|
|
5
|
-
svg:
|
|
5
|
+
svg: string;
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
8
8
|
};
|
|
9
9
|
/** The chart as an SVG document. */
|
|
10
10
|
export declare function chartSvg(chart: Chart, options: ChartExportOptions): string;
|
|
11
|
-
/** The chart drawn on a canvas: the browser reads the SVG as an image first, which is not immediate. */
|
|
11
|
+
/** The chart drawn on a canvas, off the page: the browser reads the SVG as an image first, which is not immediate. */
|
|
12
12
|
export declare function chartCanvas(chart: Chart, options: ChartExportOptions): Promise<HTMLCanvasElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
2
|
/** Sizes a chart takes from its design language, in pixels, and the font of its axes. */
|
|
3
3
|
export interface ChartLook {
|
|
4
4
|
barWidth: number;
|
|
@@ -16,10 +16,12 @@ export interface ChartLook {
|
|
|
16
16
|
font: string;
|
|
17
17
|
line: number;
|
|
18
18
|
}
|
|
19
|
-
/** What the chart's probes measure (see `
|
|
19
|
+
/** What the chart's probes measure (see `probeLengths`). */
|
|
20
20
|
export declare const LOOK_TOKENS: readonly string[];
|
|
21
21
|
/**
|
|
22
|
-
* The look as it stands on `
|
|
23
|
-
*
|
|
22
|
+
* The look as it stands on `chart`, read in a read of the measuring layer: `labels` is the part whose style gives the
|
|
23
|
+
* font of the axis labels. Tokens may be in `rem`: the chart's probes (`probeLengths(chart, LOOK_TOKENS)`) turn each
|
|
24
|
+
* into pixels, which the geometry needs. The numbers here only stand where nothing is laid out, as in a test without a
|
|
25
|
+
* browser.
|
|
24
26
|
*/
|
|
25
|
-
export declare function readLook(
|
|
27
|
+
export declare function readLook(chart: ComponentBase, labels: ComponentBase): ChartLook;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
1
2
|
import type { ChartTooltipContext } from './chart-tooltip-context';
|
|
2
3
|
/** The tooltip. */
|
|
3
4
|
export interface ChartTooltipOptions<T = any> {
|
|
@@ -5,6 +6,6 @@ export interface ChartTooltipOptions<T = any> {
|
|
|
5
6
|
visible?: boolean;
|
|
6
7
|
/** Lists every series at that position, not only the one under the pointer. Default: `true`; a scatter chart: `false`. */
|
|
7
8
|
shared?: boolean;
|
|
8
|
-
/** Content of your own, as text or as
|
|
9
|
-
format?: (context: ChartTooltipContext<T>) => string |
|
|
9
|
+
/** Content of your own, as text or as a component. */
|
|
10
|
+
format?: (context: ChartTooltipContext<T>) => string | ComponentBase;
|
|
10
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChartLook } from './chart-look';
|
|
2
|
+
/** What a chart reads before its plot draws: the room the plot has, its look, the color behind it and its direction. */
|
|
3
|
+
export interface PlotRoom {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
look: ChartLook;
|
|
7
|
+
surface: string;
|
|
8
|
+
rtl: boolean;
|
|
9
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import type { DrawnTexts } from '../../parts/chart/chart-text';
|
|
1
3
|
import type { ChartAxis } from './chart-axis';
|
|
2
4
|
import type { ChartLook } from './chart-look';
|
|
3
5
|
import type { ChartModel, ModelPoint, ModelSlot } from './chart-model';
|
|
@@ -12,6 +14,8 @@ export interface PlotInput {
|
|
|
12
14
|
width: number;
|
|
13
15
|
height: number;
|
|
14
16
|
look: ChartLook;
|
|
17
|
+
/** The widths of the plot's texts in the chart's font: estimates until measured, then drawn again. */
|
|
18
|
+
texts: DrawnTexts;
|
|
15
19
|
locale: string;
|
|
16
20
|
/** The part of the positions in view, once zoomed or following live data; null for all of them. */
|
|
17
21
|
window?: {
|
|
@@ -42,8 +46,14 @@ export interface HeatClass {
|
|
|
42
46
|
* The chart talks to each the same way: it draws, finds what is under a place, and shows a position and a value.
|
|
43
47
|
*/
|
|
44
48
|
export interface PlotView {
|
|
45
|
-
|
|
46
|
-
marks
|
|
49
|
+
svgPart: Component<SVGSVGElement>;
|
|
50
|
+
/** The group the marks are drawn in. */
|
|
51
|
+
marksPart: Component<SVGGElement>;
|
|
52
|
+
/** The size of the last drawing. */
|
|
53
|
+
size: {
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
};
|
|
47
57
|
input: PlotInput | null;
|
|
48
58
|
box: Rect;
|
|
49
59
|
/** The positions in the order the keyboard walks them. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
/** Texts of a group, kept between draws: `add` hands out the next one, and `done` takes away what was not used. */
|
|
3
|
+
export declare class TextParts {
|
|
4
|
+
part: Component<SVGGElement>;
|
|
5
|
+
texts: Component<SVGTextElement>[];
|
|
6
|
+
used: number;
|
|
7
|
+
constructor(part: Component<SVGGElement>);
|
|
8
|
+
add(value: string, x: number, y: number, anchor: 'start' | 'middle' | 'end'): Component<SVGTextElement>;
|
|
9
|
+
done(): void;
|
|
10
|
+
}
|
|
11
|
+
/** The text a part of a `TextParts` says; `null` for any other part. */
|
|
12
|
+
export declare function textOf(part: ComponentBase): string | null;
|