|
@@ -35,7 +35,7 @@ public static class Analytics
|
|
|
internal static AnalyticEvent? SendOpenExample(string fileName) => SendEvent(AnalyticEventTypes.OpenExample, ("FileName", fileName));
|
|
|
|
|
|
internal static AnalyticEvent? SendUseTool(IToolHandler? tool, VecD positionOnCanvas, VecD documentSize) =>
|
|
|
- SendEvent(AnalyticEventTypes.UseTool, ("Tool", tool?.ToolName), ("Position", new VecD(documentSize.X / positionOnCanvas.X, documentSize.Y / positionOnCanvas.Y)));
|
|
|
+ SendEvent(AnalyticEventTypes.UseTool, ("Tool", tool?.ToolName), ("Position", new VecD(positionOnCanvas.X / documentSize.X, positionOnCanvas.Y / documentSize.Y)));
|
|
|
|
|
|
internal static AnalyticEvent? SendSwitchToTool(IToolHandler? newTool, IToolHandler? oldTool, ICommandExecutionSourceInfo? sourceInfo) =>
|
|
|
SendEvent(AnalyticEventTypes.SwitchTool, ("NewTool", newTool?.ToolName), ("OldTool", oldTool?.ToolName), ("Source", sourceInfo));
|