File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ def construct(self):
76
76
from ..utils .space_ops import normalize
77
77
from ..utils .space_ops import rotate_vector
78
78
from ..utils .color import *
79
+ from .. import logger
79
80
80
81
DEFAULT_DOT_RADIUS = 0.08
81
82
DEFAULT_SMALL_DOT_RADIUS = 0.04
@@ -443,11 +444,13 @@ def __init__(
443
444
444
445
445
446
class SmallDot (Dot ):
446
- """
447
- A dot with small radius
448
- """
447
+ """Deprecated - A dot with small radius"""
449
448
450
449
def __init__ (self , radius = DEFAULT_SMALL_DOT_RADIUS , ** kwargs ):
450
+ logger .warning (
451
+ "SmallDot has been deprecated and will be removed in a future release. "
452
+ "Use Dot instead."
453
+ )
451
454
Dot .__init__ (self , radius = radius , ** kwargs )
452
455
453
456
Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
3
+ from .. import logger
3
4
from ..constants import *
4
5
from ..mobject .mobject import Mobject
5
6
from ..mobject .types .opengl_vectorized_mobject import (
@@ -341,7 +342,13 @@ def __init__(
341
342
342
343
343
344
class OpenGLSmallDot (OpenGLDot ):
345
+ """ Deprecated"""
346
+
344
347
def __init__ (self , radius = DEFAULT_SMALL_DOT_RADIUS , ** kwargs ):
348
+ logger .warning (
349
+ "OpenGLSmallDot has been deprecated and will be removed in a future release."
350
+ "Use OpenGLDot instead."
351
+ )
345
352
super ().__init__ (radius = radius , ** kwargs )
346
353
347
354
You can’t perform that action at this time.
0 commit comments