From 65a8a1b20c5a253ff03aef7e4989f520bc440071 Mon Sep 17 00:00:00 2001 From: Jasper Date: Wed, 5 Aug 2026 10:23:13 +0200 Subject: [PATCH] Setting default transitions to 400ms --- .../Cycle/ILightTransitionCycleConfigurator.cs | 4 ++-- .../DimmerOptions.cs | 4 ++-- .../Extensions/SchedulerExtensions.cs | 2 +- .../Nodes/TimelineNode.cs | 2 +- ...tTransitionPipelineConfigurator.Reactive.Cycle.cs | 4 ++-- ...TransitionPipelineConfigurator.Reactive.Toggle.cs | 4 ++-- .../ILightTransitionPipelineConfigurator.Switch.cs | 8 ++++---- ...LightTransitionPipelineConfigurator.SwitchWhen.cs | 12 ++++++------ .../ILightTransitionPipelineConfigurator.When.cs | 8 ++++---- ...ILightTransitionReactiveNodeConfigurator.Cycle.cs | 4 ++-- .../ILightTransitionReactiveNodeConfigurator.On.cs | 4 ++-- ...LightTransitionReactiveNodeConfigurator.Toggle.cs | 4 ++-- .../Switch/ILightTransitionSwitchConfigurator.cs | 4 ++-- .../ILightTransitionSwitchFalseConfigurator.cs | 4 ++-- .../Timeline/ITimelineConfigurator.cs | 4 ++-- .../Timeline/TimelineConfigurator.cs | 2 +- .../Toggle/ILightTransitionToggleConfigurator.cs | 4 ++-- .../Extensions/TimelineValueCollectionExtensions.cs | 6 +++--- 18 files changed, 42 insertions(+), 42 deletions(-) diff --git a/src/CodeCasa.AutomationPipelines.Lights/Cycle/ILightTransitionCycleConfigurator.cs b/src/CodeCasa.AutomationPipelines.Lights/Cycle/ILightTransitionCycleConfigurator.cs index 40565e1..0e168a2 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Cycle/ILightTransitionCycleConfigurator.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Cycle/ILightTransitionCycleConfigurator.cs @@ -112,7 +112,7 @@ public interface ILightTransitionCycleConfigurator where TLight : ILight /// /// The dictionary mapping timeline points to . /// - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// /// The configurator instance for method chaining. ILightTransitionCycleConfigurator AddTimeline(Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -125,7 +125,7 @@ public interface ILightTransitionCycleConfigurator where TLight : ILight /// /// A factory function that creates the timeline mapping based on the pipeline context. /// - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// /// The configurator instance for method chaining. ILightTransitionCycleConfigurator AddTimeline(Func> timelineFactory, TimeSpan? transitionTimeForTimelineState = null); diff --git a/src/CodeCasa.AutomationPipelines.Lights/DimmerOptions.cs b/src/CodeCasa.AutomationPipelines.Lights/DimmerOptions.cs index 708b78c..9aae385 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/DimmerOptions.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/DimmerOptions.cs @@ -18,9 +18,9 @@ public record DimmerOptions public int BrightnessStep { get; set; } = 51; /// - /// Gets or sets the time delay between each brightness step. Defaults to 500 milliseconds. + /// Gets or sets the time delay between each brightness step. Defaults to 400 milliseconds. /// - public TimeSpan TimeBetweenSteps { get; set; } = TimeSpan.FromMilliseconds(500); + public TimeSpan TimeBetweenSteps { get; set; } = TimeSpan.FromMilliseconds(400); /// /// Gets or sets the collection of light IDs that define the order for dimming operations. diff --git a/src/CodeCasa.AutomationPipelines.Lights/Extensions/SchedulerExtensions.cs b/src/CodeCasa.AutomationPipelines.Lights/Extensions/SchedulerExtensions.cs index 77ae2dd..db45f08 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Extensions/SchedulerExtensions.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Extensions/SchedulerExtensions.cs @@ -18,7 +18,7 @@ internal static class SchedulerExtensions DateTime? startOfTransition, DateTime? endOfTransition, Action transitionAction, - int defaultTransitionTimeMs = 500) + int defaultTransitionTimeMs = 400) { if (destinationLightParameters == null) { diff --git a/src/CodeCasa.AutomationPipelines.Lights/Nodes/TimelineNode.cs b/src/CodeCasa.AutomationPipelines.Lights/Nodes/TimelineNode.cs index d4183df..2b36c1c 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Nodes/TimelineNode.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Nodes/TimelineNode.cs @@ -19,7 +19,7 @@ internal class TimelineNode : LightTransitionNode /// The dictionary mapping timeline points to . /// The Rx scheduler used to manage timing. /// - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// public TimelineNode( Dictionary timeline, diff --git a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Reactive.Cycle.cs b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Reactive.Cycle.cs index 525bdc7..a88beb9 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Reactive.Cycle.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Reactive.Cycle.cs @@ -70,7 +70,7 @@ ILightTransitionPipelineConfigurator AddCycle(IObservable triggerO /// The type of values emitted by the trigger observable. /// The observable that triggers cycling to the next state. /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator AddCycle(IObservable triggerObservable, Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -83,7 +83,7 @@ ILightTransitionPipelineConfigurator AddCycle(IObservable triggerO /// The type of values emitted by the trigger observable. /// The observable that triggers cycling to the next state. /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator AddCycle(IObservable triggerObservable, Func> timelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Reactive.Toggle.cs b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Reactive.Toggle.cs index 1dace18..a986f02 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Reactive.Toggle.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Reactive.Toggle.cs @@ -92,7 +92,7 @@ ILightTransitionPipelineConfigurator AddToggle(IObservable trigger /// The type of values emitted by the trigger observable. /// The observable that triggers toggling to the next state. /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator AddToggle(IObservable triggerObservable, Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -105,7 +105,7 @@ ILightTransitionPipelineConfigurator AddToggle(IObservable trigger /// The type of values emitted by the trigger observable. /// The observable that triggers toggling to the next state. /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator AddToggle(IObservable triggerObservable, Func> timelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Switch.cs b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Switch.cs index 43a4a4a..3526f48 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Switch.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.Switch.cs @@ -304,7 +304,7 @@ ILightTransitionPipelineConfigurator Switch(IObservable observable /// The type of the observable to resolve from the service provider. /// The timeline to apply when the observable emits true. /// The timeline to apply when the observable emits false. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator Switch(Dictionary trueTimeline, Dictionary falseTimeline, TimeSpan? transitionTimeForTimelineState = null) @@ -318,7 +318,7 @@ ILightTransitionPipelineConfigurator Switch(DictionaryThe observable that determines which timeline to apply. /// The timeline to apply when the observable emits true. /// The timeline to apply when the observable emits false. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator Switch(IObservable observable, Dictionary trueTimeline, Dictionary falseTimeline, @@ -334,7 +334,7 @@ ILightTransitionPipelineConfigurator Switch(IObservable observable /// The type of the observable to resolve from the service provider. /// A factory function that creates the timeline for true values. /// A factory function that creates the timeline for false values. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator Switch( Func> trueTimelineFactory, @@ -350,7 +350,7 @@ ILightTransitionPipelineConfigurator Switch( /// The observable that determines which timeline to apply. /// A factory function that creates the timeline for true values. /// A factory function that creates the timeline for false values. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator Switch(IObservable observable, Func> trueTimelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.SwitchWhen.cs b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.SwitchWhen.cs index 70bf4fd..8745b2b 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.SwitchWhen.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.SwitchWhen.cs @@ -495,7 +495,7 @@ ILightTransitionPipelineConfigurator TurnOnOffWhen(IObs /// The observable that selects which timeline to apply. /// The timeline to apply when the switch observable emits true. /// The timeline to apply when the switch observable emits false. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator SwitchWhen(IObservable whenObservable, IObservable switchObservable, Dictionary trueTimeline, @@ -509,7 +509,7 @@ ILightTransitionPipelineConfigurator SwitchWhen(IObservable whenOb /// The type of the branch-selecting observable to resolve from the service provider. /// The timeline to apply when the switch observable emits true. /// The timeline to apply when the switch observable emits false. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator SwitchWhen( Dictionary trueTimeline, Dictionary falseTimeline, @@ -525,7 +525,7 @@ ILightTransitionPipelineConfigurator SwitchWhenThe observable that selects which timeline to apply. /// The timeline to apply when the switch observable emits true. /// The timeline to apply when the switch observable emits false. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator SwitchWhen(IObservable switchObservable, Dictionary trueTimeline, Dictionary falseTimeline, @@ -541,7 +541,7 @@ ILightTransitionPipelineConfigurator SwitchWhen(IObserv /// The observable that selects which timeline to apply. /// A factory function that creates the timeline for true values. /// A factory function that creates the timeline for false values. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator SwitchWhen(IObservable whenObservable, IObservable switchObservable, @@ -557,7 +557,7 @@ ILightTransitionPipelineConfigurator SwitchWhen(IObservable whenOb /// The type of the branch-selecting observable to resolve from the service provider. /// A factory function that creates the timeline for true values. /// A factory function that creates the timeline for false values. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator SwitchWhen( Func> trueTimelineFactory, @@ -574,7 +574,7 @@ ILightTransitionPipelineConfigurator SwitchWhenThe observable that selects which timeline to apply. /// A factory function that creates the timeline for true values. /// A factory function that creates the timeline for false values. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator SwitchWhen(IObservable switchObservable, Func> trueTimelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.When.cs b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.When.cs index d6ea728..334c5f1 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.When.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Pipeline/ILightTransitionPipelineConfigurator.When.cs @@ -257,7 +257,7 @@ ILightTransitionPipelineConfigurator AddPipelineWhen(IObservable o /// /// The type of the observable to resolve from the service provider. /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator When(Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null) @@ -270,7 +270,7 @@ ILightTransitionPipelineConfigurator When(Dictionary /// The observable that determines when to apply the timeline. /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator When(IObservable observable, Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -283,7 +283,7 @@ ILightTransitionPipelineConfigurator When(IObservable observable, /// /// The type of the observable to resolve from the service provider. /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator When( Func> timelineFactory, @@ -297,7 +297,7 @@ ILightTransitionPipelineConfigurator When( /// /// The observable that determines when to apply the timeline. /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionPipelineConfigurator When(IObservable observable, Func> timelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.Cycle.cs b/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.Cycle.cs index df6d4cf..e069603 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.Cycle.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.Cycle.cs @@ -75,7 +75,7 @@ ILightTransitionReactiveNodeConfigurator AddCycle(IObservable trig /// The type of values emitted by the trigger observable. /// The observable that triggers cycling to the next state. /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionReactiveNodeConfigurator AddCycle(IObservable triggerObservable, Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -88,7 +88,7 @@ ILightTransitionReactiveNodeConfigurator AddCycle(IObservable trig /// The type of values emitted by the trigger observable. /// The observable that triggers cycling to the next state. /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionReactiveNodeConfigurator AddCycle(IObservable triggerObservable, Func> timelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.On.cs b/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.On.cs index 6d56630..ec4ec5c 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.On.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.On.cs @@ -132,7 +132,7 @@ ILightTransitionReactiveNodeConfigurator On(IObservable triggerObs /// The type of values emitted by the trigger observable. /// The observable that triggers the timeline node activation. /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionReactiveNodeConfigurator On(IObservable triggerObservable, Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -144,7 +144,7 @@ ILightTransitionReactiveNodeConfigurator On(IObservable triggerObs /// The type of values emitted by the trigger observable. /// The observable that triggers the timeline node activation. /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionReactiveNodeConfigurator On(IObservable triggerObservable, Func> timelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.Toggle.cs b/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.Toggle.cs index 4f2efd2..82f293e 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.Toggle.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/ReactiveNode/ILightTransitionReactiveNodeConfigurator.Toggle.cs @@ -98,7 +98,7 @@ ILightTransitionReactiveNodeConfigurator AddToggle(IObservable tri /// The type of values emitted by the trigger observable. /// The observable that triggers toggling to the next state. /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionReactiveNodeConfigurator AddToggle(IObservable triggerObservable, Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -110,7 +110,7 @@ ILightTransitionReactiveNodeConfigurator AddToggle(IObservable tri /// The type of values emitted by the trigger observable. /// The observable that triggers toggling to the next state. /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// The configurator instance for method chaining. ILightTransitionReactiveNodeConfigurator AddToggle(IObservable triggerObservable, Func> timelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/Switch/ILightTransitionSwitchConfigurator.cs b/src/CodeCasa.AutomationPipelines.Lights/Switch/ILightTransitionSwitchConfigurator.cs index 07eef17..8127101 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Switch/ILightTransitionSwitchConfigurator.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Switch/ILightTransitionSwitchConfigurator.cs @@ -60,7 +60,7 @@ public interface ILightTransitionSwitchConfigurator where TLight : ILigh /// The timeline drives the output automatically as time progresses. /// /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// A configurator for specifying the false branch. ILightTransitionSwitchFalseConfigurator WhenTrue(Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -70,7 +70,7 @@ ILightTransitionSwitchFalseConfigurator WhenTrue(Dictionary /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// A configurator for specifying the false branch. ILightTransitionSwitchFalseConfigurator WhenTrue( Func> timelineFactory, diff --git a/src/CodeCasa.AutomationPipelines.Lights/Switch/ILightTransitionSwitchFalseConfigurator.cs b/src/CodeCasa.AutomationPipelines.Lights/Switch/ILightTransitionSwitchFalseConfigurator.cs index 14af24a..d1e0ff3 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Switch/ILightTransitionSwitchFalseConfigurator.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Switch/ILightTransitionSwitchFalseConfigurator.cs @@ -65,7 +65,7 @@ public interface ILightTransitionSwitchFalseConfigurator where TLight : /// The timeline drives the output automatically as time progresses. /// /// The dictionary mapping timeline points to . - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. void WhenFalse(Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -74,7 +74,7 @@ void WhenFalse(Dictionary timeline, /// The timeline drives the output automatically as time progresses. /// /// A factory function that creates the timeline mapping based on the pipeline context. - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. void WhenFalse(Func> timelineFactory, TimeSpan? transitionTimeForTimelineState = null); diff --git a/src/CodeCasa.AutomationPipelines.Lights/Timeline/ITimelineConfigurator.cs b/src/CodeCasa.AutomationPipelines.Lights/Timeline/ITimelineConfigurator.cs index 9233531..b22f8c9 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Timeline/ITimelineConfigurator.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Timeline/ITimelineConfigurator.cs @@ -27,9 +27,9 @@ public interface ITimelineConfigurator ITimelineConfigurator Add(ITimeline timeline, Func lightParametersFactory); /// - /// Sets the duration of the initial fade from the current state when entering a timeline state. Defaults to 500ms if not set. + /// Sets the duration of the initial fade from the current state when entering a timeline state. Defaults to 400ms if not set. /// /// The transition duration. /// The configurator instance for method chaining. - ITimelineConfigurator SetTransitionTime(TimeSpan transitionTime); + ITimelineConfigurator SetTransitionTime(TimeSpan? transitionTime); } \ No newline at end of file diff --git a/src/CodeCasa.AutomationPipelines.Lights/Timeline/TimelineConfigurator.cs b/src/CodeCasa.AutomationPipelines.Lights/Timeline/TimelineConfigurator.cs index 28171c7..56efda0 100644 --- a/src/CodeCasa.AutomationPipelines.Lights/Timeline/TimelineConfigurator.cs +++ b/src/CodeCasa.AutomationPipelines.Lights/Timeline/TimelineConfigurator.cs @@ -33,7 +33,7 @@ public ITimelineConfigurator Add(ITimeline timeline, Func where TLight : ILigh /// /// The dictionary mapping timeline points to . /// - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// /// The configurator instance for method chaining. ILightTransitionToggleConfigurator AddTimeline(Dictionary timeline, TimeSpan? transitionTimeForTimelineState = null); @@ -132,7 +132,7 @@ public interface ILightTransitionToggleConfigurator where TLight : ILigh /// /// A factory function that creates the timeline mapping based on the pipeline context. /// - /// The duration of the initial fade from the current state. Defaults to 500ms if null. + /// The duration of the initial fade from the current state. Defaults to 400ms if null. /// /// The configurator instance for method chaining. ILightTransitionToggleConfigurator AddTimeline(Func> timelineFactory, TimeSpan? transitionTimeForTimelineState = null); diff --git a/src/CodeCasa.Lights.Timelines/Extensions/TimelineValueCollectionExtensions.cs b/src/CodeCasa.Lights.Timelines/Extensions/TimelineValueCollectionExtensions.cs index 425dfab..918ec0d 100644 --- a/src/CodeCasa.Lights.Timelines/Extensions/TimelineValueCollectionExtensions.cs +++ b/src/CodeCasa.Lights.Timelines/Extensions/TimelineValueCollectionExtensions.cs @@ -20,7 +20,7 @@ public static class TimelineValueCollectionExtensions /// The dictionary mapping timeline points to . /// The Rx scheduler used to manage timing and initial delay. /// - /// The duration of the initial fade from current state. Defaults to 500ms if null. + /// The duration of the initial fade from current state. Defaults to 400ms if null. /// /// An observable that emits the current interpolated state, then follows the scheduled timeline. public static IObservable ToLightTransitionObservableIncludingCurrent( @@ -43,7 +43,7 @@ public static IObservable ToLightTransitionObservableIncludingC /// A dictionary mapping timeline points to a collection of light states keyed by ID. /// The Rx scheduler used to manage timing and initial delay. /// - /// The duration of the initial fade for all lights in the scene. Defaults to 500ms if null. + /// The duration of the initial fade for all lights in the scene. Defaults to 400ms if null. /// /// An observable that emits a dictionary of transitions representing the current scene state, followed by scheduled updates. /// @@ -93,7 +93,7 @@ private static IObservable CreateTimelineObservableIncludingInitialInterpo var initialSceneTransition = interpolator(previousScene, nextScene, fraction); - var timeSpan = transitionTimeForTimelineState ?? TimeSpan.FromMilliseconds(500); + var timeSpan = transitionTimeForTimelineState ?? TimeSpan.FromMilliseconds(400); // We delay the timeline observable to allow the initial scene transition to be emitted/activated first. var delayedTimelineObservable = Observable .Timer(timeSpan, scheduler)