@acoustic-content-sdk/redux-feature-undo 中文文档教程

发布于 4年前 浏览 11 更新于 3年前

npm

实现 redux 功能来管理撤消和重做。

API Documentation

Home > @acoustic-content-sdk/redux-feature-undo

redux-feature-undo package

Implementation of a redux feature to manage undo and redo..

Interfaces

InterfaceDescription
UndoFeatureState

Variables

VariableDescription
ACTION_REDO_AUTH_CONTENT_INTERNAL
ACTION_REDO_AUTH_CONTENT
ACTION_UNDO_AUTH_CONTENT_INTERNAL
ACTION_UNDO_AUTH_CONTENT
ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL
MODULEModule name
redoAuthoringContentAction
redoAuthoringContentInternalActionThe parameter is the current version of the content item
selectNextUndoItemSelects the next item from the redo history if it exists
selectPreviousUndoItemSelects the last item from the undo history if it exists
selectRedoEnabledTests if we have redo actions
selectUndoEnabledTests if we have undo actions
selectUndoFeatureSelect the URL config feature
selectUndoScope
undoAuthoringContentAction
undoAuthoringContentInternalActionThe parameter is the current version of the content item
undoFeatureExposes the feature module selector
undoSetAuthoringContentInternalActionThe parameter is the current version of the content item
VERSIONVersion and build number of the package

Type Aliases

Type AliasDescription
RedoAuthoringContentAction
RedoAuthoringContentInternalAction
UndoAuthoringContentAction
UndoAuthoringContentInternalAction
UndoSetAuthoringContentInternalAction

<一个名字="_da3488008140f76ae1c003906267a787617e36079d9ceb15339b16473b6ed5d2">

@acoustic-content-sdk/redux-feature-undo > UndoFeatureState

UndoFeatureState interface

Signature:

export interface UndoFeatureState 

Properties

PropertyTypeDescription
undoUndoState

Home > ; @acoustic-content-sdk/redux-feature-undo > ACTION_REDO_AUTH_CONTENT_INTERNAL

ACTION_REDO_AUTH_CONTENT_INTERNAL variable

Signature:

ACTION_REDO_AUTH_CONTENT_INTERNAL = "ACTION_REDO_AUTH_CONTENT_INTERNAL"

Home > ; @acoustic-content-sdk/redux-feature-undo > ACTION_REDO_AUTH_CONTENT

ACTION_REDO_AUTH_CONTENT variable

Signature:

ACTION_REDO_AUTH_CONTENT = "ACTION_REDO_AUTH_CONTENT"

Home > ; @acoustic-content-sdk/redux-feature-undo > ACTION_UNDO_AUTH_CONTENT_INTERNAL

ACTION_UNDO_AUTH_CONTENT_INTERNAL variable

Signature:

ACTION_UNDO_AUTH_CONTENT_INTERNAL = "ACTION_UNDO_AUTH_CONTENT_INTERNAL"

Home > ; @acoustic-content-sdk/redux-feature-undo > ACTION_UNDO_AUTH_CONTENT

ACTION_UNDO_AUTH_CONTENT variable

Signature:

ACTION_UNDO_AUTH_CONTENT = "ACTION_UNDO_AUTH_CONTENT"

Home > ; @acoustic-content-sdk/redux-feature-undo > ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL

ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL variable

Signature:

ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL = "ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL"

Home > ; @acoustic-content-sdk/redux-feature-undo > MODULE

MODULE variable

Module name

Signature:

MODULE = "@acoustic-content-sdk/redux-feature-undo"

Home > @acoustic-content-sdk/redux-feature-undo > redoAuthoringContentAction

redoAuthoringContentAction variable

Signature:

redoAuthoringContentAction: Generator<RedoAuthoringContentAction>

Home > ; @acoustic-content-sdk/redux-feature-undo > redoAuthoringContentInternalAction

redoAuthoringContentInternalAction variable

The parameter is the current version of the content item

Signature:

redoAuthoringContentInternalAction: UnaryFunction<ScopedUndoItems, RedoAuthoringContentInternalAction>

主页 > @acoustic-content-sdk/redux-feature-undo > selectNextUndoItem

selectNextUndoItem variable

Selects the next item from the redo history if it exists

Signature:

selectNextUndoItem: UnaryFunction<ScopedUndoState, UndoItems>

主页 > @acoustic-content-sdk/redux-feature-undo > selectPreviousUndoItem

selectPreviousUndoItem variable

Selects the last item from the undo history if it exists

Signature:

selectPreviousUndoItem: UnaryFunction<ScopedUndoState, UndoItems>

主页 > @acoustic-content-sdk/redux-feature-undo > selectRedoEnabled

