[RDView] 啊草我 degug 怎么还在里面(

This commit is contained in:
OLDREDSTONE 2026-01-16 20:14:42 +08:00
parent 70026114d8
commit 4b842c721b
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# 更新信息
#### 2026-01-16
- RDTKView(~~RDView2~~) 已完成部署
#### 2026-01-14
- 制作人员表增加了
- RDView 对正式版编辑器新特性的部分适配

View File

@ -15,7 +15,6 @@ export function render(data, width, height, scale = 2.0) {
for (let obj of objs) {
const style = { ...eventStyle, enabled: obj.active ?? true };
const elem = createElementEvent(obj, style);
console.log(obj, elem);
if (!elem) continue;
elem.eventStyle = style;
elem.style.position = "absolute";
@ -58,11 +57,9 @@ export function render(data, width, height, scale = 2.0) {
window.$docsify.plugins = [].concat(window.$docsify.plugins, (hook) => {
hook.doneEach(() => {
console.log("hello");
const pres = document.querySelectorAll("pre");
pres.forEach((codeBlock) => {
const lang = codeBlock.getAttribute("data-lang") || "";
console.log(codeBlock, lang);
if (lang.startsWith("rdtkview")) {
const code = codeBlock.querySelector("code").innerText || "";
const args = lang.slice(8).trim().split(" ");