@univerjs-pro/slicer
この API ページの本文は現在英語です。コードのシグネチャと識別子は表示言語によって変わりません。
Shared slicer and timeline models, styles, and canvas controls.
TypeScript
import { UniverSlicerPlugin } from '@univerjs-pro/slicer'univer.registerPlugin(UniverSlicerPlugin)The plugin has no configuration options. In Sheets, use @univerjs-pro/sheets-slicer, which depends on this plugin.
Public exports
ISlicerDefinition,ITimelineDefinition, andISlicerResourcedescribe slicers, timelines, and their saved data.SlicerSourceKind,SlicerTargetKind,SlicerControlKind, andTimelineLevelidentify sources, targets, controls, and timeline levels.SlicerCacheCrossFilterandSlicerCacheSortOrderconfigure filtering and sorting.SlicerThemeService,SlicerCanvasControl, andSlicerShapeprovide shared rendering support.BUILT_IN_SLICER_STYLE_NAMESandBUILT_IN_TIMELINE_STYLE_NAMESlist the built-in styles.ITimelineDateConditionandTimelineDateFilterOperatordescribe fixed date conditions.compileTimelineCondition(condition)returns a predicate overRecordValue, matching only date values. Conditions use numeric date serials;useWholeDay: trueignores fractional time, and between conditions include both bounds. Invalid conditions throw.
compileTimelineRange(range) uses half-open [startDate, endDate) bounds. Its useWholeDay: true rounds the start down and the end up; an equal start and end remains empty. A timeline cache holds either a range selection or a date condition, not both. See date conditions.
See the slicer guide for Sheets setup and usage.
このガイドはいかがですか?