selectRedoEnabled variable

Tests if we have redo actions

Signature:

selectRedoEnabled: UnaryFunction<ScopedUndoState, boolean>

首页 > @acoustic-content-sdk/redux-feature-undo > selectUndoEnabled

selectUndoEnabled variable

Tests if we have undo actions

Signature:

selectUndoEnabled: UnaryFunction<ScopedUndoState, boolean>

首页 > @acoustic-content-sdk/redux-feature-undo > selectUndoFeature

selectUndoFeature variable

Select the URL config feature

Signature:

selectUndoFeature: import("rxjs").UnaryFunction<Record<string, any>, Record<string, import("./undo.state").ScopedUndoState>>

Home > @acoustic-content-sdk/redux-feature-undo > selectUndoScope

selectUndoScope variable

Signature:

selectUndoScope: UnaryFunction<string, UnaryFunction<UndoState, ScopedUndoState>>

Home > ; @acoustic-content-sdk/redux-feature-undo > undoAuthoringContentAction

undoAuthoringContentAction variable

Signature:

undoAuthoringContentAction: Generator<UndoAuthoringContentAction>

Home > ; @acoustic-content-sdk/redux-feature-undo > undoAuthoringContentInternalAction

undoAuthoringContentInternalAction variable

The parameter is the current version of the content item

Signature:

undoAuthoringContentInternalAction: UnaryFunction<ScopedUndoItems, UndoAuthoringContentInternalAction>

主页 > @acoustic-content-sdk/redux-feature-undo > undoFeature Exposes

undoFeature variable

the feature module selector

Signature:

undoFeature: import("@acoustic-content-sdk/redux-store").ReduxFeatureModule<Record<string, import("./undo.state").ScopedUndoState>, UndoFeatureState, import("redux").AnyAction, import("redux").AnyAction, any>

Home > @acoustic-content-sdk/redux-feature-undo > undoSetAuthoringContentInternalAction

undoSetAuthoringContentInternalAction variable

The parameter is the current version of the content item

Signature:

undoSetAuthoringContentInternalAction: UnaryFunction<ScopedUndoItems, UndoSetAuthoringContentInternalAction>

主页 > @acoustic-content-sdk/redux-feature-undo > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

首页 > @acoustic-content-sdk/redux-feature-undo > 撤消特征状态 > 撤消

UndoFeatureState.undo property

签名:

[UNDO_FEATURE]: UndoState;

npm

Implementation of a redux feature to manage undo and redo.

API Documentation

Home > @acoustic-content-sdk/redux-feature-undo

redux-feature-undo package

Implementation of a redux feature to manage undo and redo..

Interfaces

InterfaceDescription
UndoFeatureState

Variables

VariableDescription
ACTION_REDO_AUTH_CONTENT_INTERNAL
ACTION_REDO_AUTH_CONTENT
ACTION_UNDO_AUTH_CONTENT_INTERNAL
ACTION_UNDO_AUTH_CONTENT
ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL
MODULEModule name
redoAuthoringContentAction
redoAuthoringContentInternalActionThe parameter is the current version of the content item
selectNextUndoItemSelects the next item from the redo history if it exists
selectPreviousUndoItemSelects the last item from the undo history if it exists
selectRedoEnabledTests if we have redo actions
selectUndoEnabledTests if we have undo actions
selectUndoFeatureSelect the URL config feature
selectUndoScope
undoAuthoringContentAction
undoAuthoringContentInternalActionThe parameter is the current version of the content item
undoFeatureExposes the feature module selector
undoSetAuthoringContentInternalActionThe parameter is the current version of the content item
VERSIONVersion and build number of the package

Type Aliases

Type AliasDescription
RedoAuthoringContentAction
RedoAuthoringContentInternalAction
UndoAuthoringContentAction
UndoAuthoringContentInternalAction
UndoSetAuthoringContentInternalAction

Home > @acoustic-content-sdk/redux-feature-undo > UndoFeatureState

UndoFeatureState interface

Signature:

export interface UndoFeatureState 

Properties

PropertyTypeDescription
undoUndoState

Home > @acoustic-content-sdk/redux-feature-undo > ACTION_REDO_AUTH_CONTENT_INTERNAL

ACTION_REDO_AUTH_CONTENT_INTERNAL variable

Signature:

ACTION_REDO_AUTH_CONTENT_INTERNAL = "ACTION_REDO_AUTH_CONTENT_INTERNAL"

Home > @acoustic-content-sdk/redux-feature-undo > ACTION_REDO_AUTH_CONTENT

ACTION_REDO_AUTH_CONTENT variable

Signature:

