Files
UVtools/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml
T
Tiago Conceição 22897ea389 v3.1.0
- **Benchmark:**
   - (Add) PNG, GZip, Deflate and LZ4 compress tests
   - (Change) Test against a known image instead of random noise
   - (Change) Single-thread tests from 100 to 200 and multi-thread tests from 1000 to 5000
   - (Improvement) Same image instance is shared between tests instead of create new per test
   - (Fix) Encode typo
- **Core:**
   - (Add) Layer compression method: Allow to choose the compression method for layer image
      - **PNG:** Compression=High Speed=Slow (Use with low RAM)
      - **GZip:** Compression=Medium Speed=Medium (Optimal)
      - **Deflate:** Compression=Medium Speed=Medium (Optimal)
      - **LZ4:** Compression=Low Speed=Fast (Use with high RAM)
   - (Improvement) Better handling on cancel operations and more immediate response
   - (Fix) Extract: Zip Slip Vulnerability (CWE-22)
- **File formats:**
   - (Improvement) Better handling of encode/decoding layers from zip files
   - (Fix) ZCode: Canceling the file load can trigger an error
   - (Fix) VDA: Unable to open vda zip files
- **Tools:**
   - (Improvement) Allow operations to be aware of ROI and Masks before execution (#436)
   - (Improvement) Scripting: Allow save and load profiles (#436)
   - (Fix) Adjust layer height: When using the Offset type the last layer in the range was not taken in account (#435)
- **UI:**
   - (Improvement) Allow layer zoom levels of 0.1x and 64x but constrain minimum zoom to the level of image fit
   - (Improvement) Update change log now shows with markdown style and more readable
   - (Fix) Windows MSI upgrade to this version (#432)
   - (Fix) Auto-updater for Mac ARM, was downloading x64 instead
2022-03-17 23:50:47 +00:00

65 lines
2.3 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="UVtools.WPF.Controls.Tools.ToolScriptingControl">
<StackPanel Orientation="Vertical">
<Grid RowDefinitions="Auto"
ColumnDefinitions="Auto,10,500,5,Auto">
<TextBlock Grid.Row="0" Grid.Column="0"
Text="Script file:"
VerticalAlignment="Center"/>
<TextBox Grid.Row="0" Grid.Column="2"
IsReadOnly="True"
Text="{Binding Operation.FilePath}" />
<StackPanel Grid.Row="0" Grid.Column="4"
Orientation="Horizontal" Spacing="1">
<Button
ToolTip.Tip="Load script file"
VerticalAlignment="Center"
Command="{Binding LoadScript}"
i:Attached.Icon="fas fa-file-import"/>
<Button
IsEnabled="{Binding Operation.HaveFile}"
ToolTip.Tip="Reloads the script"
VerticalAlignment="Center"
Command="{Binding ReloadScript}"
i:Attached.Icon="fas fa-sync-alt"/>
<Button
IsEnabled="{Binding Operation.HaveFile}"
ToolTip.Tip="Open the script folder"
VerticalAlignment="Center"
Command="{Binding OpenScriptFolder}"
i:Attached.Icon="fas fa-folder"/>
<Button
IsEnabled="{Binding Operation.HaveFile}"
ToolTip.Tip="Open the script file"
VerticalAlignment="Center"
Command="{Binding OpenScriptFile}"
i:Attached.Icon="fas fa-file-code"/>
</StackPanel>
</Grid>
<StackPanel
Name="ScriptConfigurationPanel"
IsVisible="{Binding Operation.CanExecute}"
Margin="0,10" Spacing="5"/>
<Grid
Name="ScriptVariablesGrid"
IsVisible="{Binding Operation.CanExecute}"
ColumnDefinitions="Auto,10,Auto,5,Auto">
</Grid>
</StackPanel>
</UserControl>