@hankchen/canvas-editor-vue 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
1
  import { EditorSession, GuideOrientation } from '@hankchen/canvas-editor';
2
- /** 参考线拖出/预览位置的吸附求位:返回吸附修正后的场景坐标(无命中即原位) */
3
- export declare function snapGuideAxis(editor: EditorSession, orientation: GuideOrientation, position: number): number;
2
+ /** 参考线拖出/预览/拖动位置的吸附求位:返回吸附修正后的场景坐标(无命中即原位)。
3
+ * excludeGuideId:拖动再定位时点名排除被拖线自身轴——否则指针近原位会被自己
4
+ * 粘住(原轴仍是供轴源),拖不出手;拖出落线路径不传,既有语义不动。 */
5
+ export declare function snapGuideAxis(editor: EditorSession, orientation: GuideOrientation, position: number, excludeGuideId?: number): number;