ACTION_REDO_AUTH_CONTENT = "ACTION_REDO_AUTH_CONTENT"

Home > @acoustic-content-sdk/redux-feature-undo > ACTION_UNDO_AUTH_CONTENT_INTERNAL

ACTION_UNDO_AUTH_CONTENT_INTERNAL variable

Signature:

ACTION_UNDO_AUTH_CONTENT_INTERNAL = "ACTION_UNDO_AUTH_CONTENT_INTERNAL"

Home > @acoustic-content-sdk/redux-feature-undo > ACTION_UNDO_AUTH_CONTENT

ACTION_UNDO_AUTH_CONTENT variable

Signature:

ACTION_UNDO_AUTH_CONTENT = "ACTION_UNDO_AUTH_CONTENT"

Home > @acoustic-content-sdk/redux-feature-undo > ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL

ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL variable

Signature:

ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL = "ACTION_UNDO_SET_AUTH_CONTENT_INTERNAL"

Home > @acoustic-content-sdk/redux-feature-undo > MODULE

MODULE variable

Module name

Signature:

MODULE = "@acoustic-content-sdk/redux-feature-undo"

Home > @acoustic-content-sdk/redux-feature-undo > redoAuthoringContentAction

redoAuthoringContentAction variable

Signature:

redoAuthoringContentAction: Generator<RedoAuthoringContentAction>

Home > @acoustic-content-sdk/redux-feature-undo > redoAuthoringContentInternalAction

redoAuthoringContentInternalAction variable

The parameter is the current version of the content item

Signature:

redoAuthoringContentInternalAction: UnaryFunction<ScopedUndoItems, RedoAuthoringContentInternalAction>

Home > @acoustic-content-sdk/redux-feature-undo > selectNextUndoItem

selectNextUndoItem variable

Selects the next item from the redo history if it exists

Signature:

selectNextUndoItem: UnaryFunction<ScopedUndoState, UndoItems>

Home > @acoustic-content-sdk/redux-feature-undo > selectPreviousUndoItem

selectPreviousUndoItem variable

Selects the last item from the undo history if it exists

Signature:

selectPreviousUndoItem: UnaryFunction<ScopedUndoState, UndoItems>

Home > @acoustic-content-sdk/redux-feature-undo > selectRedoEnabled

selectRedoEnabled variable

Tests if we have redo actions

Signature:

selectRedoEnabled: UnaryFunction<ScopedUndoState, boolean>

Home > @acoustic-content-sdk/redux-feature-undo > selectUndoEnabled

selectUndoEnabled variable

Tests if we have undo actions

Signature:

selectUndoEnabled: UnaryFunction<ScopedUndoState, boolean>

Home > @acoustic-content-sdk/redux-feature-undo > selectUndoFeature

selectUndoFeature variable

Select the URL config feature

Signature:

selectUndoFeature: import("rxjs").UnaryFunction<Record<string, any>, Record<string, import("./undo.state").ScopedUndoState>>

Home > @acoustic-content-sdk/redux-feature-undo > selectUndoScope

selectUndoScope variable

Signature:

selectUndoScope: UnaryFunction<string, UnaryFunction<UndoState, ScopedUndoState>>

Home > @acoustic-content-sdk/redux-feature-undo > undoAuthoringContentAction

undoAuthoringContentAction variable

Signature:

undoAuthoringContentAction: Generator<UndoAuthoringContentAction>

Home > @acoustic-content-sdk/redux-feature-undo > undoAuthoringContentInternalAction

undoAuthoringContentInternalAction variable

The parameter is the current version of the content item

Signature:

undoAuthoringContentInternalAction: UnaryFunction<ScopedUndoItems, UndoAuthoringContentInternalAction>

Home > @acoustic-content-sdk/redux-feature-undo > undoFeature

undoFeature variable

Exposes the feature module selector

Signature:

undoFeature: import("@acoustic-content-sdk/redux-store").ReduxFeatureModule<Record<string, import("./undo.state").ScopedUndoState>, UndoFeatureState, import("redux").AnyAction, import("redux").AnyAction, any>

Home > @acoustic-content-sdk/redux-feature-undo > undoSetAuthoringContentInternalAction

undoSetAuthoringContentInternalAction variable

The parameter is the current version of the content item

Signature:

undoSetAuthoringContentInternalAction: UnaryFunction<ScopedUndoItems, UndoSetAuthoringContentInternalAction>

Home > @acoustic-content-sdk/redux-feature-undo > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

Home > @acoustic-content-sdk/redux-feature-undo > UndoFeatureState > undo

UndoFeatureState.undo property

Signature:

[UNDO_FEATURE]: UndoState;
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文