Reformat with black.
This commit is contained in:
Родитель
3ed0addb1e
Коммит
f70d52aa71
|
@ -100,9 +100,7 @@ class Canvas(object):
|
|||
def update(self, event=None): ...
|
||||
def close(self): ...
|
||||
def _update_fps(self, event): ...
|
||||
def measure_fps(
|
||||
self, window: float = 1, callback: Callable | str = "%1.1f FPS"
|
||||
): ...
|
||||
def measure_fps(self, window: float = 1, callback: Callable | str = "%1.1f FPS"): ...
|
||||
|
||||
# ---------------------------------------------------------------- misc ---
|
||||
def __repr__(self): ...
|
||||
|
@ -124,7 +122,7 @@ class MouseEvent(Event):
|
|||
delta: tuple[float, float] | None = None,
|
||||
last_event: MouseEvent | None = None,
|
||||
press_event: MouseEvent | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def pos(self): ...
|
||||
|
@ -149,14 +147,7 @@ class MouseEvent(Event):
|
|||
def trail(self): ...
|
||||
|
||||
class KeyEvent(Event):
|
||||
def __init__(
|
||||
self,
|
||||
type: str,
|
||||
key: Key | None = None,
|
||||
text: str = "",
|
||||
modifiers: tuple[Key, ...] | None = None,
|
||||
**kwargs
|
||||
): ...
|
||||
def __init__(self, type: str, key: Key | None = None, text: str = "", modifiers: tuple[Key, ...] | None = None, **kwargs): ...
|
||||
@property
|
||||
def key(self): ...
|
||||
@property
|
||||
|
@ -166,11 +157,7 @@ class KeyEvent(Event):
|
|||
|
||||
class ResizeEvent(Event):
|
||||
def __init__(
|
||||
self,
|
||||
type: str,
|
||||
size: tuple[int, int] | None = None,
|
||||
physical_size: tuple[int, int] | None = None,
|
||||
**kwargs
|
||||
self, type: str, size: tuple[int, int] | None = None, physical_size: tuple[int, int] | None = None, **kwargs
|
||||
): ...
|
||||
@property
|
||||
def size(self): ...
|
||||
|
@ -178,8 +165,6 @@ class ResizeEvent(Event):
|
|||
def physical_size(self): ...
|
||||
|
||||
class DrawEvent(Event):
|
||||
def __init__(
|
||||
self, type: str, region: tuple[int, int, int, int] | None = None, **kwargs
|
||||
): ...
|
||||
def __init__(self, type: str, region: tuple[int, int, int, int] | None = None, **kwargs): ...
|
||||
@property
|
||||
def region(self): ...
|
||||
|
|
|
@ -35,7 +35,7 @@ class ColorArray(object):
|
|||
color: str | tuple | Sequence = ...,
|
||||
alpha: None | float = None,
|
||||
clip: bool = False,
|
||||
color_space: Literal["hsv","rgb"] = "rgb",
|
||||
color_space: Literal["hsv", "rgb"] = "rgb",
|
||||
): ...
|
||||
|
||||
###########################################################################
|
||||
|
|
|
@ -97,7 +97,7 @@ class CubeHelixColormap(Colormap):
|
|||
maxSat: Scalar = 1.2,
|
||||
minLight: Scalar = 0.0,
|
||||
maxLight: Scalar = 1.0,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
|
||||
class _Fire(BaseColormap):
|
||||
|
@ -165,9 +165,7 @@ class _HUSL(HSLuv):
|
|||
def __init__(self, *args, **kwargs): ...
|
||||
|
||||
class Diverging(Colormap):
|
||||
def __init__(
|
||||
self, h_pos=20, h_neg=250, saturation=1.0, value=0.7, center="light"
|
||||
): ...
|
||||
def __init__(self, h_pos=20, h_neg=250, saturation=1.0, value=0.7, center="light"): ...
|
||||
|
||||
class RedYellowBlueCyan(Colormap):
|
||||
def __init__(self, limits: ArrayLike = ...): ...
|
||||
|
|
|
@ -102,215 +102,215 @@ __i386__ = ...
|
|||
objc = ...
|
||||
|
||||
objc.class_addIvar.restype = ...
|
||||
objc.class_addIvar.argtypes= ...
|
||||
objc.class_addIvar.argtypes = ...
|
||||
|
||||
objc.class_addMethod.restype = ...
|
||||
|
||||
objc.class_addProtocol.restype = ...
|
||||
objc.class_addProtocol.argtypes= ...
|
||||
objc.class_addProtocol.argtypes = ...
|
||||
|
||||
objc.class_conformsToProtocol.restype = ...
|
||||
objc.class_conformsToProtocol.argtypes= ...
|
||||
objc.class_conformsToProtocol.argtypes = ...
|
||||
|
||||
objc.class_copyIvarList.restype = ...
|
||||
objc.class_copyIvarList.argtypes= ...
|
||||
objc.class_copyIvarList.argtypes = ...
|
||||
|
||||
objc.class_copyMethodList.restype = ...
|
||||
objc.class_copyMethodList.argtypes= ...
|
||||
objc.class_copyMethodList.argtypes = ...
|
||||
|
||||
objc.class_copyPropertyList.restype = ...
|
||||
objc.class_copyPropertyList.argtypes= ...
|
||||
objc.class_copyPropertyList.argtypes = ...
|
||||
|
||||
objc.class_copyProtocolList.restype = ...
|
||||
objc.class_copyProtocolList.argtypes= ...
|
||||
objc.class_copyProtocolList.argtypes = ...
|
||||
|
||||
objc.class_createInstance.restype = ...
|
||||
objc.class_createInstance.argtypes= ...
|
||||
objc.class_createInstance.argtypes = ...
|
||||
|
||||
objc.class_getClassMethod.restype = ...
|
||||
objc.class_getClassMethod.argtypes= ...
|
||||
objc.class_getClassMethod.argtypes = ...
|
||||
|
||||
objc.class_getClassVariable.restype = ...
|
||||
objc.class_getClassVariable.argtypes= ...
|
||||
objc.class_getClassVariable.argtypes = ...
|
||||
|
||||
objc.class_getInstanceMethod.restype = ...
|
||||
objc.class_getInstanceMethod.argtypes= ...
|
||||
objc.class_getInstanceMethod.argtypes = ...
|
||||
|
||||
objc.class_getInstanceSize.restype = ...
|
||||
objc.class_getInstanceSize.argtypes= ...
|
||||
objc.class_getInstanceSize.argtypes = ...
|
||||
|
||||
objc.class_getInstanceVariable.restype = ...
|
||||
objc.class_getInstanceVariable.argtypes= ...
|
||||
objc.class_getInstanceVariable.argtypes = ...
|
||||
|
||||
objc.class_getIvarLayout.restype = ...
|
||||
objc.class_getIvarLayout.argtypes= ...
|
||||
objc.class_getIvarLayout.argtypes = ...
|
||||
|
||||
objc.class_getMethodImplementation.restype = ...
|
||||
objc.class_getMethodImplementation.argtypes= ...
|
||||
objc.class_getMethodImplementation.argtypes = ...
|
||||
|
||||
objc.class_getName.restype = ...
|
||||
objc.class_getName.argtypes= ...
|
||||
objc.class_getName.argtypes = ...
|
||||
|
||||
objc.class_getProperty.restype = ...
|
||||
objc.class_getProperty.argtypes= ...
|
||||
objc.class_getProperty.argtypes = ...
|
||||
|
||||
objc.class_getSuperclass.restype = ...
|
||||
objc.class_getSuperclass.argtypes= ...
|
||||
objc.class_getSuperclass.argtypes = ...
|
||||
|
||||
objc.class_getVersion.restype = ...
|
||||
objc.class_getVersion.argtypes= ...
|
||||
objc.class_getVersion.argtypes = ...
|
||||
|
||||
objc.class_getWeakIvarLayout.restype = ...
|
||||
objc.class_getWeakIvarLayout.argtypes= ...
|
||||
objc.class_getWeakIvarLayout.argtypes = ...
|
||||
|
||||
objc.class_isMetaClass.restype = ...
|
||||
objc.class_isMetaClass.argtypes= ...
|
||||
objc.class_isMetaClass.argtypes = ...
|
||||
|
||||
objc.class_replaceMethod.restype = ...
|
||||
objc.class_replaceMethod.argtypes= ...
|
||||
objc.class_replaceMethod.argtypes = ...
|
||||
|
||||
objc.class_respondsToSelector.restype = ...
|
||||
objc.class_respondsToSelector.argtypes= ...
|
||||
objc.class_respondsToSelector.argtypes = ...
|
||||
|
||||
objc.class_setIvarLayout.restype = ...
|
||||
objc.class_setIvarLayout.argtypes= ...
|
||||
objc.class_setIvarLayout.argtypes = ...
|
||||
|
||||
objc.class_setSuperclass.restype = ...
|
||||
objc.class_setSuperclass.argtypes= ...
|
||||
objc.class_setSuperclass.argtypes = ...
|
||||
|
||||
objc.class_setVersion.restype = ...
|
||||
objc.class_setVersion.argtypes= ...
|
||||
objc.class_setVersion.argtypes = ...
|
||||
|
||||
objc.class_setWeakIvarLayout.restype = ...
|
||||
objc.class_setWeakIvarLayout.argtypes= ...
|
||||
objc.class_setWeakIvarLayout.argtypes = ...
|
||||
|
||||
objc.ivar_getName.restype = ...
|
||||
objc.ivar_getName.argtypes= ...
|
||||
objc.ivar_getName.argtypes = ...
|
||||
|
||||
objc.ivar_getOffset.restype = ...
|
||||
objc.ivar_getOffset.argtypes= ...
|
||||
objc.ivar_getOffset.argtypes = ...
|
||||
|
||||
objc.ivar_getTypeEncoding.restype = ...
|
||||
objc.ivar_getTypeEncoding.argtypes= ...
|
||||
objc.ivar_getTypeEncoding.argtypes = ...
|
||||
|
||||
objc.method_copyArgumentType.restype = ...
|
||||
objc.method_copyArgumentType.argtypes= ...
|
||||
objc.method_copyArgumentType.argtypes = ...
|
||||
|
||||
objc.method_copyReturnType.restype = ...
|
||||
objc.method_copyReturnType.argtypes= ...
|
||||
objc.method_copyReturnType.argtypes = ...
|
||||
|
||||
objc.method_exchangeImplementations.restype = ...
|
||||
objc.method_exchangeImplementations.argtypes= ...
|
||||
objc.method_exchangeImplementations.argtypes = ...
|
||||
|
||||
objc.method_getArgumentType.restype = ...
|
||||
objc.method_getArgumentType.argtypes= ...
|
||||
objc.method_getArgumentType.argtypes = ...
|
||||
|
||||
objc.method_getImplementation.restype = ...
|
||||
objc.method_getImplementation.argtypes= ...
|
||||
objc.method_getImplementation.argtypes = ...
|
||||
|
||||
objc.method_getName.restype = ...
|
||||
objc.method_getName.argtypes= ...
|
||||
objc.method_getName.argtypes = ...
|
||||
|
||||
objc.method_getNumberOfArguments.restype = ...
|
||||
objc.method_getNumberOfArguments.argtypes= ...
|
||||
objc.method_getNumberOfArguments.argtypes = ...
|
||||
|
||||
objc.method_getReturnType.restype = ...
|
||||
objc.method_getReturnType.argtypes= ...
|
||||
objc.method_getReturnType.argtypes = ...
|
||||
|
||||
objc.method_getTypeEncoding.restype = ...
|
||||
objc.method_getTypeEncoding.argtypes= ...
|
||||
objc.method_getTypeEncoding.argtypes = ...
|
||||
|
||||
objc.method_setImplementation.restype = ...
|
||||
objc.method_setImplementation.argtypes= ...
|
||||
objc.method_setImplementation.argtypes = ...
|
||||
|
||||
objc.objc_allocateClassPair.restype = ...
|
||||
objc.objc_allocateClassPair.argtypes= ...
|
||||
objc.objc_allocateClassPair.argtypes = ...
|
||||
|
||||
objc.objc_copyProtocolList.restype = ...
|
||||
objc.objc_copyProtocolList.argtypes= ...
|
||||
objc.objc_copyProtocolList.argtypes = ...
|
||||
|
||||
objc.objc_getAssociatedObject.restype = ...
|
||||
objc.objc_getAssociatedObject.argtypes= ...
|
||||
objc.objc_getAssociatedObject.argtypes = ...
|
||||
|
||||
objc.objc_getClass.restype = ...
|
||||
objc.objc_getClass.argtypes= ...
|
||||
objc.objc_getClass.argtypes = ...
|
||||
|
||||
objc.objc_getClassList.restype = ...
|
||||
objc.objc_getClassList.argtypes= ...
|
||||
objc.objc_getClassList.argtypes = ...
|
||||
|
||||
objc.objc_getMetaClass.restype = ...
|
||||
objc.objc_getMetaClass.argtypes= ...
|
||||
objc.objc_getMetaClass.argtypes = ...
|
||||
|
||||
objc.objc_getProtocol.restype = ...
|
||||
objc.objc_getProtocol.argtypes= ...
|
||||
objc.objc_getProtocol.argtypes = ...
|
||||
|
||||
objc.objc_registerClassPair.restype = ...
|
||||
objc.objc_registerClassPair.argtypes= ...
|
||||
objc.objc_registerClassPair.argtypes = ...
|
||||
|
||||
objc.objc_removeAssociatedObjects.restype = ...
|
||||
objc.objc_removeAssociatedObjects.argtypes= ...
|
||||
objc.objc_removeAssociatedObjects.argtypes = ...
|
||||
|
||||
objc.objc_setAssociatedObject.restype = ...
|
||||
objc.objc_setAssociatedObject.argtypes= ...
|
||||
objc.objc_setAssociatedObject.argtypes = ...
|
||||
|
||||
objc.object_copy.restype = ...
|
||||
objc.object_copy.argtypes= ...
|
||||
objc.object_copy.argtypes = ...
|
||||
|
||||
objc.object_dispose.restype = ...
|
||||
objc.object_dispose.argtypes= ...
|
||||
objc.object_dispose.argtypes = ...
|
||||
|
||||
objc.object_getClass.restype = ...
|
||||
objc.object_getClass.argtypes= ...
|
||||
objc.object_getClass.argtypes = ...
|
||||
|
||||
objc.object_getClassName.restype = ...
|
||||
objc.object_getClassName.argtypes= ...
|
||||
objc.object_getClassName.argtypes = ...
|
||||
|
||||
objc.object_getInstanceVariable.restype = ...
|
||||
objc.object_getInstanceVariable.argtypes= ...
|
||||
objc.object_getInstanceVariable.argtypes = ...
|
||||
|
||||
objc.object_getIvar.restype = ...
|
||||
objc.object_getIvar.argtypes= ...
|
||||
objc.object_getIvar.argtypes = ...
|
||||
|
||||
objc.object_setClass.restype = ...
|
||||
objc.object_setClass.argtypes= ...
|
||||
objc.object_setClass.argtypes = ...
|
||||
|
||||
objc.object_setInstanceVariable.restype = ...
|
||||
|
||||
objc.object_setIvar.restype = ...
|
||||
objc.object_setIvar.argtypes= ...
|
||||
objc.object_setIvar.argtypes = ...
|
||||
|
||||
objc.property_getAttributes.restype = ...
|
||||
objc.property_getAttributes.argtypes= ...
|
||||
objc.property_getAttributes.argtypes = ...
|
||||
|
||||
objc.property_getName.restype = ...
|
||||
objc.property_getName.argtypes= ...
|
||||
objc.property_getName.argtypes = ...
|
||||
|
||||
objc.protocol_conformsToProtocol.restype = ...
|
||||
objc.protocol_conformsToProtocol.argtypes= ...
|
||||
objc.protocol_conformsToProtocol.argtypes = ...
|
||||
|
||||
class OBJC_METHOD_DESCRIPTION(Structure):
|
||||
_fields_= ...
|
||||
_fields_ = ...
|
||||
|
||||
objc.protocol_copyMethodDescriptionList.restype = ...
|
||||
objc.protocol_copyMethodDescriptionList.argtypes= ...
|
||||
objc.protocol_copyMethodDescriptionList.argtypes = ...
|
||||
|
||||
objc.protocol_copyPropertyList.restype = ...
|
||||
objc.protocol_copyPropertyList.argtypes= ...
|
||||
objc.protocol_copyPropertyList.argtypes = ...
|
||||
|
||||
objc.protocol_copyProtocolList = ...
|
||||
objc.protocol_copyProtocolList.argtypes= ...
|
||||
objc.protocol_copyProtocolList.argtypes = ...
|
||||
|
||||
objc.protocol_getMethodDescription.restype = OBJC_METHOD_DESCRIPTION
|
||||
objc.protocol_getMethodDescription.argtypes= ...
|
||||
objc.protocol_getMethodDescription.argtypes = ...
|
||||
|
||||
objc.protocol_getName.restype = ...
|
||||
objc.protocol_getName.argtypes= ...
|
||||
objc.protocol_getName.argtypes = ...
|
||||
|
||||
objc.sel_getName.restype = ...
|
||||
objc.sel_getName.argtypes= ...
|
||||
objc.sel_getName.argtypes = ...
|
||||
|
||||
objc.sel_isEqual.restype = ...
|
||||
objc.sel_isEqual.argtypes= ...
|
||||
objc.sel_isEqual.argtypes = ...
|
||||
|
||||
objc.sel_registerName.restype = ...
|
||||
objc.sel_registerName.argtypes = ...
|
||||
|
@ -431,65 +431,65 @@ CFAllocatorRef = ...
|
|||
CFStringEncoding = ...
|
||||
|
||||
cf.CFStringCreateWithCString.restype = ...
|
||||
cf.CFStringCreateWithCString.argtypes= ...
|
||||
cf.CFStringCreateWithCString.argtypes = ...
|
||||
|
||||
cf.CFRelease.restype = ...
|
||||
cf.CFRelease.argtypes= ...
|
||||
cf.CFRelease.argtypes = ...
|
||||
|
||||
cf.CFStringGetLength.restype = ...
|
||||
cf.CFStringGetLength.argtypes= ...
|
||||
cf.CFStringGetLength.argtypes = ...
|
||||
|
||||
cf.CFStringGetMaximumSizeForEncoding.restype = ...
|
||||
cf.CFStringGetMaximumSizeForEncoding.argtypes= ...
|
||||
cf.CFStringGetMaximumSizeForEncoding.argtypes = ...
|
||||
|
||||
cf.CFStringGetCString.restype = ...
|
||||
cf.CFStringGetCString.argtypes= ...
|
||||
cf.CFStringGetCString.argtypes = ...
|
||||
|
||||
cf.CFStringGetTypeID.restype = ...
|
||||
cf.CFStringGetTypeID.argtypes= ...
|
||||
cf.CFStringGetTypeID.argtypes = ...
|
||||
|
||||
cf.CFAttributedStringCreate.restype = ...
|
||||
cf.CFAttributedStringCreate.argtypes= ...
|
||||
cf.CFAttributedStringCreate.argtypes = ...
|
||||
|
||||
cf.CFURLCreateWithFileSystemPath.restype = ...
|
||||
cf.CFURLCreateWithFileSystemPath.argtypes= ...
|
||||
cf.CFURLCreateWithFileSystemPath.argtypes = ...
|
||||
|
||||
def CFSTR(string): ...
|
||||
def get_NSString(string): ...
|
||||
def cfstring_to_string(cfstring): ...
|
||||
|
||||
cf.CFDataCreate.restype = ...
|
||||
cf.CFDataCreate.argtypes= ...
|
||||
cf.CFDataCreate.argtypes = ...
|
||||
|
||||
cf.CFDataGetBytes.restype = ...
|
||||
cf.CFDataGetBytes.argtypes= ...
|
||||
cf.CFDataGetBytes.argtypes = ...
|
||||
|
||||
cf.CFDataGetLength.restype = ...
|
||||
cf.CFDataGetLength.argtypes= ...
|
||||
cf.CFDataGetLength.argtypes = ...
|
||||
|
||||
cf.CFDictionaryGetValue.restype = ...
|
||||
cf.CFDictionaryGetValue.argtypes= ...
|
||||
cf.CFDictionaryGetValue.argtypes = ...
|
||||
|
||||
cf.CFDictionaryAddValue.restype = ...
|
||||
cf.CFDictionaryAddValue.argtypes= ...
|
||||
cf.CFDictionaryAddValue.argtypes = ...
|
||||
|
||||
cf.CFDictionaryCreateMutable.restype = ...
|
||||
cf.CFDictionaryCreateMutable.argtypes= ...
|
||||
cf.CFDictionaryCreateMutable.argtypes = ...
|
||||
|
||||
cf.CFNumberCreate.restype = ...
|
||||
cf.CFNumberCreate.argtypes= ...
|
||||
cf.CFNumberCreate.argtypes = ...
|
||||
|
||||
cf.CFNumberGetType.restype = ...
|
||||
cf.CFNumberGetType.argtypes= ...
|
||||
cf.CFNumberGetType.argtypes = ...
|
||||
|
||||
cf.CFNumberGetValue.restype = ...
|
||||
cf.CFNumberGetValue.argtypes= ...
|
||||
cf.CFNumberGetValue.argtypes = ...
|
||||
|
||||
cf.CFNumberGetTypeID.restype = ...
|
||||
cf.CFNumberGetTypeID.argtypes= ...
|
||||
cf.CFNumberGetTypeID.argtypes = ...
|
||||
|
||||
cf.CFGetTypeID.restype = ...
|
||||
cf.CFGetTypeID.argtypes= ...
|
||||
cf.CFGetTypeID.argtypes = ...
|
||||
|
||||
# CFNumber.h
|
||||
kCFNumberSInt8Type: int = ...
|
||||
|
@ -518,33 +518,33 @@ known_cftypes: dict = ...
|
|||
def cftype_to_value(cftype): ...
|
||||
|
||||
cf.CFSetGetCount.restype = ...
|
||||
cf.CFSetGetCount.argtypes= ...
|
||||
cf.CFSetGetCount.argtypes = ...
|
||||
|
||||
cf.CFSetGetValues.restype = ...
|
||||
# PyPy 1.7 is fine with 2nd arg as POINTER(c_void_p),
|
||||
# but CPython ctypes 1.1.0 complains, so just use c_void_p.
|
||||
cf.CFSetGetValues.argtypes= ...
|
||||
cf.CFSetGetValues.argtypes = ...
|
||||
|
||||
def cfset_to_set(cfset): ...
|
||||
|
||||
cf.CFArrayGetCount.restype = ...
|
||||
cf.CFArrayGetCount.argtypes= ...
|
||||
cf.CFArrayGetCount.argtypes = ...
|
||||
|
||||
cf.CFArrayGetValueAtIndex.restype = ...
|
||||
cf.CFArrayGetValueAtIndex.argtypes= ...
|
||||
cf.CFArrayGetValueAtIndex.argtypes = ...
|
||||
|
||||
def cfarray_to_list(cfarray): ...
|
||||
|
||||
kCFRunLoopDefaultMode = ...
|
||||
|
||||
cf.CFRunLoopGetCurrent.restype = ...
|
||||
cf.CFRunLoopGetCurrent.argtypes= ...
|
||||
cf.CFRunLoopGetCurrent.argtypes = ...
|
||||
|
||||
cf.CFRunLoopGetMain.restype = ...
|
||||
cf.CFRunLoopGetMain.argtypes= ...
|
||||
cf.CFRunLoopGetMain.argtypes = ...
|
||||
|
||||
cf.CFShow.restype = ...
|
||||
cf.CFShow.argtypes= ...
|
||||
cf.CFShow.argtypes = ...
|
||||
|
||||
######################################################################
|
||||
|
||||
|
@ -705,146 +705,146 @@ kCGImagePropertyGIFDelayTime = ...
|
|||
kCGRenderingIntentDefault: int = ...
|
||||
|
||||
quartz.CGDisplayIDToOpenGLDisplayMask.restype = ...
|
||||
quartz.CGDisplayIDToOpenGLDisplayMask.argtypes= ...
|
||||
quartz.CGDisplayIDToOpenGLDisplayMask.argtypes = ...
|
||||
|
||||
quartz.CGMainDisplayID.restype = ...
|
||||
quartz.CGMainDisplayID.argtypes= ...
|
||||
quartz.CGMainDisplayID.argtypes = ...
|
||||
|
||||
quartz.CGShieldingWindowLevel.restype = ...
|
||||
quartz.CGShieldingWindowLevel.argtypes= ...
|
||||
quartz.CGShieldingWindowLevel.argtypes = ...
|
||||
|
||||
quartz.CGCursorIsVisible.restype = ...
|
||||
|
||||
quartz.CGDisplayCopyAllDisplayModes.restype = ...
|
||||
quartz.CGDisplayCopyAllDisplayModes.argtypes= ...
|
||||
quartz.CGDisplayCopyAllDisplayModes.argtypes = ...
|
||||
|
||||
quartz.CGDisplaySetDisplayMode.restype = ...
|
||||
quartz.CGDisplaySetDisplayMode.argtypes= ...
|
||||
quartz.CGDisplaySetDisplayMode.argtypes = ...
|
||||
|
||||
quartz.CGDisplayCapture.restype = ...
|
||||
quartz.CGDisplayCapture.argtypes= ...
|
||||
quartz.CGDisplayCapture.argtypes = ...
|
||||
|
||||
quartz.CGDisplayRelease.restype = ...
|
||||
quartz.CGDisplayRelease.argtypes= ...
|
||||
quartz.CGDisplayRelease.argtypes = ...
|
||||
|
||||
quartz.CGDisplayCopyDisplayMode.restype = ...
|
||||
quartz.CGDisplayCopyDisplayMode.argtypes= ...
|
||||
quartz.CGDisplayCopyDisplayMode.argtypes = ...
|
||||
|
||||
quartz.CGDisplayModeGetRefreshRate.restype = ...
|
||||
quartz.CGDisplayModeGetRefreshRate.argtypes= ...
|
||||
quartz.CGDisplayModeGetRefreshRate.argtypes = ...
|
||||
|
||||
quartz.CGDisplayModeRetain.restype = ...
|
||||
quartz.CGDisplayModeRetain.argtypes= ...
|
||||
quartz.CGDisplayModeRetain.argtypes = ...
|
||||
|
||||
quartz.CGDisplayModeRelease.restype = ...
|
||||
quartz.CGDisplayModeRelease.argtypes= ...
|
||||
quartz.CGDisplayModeRelease.argtypes = ...
|
||||
|
||||
quartz.CGDisplayModeGetWidth.restype = ...
|
||||
quartz.CGDisplayModeGetWidth.argtypes= ...
|
||||
quartz.CGDisplayModeGetWidth.argtypes = ...
|
||||
|
||||
quartz.CGDisplayModeGetHeight.restype = ...
|
||||
quartz.CGDisplayModeGetHeight.argtypes= ...
|
||||
quartz.CGDisplayModeGetHeight.argtypes = ...
|
||||
|
||||
quartz.CGDisplayModeCopyPixelEncoding.restype = ...
|
||||
quartz.CGDisplayModeCopyPixelEncoding.argtypes= ...
|
||||
quartz.CGDisplayModeCopyPixelEncoding.argtypes = ...
|
||||
|
||||
quartz.CGGetActiveDisplayList.restype = ...
|
||||
quartz.CGGetActiveDisplayList.argtypes= ...
|
||||
quartz.CGGetActiveDisplayList.argtypes = ...
|
||||
|
||||
quartz.CGDisplayBounds.restype = ...
|
||||
quartz.CGDisplayBounds.argtypes= ...
|
||||
quartz.CGDisplayBounds.argtypes = ...
|
||||
|
||||
quartz.CGImageSourceCreateWithData.restype = ...
|
||||
quartz.CGImageSourceCreateWithData.argtypes= ...
|
||||
quartz.CGImageSourceCreateWithData.argtypes = ...
|
||||
|
||||
quartz.CGImageSourceCreateImageAtIndex.restype = ...
|
||||
quartz.CGImageSourceCreateImageAtIndex.argtypes= ...
|
||||
quartz.CGImageSourceCreateImageAtIndex.argtypes = ...
|
||||
|
||||
quartz.CGImageSourceCopyPropertiesAtIndex.restype = ...
|
||||
quartz.CGImageSourceCopyPropertiesAtIndex.argtypes= ...
|
||||
quartz.CGImageSourceCopyPropertiesAtIndex.argtypes = ...
|
||||
|
||||
quartz.CGImageGetDataProvider.restype = ...
|
||||
quartz.CGImageGetDataProvider.argtypes= ...
|
||||
quartz.CGImageGetDataProvider.argtypes = ...
|
||||
|
||||
quartz.CGDataProviderCopyData.restype = ...
|
||||
quartz.CGDataProviderCopyData.argtypes= ...
|
||||
quartz.CGDataProviderCopyData.argtypes = ...
|
||||
|
||||
quartz.CGDataProviderCreateWithCFData.restype = ...
|
||||
quartz.CGDataProviderCreateWithCFData.argtypes= ...
|
||||
quartz.CGDataProviderCreateWithCFData.argtypes = ...
|
||||
|
||||
quartz.CGImageCreate.restype = ...
|
||||
quartz.CGImageCreate.argtypes= ...
|
||||
quartz.CGImageCreate.argtypes = ...
|
||||
|
||||
quartz.CGImageRelease.restype = ...
|
||||
quartz.CGImageRelease.argtypes= ...
|
||||
quartz.CGImageRelease.argtypes = ...
|
||||
|
||||
quartz.CGImageGetBytesPerRow.restype = ...
|
||||
quartz.CGImageGetBytesPerRow.argtypes= ...
|
||||
quartz.CGImageGetBytesPerRow.argtypes = ...
|
||||
|
||||
quartz.CGImageGetWidth.restype = ...
|
||||
quartz.CGImageGetWidth.argtypes= ...
|
||||
quartz.CGImageGetWidth.argtypes = ...
|
||||
|
||||
quartz.CGImageGetHeight.restype = ...
|
||||
quartz.CGImageGetHeight.argtypes= ...
|
||||
quartz.CGImageGetHeight.argtypes = ...
|
||||
|
||||
quartz.CGImageGetBitsPerPixel.restype = ...
|
||||
quartz.CGImageGetBitsPerPixel.argtypes= ...
|
||||
quartz.CGImageGetBitsPerPixel.argtypes = ...
|
||||
|
||||
quartz.CGImageGetBitmapInfo.restype = ...
|
||||
quartz.CGImageGetBitmapInfo.argtypes= ...
|
||||
quartz.CGImageGetBitmapInfo.argtypes = ...
|
||||
|
||||
quartz.CGColorSpaceCreateDeviceRGB.restype = ...
|
||||
quartz.CGColorSpaceCreateDeviceRGB.argtypes= ...
|
||||
quartz.CGColorSpaceCreateDeviceRGB.argtypes = ...
|
||||
|
||||
quartz.CGDataProviderRelease.restype = ...
|
||||
quartz.CGDataProviderRelease.argtypes= ...
|
||||
quartz.CGDataProviderRelease.argtypes = ...
|
||||
|
||||
quartz.CGColorSpaceRelease.restype = ...
|
||||
quartz.CGColorSpaceRelease.argtypes= ...
|
||||
quartz.CGColorSpaceRelease.argtypes = ...
|
||||
|
||||
quartz.CGWarpMouseCursorPosition.restype = ...
|
||||
quartz.CGWarpMouseCursorPosition.argtypes= ...
|
||||
quartz.CGWarpMouseCursorPosition.argtypes = ...
|
||||
|
||||
quartz.CGDisplayMoveCursorToPoint.restype = ...
|
||||
quartz.CGDisplayMoveCursorToPoint.argtypes= ...
|
||||
quartz.CGDisplayMoveCursorToPoint.argtypes = ...
|
||||
|
||||
quartz.CGAssociateMouseAndMouseCursorPosition.restype = ...
|
||||
quartz.CGAssociateMouseAndMouseCursorPosition.argtypes= ...
|
||||
quartz.CGAssociateMouseAndMouseCursorPosition.argtypes = ...
|
||||
|
||||
quartz.CGBitmapContextCreate.restype = ...
|
||||
quartz.CGBitmapContextCreate.argtypes= ...
|
||||
quartz.CGBitmapContextCreate.argtypes = ...
|
||||
|
||||
quartz.CGBitmapContextCreateImage.restype = ...
|
||||
quartz.CGBitmapContextCreateImage.argtypes= ...
|
||||
quartz.CGBitmapContextCreateImage.argtypes = ...
|
||||
|
||||
quartz.CGFontCreateWithDataProvider.restype = ...
|
||||
quartz.CGFontCreateWithDataProvider.argtypes= ...
|
||||
quartz.CGFontCreateWithDataProvider.argtypes = ...
|
||||
|
||||
quartz.CGFontCreateWithFontName.restype = ...
|
||||
quartz.CGFontCreateWithFontName.argtypes= ...
|
||||
quartz.CGFontCreateWithFontName.argtypes = ...
|
||||
|
||||
quartz.CGContextDrawImage.restype = ...
|
||||
quartz.CGContextDrawImage.argtypes= ...
|
||||
quartz.CGContextDrawImage.argtypes = ...
|
||||
|
||||
quartz.CGContextRelease.restype = ...
|
||||
quartz.CGContextRelease.argtypes= ...
|
||||
quartz.CGContextRelease.argtypes = ...
|
||||
|
||||
quartz.CGContextSetTextPosition.restype = ...
|
||||
quartz.CGContextSetTextPosition.argtypes= ...
|
||||
quartz.CGContextSetTextPosition.argtypes = ...
|
||||
|
||||
quartz.CGContextSetShouldAntialias.restype = ...
|
||||
quartz.CGContextSetShouldAntialias.argtypes= ...
|
||||
quartz.CGContextSetShouldAntialias.argtypes = ...
|
||||
|
||||
quartz.CGDataProviderCreateWithURL.restype = ...
|
||||
quartz.CGDataProviderCreateWithURL.argtypes= ...
|
||||
quartz.CGDataProviderCreateWithURL.argtypes = ...
|
||||
|
||||
quartz.CGFontCreateWithDataProvider.restype = ...
|
||||
quartz.CGFontCreateWithDataProvider.argtypes= ...
|
||||
quartz.CGFontCreateWithDataProvider.argtypes = ...
|
||||
|
||||
quartz.CGDisplayScreenSize.argtypes= ...
|
||||
quartz.CGDisplayScreenSize.argtypes = ...
|
||||
quartz.CGDisplayScreenSize.restype = ...
|
||||
|
||||
quartz.CGDisplayBounds.argtypes= ...
|
||||
quartz.CGDisplayBounds.argtypes = ...
|
||||
quartz.CGDisplayBounds.restype = ...
|
||||
|
||||
######################################################################
|
||||
|
@ -868,58 +868,58 @@ kCTFontItalicTrait = ...
|
|||
kCTFontBoldTrait = ...
|
||||
|
||||
ct.CTLineCreateWithAttributedString.restype = ...
|
||||
ct.CTLineCreateWithAttributedString.argtypes= ...
|
||||
ct.CTLineCreateWithAttributedString.argtypes = ...
|
||||
|
||||
ct.CTLineDraw.restype = ...
|
||||
ct.CTLineDraw.argtypes= ...
|
||||
ct.CTLineDraw.argtypes = ...
|
||||
|
||||
ct.CTFontGetBoundingRectsForGlyphs.restype = ...
|
||||
ct.CTFontGetBoundingRectsForGlyphs.argtypes= ...
|
||||
ct.CTFontGetBoundingRectsForGlyphs.argtypes = ...
|
||||
|
||||
ct.CTFontGetAdvancesForGlyphs.restype = ...
|
||||
ct.CTFontGetAdvancesForGlyphs.argtypes= ...
|
||||
ct.CTFontGetAdvancesForGlyphs.argtypes = ...
|
||||
|
||||
ct.CTFontGetAscent.restype = ...
|
||||
ct.CTFontGetAscent.argtypes= ...
|
||||
ct.CTFontGetAscent.argtypes = ...
|
||||
|
||||
ct.CTFontGetDescent.restype = ...
|
||||
ct.CTFontGetDescent.argtypes= ...
|
||||
ct.CTFontGetDescent.argtypes = ...
|
||||
|
||||
ct.CTFontGetSymbolicTraits.restype = ...
|
||||
ct.CTFontGetSymbolicTraits.argtypes= ...
|
||||
ct.CTFontGetSymbolicTraits.argtypes = ...
|
||||
|
||||
ct.CTFontGetGlyphsForCharacters.restype = ...
|
||||
ct.CTFontGetGlyphsForCharacters.argtypes= ...
|
||||
ct.CTFontGetGlyphsForCharacters.argtypes = ...
|
||||
|
||||
ct.CTFontCreateWithGraphicsFont.restype = ...
|
||||
ct.CTFontCreateWithGraphicsFont.argtypes= ...
|
||||
ct.CTFontCreateWithGraphicsFont.argtypes = ...
|
||||
|
||||
ct.CTFontCopyFamilyName.restype = ...
|
||||
ct.CTFontCopyFamilyName.argtypes= ...
|
||||
ct.CTFontCopyFamilyName.argtypes = ...
|
||||
|
||||
ct.CTFontCopyFullName.restype = ...
|
||||
ct.CTFontCopyFullName.argtypes= ...
|
||||
ct.CTFontCopyFullName.argtypes = ...
|
||||
|
||||
ct.CTFontCreateWithFontDescriptor.restype = ...
|
||||
ct.CTFontCreateWithFontDescriptor.argtypes= ...
|
||||
ct.CTFontCreateWithFontDescriptor.argtypes = ...
|
||||
|
||||
ct.CTFontCreateCopyWithAttributes.restype = ...
|
||||
ct.CTFontCreateCopyWithAttributes.argtypes= ...
|
||||
ct.CTFontCreateCopyWithAttributes.argtypes = ...
|
||||
|
||||
ct.CTFontDescriptorCreateWithAttributes.restype = ...
|
||||
ct.CTFontDescriptorCreateWithAttributes.argtypes= ...
|
||||
ct.CTFontDescriptorCreateWithAttributes.argtypes = ...
|
||||
|
||||
ct.CTTypesetterCreateWithAttributedString.restype = ...
|
||||
ct.CTTypesetterCreateWithAttributedString.argtypes= ...
|
||||
ct.CTTypesetterCreateWithAttributedString.argtypes = ...
|
||||
|
||||
ct.CTTypesetterCreateLine.restype = ...
|
||||
ct.CTTypesetterCreateLine.argtypes= ...
|
||||
ct.CTTypesetterCreateLine.argtypes = ...
|
||||
|
||||
ct.CTLineGetOffsetForStringIndex.restype = ...
|
||||
ct.CTLineGetOffsetForStringIndex.argtypes= ...
|
||||
ct.CTLineGetOffsetForStringIndex.argtypes = ...
|
||||
|
||||
ct.CTFontManagerCreateFontDescriptorsFromURL.restype = ...
|
||||
ct.CTFontManagerCreateFontDescriptorsFromURL.argtypes= ...
|
||||
ct.CTFontManagerCreateFontDescriptorsFromURL.argtypes = ...
|
||||
|
||||
######################################################################
|
||||
|
||||
|
|
|
@ -16,5 +16,5 @@ def cubehelix(
|
|||
maxSat: Scalar = 1.2,
|
||||
minLight: Scalar = 0.0,
|
||||
maxLight: Scalar = 1.0,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
) -> np.ndarray: ...
|
||||
|
|
|
@ -79,6 +79,4 @@ def calc_sq_distance(x1, y1, x2, y2): ...
|
|||
def _curve3_recursive_bezier(points, x1, y1, x2, y2, x3, y3, level=0): ...
|
||||
def _curve4_recursive_bezier(points, x1, y1, x2, y2, x3, y3, x4, y4, level=0): ...
|
||||
def curve3_bezier(p1: ArrayLike, p2: ArrayLike, p3: ArrayLike) -> ArrayLike: ...
|
||||
def curve4_bezier(
|
||||
p1: ArrayLike, p2: ArrayLike, p3: ArrayLike, p4: ArrayLike
|
||||
) -> ArrayLike: ...
|
||||
def curve4_bezier(p1: ArrayLike, p2: ArrayLike, p3: ArrayLike, p4: ArrayLike) -> ArrayLike: ...
|
||||
|
|
|
@ -10,7 +10,6 @@ from numpy.typing import ArrayLike, NDArray
|
|||
# Date: 04/03/2014
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
import numpy as np
|
||||
|
||||
from .meshdata import MeshData
|
||||
|
@ -60,6 +59,4 @@ def create_arrow(
|
|||
cone_radius: float | None = None,
|
||||
cone_length: float | None = None,
|
||||
) -> MeshData: ...
|
||||
def create_grid_mesh(
|
||||
xs: NDArray, ys: NDArray, zs: NDArray
|
||||
) -> tuple[NDArray, NDArray]: ...
|
||||
def create_grid_mesh(xs: NDArray, ys: NDArray, zs: NDArray) -> tuple[NDArray, NDArray]: ...
|
||||
|
|
|
@ -8,6 +8,4 @@ from numpy.typing import NDArray
|
|||
|
||||
import numpy as np
|
||||
|
||||
def isocurve(
|
||||
data: NDArray, level: float, connected: bool = False, extend_to_edge: bool = False
|
||||
): ...
|
||||
def isocurve(data: NDArray, level: float, connected: bool = False, extend_to_edge: bool = False): ...
|
||||
|
|
|
@ -2,7 +2,6 @@ from numpy.typing import ArrayLike
|
|||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
from itertools import permutations
|
||||
import numpy as np
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
from . import gl as gl # noqa
|
||||
from .wrappers import * # noqa
|
||||
from .context import (
|
||||
|
|
|
@ -28,9 +28,7 @@ class Buffer(GLObject):
|
|||
class DataBuffer(Buffer):
|
||||
def __init__(self, data: NDArray | None = None): ...
|
||||
def _prepare_data(self, data): ...
|
||||
def set_subdata(
|
||||
self, data: NDArray, offset: int = 0, copy: bool = False, **kwargs
|
||||
): ...
|
||||
def set_subdata(self, data: NDArray, offset: int = 0, copy: bool = False, **kwargs): ...
|
||||
def set_data(self, data: NDArray, copy: bool = False, **kwargs): ...
|
||||
@property
|
||||
def dtype(self): ...
|
||||
|
@ -61,9 +59,7 @@ class DataBufferView(DataBuffer):
|
|||
def id(self): ...
|
||||
@property
|
||||
def _last_dim(self): ...
|
||||
def set_subdata(
|
||||
self, data: NDArray, offset: int = 0, copy: bool = False, **kwargs
|
||||
): ...
|
||||
def set_subdata(self, data: NDArray, offset: int = 0, copy: bool = False, **kwargs): ...
|
||||
def set_data(self, data: NDArray, copy: bool = False, **kwargs): ...
|
||||
@property
|
||||
def offset(self): ...
|
||||
|
|
|
@ -23,9 +23,7 @@ def set_current_canvas(canvas): ...
|
|||
def forget_canvas(canvas): ...
|
||||
|
||||
class GLContext(BaseGlooFunctions):
|
||||
def __init__(
|
||||
self, config: Mapping | None = None, shared: None | GLContext = None
|
||||
): ...
|
||||
def __init__(self, config: Mapping | None = None, shared: None | GLContext = None): ...
|
||||
def __repr__(self): ...
|
||||
def _set_config(self, config): ...
|
||||
def create_shared(self, name: str, ref: Any): ...
|
||||
|
|
|
@ -66,6 +66,4 @@ class FrameBuffer(GLObject):
|
|||
@property
|
||||
def shape(self): ...
|
||||
def resize(self, shape: tuple[int, int]): ...
|
||||
def read(
|
||||
self, mode: str = "color", alpha: bool = True, crop: ArrayLike | None = None
|
||||
) -> ArrayLike: ...
|
||||
def read(self, mode: str = "color", alpha: bool = True, crop: ArrayLike | None = None) -> ArrayLike: ...
|
||||
|
|
|
@ -65,14 +65,10 @@ def glColorMask(red, green, blue, alpha): ...
|
|||
def glCompileShader(shader): ...
|
||||
|
||||
# void = glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, GLvoid* data)
|
||||
def glCompressedTexImage2D(
|
||||
target, level, internalformat, width, height, border, data
|
||||
): ...
|
||||
def glCompressedTexImage2D(target, level, internalformat, width, height, border, data): ...
|
||||
|
||||
# void = glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, GLvoid* data)
|
||||
def glCompressedTexSubImage2D(
|
||||
target, level, xoffset, yoffset, width, height, format, data
|
||||
): ...
|
||||
def glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, data): ...
|
||||
|
||||
# void = glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
|
||||
def glCopyTexImage2D(target, level, internalformat, x, y, width, height, border): ...
|
||||
|
|
|
@ -21,18 +21,10 @@ class BaseGLProxy(object):
|
|||
def glClearStencil(self, s): ...
|
||||
def glColorMask(self, red, green, blue, alpha): ...
|
||||
def glCompileShader(self, shader): ...
|
||||
def glCompressedTexImage2D(
|
||||
self, target, level, internalformat, width, height, border, data
|
||||
): ...
|
||||
def glCompressedTexSubImage2D(
|
||||
self, target, level, xoffset, yoffset, width, height, format, data
|
||||
): ...
|
||||
def glCopyTexImage2D(
|
||||
self, target, level, internalformat, x, y, width, height, border
|
||||
): ...
|
||||
def glCopyTexSubImage2D(
|
||||
self, target, level, xoffset, yoffset, x, y, width, height
|
||||
): ...
|
||||
def glCompressedTexImage2D(self, target, level, internalformat, width, height, border, data): ...
|
||||
def glCompressedTexSubImage2D(self, target, level, xoffset, yoffset, width, height, format, data): ...
|
||||
def glCopyTexImage2D(self, target, level, internalformat, x, y, width, height, border): ...
|
||||
def glCopyTexSubImage2D(self, target, level, xoffset, yoffset, x, y, width, height): ...
|
||||
def glCreateProgram(
|
||||
self,
|
||||
): ...
|
||||
|
@ -60,9 +52,7 @@ class BaseGLProxy(object):
|
|||
def glFlush(
|
||||
self,
|
||||
): ...
|
||||
def glFramebufferRenderbuffer(
|
||||
self, target, attachment, renderbuffertarget, renderbuffer
|
||||
): ...
|
||||
def glFramebufferRenderbuffer(self, target, attachment, renderbuffertarget, renderbuffer): ...
|
||||
def glFramebufferTexture2D(self, target, attachment, textarget, texture, level): ...
|
||||
def glFrontFace(self, mode): ...
|
||||
def glCreateBuffer(
|
||||
|
@ -129,9 +119,7 @@ class BaseGLProxy(object):
|
|||
def glTexImage2D(self, target, level, internalformat, format, type, pixels): ...
|
||||
def glTexParameterf(self, target, pname, param): ...
|
||||
def glTexParameteri(self, target, pname, param): ...
|
||||
def glTexSubImage2D(
|
||||
self, target, level, xoffset, yoffset, format, type, pixels
|
||||
): ...
|
||||
def glTexSubImage2D(self, target, level, xoffset, yoffset, format, type, pixels): ...
|
||||
def glUniform1f(self, location, v1): ...
|
||||
def glUniform2f(self, location, v1, v2): ...
|
||||
def glUniform3f(self, location, v1, v2, v3): ...
|
||||
|
|
|
@ -5,12 +5,8 @@ import OpenGL.GL.framebufferobjects as FBO
|
|||
def glBindAttribLocation(program, index, name): ...
|
||||
def glBufferData(target, data, usage): ...
|
||||
def glBufferSubData(target, offset, data): ...
|
||||
def glCompressedTexImage2D(
|
||||
target, level, internalformat, width, height, border, data
|
||||
): ...
|
||||
def glCompressedTexSubImage2D(
|
||||
target, level, xoffset, yoffset, width, height, format, data
|
||||
): ...
|
||||
def glCompressedTexImage2D(target, level, internalformat, width, height, border, data): ...
|
||||
def glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, data): ...
|
||||
def glDeleteBuffer(buffer): ...
|
||||
def glDeleteFramebuffer(framebuffer): ...
|
||||
def glDeleteRenderbuffer(renderbuffer): ...
|
||||
|
|
|
@ -46,9 +46,7 @@ class Program(GLObject):
|
|||
_gtypes: dict = ...
|
||||
|
||||
# ---------------------------------
|
||||
def __init__(
|
||||
self, vert: str | None = None, frag: str | None = None, count: int | None = 0
|
||||
): ...
|
||||
def __init__(self, vert: str | None = None, frag: str | None = None, count: int | None = 0): ...
|
||||
def set_shaders(
|
||||
self,
|
||||
vert: str,
|
||||
|
|
|
@ -91,9 +91,7 @@ class BaseGlooFunctions(object):
|
|||
# glClear, glClearColor, glClearDepthf, glClearStencil
|
||||
#
|
||||
|
||||
def clear(
|
||||
self, color=True, depth: bool | float = True, stencil: bool | int = True
|
||||
): ...
|
||||
def clear(self, color=True, depth: bool | float = True, stencil: bool | int = True): ...
|
||||
def set_clear_color(self, color="black", alpha: None | float = None): ...
|
||||
def set_clear_depth(self, depth: float = 1.0): ...
|
||||
def set_clear_stencil(self, index: int = 0): ...
|
||||
|
@ -145,11 +143,7 @@ class BaseGlooFunctions(object):
|
|||
#
|
||||
|
||||
def get_state_presets(self) -> Mapping: ...
|
||||
def set_state(
|
||||
self,
|
||||
preset: Literal["opaque", "translucent", "additive"] | None = None,
|
||||
**kwargs
|
||||
): ...
|
||||
def set_state(self, preset: Literal["opaque", "translucent", "additive"] | None = None, **kwargs): ...
|
||||
|
||||
#
|
||||
# glFinish, glFlush, glReadPixels, glHint
|
||||
|
|
|
@ -40,6 +40,4 @@ class WavefrontWriter(object):
|
|||
def writeLine(self, text): ...
|
||||
def writeTuple(self, val, what): ...
|
||||
def writeFace(self, val, what="f"): ...
|
||||
def writeMesh(
|
||||
self, vertices, faces, normals, values, name="", reshape_faces=True
|
||||
): ...
|
||||
def writeMesh(self, vertices, faces, normals, values, name="", reshape_faces=True): ...
|
||||
|
|
|
@ -8,14 +8,7 @@ from ..scene import SceneCanvas
|
|||
from .plotwidget import PlotWidget
|
||||
|
||||
class Fig(SceneCanvas):
|
||||
def __init__(
|
||||
self,
|
||||
bgcolor: Color|str = "w",
|
||||
size: tuple = ...,
|
||||
show: bool = True,
|
||||
keys="interactive",
|
||||
**kwargs
|
||||
): ...
|
||||
def __init__(self, bgcolor: Color | str = "w", size: tuple = ..., show: bool = True, keys="interactive", **kwargs): ...
|
||||
@property
|
||||
def plot_widgets(self): ...
|
||||
def __getitem__(self, idxs): ...
|
||||
|
|
|
@ -24,16 +24,11 @@ class PlotWidget(scene.Widget):
|
|||
self,
|
||||
data: ArrayLike,
|
||||
bins: ArrayLike | int = 10,
|
||||
color: Color|str = "w",
|
||||
color: Color | str = "w",
|
||||
orientation: Literal["h", "v"] = "h",
|
||||
) -> Polygon: ...
|
||||
def image(
|
||||
self,
|
||||
data: NDArray,
|
||||
cmap: str = "cubehelix",
|
||||
clim: str | tuple = "auto",
|
||||
fg_color: Color | None = None,
|
||||
**kwargs
|
||||
self, data: NDArray, cmap: str = "cubehelix", clim: str | tuple = "auto", fg_color: Color | None = None, **kwargs
|
||||
) -> Image: ...
|
||||
def mesh(
|
||||
self,
|
||||
|
@ -49,13 +44,13 @@ class PlotWidget(scene.Widget):
|
|||
def plot(
|
||||
self,
|
||||
data,
|
||||
color: Color|str = "k",
|
||||
color: Color | str = "k",
|
||||
symbol: str | None = None,
|
||||
line_kind: str = "-",
|
||||
width: float = 1.0,
|
||||
marker_size: float = 10.0,
|
||||
edge_color: Color|str = "k",
|
||||
face_color: Color|str = "b",
|
||||
edge_color: Color | str = "k",
|
||||
face_color: Color | str = "b",
|
||||
edge_width: float = 1.0,
|
||||
title: str | None = None,
|
||||
xlabel: str | None = None,
|
||||
|
@ -81,7 +76,7 @@ class PlotWidget(scene.Widget):
|
|||
method: Literal["mip", "iso", "translucent", "additive"] = "mip",
|
||||
threshold: float | None = None,
|
||||
cmap: str = "grays",
|
||||
**kwargs
|
||||
**kwargs,
|
||||
) -> Volume: ...
|
||||
def surface(self, zdata: ArrayLike, **kwargs): ...
|
||||
def colorbar(
|
||||
|
@ -92,5 +87,5 @@ class PlotWidget(scene.Widget):
|
|||
clim: tuple[float, float] = ...,
|
||||
border_width: float = 0.0,
|
||||
border_color: str | Color = "black",
|
||||
**kwargs
|
||||
**kwargs,
|
||||
) -> ColorBarWidget: ...
|
||||
|
|
|
@ -15,13 +15,7 @@ class ArcballCamera(Base3DRotationCamera):
|
|||
|
||||
_state_props = ...
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
fov: float = 45.0,
|
||||
distance: None | float = None,
|
||||
translate_speed: float = 1.0,
|
||||
**kwargs
|
||||
): ...
|
||||
def __init__(self, fov: float = 45.0, distance: None | float = None, translate_speed: float = 1.0, **kwargs): ...
|
||||
def _update_rotation(self, event): ...
|
||||
def _get_rotation_tr(self): ...
|
||||
def _dist_to_trans(self, dist): ...
|
||||
|
|
|
@ -7,7 +7,6 @@ from numpy.typing import ArrayLike
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
from ...util import keys
|
||||
from ..node import Node
|
||||
from ...visuals.transforms import (
|
||||
|
@ -87,7 +86,7 @@ class BaseCamera(Node):
|
|||
self,
|
||||
camera: BaseCamera,
|
||||
props: ArrayLike | None = None,
|
||||
axis: Literal["y" ,"x"] | None = None,
|
||||
axis: Literal["y", "x"] | None = None,
|
||||
): ...
|
||||
|
||||
# Event-related methods
|
||||
|
|
|
@ -4,11 +4,9 @@ from vispy.util.event import Event
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import math
|
||||
import numpy as np
|
||||
|
||||
|
||||
from ...util.quaternion import Quaternion
|
||||
from ...util import keys
|
||||
from .perspective import PerspectiveCamera
|
||||
|
|
|
@ -4,20 +4,16 @@ from vispy.util.event import Event
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import numpy as np
|
||||
|
||||
from .panzoom import PanZoomCamera
|
||||
from ...visuals.transforms.nonlinear import MagnifyTransform, Magnify1DTransform
|
||||
|
||||
|
||||
class MagnifyCamera(PanZoomCamera):
|
||||
|
||||
transform_class = ...
|
||||
|
||||
def __init__(
|
||||
self, size_factor: float = 0.25, radius_ratio: float = 0.9, **kwargs
|
||||
): ...
|
||||
def __init__(self, size_factor: float = 0.25, radius_ratio: float = 0.9, **kwargs): ...
|
||||
def _viewbox_set(self, viewbox): ...
|
||||
def _viewbox_unset(self, viewbox): ...
|
||||
def viewbox_mouse_event(self, event: Event): ...
|
||||
|
|
|
@ -5,7 +5,6 @@ from vispy.util.event import Event
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import numpy as np
|
||||
|
||||
from .base_camera import BaseCamera
|
||||
|
|
|
@ -5,7 +5,6 @@ from vispy._typing import Scalar
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import math
|
||||
import numpy as np
|
||||
|
||||
|
@ -17,13 +16,7 @@ class PerspectiveCamera(BaseCamera):
|
|||
|
||||
_state_props = ...
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
fov: float = 60.0,
|
||||
scale_factor: Scalar | None = None,
|
||||
center=None,
|
||||
**kwargs
|
||||
): ...
|
||||
def __init__(self, fov: float = 60.0, scale_factor: Scalar | None = None, center=None, **kwargs): ...
|
||||
def viewbox_mouse_event(self, event: Event): ...
|
||||
@property
|
||||
def scale_factor(self): ...
|
||||
|
|
|
@ -21,7 +21,7 @@ class TurntableCamera(Base3DRotationCamera):
|
|||
roll: float = 0.0,
|
||||
distance: None | float = None,
|
||||
translate_speed: float = 1.0,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def elevation(self): ...
|
||||
|
|
|
@ -14,7 +14,6 @@ from ..app.canvas import Canvas, DrawEvent
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import weakref
|
||||
import numpy as np
|
||||
|
||||
|
@ -29,7 +28,6 @@ from .subscene import SubScene
|
|||
from .events import SceneMouseEvent
|
||||
from .widgets import Widget
|
||||
|
||||
|
||||
class SceneCanvas(app.Canvas, Frozen):
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -51,7 +49,7 @@ class SceneCanvas(app.Canvas, Frozen):
|
|||
dpi: None | float = None,
|
||||
always_on_top: bool = False,
|
||||
px_scale: int = 1,
|
||||
bgcolor: Color|str = "black",
|
||||
bgcolor: Color | str = "black",
|
||||
): ...
|
||||
@property
|
||||
def scene(self): ...
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
from ..util.event import Event
|
||||
|
||||
class SceneMouseEvent(Event):
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
from .node import Node
|
||||
|
||||
class SubScene(Node):
|
||||
|
|
|
@ -79,5 +79,3 @@ Tube = ...
|
|||
Volume = ...
|
||||
Windbarb = ...
|
||||
XYZAxis = ...
|
||||
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ class ColorBarWidget(Widget):
|
|||
border_color: str | Color = "black",
|
||||
padding: tuple = ...,
|
||||
axis_ratio: float = 0.05,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def on_resize(self, event: Event): ...
|
||||
def _update_colorbar(self): ...
|
||||
|
|
|
@ -26,12 +26,10 @@ VERTEX_SHADER: str = ...
|
|||
FRAGMENT_SHADER: str = ...
|
||||
|
||||
class Console(Widget):
|
||||
def __init__(
|
||||
self, text_color: Color|str = "black", font_size: float = 12.0, **kwargs
|
||||
): ...
|
||||
def __init__(self, text_color: Color | str = "black", font_size: float = 12.0, **kwargs): ...
|
||||
def on_resize(self, event: Event): ...
|
||||
def clear(self): ...
|
||||
def write(self, text: str = "", wrap: str|bool = True): ...
|
||||
def write(self, text: str = "", wrap: str | bool = True): ...
|
||||
@property
|
||||
def text_color(self): ...
|
||||
@text_color.setter
|
||||
|
@ -59,6 +57,6 @@ class ConsoleVisual(Visual):
|
|||
def _prepare_draw(self, view): ...
|
||||
def _prepare_transforms(self, view): ...
|
||||
def clear(self): ...
|
||||
def write(self, text: str = "", wrap: str|bool = True): ...
|
||||
def write(self, text: str = "", wrap: str | bool = True): ...
|
||||
def _do_pending_writes(self): ...
|
||||
def _insert_text_buf(self, line, idx): ...
|
||||
|
|
|
@ -4,7 +4,6 @@ from vispy.scene.widgets.widget import Widget
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import numpy as np
|
||||
|
||||
from vispy.geometry import Rect
|
||||
|
@ -23,27 +22,13 @@ class Grid(Widget):
|
|||
col: int | None = None,
|
||||
row_span: int = 1,
|
||||
col_span: int = 1,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def remove_widget(self, widget: Widget): ...
|
||||
def resize_widget(self, widget: Widget, row_span: int, col_span: int): ...
|
||||
def _prepare_draw(self, view): ...
|
||||
def add_grid(
|
||||
self,
|
||||
row: int | None = None,
|
||||
col: int | None = None,
|
||||
row_span: int = 1,
|
||||
col_span: int = 1,
|
||||
**kwargs
|
||||
): ...
|
||||
def add_view(
|
||||
self,
|
||||
row: int | None = None,
|
||||
col: int | None = None,
|
||||
row_span: int = 1,
|
||||
col_span: int = 1,
|
||||
**kwargs
|
||||
): ...
|
||||
def add_grid(self, row: int | None = None, col: int | None = None, row_span: int = 1, col_span: int = 1, **kwargs): ...
|
||||
def add_view(self, row: int | None = None, col: int | None = None, row_span: int = 1, col_span: int = 1, **kwargs): ...
|
||||
def next_row(self): ...
|
||||
@property
|
||||
def grid_size(self): ...
|
||||
|
@ -59,13 +44,9 @@ class Grid(Widget):
|
|||
@staticmethod
|
||||
def _add_gridding_height_constraints(solver, height_grid): ...
|
||||
@staticmethod
|
||||
def _add_stretch_constraints(
|
||||
solver, width_grid, height_grid, grid_widgets, widget_grid
|
||||
): ...
|
||||
def _add_stretch_constraints(solver, width_grid, height_grid, grid_widgets, widget_grid): ...
|
||||
@staticmethod
|
||||
def _add_widget_dim_constraints(
|
||||
solver, width_grid, height_grid, total_var_w, total_var_h, grid_widgets
|
||||
): ...
|
||||
def _add_widget_dim_constraints(solver, width_grid, height_grid, total_var_w, total_var_h, grid_widgets): ...
|
||||
def _recreate_solver(self): ...
|
||||
def _update_child_widget_dim(self): ...
|
||||
@property
|
||||
|
|
|
@ -4,7 +4,6 @@ from vispy.scene.widgets.widget import Widget
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import numpy as np
|
||||
|
||||
from ..visuals import Compound
|
||||
|
@ -25,7 +24,7 @@ class Widget(Compound):
|
|||
bgcolor=None,
|
||||
padding: int = 0,
|
||||
margin: int = 0,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def pos(self): ...
|
||||
|
|
|
@ -5,7 +5,6 @@ from numpy.typing import ArrayLike
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import sys
|
||||
import os
|
||||
import warnings
|
||||
|
@ -35,6 +34,4 @@ bad_examples: list = ...
|
|||
def _skip_example(fname): ...
|
||||
def _examples(fnames_str): ...
|
||||
@nottest
|
||||
def test(
|
||||
label: str = "full", extra_arg_string: str | ArrayLike = "", coverage: bool = False
|
||||
): ...
|
||||
def test(label: str = "full", extra_arg_string: str | ArrayLike = "", coverage: bool = False): ...
|
||||
|
|
|
@ -27,12 +27,7 @@ from . import IS_CI
|
|||
tester: None = ...
|
||||
|
||||
def _get_tester(): ...
|
||||
def assert_image_approved(
|
||||
image: NDArray | Literal["screenshot"],
|
||||
standard_file: str,
|
||||
message: str | None = None,
|
||||
**kwargs
|
||||
): ...
|
||||
def assert_image_approved(image: NDArray | Literal["screenshot"], standard_file: str, message: str | None = None, **kwargs): ...
|
||||
def assert_image_match(
|
||||
im1: NDArray,
|
||||
im2: NDArray,
|
||||
|
|
|
@ -8,7 +8,6 @@ from typing import Optional, Any
|
|||
import numpy as np
|
||||
from numpy.typing import ArrayLike, DTypeLike
|
||||
|
||||
|
||||
def compare_render(
|
||||
orig_data: ArrayLike,
|
||||
rendered_data: ArrayLike,
|
||||
|
|
|
@ -60,9 +60,7 @@ def get_config_keys() -> Mapping: ...
|
|||
def _get_config_fname(): ...
|
||||
def _load_config(): ...
|
||||
def save_config(**kwargs): ...
|
||||
def set_data_dir(
|
||||
directory: str | None = None, create: bool = False, save: bool = False
|
||||
): ...
|
||||
def set_data_dir(directory: str | None = None, create: bool = False, save: bool = False): ...
|
||||
def _enable_profiling(): ...
|
||||
|
||||
_profiler: None = ...
|
||||
|
|
|
@ -39,9 +39,7 @@ class Event(object):
|
|||
_event_repr_depth: int = ...
|
||||
|
||||
class EventEmitter(object):
|
||||
def __init__(
|
||||
self, source: Any = None, type: str | None = None, event_class: Event = ...
|
||||
): ...
|
||||
def __init__(self, source: Any = None, type: str | None = None, event_class: Event = ...): ...
|
||||
@property
|
||||
def ignore_callback_errors(self): ...
|
||||
@ignore_callback_errors.setter
|
||||
|
@ -92,9 +90,7 @@ class EmitterGroup(EventEmitter):
|
|||
def __iter__(self): ...
|
||||
def block_all(self): ...
|
||||
def unblock_all(self): ...
|
||||
def connect(
|
||||
self, callback, ref=False, position="first", before=None, after=None
|
||||
): ...
|
||||
def connect(self, callback, ref=False, position="first", before=None, after=None): ...
|
||||
def disconnect(self, callback=None): ...
|
||||
def _connect_emitters(self, connect): ...
|
||||
@property
|
||||
|
|
|
@ -16,9 +16,7 @@ from ..util.config import config
|
|||
###############################################################################
|
||||
# Vispy data directory
|
||||
|
||||
def load_data_file(
|
||||
fname: str, directory: str | None = None, force_download: str | bool = False
|
||||
) -> str: ...
|
||||
def load_data_file(fname: str, directory: str | None = None, force_download: str | bool = False) -> str: ...
|
||||
|
||||
###############################################################################
|
||||
# File downloading (most adapted from mne-python)
|
||||
|
@ -38,9 +36,7 @@ class ProgressBar(object):
|
|||
spinner: bool = False,
|
||||
): ...
|
||||
def update(self, cur_value: float, mesg: str | None = None): ...
|
||||
def update_with_increment_value(
|
||||
self, increment_value: int, mesg: str | None = None
|
||||
): ...
|
||||
def update_with_increment_value(self, increment_value: int, mesg: str | None = None): ...
|
||||
|
||||
def _chunk_read(response, local_file, chunk_size=65536, initial_size=0): ...
|
||||
def _chunk_write(chunk, local_file, progress): ...
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
__all__ = ["list_fonts"]
|
||||
|
||||
from ._triage import (
|
||||
|
||||
list_fonts as list_fonts,
|
||||
) # noqa, analysis:ignore
|
||||
from ._vispy_fonts import _vispy_fonts as _vispy_fonts # noqa, analysis:ignore
|
||||
|
|
|
@ -46,9 +46,7 @@ _lh = ... # needs _lf to exist
|
|||
|
||||
logging_types = ...
|
||||
|
||||
def set_log_level(
|
||||
verbose: bool | str | int | None, match: str | None = None, return_old: bool = False
|
||||
): ...
|
||||
def set_log_level(verbose: bool | str | int | None, match: str | None = None, return_old: bool = False): ...
|
||||
|
||||
class use_log_level(object):
|
||||
|
||||
|
@ -69,9 +67,7 @@ def log_exception(level: str = "warning", tb_skip: int = 2): ...
|
|||
|
||||
logger.log_exception = ... # make this easier to reach
|
||||
|
||||
def _handle_exception(
|
||||
ignore_callback_errors, print_callback_errors, obj, cb_event=None, node=None
|
||||
): ...
|
||||
def _handle_exception(ignore_callback_errors, print_callback_errors, obj, cb_event=None, node=None): ...
|
||||
def _serialize_buffer(buffer, array_serialization=None): ...
|
||||
|
||||
class NumPyJSONEncoder(json.JSONEncoder):
|
||||
|
|
|
@ -43,9 +43,7 @@ class Close(Command):
|
|||
|
||||
# --------------------------------------------------------------------- Arc ---
|
||||
class Arc(Command):
|
||||
def __init__(
|
||||
self, r1=1, r2=1, angle=..., large=True, sweep=True, x=0, y=0, relative=True
|
||||
): ...
|
||||
def __init__(self, r1=1, r2=1, angle=..., large=True, sweep=True, x=0, y=0, relative=True): ...
|
||||
def vertices(self, current, previous=None): ...
|
||||
|
||||
# ------------------------------------------------------------------- Cubic ---
|
||||
|
|
|
@ -4,7 +4,6 @@ from numpy.typing import ArrayLike, NDArray
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
# Note: we use functions (e.g. sin) from math module because they're faster
|
||||
|
||||
import math
|
||||
|
@ -13,11 +12,7 @@ import numpy as np
|
|||
def translate(offset: ArrayLike, dtype: np.dtype | None = None) -> NDArray: ...
|
||||
def scale(s: ArrayLike, dtype: np.dtype | None = None) -> NDArray: ...
|
||||
def rotate(angle: float, axis: NDArray, dtype=None) -> NDArray: ...
|
||||
def ortho(
|
||||
left: float, right: float, bottom: float, top: float, znear: float, zfar: float
|
||||
) -> NDArray: ...
|
||||
def frustum(
|
||||
left: float, right: float, bottom: float, top: float, znear: float, zfar: float
|
||||
) -> NDArray: ...
|
||||
def ortho(left: float, right: float, bottom: float, top: float, znear: float, zfar: float) -> NDArray: ...
|
||||
def frustum(left: float, right: float, bottom: float, top: float, znear: float, zfar: float) -> NDArray: ...
|
||||
def perspective(fovy: float, aspect: float, znear: float, zfar: float) -> NDArray: ...
|
||||
def affine_map(points1, points2): ...
|
||||
|
|
|
@ -6,11 +6,6 @@ from numpy.typing import ArrayLike
|
|||
|
||||
import subprocess
|
||||
|
||||
|
||||
def use(app: str | None = None, gl: str | None = None): ...
|
||||
def run_subprocess(
|
||||
command: ArrayLike, return_code: bool = False, **kwargs
|
||||
) -> tuple[str, str, int]: ...
|
||||
def run_subprocess(command: ArrayLike, return_code: bool = False, **kwargs) -> tuple[str, str, int]: ...
|
||||
def test(*args, **kwargs): ...
|
||||
|
||||
|
||||
|
|
|
@ -15,12 +15,8 @@ def get_default_clim_from_dtype(dtype): ...
|
|||
def get_default_clim_from_data(data): ...
|
||||
|
||||
class _ScaledTextureMixin:
|
||||
def __init__(
|
||||
self, data: np.ndarray | tuple | None | None = None, **texture_kwargs
|
||||
): ...
|
||||
def init_scaling_texture(
|
||||
self, data=None, internalformat=None, **texture_kwargs
|
||||
): ...
|
||||
def __init__(self, data: np.ndarray | tuple | None | None = None, **texture_kwargs): ...
|
||||
def init_scaling_texture(self, data=None, internalformat=None, **texture_kwargs): ...
|
||||
def _get_texture_format_for_data(self, data, internalformat): ...
|
||||
@property
|
||||
def clim(self): ...
|
||||
|
@ -29,9 +25,7 @@ class _ScaledTextureMixin:
|
|||
def clim_normalized(self): ...
|
||||
@property
|
||||
def is_normalized(self): ...
|
||||
def normalize_value(
|
||||
self, val: NDArray | float | int, input_data_dtype: np.dtype
|
||||
): ...
|
||||
def normalize_value(self, val: NDArray | float | int, input_data_dtype: np.dtype): ...
|
||||
def _data_num_channels(self, data): ...
|
||||
def _create_rep_array(self, data): ...
|
||||
def check_data_format(self, data): ...
|
||||
|
|
|
@ -34,7 +34,7 @@ class AxisVisual(CompoundVisual):
|
|||
scale_type: str = "linear",
|
||||
axis_color: tuple = ...,
|
||||
tick_color: tuple = ...,
|
||||
text_color: Color|str = "w",
|
||||
text_color: Color | str = "w",
|
||||
minor_tick_length: float = 5,
|
||||
major_tick_length: float = 10,
|
||||
tick_width: float = 2,
|
||||
|
|
|
@ -27,7 +27,7 @@ class _BorderVisual(Visual):
|
|||
halfdim: tuple[float, float],
|
||||
border_width: float = 1.0,
|
||||
border_color: str | Color | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@staticmethod
|
||||
def _prepare_transforms(view): ...
|
||||
|
|
|
@ -25,7 +25,7 @@ class BoxVisual(CompoundVisual):
|
|||
face_colors: NDArray | None = None,
|
||||
color: Color = ...,
|
||||
edge_color: tuple | Color | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def mesh(self): ...
|
||||
|
|
|
@ -18,10 +18,8 @@ class AggFastPathCollection(Collection):
|
|||
transform: str | None = None,
|
||||
vertex: str | None = None,
|
||||
fragment: str | None = None,
|
||||
**kwargs
|
||||
): ...
|
||||
def append(
|
||||
self, P: NDArray, closed: bool = False, itemsize: int | None = None, **kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def append(self, P: NDArray, closed: bool = False, itemsize: int | None = None, **kwargs): ...
|
||||
def bake(self, P, key="curr", closed=False, itemsize=None): ...
|
||||
def draw(self, mode="triangle_strip"): ...
|
||||
|
|
|
@ -19,9 +19,7 @@ class AggPathCollection(Collection):
|
|||
transform: Transform | None = None,
|
||||
vertex: str | None = None,
|
||||
fragment: str | None = None,
|
||||
**kwargs
|
||||
): ...
|
||||
def append(
|
||||
self, P: NDArray, closed: bool = False, itemsize: int | None = None, **kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def append(self, P: NDArray, closed: bool = False, itemsize: int | None = None, **kwargs): ...
|
||||
def draw(self, mode="triangles"): ...
|
||||
|
|
|
@ -16,5 +16,5 @@ class AggPointCollection(RawPointCollection):
|
|||
transform: Transform | None = None,
|
||||
vertex: str | None = None,
|
||||
fragment: str | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
|
|
|
@ -17,6 +17,6 @@ class AggSegmentCollection(Collection):
|
|||
transform: str | None = None,
|
||||
vertex: str | None = None,
|
||||
fragment: str | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def append(self, P0, P1, itemsize: int | None = None, **kwargs): ...
|
||||
|
|
|
@ -31,7 +31,5 @@ class ArrayList(object):
|
|||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, data): ...
|
||||
def __delitem__(self, key): ...
|
||||
def insert(
|
||||
self, index: int, data: ArrayLike, itemsize: int | ArrayLike | None = None
|
||||
): ...
|
||||
def insert(self, index: int, data: ArrayLike, itemsize: int | ArrayLike | None = None): ...
|
||||
def append(self, data: ArrayLike, itemsize: int | ArrayLike | None = None): ...
|
||||
|
|
|
@ -26,7 +26,7 @@ class Collection(BaseCollection):
|
|||
vertex: str | tuple[str, ...],
|
||||
fragment: str | tuple[str, ...],
|
||||
program=None,
|
||||
**kwargs: str
|
||||
**kwargs: str,
|
||||
): ...
|
||||
def view(self, transform, viewport=None): ...
|
||||
def __getitem__(self, key): ...
|
||||
|
|
|
@ -18,8 +18,6 @@ class RawPathCollection(Collection):
|
|||
transform: Transform | None = None,
|
||||
vertex: str | None = None,
|
||||
fragment: str | None = None,
|
||||
**kwargs
|
||||
): ...
|
||||
def append(
|
||||
self, P: NDArray, closed: bool = False, itemsize: int | None = None, **kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def append(self, P: NDArray, closed: bool = False, itemsize: int | None = None, **kwargs): ...
|
||||
|
|
|
@ -7,7 +7,6 @@ from numpy.typing import ArrayLike, NDArray
|
|||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
import numpy as np
|
||||
from ... import glsl
|
||||
from .collection import Collection
|
||||
|
@ -20,6 +19,6 @@ class RawPointCollection(Collection):
|
|||
transform: Transform | None = None,
|
||||
vertex: str | None = None,
|
||||
fragment: str | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def append(self, P: NDArray, itemsize: int | None = None, **kwargs): ...
|
||||
|
|
|
@ -18,6 +18,6 @@ class RawPolygonCollection(Collection):
|
|||
transform=None,
|
||||
vertex: str | tuple[str, ...] | None = None,
|
||||
fragment: str | tuple[str, ...] | None = None,
|
||||
**kwargs: str
|
||||
**kwargs: str,
|
||||
): ...
|
||||
def append(self, points: NDArray, **kwargs): ...
|
||||
|
|
|
@ -17,6 +17,6 @@ class RawSegmentCollection(Collection):
|
|||
transform: str | None = None,
|
||||
vertex: str | None = None,
|
||||
fragment: str | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def append(self, P0, P1, itemsize: int | None = None, **kwargs): ...
|
||||
|
|
|
@ -11,7 +11,5 @@ from .collection import Collection
|
|||
from ..transforms import NullTransform
|
||||
|
||||
class RawTriangleCollection(Collection):
|
||||
def __init__(
|
||||
self, user_dtype=None, transform=None, vertex=None, fragment=None, **kwargs
|
||||
): ...
|
||||
def __init__(self, user_dtype=None, transform=None, vertex=None, fragment=None, **kwargs): ...
|
||||
def append(self, points: NDArray, indices: NDArray, **kwargs): ...
|
||||
|
|
|
@ -18,5 +18,5 @@ class CubeVisual(BoxVisual):
|
|||
face_colors: NDArray | None = None,
|
||||
color: Color = ...,
|
||||
edge_color: tuple | Color | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
|
|
|
@ -5,7 +5,6 @@ from numpy.typing import ArrayLike
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import numpy as np
|
||||
from .polygon import PolygonVisual
|
||||
|
||||
|
@ -13,14 +12,14 @@ class EllipseVisual(PolygonVisual):
|
|||
def __init__(
|
||||
self,
|
||||
center: ArrayLike | None = None,
|
||||
color: Color|str = "black",
|
||||
color: Color | str = "black",
|
||||
border_color: Color | None = None,
|
||||
border_width: float = 1,
|
||||
radius: float | tuple = ...,
|
||||
start_angle: float = 0.0,
|
||||
span_angle: float = 360.0,
|
||||
num_segments: int = 100,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@staticmethod
|
||||
def _generate_vertices(center, radius, start_angle, span_angle, num_segments): ...
|
||||
|
|
|
@ -19,9 +19,7 @@ class PlanesClipper(Filter):
|
|||
|
||||
FRAG_CODE: str = ...
|
||||
|
||||
def __init__(
|
||||
self, clipping_planes: Optional[np.ndarray] = None, coord_system: str = "scene"
|
||||
): ...
|
||||
def __init__(self, clipping_planes: Optional[np.ndarray] = None, coord_system: str = "scene"): ...
|
||||
@property
|
||||
def coord_system(self) -> str: ...
|
||||
def _attach(self, visual): ...
|
||||
|
|
|
@ -9,9 +9,7 @@ from ...color import colormap, Color
|
|||
class IsolineFilter(Filter):
|
||||
FRAG_SHADER: str = ...
|
||||
|
||||
def __init__(
|
||||
self, level=2.0, width=2.0, antialias=1.0, color="black", **kwargs
|
||||
): ...
|
||||
def __init__(self, level=2.0, width=2.0, antialias=1.0, color="black", **kwargs): ...
|
||||
@property
|
||||
def level(self): ...
|
||||
@level.setter
|
||||
|
|
|
@ -14,9 +14,7 @@ from vispy.visuals.filters import Filter
|
|||
from ...color import Color
|
||||
|
||||
class TextureFilter(Filter):
|
||||
def __init__(
|
||||
self, texture: tuple | ArrayLike, texcoords: ArrayLike, enabled: bool = True
|
||||
): ...
|
||||
def __init__(self, texture: tuple | ArrayLike, texcoords: ArrayLike, enabled: bool = True): ...
|
||||
@property
|
||||
def enabled(self): ...
|
||||
@enabled.setter
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
from numpy.typing import ArrayLike, NDArray
|
||||
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
|
|
@ -7,12 +7,7 @@ from ..util import _straight_line_vertices
|
|||
import numpy as np
|
||||
|
||||
class NetworkxCoordinates:
|
||||
def __init__(
|
||||
self,
|
||||
graph=None,
|
||||
layout: str | dict | Iterable[np.float32] | None = None,
|
||||
**kwargs: Mapping
|
||||
): ...
|
||||
def __init__(self, graph=None, layout: str | dict | Iterable[np.float32] | None = None, **kwargs: Mapping): ...
|
||||
def __call__(self, adjacency_mat, directed: bool = False): ...
|
||||
@property
|
||||
def adj(self): ...
|
||||
|
|
|
@ -7,7 +7,6 @@ from numpy.typing import ArrayLike, NDArray
|
|||
import numpy as np
|
||||
from numpy.random import RandomState
|
||||
|
||||
|
||||
from ..util import _straight_line_vertices
|
||||
|
||||
def random(
|
||||
|
|
|
@ -4,7 +4,6 @@ from vispy.util.svg.color import Color
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
from .image import ImageVisual
|
||||
from ..color import Color
|
||||
from .shaders import Function
|
||||
|
@ -12,7 +11,7 @@ from .shaders import Function
|
|||
_GRID_COLOR: str = ...
|
||||
|
||||
class GridLinesVisual(ImageVisual):
|
||||
def __init__(self, scale: tuple = ..., color: Color|str = "w"): ...
|
||||
def __init__(self, scale: tuple = ..., color: Color | str = "w"): ...
|
||||
@property
|
||||
def size(self): ...
|
||||
def _prepare_transforms(self, view): ...
|
||||
|
|
|
@ -5,13 +5,7 @@ from ..geometry import create_grid_mesh, MeshData
|
|||
|
||||
class GridMeshVisual(MeshVisual):
|
||||
def __init__(
|
||||
self,
|
||||
xs: NDArray,
|
||||
ys: NDArray,
|
||||
zs: NDArray,
|
||||
colors: NDArray | None = None,
|
||||
shading: str | None = "smooth",
|
||||
**kwargs
|
||||
self, xs: NDArray, ys: NDArray, zs: NDArray, colors: NDArray | None = None, shading: str | None = "smooth", **kwargs
|
||||
): ...
|
||||
def set_data(
|
||||
self,
|
||||
|
|
|
@ -17,6 +17,6 @@ class HistogramVisual(MeshVisual):
|
|||
self,
|
||||
data: ArrayLike,
|
||||
bins: ArrayLike | int = 10,
|
||||
color: Color|str = "w",
|
||||
color: Color | str = "w",
|
||||
orientation: Literal["h", "v"] = "h",
|
||||
): ...
|
||||
|
|
|
@ -57,7 +57,7 @@ class ImageVisual(Visual):
|
|||
interpolation: str = "nearest",
|
||||
texture_format: np.dtype | None | str = None,
|
||||
custom_kernel: NDArray = ...,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def _init_interpolation(self, interpolation_names): ...
|
||||
def _init_texture(self, data, texture_format, **texture_kwargs): ...
|
||||
|
|
|
@ -12,9 +12,7 @@ CPU_COMPLEX_TRANSFORMS: dict = ...
|
|||
class ComplexImageVisual(ImageVisual):
|
||||
COMPLEX_MODES = ...
|
||||
|
||||
def __init__(
|
||||
self, data: NDArray | None = None, complex_mode: str = "magnitude", **kwargs
|
||||
): ...
|
||||
def __init__(self, data: NDArray | None = None, complex_mode: str = "magnitude", **kwargs): ...
|
||||
def _init_texture(self, data, texture_format, **texture_kwargs): ...
|
||||
def set_data(self, image: ArrayLike): ...
|
||||
@staticmethod
|
||||
|
|
|
@ -19,11 +19,9 @@ class InfiniteLineVisual(Visual):
|
|||
line_width: float = 1.0,
|
||||
antialias: bool = False,
|
||||
vertical=True,
|
||||
**kwargs
|
||||
): ...
|
||||
def set_data(
|
||||
self, pos: float | None = None, color: ArrayLike | tuple | None = None
|
||||
**kwargs,
|
||||
): ...
|
||||
def set_data(self, pos: float | None = None, color: ArrayLike | tuple | None = None): ...
|
||||
@property
|
||||
def color(self): ...
|
||||
@property
|
||||
|
|
|
@ -20,7 +20,7 @@ class IsocurveVisual(LineVisual):
|
|||
levels: NDArray | None = None,
|
||||
color_lev: Color | str | tuple | list | np.ndarray | None = None,
|
||||
clim: tuple | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def levels(self): ...
|
||||
|
|
|
@ -25,7 +25,7 @@ class IsolineVisual(LineVisual):
|
|||
data: NDArray | None = None,
|
||||
levels: NDArray | None = None,
|
||||
color_lev: Color | tuple | ArrayLike | str | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def levels(self): ...
|
||||
|
|
|
@ -19,7 +19,7 @@ class IsosurfaceVisual(MeshVisual):
|
|||
vertex_colors: NDArray | None = None,
|
||||
face_colors: NDArray | None = None,
|
||||
color: NDArray | None = ...,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def level(self): ...
|
||||
|
|
|
@ -6,7 +6,6 @@ from vispy.visuals.line.arrow import ArrowVisual
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import numpy as np
|
||||
|
||||
from ... import glsl, gloo
|
||||
|
|
|
@ -21,13 +21,13 @@ class LinePlotVisual(CompoundVisual):
|
|||
def __init__(
|
||||
self,
|
||||
data: ArrayLike | None = None,
|
||||
color: Color|str = "k",
|
||||
color: Color | str = "k",
|
||||
symbol: str | None = None,
|
||||
line_kind: str = "-",
|
||||
width: float = 1.0,
|
||||
marker_size: float = 10.0,
|
||||
edge_color: Color|str = "k",
|
||||
face_color: Color|str = "w",
|
||||
edge_color: Color | str = "k",
|
||||
face_color: Color | str = "w",
|
||||
edge_width: float = 1.0,
|
||||
connect: str | ArrayLike = "strip",
|
||||
): ...
|
||||
|
|
|
@ -18,7 +18,7 @@ class LinearRegionVisual(Visual):
|
|||
pos: ArrayLike | tuple | NDArray | None = None,
|
||||
color: ArrayLike | tuple = [1.0, 1.0, 1.0, 1.0],
|
||||
vertical=True,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def set_data(
|
||||
self,
|
||||
|
|
|
@ -71,7 +71,7 @@ class MarkersVisual(Visual):
|
|||
light_color: ColorArray | Color = "white",
|
||||
light_position: ArrayLike = ...,
|
||||
light_ambient: float = 0.3,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def set_data(
|
||||
self,
|
||||
|
|
|
@ -40,7 +40,7 @@ class MeshVisual(Visual):
|
|||
meshdata: None | MeshData = None,
|
||||
shading: str | None = None,
|
||||
mode: str = "triangles",
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def shading(self): ...
|
||||
|
|
|
@ -19,7 +19,7 @@ class MeshNormalsVisual(LineVisual):
|
|||
length: float | ArrayLike | None = None,
|
||||
length_method: Literal["median_edge", "max_extent"] = "median_edge",
|
||||
length_scale: float = 1.0,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def set_data(
|
||||
self,
|
||||
|
@ -28,5 +28,5 @@ class MeshNormalsVisual(LineVisual):
|
|||
length: float | ArrayLike | None = None,
|
||||
length_method: Literal["median_edge", "max_extent"] = "median_edge",
|
||||
length_scale: float = 1.0,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
|
|
|
@ -5,7 +5,6 @@ from typing import Sequence
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import numpy as np
|
||||
|
||||
from .visual import CompoundVisual
|
||||
|
@ -14,7 +13,6 @@ from .line import LineVisual
|
|||
from ..color import Color
|
||||
from ..geometry import PolygonData
|
||||
|
||||
|
||||
class PolygonVisual(CompoundVisual):
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -24,7 +22,7 @@ class PolygonVisual(CompoundVisual):
|
|||
border_width: int = 1,
|
||||
border_method: str = "gl",
|
||||
triangulate: bool = True,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def _update(self): ...
|
||||
@property
|
||||
|
|
|
@ -5,7 +5,6 @@ from numpy.typing import ArrayLike
|
|||
# Copradiusight (c) 2014, Vispy Development Team.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import numpy as np
|
||||
from ..color import Color
|
||||
from .polygon import PolygonVisual
|
||||
|
@ -14,13 +13,13 @@ class RectangleVisual(PolygonVisual):
|
|||
def __init__(
|
||||
self,
|
||||
center: ArrayLike | None = None,
|
||||
color: Color|str = "black",
|
||||
color: Color | str = "black",
|
||||
border_color: Color | None = None,
|
||||
border_width: int = 1,
|
||||
height: float = 1.0,
|
||||
width: float = 1.0,
|
||||
radius: ArrayLike | float = [0.0, 0.0, 0.0, 0.0],
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@staticmethod
|
||||
def _generate_vertices(center, radius, height, width): ...
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
from numpy.typing import ArrayLike
|
||||
from typing import Sequence
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
@ -15,7 +16,7 @@ class RegularPolygonVisual(EllipseVisual):
|
|||
border_width: float = 1,
|
||||
radius: float = 0.1,
|
||||
sides: int = 4,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def sides(self): ...
|
||||
|
|
|
@ -17,8 +17,7 @@ class Variable(ShaderObject):
|
|||
self,
|
||||
name: str,
|
||||
value: float | int | tuple | GLObject | None = None,
|
||||
vtype: Literal["const", "uniform", "attribute", "varying", "inout"]
|
||||
| None = None,
|
||||
vtype: Literal["const", "uniform", "attribute", "varying", "inout"] | None = None,
|
||||
dtype: str | None = None,
|
||||
): ...
|
||||
@property
|
||||
|
|
|
@ -25,7 +25,7 @@ class SphereVisual(CompoundVisual):
|
|||
color: Color = ...,
|
||||
edge_color: tuple | Color | None = None,
|
||||
shading: str | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
@property
|
||||
def mesh(self): ...
|
||||
|
|
|
@ -18,7 +18,7 @@ class SurfacePlotVisual(MeshVisual):
|
|||
y: NDArray | None = None,
|
||||
z: NDArray | None = None,
|
||||
colors: NDArray | None = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
): ...
|
||||
def _update_x_data(self, x): ...
|
||||
def _update_y_data(self, y): ...
|
||||
|
|
|
@ -25,7 +25,7 @@ from ..visual import Visual
|
|||
from ...io import load_spatial_filters
|
||||
|
||||
class TextureFont(object):
|
||||
def __init__(self, font: Mapping, renderer:SDFRendererGPU): ...
|
||||
def __init__(self, font: Mapping, renderer: SDFRendererGPU): ...
|
||||
@property
|
||||
def ratio(self): ...
|
||||
@property
|
||||
|
@ -56,7 +56,7 @@ class TextVisual(Visual):
|
|||
def __init__(
|
||||
self,
|
||||
text: str | ArrayLike | None = None,
|
||||
color: Color|str = "black",
|
||||
color: Color | str = "black",
|
||||
bold: bool = False,
|
||||
italic: bool = False,
|
||||
face: str = "OpenSans",
|
||||
|
|
|
@ -5,7 +5,6 @@ from numpy.typing import ArrayLike
|
|||
# Copyright (c) Vispy Development Team. All Rights Reserved.
|
||||
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
|
||||
|
||||
|
||||
import functools
|
||||
|
||||
import numpy as np
|
||||
|
|
|
@ -9,9 +9,7 @@ import numpy as np
|
|||
from .linear import STTransform
|
||||
|
||||
class PanZoomTransform(STTransform):
|
||||
def __init__(
|
||||
self, canvas: None | Canvas = None, aspect: None | float = None, **kwargs
|
||||
): ...
|
||||
def __init__(self, canvas: None | Canvas = None, aspect: None | float = None, **kwargs): ...
|
||||
def attach(self, canvas: Canvas): ...
|
||||
@property
|
||||
def canvas_tr(self): ...
|
||||
|
|
|
@ -40,9 +40,7 @@ class STTransform(BaseTransform):
|
|||
NonScaling: bool = ...
|
||||
Isometric: bool = ...
|
||||
|
||||
def __init__(
|
||||
self, scale: ArrayLike | None = None, translate: ArrayLike | None = None
|
||||
): ...
|
||||
def __init__(self, scale: ArrayLike | None = None, translate: ArrayLike | None = None): ...
|
||||
@arg_to_vec4
|
||||
def map(self, coords: ArrayLike) -> NDArray: ...
|
||||
@arg_to_vec4
|
||||
|
@ -103,9 +101,7 @@ class MatrixTransform(BaseTransform):
|
|||
def __mul__(self, tr): ...
|
||||
def __repr__(self): ...
|
||||
def set_perspective(self, fov: float, aspect: float, near: float, far: float): ...
|
||||
def set_frustum(
|
||||
self, l: float, r: float, b: float, t: float, n: float, f: float
|
||||
): ...
|
||||
def set_frustum(self, l: float, r: float, b: float, t: float, n: float, f: float): ...
|
||||
|
||||
# class SRTTransform(BaseTransform):
|
||||
# """ Transform performing scale, rotate, and translate, in that order.
|
||||
|
|
|
@ -16,7 +16,7 @@ class TubeVisual(MeshVisual):
|
|||
points: NDArray,
|
||||
radius: NDArray | float = 1.0,
|
||||
closed: bool = False,
|
||||
color: ColorArray | Color|str = "purple",
|
||||
color: ColorArray | Color | str = "purple",
|
||||
tube_points: int = 8,
|
||||
shading: str | None = "smooth",
|
||||
vertex_colors: NDArray | None = None,
|
||||
|
|
|
@ -65,9 +65,7 @@ class VolumeVisual(Visual):
|
|||
self,
|
||||
vol: NDArray,
|
||||
clim: str | tuple = "auto",
|
||||
method: Literal[
|
||||
"mip", "attenuated_mip", "minip", "translucent", "additive"
|
||||
] = "mip",
|
||||
method: Literal["mip", "attenuated_mip", "minip", "translucent", "additive"] = "mip",
|
||||
threshold: float | None = None,
|
||||
attenuation: float = 1.0,
|
||||
relative_step_size: float = 0.8,
|
||||
|
|
|
@ -32,8 +32,8 @@ class WindbarbVisual(Visual):
|
|||
size: float | ArrayLike = 50.0,
|
||||
antialias: float = 1.0,
|
||||
edge_width: None | float = 1.0,
|
||||
edge_color: ColorArray | Color|str = "black",
|
||||
face_color: ColorArray | Color|str = "white",
|
||||
edge_color: ColorArray | Color | str = "black",
|
||||
face_color: ColorArray | Color | str = "white",
|
||||
): ...
|
||||
def _prepare_transforms(self, view): ...
|
||||
def _prepare_draw(self, view): ...
|
||||
|
|
Загрузка…
Ссылка в новой задаче