vsview-split-planes 0.2.3.post1__tar.gz → 0.3.0__tar.gz

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,153 @@
1
+ ## TS/JS
2
+ # Logs
3
+ logs
4
+ *.log
5
+ npm-debug.log*
6
+ yarn-debug.log*
7
+ yarn-error.log*
8
+ lerna-debug.log*
9
+
10
+ # Diagnostic reports (https://nodejs.org/api/report.html)
11
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12
+
13
+ # Runtime data
14
+ pids
15
+ *.pid
16
+ *.seed
17
+ *.pid.lock
18
+
19
+ # Directory for instrumented libs generated by jscoverage/JSCover
20
+ lib-cov
21
+
22
+ # Coverage directory used by tools like istanbul
23
+ coverage
24
+ *.lcov
25
+
26
+ # nyc test coverage
27
+ .nyc_output
28
+
29
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30
+ .grunt
31
+
32
+ # Bower dependency directory (https://bower.io/)
33
+ bower_components
34
+
35
+ # node-waf configuration
36
+ .lock-wscript
37
+
38
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
39
+ build/Release
40
+
41
+ # Dependency directories
42
+ node_modules/
43
+ jspm_packages/
44
+
45
+ # Snowpack dependency directory (https://snowpack.dev/)
46
+ web_modules/
47
+
48
+ # TypeScript cache
49
+ *.tsbuildinfo
50
+
51
+ # Optional npm cache directory
52
+ .npm
53
+
54
+ # Optional eslint cache
55
+ .eslintcache
56
+
57
+ # Optional stylelint cache
58
+ .stylelintcache
59
+
60
+ # Optional REPL history
61
+ .node_repl_history
62
+
63
+ # Output of 'npm pack'
64
+ *.tgz
65
+
66
+ # Yarn Integrity file
67
+ .yarn-integrity
68
+
69
+ # dotenv environment variable files
70
+ .env
71
+ .env.*
72
+ !.env.example
73
+
74
+ # parcel-bundler cache (https://parceljs.org/)
75
+ .cache
76
+ .parcel-cache
77
+
78
+ # Next.js build output
79
+ .next
80
+ out
81
+
82
+ # Nuxt.js build / generate output
83
+ .nuxt
84
+ dist
85
+ .output
86
+
87
+ # Gatsby files
88
+ .cache/
89
+ # Comment in the public line in if your project uses Gatsby and not Next.js
90
+ # https://nextjs.org/blog/next-9-1#public-directory-support
91
+ # public
92
+
93
+ # vuepress build output
94
+ .vuepress/dist
95
+
96
+ # vuepress v2.x temp directory
97
+ .temp
98
+
99
+ # Sveltekit cache directory
100
+ .svelte-kit/
101
+
102
+ # vitepress build output
103
+ **/.vitepress/dist
104
+
105
+ # vitepress cache directory
106
+ **/.vitepress/cache
107
+
108
+ # Docusaurus cache and generated files
109
+ .docusaurus
110
+
111
+ # Serverless directories
112
+ .serverless/
113
+
114
+ # FuseBox cache
115
+ .fusebox/
116
+
117
+ # DynamoDB Local files
118
+ .dynamodb/
119
+
120
+ # Firebase cache directory
121
+ .firebase/
122
+
123
+ # TernJS port file
124
+ .tern-port
125
+
126
+ # Stores VSCode versions used for testing VSCode extensions
127
+ .vscode-test
128
+
129
+ # pnpm
130
+ .pnpm-store
131
+
132
+ # yarn v3
133
+ .pnp.*
134
+ .yarn/*
135
+ !.yarn/patches
136
+ !.yarn/plugins
137
+ !.yarn/releases
138
+ !.yarn/sdks
139
+ !.yarn/versions
140
+
141
+ # Vite files
142
+ vite.config.js.timestamp-*
143
+ vite.config.ts.timestamp-*
144
+ .vite/
145
+
146
+ # Repo specific
147
+ web_dist/
148
+ sboms-js.cdx.json
149
+
150
+ ## Python
1
151
  # Byte-compiled / optimized / DLL files
2
152
  __pycache__/
3
153
  *.py[codz]
@@ -196,11 +346,13 @@ cython_debug/
196
346
  .abstra/
197
347
 
198
348
  # Visual Studio Code
199
- # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
349
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
200
350
  # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
201
- # and can be added to the global gitignore or merged into this file. However, if you prefer,
351
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
202
352
  # you could uncomment the following to ignore the entire vscode folder
203
- # .vscode/
353
+ .vscode/*
354
+ !.vscode/tasks.json
355
+ !.vscode/extensions.json
204
356
 
205
357
  # Ruff stuff:
206
358
  .ruff_cache/
@@ -224,4 +376,7 @@ vs_objects.inv
224
376
  vs_fixed.inv
225
377
 
226
378
  # Doc workraws
227
- docs/assets/raws
379
+ docs/assets/raws
380
+
381
+ # Local AGENTS.md
382
+ AGENTS.md
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: vsview-split-planes
3
- Version: 0.2.3.post1
3
+ Version: 0.3.0
4
4
  Summary: A vsview plugin displaying video clips' constituent planes
5
5
  Project-URL: Documentation, https://jaded-encoding-thaumaturgy.github.io/vs-view/plugins/second-party/#split-planes
6
6
  Project-URL: Source Code, https://github.com/Jaded-Encoding-Thaumaturgy/vs-view/tree/main/src/plugins/split-planes
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
17
  Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Programming Language :: Python :: 3.15
18
19
  Classifier: Typing :: Typed
19
20
  Requires-Python: >=3.12
20
21
  Requires-Dist: vapoursynth-akarin>=1.4.0
@@ -20,6 +20,7 @@ classifiers = [
20
20
  "Programming Language :: Python :: 3.12",
21
21
  "Programming Language :: Python :: 3.13",
22
22
  "Programming Language :: Python :: 3.14",
23
+ "Programming Language :: Python :: 3.15",
23
24
  "Operating System :: OS Independent",
24
25
  "Typing :: Typed",
25
26
  ]
@@ -3,6 +3,7 @@ from typing import Annotated, Any, Literal, assert_never, override
3
3
 
4
4
  from jetpytools import fallback
5
5
  from pydantic import BaseModel
6
+ from PySide6.QtCore import QSignalBlocker, Slot
6
7
  from PySide6.QtWidgets import QBoxLayout, QDoubleSpinBox, QHBoxLayout, QLabel, QVBoxLayout, QWidget, QWidgetAction
7
8
  from vapoursynth import VideoNode
8
9
  from vstools import scale_mask, stack_planes
@@ -105,6 +106,7 @@ class SplitPlanesPlugin(WidgetPluginBase[GlobalSettings, LocalSettings]):
105
106
 
106
107
  self.api.globalSettingsChanged.connect(self.on_settings_changed)
107
108
 
109
+ @Slot()
108
110
  def on_settings_changed(self) -> None:
109
111
  self.view.autofit = fallback(self.settings.local_.autofit, self.settings.global_.autofit)
110
112
  self.view.refresh()
@@ -169,20 +171,13 @@ class SplitPlanesView(PluginGraphicsView):
169
171
  if self.settings.local_.autofit:
170
172
  self.autofit_action.trigger()
171
173
 
172
- @override
173
- def parent(self) -> SplitPlanesPlugin:
174
- if isinstance(parent := super().parent(), SplitPlanesPlugin):
175
- return parent
176
-
177
- raise NotImplementedError
178
-
179
174
  @override
180
175
  def get_node(self, clip: VideoNode) -> VideoNode:
181
- if (offset_chroma := self.settings.local_.offset_chroma) is None:
182
- offset = False
176
+ if not (offset_chroma := self.settings.local_.offset_chroma):
177
+ offset: Literal["min", "max", False] | float = False
183
178
  elif isinstance(offset_chroma, (float, int)):
184
- offset = scale_mask(abs(offset_chroma), 32, clip)
185
- offset = copysign(offset, offset_chroma)
179
+ scaled = scale_mask(abs(offset_chroma), 32, clip)
180
+ offset = copysign(scaled, offset_chroma)
186
181
  else:
187
182
  offset = offset_chroma
188
183
 
@@ -201,7 +196,8 @@ class SplitPlanesView(PluginGraphicsView):
201
196
  case int() | float() | None:
202
197
  self.offset_segment.index = 0
203
198
  self.fixed_spinbox_container.setEnabled(True)
204
- self.offset_spinbox.setValue(float(offset or 0))
199
+ with QSignalBlocker(self.offset_spinbox):
200
+ self.offset_spinbox.setValue(offset or 0)
205
201
  case "min":
206
202
  self.offset_segment.index = 1
207
203
  self.fixed_spinbox_container.setEnabled(False)
@@ -211,32 +207,34 @@ class SplitPlanesView(PluginGraphicsView):
211
207
  case _:
212
208
  assert_never(offset)
213
209
 
210
+ @Slot(int)
214
211
  def on_offset_segment_changed(self, index: int) -> None:
215
212
  self.fixed_spinbox_container.setEnabled(index == 0)
216
- parent = self.parent()
217
213
 
218
214
  match index:
219
215
  case 0:
220
- parent.update_local_settings(offset_chroma=self.offset_spinbox.value())
216
+ offset = self.offset_spinbox.value()
221
217
  case 1:
222
- parent.update_local_settings(offset_chroma="min")
218
+ offset = "min"
223
219
  case 2:
224
- parent.update_local_settings(offset_chroma="max")
220
+ offset = "max"
225
221
  case _:
226
222
  raise NotImplementedError
227
223
 
224
+ self.settings.local_.offset_chroma = offset # type: ignore[assignment]
225
+
228
226
  self.refresh()
229
227
 
228
+ @Slot(float)
230
229
  def on_offset_spinbox_changed(self, value: float) -> None:
231
230
  if self.offset_segment.index == 0:
232
- self.parent().update_local_settings(offset_chroma=value)
231
+ self.settings.local_.offset_chroma = value
233
232
  self.refresh()
234
233
 
235
234
  @override
236
235
  def _on_autofit_action(self) -> None:
237
236
  super()._on_autofit_action()
238
-
239
- self.parent().update_local_settings(autofit=self.autofit)
237
+ self.settings.local_.autofit = self.autofit
240
238
 
241
239
 
242
240
  @hookimpl