raygeo.sketch.snap.producers
CentersProducer
produce()
produce(
registry: registry.EntityRegistry,
_drag_position: tuple[float, float],
drag_context: types.DragContext,
_threshold: float,
) -> list[types.SnapLine]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
_drag_position | tuple[float, float] | |
drag_context | types.DragContext | |
_threshold | float | |
| Returns | list[types.SnapLine] |
produce_points()
produce_points(
registry: registry.EntityRegistry,
drag_position: tuple[float, float],
drag_context: types.DragContext,
threshold: float,
) -> list[types.SnapPoint]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
drag_position | tuple[float, float] | |
drag_context | types.DragContext | |
threshold | float | |
| Returns | list[types.SnapPoint] |
EntityPointsProducer
produce()
produce(
registry: registry.EntityRegistry,
_drag_position: tuple[float, float],
drag_context: types.DragContext,
_threshold: float,
) -> list[types.SnapLine]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
_drag_position | tuple[float, float] | |
drag_context | types.DragContext | |
_threshold | float | |
| Returns | list[types.SnapLine] |
produce_points()
produce_points(
registry: registry.EntityRegistry,
drag_position: tuple[float, float],
drag_context: types.DragContext,
threshold: float,
) -> list[types.SnapPoint]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
drag_position | tuple[float, float] | |
drag_context | types.DragContext | |
threshold | float | |
| Returns | list[types.SnapPoint] |
EquidistantLinesProducer
produce()
produce(
_registry: registry.EntityRegistry,
_drag_position: tuple[float, float],
_drag_context: types.DragContext,
_threshold: float,
) -> list[types.SnapLine]
| Parameter | Type | Description |
|---|---|---|
_registry | registry.EntityRegistry | |
_drag_position | tuple[float, float] | |
_drag_context | types.DragContext | |
_threshold | float | |
| Returns | list[types.SnapLine] |
produce_points()
produce_points(
registry: registry.EntityRegistry,
drag_position: tuple[float, float],
drag_context: types.DragContext,
threshold: float,
) -> list[types.SnapPoint]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
drag_position | tuple[float, float] | |
drag_context | types.DragContext | |
threshold | float | |
| Returns | list[types.SnapPoint] |
IntersectionsProducer
produce()
produce(
registry: registry.EntityRegistry,
_drag_position: tuple[float, float],
drag_context: Any,
_threshold: float,
) -> list[types.SnapLine]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
_drag_position | tuple[float, float] | |
drag_context | Any | |
_threshold | float | |
| Returns | list[types.SnapLine] |
produce_points()
produce_points(
registry: registry.EntityRegistry,
drag_position: tuple[float, float],
drag_context: Any,
threshold: float,
) -> list[types.SnapPoint]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
drag_position | tuple[float, float] | |
drag_context | Any | |
threshold | float | |
| Returns | list[types.SnapPoint] |
MidpointsProducer
produce()
produce(
_registry: registry.EntityRegistry,
_drag_position: tuple[float, float],
_drag_context: types.DragContext,
_threshold: float,
) -> list[types.SnapLine]
| Parameter | Type | Description |
|---|---|---|
_registry | registry.EntityRegistry | |
_drag_position | tuple[float, float] | |
_drag_context | types.DragContext | |
_threshold | float | |
| Returns | list[types.SnapLine] |
produce_points()
produce_points(
registry: registry.EntityRegistry,
drag_position: tuple[float, float],
drag_context: types.DragContext,
threshold: float,
) -> list[types.SnapPoint]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
drag_position | tuple[float, float] | |
drag_context | types.DragContext | |
threshold | float | |
| Returns | list[types.SnapPoint] |
OnEntityProducer
produce()
produce(
_registry: registry.EntityRegistry,
_drag_position: tuple[float, float],
_drag_context: types.DragContext,
_threshold: float,
) -> list[types.SnapLine]
| Parameter | Type | Description |
|---|---|---|
_registry | registry.EntityRegistry | |
_drag_position | tuple[float, float] | |
_drag_context | types.DragContext | |
_threshold | float | |
| Returns | list[types.SnapLine] |
produce_points()
produce_points(
registry: registry.EntityRegistry,
drag_position: tuple[float, float],
drag_context: types.DragContext,
threshold: float,
) -> list[types.SnapPoint]
| Parameter | Type | Description |
|---|---|---|
registry | registry.EntityRegistry | |
drag_position | tuple[float, float] | |
drag_context | types.DragContext | |
threshold | float | |
| Returns | list[types.SnapPoint] |